Suspended
- Join Date:
- Aug 2004
- Posts:
- 3,180
- Plugin Contributions:
- 1
Post #41 by theoracle
Lets fix this.
In your admin/additional_customers_fields.php file,
move:
//----------------------------------------------------------------------------------
//--- No customers are allowed (can't take any chances) ---
//----------------------------------------------------------------------------------
if (!$_SESSION['admin_id']) {
$messageStack->add_session(ENTRY_ADDITIONAL_CUSTOMERS_FIELDS_UNAUTHORIZED_ACCESS, 'warning');
zen_redirect(zen_href_link(FILENAME_ADDITIONAL_CUSTOMERS_FIELDS, '', 'NONSSL'));
} // End of if statement.
?>
Then, find:
<?php require(DIR_WS_INCLUDES . 'header.php');
replace with:
<?php require(DIR_WS_INCLUDES . 'header.php');
//----------------------------------------------------------------------------------
//--- No customers are allowed (can't take any chances) ---
//----------------------------------------------------------------------------------
if (!$_SESSION['admin_id']) {
$messageStack->add_session(ENTRY_ADDITIONAL_CUSTOMERS_FIELDS_UNAUTHORIZED_ACCESS, 'warning');
zen_redirect(zen_href_link(FILENAME_ADDITIONAL_CUSTOMERS_FIELDS, '', 'NONSSL'));
} // End of if statement.
?>
Should work now.