Seite 1 von 1

Contenido_Security Problem

Verfasst: Mo 11. Aug 2008, 11:42
von Dinkel
Hallo,

also ich habe folgenden Fehler bekommen:

Code: Alles auswählen

Warning: include_once(../contenido/classes/class.security.php) [function.include-once]: failed to open stream: No such file or directory in /home/andrdin/public_html/statistic/front_content.php on line 61

Warning: include_once() [function.include]: Failed opening '../contenido/classes/class.security.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /home/andrdin/public_html/statistic/front_content.php on line 61

Fatal error: Class 'Contenido_Security' not found in /home/andrdin/public_html/statistic/front_content.php on line 62
Das ganze ist dadurch entstanden, dass ich das Frontent aus dem Ordner cms verschoben habe in das basedir.

Jetzt schau ich mir die front_content.php an und was sehen meine entzündeten Äuglein?

Code: Alles auswählen

// include security class and check request variables
include_once ('../contenido/classes/class.security.php');
Contenido_Security::checkRequests();

# include the config file of the frontend to init the Client and Language Id
include_once ("config.php");
# Contenido startup process
include_once ($contenido_path."includes/startup.php");
Also die Reihenfolge sollte anders herum sein, dass erst die config.php geladen wird, oder? Und es sollten Variablen genutzt werden... Summa summarum funktioniert es nun so:

Code: Alles auswählen

# include the config file of the frontend to init the Client and Language Id
include_once ("config.php");

// include security class and check request variables
include_once ($contenido_path."classes/class.security.php");
Contenido_Security::checkRequests();

# Contenido startup process
include_once ($contenido_path."includes/startup.php");

Verfasst: Mo 11. Aug 2008, 13:09
von emergence