c8258251819c162f7002600e0e0e46ada0232b5f
bernd webinterface => /webinterface

bernd authored 17 years ago

1) <?php
2) 
3) require_once('inc/debug.php');
4) $go = $_GET['go'];
5) 
6) /*
7)  sanitize $go
8) */
9) 
10) if (strstr($go, "..") or strstr($go, "./") or strstr($go, ":") or (! file_exists("modules/$go")))
11) {
12)   die("illegal command");
13) }
14) 
15) 
16) /*
17)  contruct prefix
18) */
19) 
20) global $prefix;
21) $prefix = "../";
22) $count = 0;
23) str_replace("/", "x", $go, $count);
24) 
25) $prefix = $prefix.str_repeat("../", $count);
26) 
27) 
28) require_once('session/start.php');
29) 
30) $output = "";
bernd Logging aktiviert

bernd authored 16 years ago

31) require_once("inc/base.php");