User Found... subscription for $site_name active.

Please note that it expires at $users_transition_end_date

Back to MacSurfer's Headline News

"; return 1; } else { $result= "

Sorry, your subscription expired at $users_transition_end_date

"; return 0; } } else { set_transition_login_cookie("0","2001-01-01 00:00:00"); $result= "

Invalid E-mail/Pass combination.

"; return 0; } } } if (!function_exists(validate)) { function validate ($account_id) { # echo "\r\n\r\n\r\n\r\n"; setcookie ("sub_test","1"); global $db, $server, $user, $pass, $users_transition_table; $link_id = mysql_connect( $server, $user, $pass ); $query = "SELECT id, mhn, end_date from $users_transition_table where id='$account_id'"; $result_id = mysql_db_query( $db, $query, $link_id ); $num_rows = mysql_num_rows($result_id); if ($num_rows==1) { // Found user $results = mysql_fetch_array ($result_id); extract ($results, EXTR_PREFIX_ALL, "users_transition"); $current_time = mktime(); $end_date_unix = mysqlDateTime($users_transition_end_date); if (($users_transition_mhn) && ($end_date_unix > $current_time)) { echo ""; echo "\r\n\r\n\r\n\r\n"; } else { # echo "

Sorry, your subscription expired at $users_transition_end_date

"; echo ""; echo "\r\n\r\n\r\n\r\n"; } } } } if (!function_exists(set_transition_login_cookie)) { function set_transition_login_cookie($account_id,$end_datetime) { $path = "/"; $domain = ""; $expire = mysqlDateTime($end_datetime); $tendays = mktime() + (60*60*24*10); if ($account_id == 0) $tendays = $expire; setcookie ("subscriber_id", $account_id, $expire, $path, $domain); setcookie ("subscription", "1", $expire, $path, $domain); setcookie ("subscription_session", $account_id, $tendays, $path, $domain); } } if (!function_exists(mysqlDateTime)) { cfunction mysqlDate($date) { # Regular expression to break down the date ereg("(....)-(..)-(..)",$date,$reg); # Process the date with mktime and return the value in epoch time return mktime(0,0,0,$reg[2],$reg[3],$reg[1]); } cfunction mysqlTime($time) { # Regular expression to break down the date ereg("(..):(..):(..)",$time,$reg); # Process the date with mktime and return the value in epoch time return mktime($reg[1],$reg[2],$reg[3]); } cfunction mysqlDateTime($datetime) { # Regular expression to break down the date ereg("(....)-(..)-(..) (..):(..):(..)",$datetime,$reg); # Process the date with mktime and return the value in epoch time return mktime($reg[4],$reg[5],$reg[6],$reg[2],$reg[3],$reg[1]); } }