Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if($env->e !== "redirect" && !$env->erreur) |
---|
4 | { |
---|
5 | |
---|
6 | $env->e = ""; |
---|
7 | $env->mod_path = ""; |
---|
8 | |
---|
9 | if($_SERVER["SCRIPT_NAME"]) |
---|
10 | { $v_path = explode("/", $_SERVER["SCRIPT_NAME"]); |
---|
11 | |
---|
12 | if(count($v_path) > 1) |
---|
13 | { switch($v_path[count($v_path) - 2]) |
---|
14 | { case "punbb": |
---|
15 | $env->e = "forum"; |
---|
16 | $env->mod_path = ""; |
---|
17 | break; |
---|
18 | default: |
---|
19 | } |
---|
20 | } |
---|
21 | if(!$env->e) |
---|
22 | { define('PUN_QUIET_VISIT', 1); |
---|
23 | switch($v_path[count($v_path) - 1]) |
---|
24 | { case "index.php": |
---|
25 | case "download.php": |
---|
26 | case "backend.php": |
---|
27 | $env->e = $_GET[$env->param("e")] ? $_GET[$env->param("e")] : "edito"; |
---|
28 | $env->mod_path = ""; |
---|
29 | break; |
---|
30 | case "post_request.php": |
---|
31 | require $env->path("app")."data/str_tab.php"; |
---|
32 | $env->str_tab = new str_tab(); |
---|
33 | $env->request = $env->str_tab->request_tab($_POST["post_request"]); |
---|
34 | $env->e = isset($env->request["function"]) ? $env->request["function"] : ""; |
---|
35 | $env->DATA = isset($env->request["DATA"]) ? $env->request["DATA"] : array(); |
---|
36 | $env->mod_path = "post_request/"; |
---|
37 | $env->reponse = array(); |
---|
38 | break; |
---|
39 | default: |
---|
40 | } |
---|
41 | } |
---|
42 | } |
---|
43 | |
---|
44 | } |
---|
45 | if($env->erreur) $env->e = "erreur"; |
---|
46 | |
---|
47 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.