Suspended
- Join Date:
- Aug 2004
- Posts:
- 3,180
- Plugin Contributions:
- 1
Ban Customers (by email address).
Since this particular problem is becoming larger, let's discard the zen_redirect module needs restructuring (as this was already reported in the past on the forum).
In your admin/ban_customers.php file,
find:
//----------------------------------------------------------------------------------
//--- No customers are allowed (can't take any chances) ---
//----------------------------------------------------------------------------------
if (!$_SESSION['admin_id']) {
$messageStack->add_session(ENTRY_BANNED_CUSTOMERS_UNAUTHORIZED_ACCESS, 'warning');
zen_redirect(zen_href_link(FILENAME_BAN_CUSTOMERS, '', 'NONSSL'));
} // End of if statement.
replace with:
//----------------------------------------------------------------------------------
//--- No customers are allowed (can't take any chances) ---
//----------------------------------------------------------------------------------
if (!$_SESSION['admin_id']) {
$messageStack->add_session(ENTRY_BANNED_CUSTOMERS_UNAUTHORIZED_ACCESS, 'warning');
?>
<script>window.location="<?php echo zen_href_link(FILENAME_BAN_CUSTOMERS, '', 'NONSSL'); ?>"</script>
<?php
} // End of if statement.
Will this fix this error message ?