start_time(); include "includes/gzdoc.php"; include "../rcontrol/config.php"; include "../rcommon/functions.php"; include "../rcommon/database.php"; include "includes/messages.inc.php"; include "includes/config.inc.php"; //include "$SERVERPATH/registration/includes/includefornonregfiles.php"; include "includes/functions.php"; include "code/title.php"; $index="index.php"; //include "includes/mail.php"; //checking if he has logged in if yes then take him to the respective page $sql= "SELECT memberlogin, memberexpdate FROM logger WHERE abc='$abc'"; $result = mysql_db_query($DATABASE,$sql); if(mysql_error()) error("Unexpected Error"); $count = mysql_num_rows($result); if ($count!=0) { $login=stripslashes(mysql_result($result,0,0)); //$expdate=mysqltime_to_mktime(stripslashes(mysql_result($result,0,1))); $expdate=(stripslashes(mysql_result($result,0,1))); $currenttime=time(); $cdate=substr(mktime_to_mysqltime(time()),0,8); if($expdate < $cdate) { /*if($login != 'hotdeals') { header("location:../meregistration/index.php?whichpage=firstpage&gotopage=secondpage&accessedpdservice=n&old=y&var=1&oldmemberlogin=narmada&contactperson=&c_try=India&id=5032&upgrade=y"); exit; }*/ } trapuser($login,'Industry Stats'); $sql="select plan, id, country from member where login='$login'"; $result=mysql_db_query($DATABASE,$sql); $planm=mysql_result($result,0,0); $mid=mysql_result($result,0,1); $mctry=mysql_result($result,0,2); if(($planm == '4~6')||($planm == '4~12')||($planm == '4~07')||($planm == '3~6')||($planm == '3~12')||($planm == '3~07')|| ($planm == '14~6')||($planm == '14~12')||($planm =='14~Grace Period')||($planm =='free')) { } //This is commented by Pratiksha as per juzer told /*if(($planm == '4~6')||($planm == '4~12')||($planm == '4~07')||($planm == '3~6')||($planm == '3~12')||($planm == '3~07')||($planm == '14~6')||($planm == '14~12')||($planm =='14~Grace Period')) { } else { //header("location:../meregistration/index.php?whichpage=firstpage&gotopage=secondpage&accessedpdservice=n&old=y&var=1&oldmemberlogin=narmada&contactperson=&c_try=India&id=5032&upgrade=y"); header("location:/preferredsupplier/login.php"); exit; //Header("Location: indexis.php"); //exit; } */ } else { If (($_SERVER['REMOTE_ADDR']=="66.249.64.0" || $_SERVER['REMOTE_ADDR']=="66.249.64.1" || $_SERVER['REMOTE_ADDR']=="66.249.64.2" || $_SERVER['REMOTE_ADDR']=="66.249.64.3" || $_SERVER['REMOTE_ADDR']=="66.249.64.4" || $_SERVER['REMOTE_ADDR']=="66.249.64.5" || $_SERVER['REMOTE_ADDR']=="66.249.64.6" || $_SERVER['REMOTE_ADDR']=="66.249.64.7" || $_SERVER['REMOTE_ADDR']=="66.249.64.8" || $_SERVER['REMOTE_ADDR']=="66.249.64.9" || $_SERVER['REMOTE_ADDR']=="66.249.64.10" || $_SERVER['REMOTE_ADDR']=="66.249.64.11" || $_SERVER['REMOTE_ADDR']=="66.249.64.12" || $_SERVER['REMOTE_ADDR']=="66.249.64.13" || $_SERVER['REMOTE_ADDR']=="66.249.64.14" || $_SERVER['REMOTE_ADDR']=="66.249.64.15" || $_SERVER['REMOTE_ADDR']=="66.249.64.16" || $_SERVER['REMOTE_ADDR']=="66.249.64.17" || $_SERVER['REMOTE_ADDR']=="66.249.64.18" || $_SERVER['REMOTE_ADDR']=="66.249.64.19" || $_SERVER['REMOTE_ADDR']=="66.249.64.20") and ($_SERVER['HTTP_USER_AGENT'] == "Googlebot")) { } else { //$go=urlencode("!mis/indexis~"); //Header("Location: ../ruser/index.php?go=$go"); header("location:/preferredsupplier/login.php"); exit; } } $color_arr=get_color($login); $pref_TEXTCOLOR=$color_arr[0]; $pref_BANDCOLOR=$color_arr[1]; $std_text_font=""; $std_welcome_font = ""; if(mysql_error()) error(mysql_error()); include "includes/config_colors.php"; include "includes/style.php"; include "includes/common.js"; include "includes/config_fonts.php"; if(($login=="hotdeals")||($login=="ynfx")) { $left_side="left_banner_admin"; } else $left_side="left_banner_stats"; ?> <? echo $SITENAMEDISPLAYBIG ?>.com - <? echo "$SITE_BY_LINE";?>
   
  
end_time(); //print "

seconds in script(DEBUG:): "; //print ($timer->elapsed_time()); //exit; ?>