-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·39 lines (33 loc) · 1.3 KB
/
index.php
File metadata and controls
executable file
·39 lines (33 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
require_once("nucleo/sesion.php");
#/*
##############################################################################
## Propiedades
##############################################################################
if($_SERVER["QUERY_STRING"]=="sys_vpath=" OR $_SESSION["var"]["vpath"]=="")
{
############################################
## RUTA RAIZ ###############################
############################################
$path_instalacion="modulos/instalacion/";
if(@file_exists($path_instalacion . "index.php")) $sys_location ="Location:instalacion/";
else
if(in_array($_SERVER["SERVER_NAME"],$_SESSION["obj"]["server"])) $sys_location ="Location:webHome/";
else $sys_location ="Location:sesion/";
header($sys_location);
exit;
}
$folders=substr_count($_SESSION["var"]["vpath"], "/");
if(file_exists($_SESSION["var"]["vpath"])) require_once($_SESSION["var"]["vpath"]);
else if(file_exists($_SESSION["var"]["modulo_path"]) AND $folders==1) require_once($_SESSION["var"]["modulo_path"]);
else
{
$_SESSION["var"]["vpath"] ="";
if($folders>0)
for($a=0;$a<$folders;$a++)
$_SESSION["var"]["vpath"] .="../";
$_SESSION["var"]["vpath"] .="errores/";
header('Location:'.$_SESSION["var"]["vpath"]);
}
#*/
?>