0) $cond="pageID=$PageID"; elseif (check_int($url_name)) $cond="pageID=$url_name"; elseif ($url_name!='') $cond="url_name='".to_sql($url_name)."'"; if ($cond) { $PageData=@$sql_fetch_assoc(db_query("select * from site_pages where type and (active or $view_inactive) and $cond")); $PageID=(int)$PageData['pageID']; } if (!$PageID || !$cond) $RedirectUrl="$SITE_ROOT/404.html"; include_once("$ROOT_PATH/common/all_head.php"); ?>