Share

News

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Fix for phpAdsNew 2 beta 3

  1. 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");
    ------------------------------------------------------------------


< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.