if($current_page=='advance-search.php' || $current_page=='search-result.php' || $current_page=='alert.php'){ ?>
if($current_page=='alert.php'){ ?>
} ?>
}else{ ?>
} ?>
$log_history_query="select * from " .TABLE_LOGIN_HISTORY." where last_respond_time >0 and add_date = '".date('Y-m-d')."' and log_status='Login'";
$log_history_result = com_db_query($log_history_query);
while($log_history_row = com_db_fetch_array($log_history_result)){
if($log_history_row['last_respond_time'] > 0)
$tot_off_time = time()-$log_history_row['last_respond_time'];
if($tot_off_time > 600){
$log_history_update = "update ".TABLE_LOGIN_HISTORY." set log_status='Logout', logout_time='".time()."' where add_date = '".date('Y-m-d')."' and log_status='Login' and user_id='".$log_history_row['user_id']."'";
com_db_query($log_history_update);
}
}
if($_SESSION['sess_payment'] == 'Not Complited'){
if($current_page == 'provide-contact-information.php' || $current_page == 'choose-subscription.php' || $current_page == 'submit-payment.php'){
//not redirect;
}else{
echo $url = "provide-contact-information.php?action=back&resID=".$_SESSION['sess_user_id'];
com_redirect($url);
}
}
if ($_SESSION['sess_user_id'] !='' and $_SESSION['sess_user_id'] > 0 ){
$log_history_update = "update ".TABLE_LOGIN_HISTORY." set last_respond_time='".time()."' where add_date = '".date('Y-m-d')."' and log_status='Login' and user_id='".$_SESSION['sess_user_id']."'";
com_db_query($log_history_update);
}
$search_msg=$_REQUEST['search_msg'];
?>
if($current_page!='movement.php'){ ?>
|
Please upgrade your account now. It is $85/month and you can cancel any time |
|
|
|
|
|
} ?>