<?php
// --------------------------------------------------------------------------
//
// Esvon Classifieds v.4.0
// Copyright(C), Esvon LTD, 2001-2010, All Rights Reserved.
// E-mail: hide@address.com
//
// All forms of reproduction, including, but not limited to, internet posting,
// printing, e-mailing, faxing and recording are strictly prohibited.
// One license required per site running Esvon Classifieds.
// To obtain a license for using Esvon Classifieds, please register at
// http://www.esvon.com/pg/products/p_classifieds/
//
// --------------------------------------------------------------------------
if(!defined('SITE_PATH')) die('Access denied');
function Extra_Pages_main(){
global $db,$HW_WRAP,$title,$HW_LANG;
$pg = $db->quote((string)$_GET['pg']);
list($title,$html,$HW_WRAP) = $db->one_row('SELECT ptitle, content, wrap FROM '.hwModTable(HW_MOD,'data')." WHERE id='$pg'");
if(hwModGetState('Multi_Lang') == 'A'){
$v = $db->one_assoc('SELECT ptitle, content FROM '.hwModTable('Multi_Lang','extra_page')." WHERE id='$pg' AND lang_id='$HW_LANG'");
if($v['ptitle']) $title = $v['ptitle'];
if($v['content']) $html = $v['content'];
unset($v);
}
if (isset($html)){
/*if(strpos($html,'<?php') !== false){
$res = @eval('? >'.$html);
// return if parsing is successful
if($res!==FALSE) return;
// if parsing error, just show page text as it is (Word HTML can cause this)
}*/
/*if(strpos($html,'index.php?page=')){
$html = str_replace('index.php?page=search&s_res=AND&','index.php?page=search&s_res=AND&',$html);
$html = str_replace('index.php?page=browse&','index.php?page=browse&',$html);
$html = preg_replace('/index\.php\?page=search&s_res=AND&cid=(\d+)/','page-b\\1_0.html',$html);
$html = preg_replace('/index\.php\?page=browse&cid=(\d+)/','page-b\\1.html',$html);
hwProcessTags($html);
}*/
echo $html;
}
else{
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
exit;
}
}
?>