//this page is for non logged in members.
include_once "../rcontrol/config.php";
include_once "$SERVERPATH/rcommon/functions.php";
include_once "$SERVERPATH/rcommon/stripallslashes.php";
include_once "$SERVERPATH/rcommon/database.php";
include_once "$SERVERPATH/registration/includes/includefornonregfiles.php";
include_once "revamp_function.php";
include_once "revamp_common.php";
//for latest report and special reports
$latest_reports=latest_reports(8);
$special_reports=special_reports(5);
//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)));
$currenttime=time();
//trapuser($login,'Industry News');
}
$cdate=mktime();
$newsdated1=mktime_to_mysqltime(time());
$y=substr($newsdated1,0,4);
$m=substr($newsdated1,4,2);
$d=substr($newsdated1,6,2);
$h=23;
$i=59;
$s=59;
//echo $y.$m.$d;
if($d)
{
$stamp1=mktime(0, 0,0, $m, $d, $y );
$stamp2=mktime($h, $i, $s, $m, $d, $y );
}
else
{
$day_number = genSet_Stop($m,$y);
$stamp1=mktime(0, 0,0, $m, 1, $y );
$stamp2=mktime($h, $i, $s, $m, $day_number, $y ); //
}
//fakhruddin for free and paid news
$status_ = "status ='a' or status='r'"; // r for paid news a for free
$query="Select * from ynfx_mis_ir WHERE visibility='1' AND ($status_) AND date_display_from < '$cdate' AND date_display_to >'$cdate' order by date_ir desc limit 5";
$result=mysql_db_query($DATABASE,$query);
if(@mysql_num_rows($result))
{
for($i=0;$i echo $title; ?>
include "../rssi/topbanner.php"; ?>
include "revamp_leftbanner.php"; ?>