<?php function common_postprocessing() { global $dataset,$Config,$REMOTE_IS_SEARCHENGINE; if ($Config->AutoExpire) { header("Expires: Tue, 03 Jul 2001 06:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); } if (wizard_get_name()) turnoff_mainmenu(); enable_view_mode_selection($dataset); $theme_requested=deduce_theme_requested(); $lang_requested=language_requested(); $dataset['UPDATE-TIMEZONE-SCRIPT']=is_user_time_zone_defined()?array():array(0); $dataset['CSS-PATH']='qx-cmd-getcss.html?NOSESSION=1&THEME='.$theme_requested.'&file='; $dataset['IMAGE-PATH']='thm-'.$theme_requested.'/image'; $dataset['SCRIPT-PATH']='qx-cmd-gettranslatedjs.html?NOSESSION=1&LANG='.$lang_requested.'&THEME='.$theme_requested.'&file='; $dataset['SEARCHENGINE-ONLY']=$REMOTE_IS_SEARCHENGINE?array(0):array(); $dataset['UNREAD_MESSAGE_COUNT']=get_unread_message_count(); $dataset['UNREAD-MESSAGE-AVAIL']=$dataset['UNREAD_MESSAGE_COUNT']?array(0):array(); $dataset['MESSAGE-COUNT-LIFETIME']=$Config->MessageCountLifetime; if ($REMOTE_IS_SEARCHENGINE) { $pieces=array_values(loadTextMap(false,0)); $selectedpieces=$pieces; for ($i=0;$i<100;$i++) $selectedpieces[$i]=$pieces[mt_rand(0,sizeof($pieces)-1)]; $dataset['SEARCH-ENGINE-MIRROR']=array(); $basicuri=ereg_replace('/searchenginemirror-[0-9]+','',$_SERVER['REQUEST_URI']); for ($i=0;$i<50;$i++) { array_push($dataset['SEARCH-ENGINE-MIRROR'], array( 'url'=>'/searchenginemirror-'.floor(crc32($_SERVER['REQUEST_URI'].'?'.$_SERVER['QUERY_STRING'].time())/24/3600+mt_rand(0,86400)).$basicuri, 'text'=>$pieces[mt_rand(0,sizeof($pieces)-1)] ) ); } } } common_postprocessing(); ?>