Archiv verlassen und diese Seite im Standarddesign anzeigen : Pfad der config.php ändern
Grüße,
Ich würde gerne die config.php in ein nicht öffentliches Verzeichnis legen, hab in diesem Thread (http://www.vbulletin-germany.com/forum/showpost.php?p=107008&postcount=3) zwar gefunden was ich suche, allerdings hat sich die init.php scheinbar in 3.5.0 geändert; hinzu kommt, dass ich von php und co keinen blassen Schimmer hab.
ja richtig. Das wird jetzt in der /includes/class_core.php festgelegt. :)
//edit^: habe mal den Post (http://www.vbulletin-germany.com/forum/showpost.php?p=107008&postcount=3) an vB 3.5.0 angepasst :) /**
* Fetches database/system configuration
*/
function fetch_config()
{
// parse the config file
$config = array();
include(CWD . '/includes/config.php');
if (sizeof($config) == 0)
{
if (file_exists(CWD. '/includes/config.php'))
{
// config.php exists, but does not define $config
die('<br /><br /><strong>Configuration</strong>: includes/config.php exists, but is not in the 3.5 format. Please convert your config file via the new config.php.new.');
}
else
{
die('<br /><br /><strong>Configuration</strong>: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php');
}
}
ja richtig. Das wird jetzt in der /includes/class_core.php festgelegt. :)
//edit^: habe mal den Post (http://www.vbulletin-germany.com/forum/showpost.php?p=107008&postcount=3) an vB 3.5.0 angepasst :) /**
* Fetches database/system configuration
*/
function fetch_config()
{
// parse the config file
$config = array();
include(CWD . '/includes/config.php');
if (sizeof($config) == 0)
{
if (file_exists(CWD. '/includes/config.php'))
{
// config.php exists, but does not define $config
die('<br /><br /><strong>Configuration</strong>: includes/config.php exists, but is not in the 3.5 format. Please convert your config file via the new config.php.new.');
}
else
{
die('<br /><br /><strong>Configuration</strong>: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php');
}
}
der Pfad ist: (/web/data1/html)/includes/config.php
aber soll sein: /web/data1/forum/config.php
Was muss ich jetzt ändern und wie änder ich den Pfad? *confused*
Indem du den Pfad '/includes/config.php' (hier rot dargestellt) so anpasst. 2x im ganzen. Damit es funktioniert. * Fetches database/system configuration
*/
function fetch_config()
{
// parse the config file
$config = array();
include(CWD . '/forum/config.php');
if (sizeof($config) == 0)
{
if (file_exists(CWD. '/forum/config.php'))
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.