Webmastersite.net
Register Log In

pathtoconfig

Title pathtoconfig
Description using tweaks.php
Message Text I have found that to use twearks.php we do have to change the order of the following at prestart.php: now: if ($inadmindir) { require '../'. $pathtoconfig .'config.php'; } else { require $pathtoconfig .'config.php'; } if ($inadmindir) { if (file_exists('../tweaks.php')) { require_once '../tweaks.php'; } } else { if (file_exists('tweaks.php')) { require_once 'tweaks.php'; } } oder change to work with tweaks.php: if ($inadmindir) { if (file_exists('../tweaks.php')) { require_once '../tweaks.php'; } } else { if (file_exists('tweaks.php')) { require_once 'tweaks.php'; } } if ($inadmindir) { require '../'. $pathtoconfig .'config.php'; } else { require $pathtoconfig .'config.php'; } Edit: Also in order to work inside admin directory, when moving the config.php we do have to specify the path to mysql.php, -at config.php as: require_once '/user/home/myserver/public_html/mysite/mydirectory/databases/mysql.php'; And in order to be able to update admin system configuration: -at /admin/prefs.php we should change "../config.php" to "../".$pathtoconfig."config.php"
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership peumus
Views 397 views. Averaging 0 views per day.
Submission Date Nov 22, 2006 - 6:15 PM