0) { return false; } return true; } if( !isInteger($id) || strlen($id)>5 ){ header("location:http://angelbc.com/four-o-four.php"); exit(); } if($_SESSION['preview']!="preview"){ $mainQueryAddition = " and Date_Time<'$datetime_server' "; } $sql = "SELECT * from CMS_Article"; $a = mysql_real_escape_string($id); $sql = $sql." where Article_ID ='$a' $mainQueryAddition "; $result = mysql_query($sql, $conn); while ($newArray = mysql_fetch_array($result)) { $date = $newArray['Date_Time']; $title = $newArray['Title']; $standfirst = $newArray['Standfirst']; $standfirst = strip_tags($standfirst); $main = $newArray['Mainbody']; $news = $newArray['News']; $feature = $newArray['Feature']; $product = $newArray['Product']; $archive = $newArray['Archive']; $section_id = $newArray['Section_ID']; $section_website = $newArray['Website_ID']; $enduser = $newArray['End_User']; $image = $newArray['Image']; $shortCode=$newArray['shortCode']; $shortLinkProtected=$newArray['shortLinkProtected']; $date_array = explode("-", $date); $ts = mktime(0, 0, 0, $date_array[1], $date_array[2], $date_array[0]); $date = date("j M Y", $ts); } if(!empty($image)){ $articleImage = "
"; } else { $articleImage = ""; } $image = ""; $keywordsdefault = "The latest data storage news for IT Directors, CTOs, CIOs and IT decision makers covering cloud computing, virtualisation, data backup, business continuity, disaster recovery, deduplication, tiered storage, SAN, NAS, clustering and data centres"; $section = $section_id; $section_array = explode(",", $section); $s = 0; $c = 0; while ($s<100 && $c<1){ if ($section_array[$s] != ''){ $sectionid = substr($section_array[$s], 1); if (strstr($validsections,",$sectionid,")) { $sql2 = "SELECT * from CMS_Section where Section_ID=$sectionid"; $result2 = mysql_query($sql2, $conn); while ($newArray2 = mysql_fetch_array($result2)) { $sectionname2 = $newArray2['Section_Name']; $keyword2 = $newArray2['Keywords']; $sectionname = $sectionname2; $mainsectionid = $sectionid; $sectionscott = $sectionid; $mainsectionname = $sectionname; $section = $sectionname; $keywords = $keyword2; $c++; } } } $s++; } /* if($shortLinkProtected=="yes"){ if($_SESSION['protectedContent']!="yes"){ //$title = ""; $standfirst = "Protected magazine article"; $main = "
To access this article, please use the URL printed in the magazine.


"; // $date = ""; } } */ ?> -