ob_start(); session_start(); require_once("includes/session.inc.php"); require_once("banner.php"); require_once($hashurl); require_once("Core.php"); $ip = $_SERVER['REMOTE_ADDR']; $sess_id = MD5($ip.$hash); if($_SESSION["utype"]=="investor" && $_SESSION["ustatus"]=="2") {}elseif ($_SESSION["sess_id"] != $sess_id){ header("location: login.php"); } require_once("includes/MySQLfunctions.class.php"); $mySQLsession=new MySQLfunctions(); $connection=$mySQLsession->connect($dbhost, $dblogin, $dbpassword, $database); $db_res_ids = array(); $content_arr = array(); $db_res_ids = mysql_query("Select * from `sp_article_category` where article_status = '1' order by RAND() LIMIT 0,15"); $db_rec = array(); $loop_ctr = 0; while($db_rec = mysql_fetch_object($db_res_ids)){ $db_res_data = mysql_query("Select * from `specialarticles` where art_visible = '3' and art_title ='".$db_rec->article_category_id."' order by art_date DESC LIMIT 0, 1"); $db_row = array(); $db_row = mysql_fetch_object($db_res_data); if($db_row){ $content_arr[$loop_ctr]["specialarticle_id"] = $db_row->specialarticle_id; $content_arr[$loop_ctr]["art_featured_title"] = $db_row->art_featured_title; $content_arr[$loop_ctr]["art_url"]=$db_row->art_url; $datex = explode("-",$db_row->art_date); $content_arr[$loop_ctr]["art_date"] = date("F d, Y", mktime (0,0,0,$datex[1],$datex[2],$datex[0])); $content_arr[$loop_ctr]["author_name"] = $db_rec->author_name; $content_arr[$loop_ctr]["author_image"] = $db_rec->author_image; //$content_arr[$loop_ctr]["art_contents"] = substr($db_row->art_contents,0,200).".."; $content_arr[$loop_ctr]["art_title_image"] = $db_rec->cat_image; $content_arr[$loop_ctr]["article_name"] = $db_rec->article_name; //$temp = preg_replace ($search, $replace, $db_row->art_contents); $content_arr[$loop_ctr]["art_contents"] = $db_row->art_contents; //substr($temp,0,200).".."; $loop_ctr++; } } $db_sql = "Select newsid, headline, news_detail, DATE_FORMAT(publish_date, '%M %d %Y') as pub_date from newsarchive where status = '0' LIMIT 0,10"; $db_res = mysql_query($db_sql, $connection); $invokePopUp=" onunload=\"javascript:if (document.all){RorC('".$normalurl."delonline.php?id=".$_SESSION["sess_onlineid"]."')} else {var top=window.outerWidth;if (top==0) {RorC('".$normalurl."delonline.php')}}\""; ?>