2001-10-16 20:05:05 UTC
1) Open ‘config.inc.php’ and replace the code directly below
’set_magic_quotes_runtime(0);’ with:
------------------------------------------------------------------
if (strlen(__FILE__) > strlen(basename(__FILE__)))
define ('phpAds_path', substr(__FILE__, 0, strlen(__FILE__) - strlen(basename(__FILE__)) - 1));
else
define ('phpAds_path', '.');
// If this path doesn't work for you, customize it here like this
// Note: no trailing backslash
// define ('phpAds_path', "/home/myname/www/phpAdsNew");
------------------------------------------------------------------
2) Open ‘phpadsnew.inc.php’ and replace the code directly below
‘// Figure out our location’ with:
------------------------------------------------------------------
if (strlen(__FILE__) > strlen(basename(__FILE__)))
define ('phpAds_path', substr(__FILE__, 0, strlen(__FILE__) - strlen(basename(__FILE__)) - 1));
else
define ('phpAds_path', '.');
// If this path doesn't work for you, customize it here like this
// Note: no trailing backslash
// define ('phpAds_path', "/home/myname/www/phpAdsNew");
// Include required files
require (phpAds_path."/config.inc.php");
require (phpAds_path."/view.inc.php");
require (phpAds_path."/acl.inc.php");
------------------------------------------------------------------
3) Open ‘view.inc.php’ and replace the code on
line 18 and 19 with:
------------------------------------------------------------------
require (phpAds_path.”/dblib.php");
require (phpAds_path.”/lib-expire.inc.php");
------------------------------------------------------------------