function files_login($file) {
$file_path = split('/',$file);
$count_files = count($file_path);
$count_files--;
switch ($file_path[$count_files]) {
case 'create_account.php': return TRUE; break;
case 'login.php': return TRUE; break;
case 'password_forgotten.php': return TRUE; break;
case 'create_account_process.php': return TRUE; break;
default: return FALSE;
}
}
if (!isset($_SESSION['customer_id'])) {
//changed due to php_self not allowed in php5
//$process_login = files_login($PHP_SELF);
$process_login = files_login($_SERVER['PHP_SELF']);
if (!$process_login) {
tep_redirect(tep_href_link(FILENAME_LOGIN,'','SSL'));
}
}
?>
International Jewelry Designs
International Jewelry Designs
New Server
| Retrieve Account Password |
|
 |
|
|
|
|