//define LIB path;
define('LIB',dirname(__FILE__).'/');
define('PATHPUBLIC',$_SERVER["HTTP_HOST"].'/');
//load config file managemente class
include_once(LIB.'class.iniFile.php');
//configuration file
$cfgFile=LIB.'config.inc.php';
//check configuration file permissions
$cfgDecperms = fileperms($cfgFile);
$cfgOctalperms = sprintf("%o",$cfgDecperms);
$cfgPerms=(substr($cfgOctalperms,3));
//in setup mode don't check the permissions
$settingUP=true;
if(!$settingUP){
if($cfgPerms != 664){
print "El fichero de configuración debe tener permisos: 664
";
print "Modifique los permisos mediante FTP o desde la línea de comando
";
print "The permissions of the configuration file must be: 664
";
print "Change the permissions throught the FTP or from the command line
";
exit;
}
}
//get config file and set constants included in this file
$ini= new configFile();
$ini->setConstants($cfgFile);
//load general libraries
include_once(LIB.'func.util.php'); //some basic routines
//prepare received variables here
if(is_array($_GET) and !empty($_GET)){
$_GET=cleanData($_GET);
}
if(is_array($_POST) and !empty($_POST)){
$_POST=cleanData($_POST);
}
if(is_array($_COOKIE) and !empty($_COOKIE)){
$_COOKIE=cleanData($_COOKIE);
}
//initialize session
session_start();
//include generalArray
include_once(DATA."generalArray.inc.php");
//set language and set template directory
if(USELANG==1){
if($_GET['L']){
define('LANG',$_GET['L']);
$_SESSION['glPage']['L']=$_GET['L'];
}elseif($_SESSION['glPage']['L']){
define('LANG',$_SESSION['glPage']['L']);
}else{
define('LANG',LANGUAGE);
$_SESSION['glPage']['L']=LANGUAGE;
}
define('TPL',TEMPLATE.LANG.'/');
}else{
define('LANG',LANGUAGE);
define('TPL',TEMPLATE);
}
include_once(DATALANG.'lang.general.inc.php');
//loqueamos la entrada
include_once(LIB.'class.logs.php');
$logs=new logs();
//include permissions details
include_once(DATA."permissions.inc.php");
//include auth class
include_once(LIB."class.userAndAuth.php");
//load other libraries
include_once(LIB.'class.template.php'); //template class
//database
function tbl(){
static $tbl;
if(!is_object($tbl)){
include_once(LIB. 'class.dbMysql.php'); // db management class
$tbl= new DB_Sql;
$tbl->Halt_On_Error='no';
$tbl->Auto_Free=1;
$tbl->Host=HOST;
$tbl->Database=DB;
$tbl->User=USER;
$tbl->Password=PASS;
}
return $tbl;
}
//string management class
function str(){
static $str;
if(!is_object($str)){
include_once(LIB. 'class.strFormat.php'); // db management class
$str= new strFormat;
}
return $str;
}
?>
Warning: include_once(LIBsecurity.inc.php): failed to open stream: No such file or directory in /var/www/vhosts/rolde.org/httpdocs/index.php on line 16
Warning: include_once(): Failed opening 'LIBsecurity.inc.php' for inclusion (include_path='.:/opt/plesk/php/5.3/share/pear') in /var/www/vhosts/rolde.org/httpdocs/index.php on line 16
Fatal error: Call to undefined function checkUrlData() in /var/www/vhosts/rolde.org/httpdocs/index.php on line 17