Contenido_Security Problem

Gesperrt
Dinkel
Beiträge: 565
Registriert: Di 22. Mär 2005, 14:52
Kontaktdaten:

Contenido_Security Problem

Beitrag 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");
selbstentwickelte Module:
Downloads und Infos zu den Modulen: gibt es hier.
Modul: Forum | Version 0.9 | getestet: 4.6.24 MR, 4.8.11, 4.8.11 AMR
Modul: Galleriffic | Version: 0.3.4 BETA | getestet: 4.8.11, 4.8.11 AMR, 4.8.12, 4.8.12 AMR
Modul: Metadata | Version: 2.0 | getestet: 4.9.7, 4.9.7 AMR
Modul: Slider Gallery | Version: 1.0 | getestet: 4.9.12 AMR
Modul: Up- & Download | Version: 4.1 | getestet: 4.9.12 AMR
emergence
Beiträge: 10653
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence »

*** make your own tools (wishlist :: thx)
Gesperrt