bernd commited on 2007-08-08 13:00:55
Zeige 1 geänderte Dateien mit 4 Einfügungen und 2 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@594 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -15,7 +15,7 @@ if (strstr($go, "..") or strstr($go, "./") or strstr($go, ":") or (! file_exists |
15 | 15 |
|
16 | 16 |
|
17 | 17 |
/* |
18 |
- contruct prefix |
|
18 |
+ construct prefix |
|
19 | 19 |
*/ |
20 | 20 |
|
21 | 21 |
global $prefix; |
... | ... |
@@ -33,10 +33,12 @@ require_once("inc/base.php"); |
33 | 33 |
/* setup module include path */ |
34 | 34 |
ini_set('include_path',ini_get('include_path').':./modules/'.dirname($go).'/include:'); |
35 | 35 |
|
36 |
+/* Look where we are (but let the module override) */ |
|
37 |
+$section = str_replace("/", "_", str_replace(".php", "", $go)); |
|
38 |
+ |
|
36 | 39 |
/* Let the module work */ |
37 | 40 |
include("modules/".$go); |
38 | 41 |
|
39 |
-$section = str_replace("/", "_", str_replace(".php", "", $go)); |
|
40 | 42 |
|
41 | 43 |
include('inc/top.php'); |
42 | 44 |
print $output; |
43 | 45 |