$sql='SELECT url_to,code FROM '.Conf::getT('redirect')." WHERE url_from LIKE BINARY '".addslashes($_SERVER['REQUEST_URI'])."'"; //echo $sql; $data=$oMember->oDb->getRow($sql); if (!empty($data['code']) && $data['code']=='301') { $oReq->forward301($data['url_to']); } else if (empty($data['code']) && !($_SERVER['REMOTE_ADDR']=='216.147.146.178' && $_SERVER['REQUEST_URI']=='/undefined')) { $ref = isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:''; // $ref.=$_SERVER['REMOTE_ADDR']; $sql='INSERT INTO '.Conf::getT('nourl')." (id,url,cdate,ref) VALUES ('', '".addslashes($_SERVER['REQUEST_URI'])."',NOW(), '".addslashes($ref)."')"; $oMember->oDb->query($sql); } $help_ar=array(); $aHelp=array(); if (!empty($help_ar[$_SERVER['REQUEST_URI']])) $aHelp=$help_ar[$_SERVER['REQUEST_URI']]; if (!empty($filename))//vcefile.php file $temp=explode('.',$filename); else if (endsWith($_SERVER['REQUEST_URI'], '.vce')) $temp=explode('.',$_SERVER['REQUEST_URI']); empty($temp[2]) ? $exam_alias='' : $exam_alias=addslashes($temp[2]); if (!empty($exam_alias)) { $row=$oMember->oDb->getRow("SELECT v.name, e.code, e.alias FROM exam e, vendor v WHERE e.alias='$exam_alias' AND e.is_hidden=0 AND e.is_deleted=0 AND e.vendor_id=v.vendor_id AND v.is_hidden=0 AND v.is_deleted=0"); if (!empty($row)) { $aHelp['url']=Conf::getUrl('member.public.exam', array('alias'=>$row['alias'])); $aHelp['kw']=$row['name'].' '.$row['code'].' Exam VCE Files'; } } header("HTTP/1.0 404 Not Found"); $sTitle=Conf::format('app.name').' 404 error'; $oTpl->assign(array( 'sURI' => $_SERVER['REQUEST_URI'], 'aHelp' => $aHelp, 'rand_testimonial' => $rand_testimonial, 'sPageName' => '404', 'b404' => true, )); $oTpl->view('member/404.html'); exit(); ?>
ExamCollection PREMIUM
Get Unlimited Access to all ExamCollection's PREMIUM files!