Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    May 2005
    Location
    Leicester, UK
    Posts
    91
    Plugin Contributions
    0

    Default PHPBB link incorrect after security recommendations

    Hi,
    I did have PhpBB integrated into my site, so that new customer was registered in the forum, etc. I've upgraded to 1.3_02, with the recommended security updates. All seemed fine.

    What I then did re: security recommendations, was to follow the wiki advice - rename admin & put all admin pages behind SSL.

    I then noticed that on the customer interface, the link to the forum was screwed up - it now reads as follows:

    http://www.mystore.co.uk/myshop//dom...orum/index.php

    My includes/configure.php reads as follows:

    // Define the webserver and path parameters

    define('HTTP_SERVER', 'http://www.mystore.co.uk');
    define('HTTPS_SERVER', 'https://www.mystore.co.uk');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/myshop/');
    define('DIR_WS_HTTPS_CATALOG', '/myshop/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/domains/m/y/mystore.co.uk/public_html/forum/');
    //define('DIR_WS_PHPBB', '/forum/'); => link not shown altho turned on in admin.

    // * DIR_FS_* = Filesystem directories (local/physical)
    define('DIR_FS_CATALOG', '/domains/m/y/mystore.co.uk/public_html/myshop/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    So, the full physical path is being appended to the shop url, along with an extra /.

    I read elsewhere in the forum about changing information.php. The relevant code is as follows:
    // Forum (phpBB) link:
    if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed']) && (PHPBB_LINKS_ENABLED=='true')) {
    $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', true, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
    // or: $phpBB->phpBB[''] . FILENAME_BB_INDEX
    // or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
    }

    This has made no difference - I've even tried hardcoding 'forum/'instead of 'phpbb_url' but to no avail.

    Any suggestions?

    Thanks,
    Eddie

  2. #2
    Join Date
    May 2005
    Location
    Leicester, UK
    Posts
    91
    Plugin Contributions
    0

    Default Re: PHPBB link incorrect after security recommendations

    Hi,

    I've just found the anwer in another thread: http://www.zen-cart.com/forum/showth...t=12050&page=4

    The changes I'd made to includes/modules/sideboxes/mytemplate/information.php were wrong. They should be like this

    line 29:
    <code> $information[] = '<a href="'.HTTP_SERVER. '/forum/" target="_blank">' . BOX_BBINDEX . '</a>';</code>

    That's fixed it. Thanks DrByte for that answer.

    Cheers,
    Eddie

 

 

Similar Threads

  1. security recommendations question
    By member in forum General Questions
    Replies: 6
    Last Post: 2 Dec 2010, 07:36 PM
  2. How can I protect my site from malicious attack? Security Recommendations
    By mooncavecrystals in forum General Questions
    Replies: 1
    Last Post: 7 Feb 2010, 06:20 PM
  3. Help text/content dissapeared after security recommendations
    By lieven23 in forum General Questions
    Replies: 6
    Last Post: 22 Oct 2009, 06:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg