Error message:
Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\index.php on line 135
Code:
if(isset($_REQUEST['d'])
{ // LINE 135 IS THIS ONE
$d = $_REQUEST['d'];
if ($d) {
while (preg_match('/\\\/',$d)) $d = preg_replace('/\\\/','/',$d);
while (preg_match('/\/\//',$d)) $d = preg_replace('/\/\//','/',$d);
while (preg_match('/\.\.\//',$d)) $d = preg_replace('/\.\.\//','/',$d);
if ($d[strlen($d)-1] != '/') $d = $d.'/';
if ($d == '/') $d = '';
}
}
...on line 135
is usually the most helpful part of any error message.