deedc3e35d94c0d716ccb63996c7d4cafd95267d
bernd webinterface => /webinterface

bernd authored 17 years ago

1) <?php
2) 
bernd MenĂ¼-Includes sinnvoller /...

bernd authored 16 years ago

3) require_once('config.php');
bernd webinterface => /webinterface

bernd authored 17 years ago

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

bernd authored 16 years ago

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