From 0bf18fff7dff14f81c4ba0b16cab92b42b3861f7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 10 Jun 2012 07:17:36 +0200 Subject: repo reorg --- relocate.php | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 relocate.php (limited to 'relocate.php') diff --git a/relocate.php b/relocate.php new file mode 100644 index 0000000..8475b33 --- /dev/null +++ b/relocate.php @@ -0,0 +1,61 @@ + $value) { + if (is_string($key)) { + $key = relocate_string($key); + } + $result[$key] = relocate_value($value); + } + + return $result; +} + +$input = file_get_contents($file); + +# Special case for /etc/pear.conf. +if (strncmp($input, "#PEAR_Config 0.9\n", 17) == 0) { + echo substr($input, 0, 17); + $s = substr($input, 17); +} else { + $s = $input; +} + +echo serialize(relocate_value(unserialize($s))); + +?> \ No newline at end of file -- cgit