session_start();
header("Expires: ".gmdate("D, d M Y H:i:s", time()-5*60*60*24)." GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s", time()-5*60) . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: private");
while(list($gk, $gv)=each($_GET)) { $$gk=$gv; } while(list($gk, $gv)=each($_POST)) { $$gk=$gv; } while(list($gk, $gv)=each($_SESSION)) { $$gk=$gv; } $DOCUMENT_ROOT=$_SERVER[DOCUMENT_ROOT]; $HTTP_REFERER=$_SERVER[HTTP_REFERER]; $photo=$_FILES[photo][name]; $photo=$_FILES["photo"]["name"]; $REQUEST_URI=$_SERVER[REQUEST_URI]; $QUERY_STRING=$_SERVER[QUERY_STRING];
if(!isset($lang)) {
$lang="en";
}
if(!isset($index)) {
$index="nonflash";
}
function changelang($chlang) {
global $lang, $QUERY_STRING, $PHP_SELF;
$link=$PHP_SELF;
if(!empty($QUERY_STRING)) {
$link.="?".$QUERY_STRING;
if(strstr($link, "lang=")) {
$trans = array("lang=ar" => "lang=$chlang", "lang=en" => "lang=$chlang");
$link=strtr($link, $trans);
} else {
$link.="&lang=$chlang";
}
}
else {
$link.="?lang=$chlang";
}
return($link);
}
?>
The Design Group :: Advertising, Marketing, Training, Telecommunications,
Internet, Web, Networks and General Trading