Zen Cart Logo
Forums / General Questions / PHPBB link incorrect after security recommendations

PHPBB link incorrect after security recommendations

Locked

Views: 1,612

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
3 Sep 2006, 5:02 PM
#1
ecm avatar

ecm

New Zenner

Join Date:
May 2005
Location:
Leicester, UK
Posts:
86
Plugin Contributions:
0

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//domains/m/y/mystore.co.uk/public_html/forum/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

3 Sep 2006, 6:14 PM
#2
ecm avatar

ecm

New Zenner

Join Date:
May 2005
Location:
Leicester, UK
Posts:
86
Plugin Contributions:
0

Re: PHPBB link incorrect after security recommendations

Hi,

I've just found the anwer in another thread: http://www.zen-cart.com/forum/showthread.php?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