session_start(); require "config.php"; include("blocs/refer.php"); define("LOCAL_SCRIPT","admin"); if (($_GET['lang']=='')&&($_SESSION[langa]=='')) $_SESSION['langa']="eng"; else { if ($_GET['lang']) $_SESSION['langa']=$_GET['lang']; } $langfile='lang/'.$_SESSION['langa'].'_'.LOCAL_SCRIPT.'.php'; $langfile2='lang/'.$_SESSION['langa'].'_common.php'; if ((is_file($langfile))&&(is_file($langfile2))){ include 'lang/'.$_SESSION['langa'].'_'.LOCAL_SCRIPT.'.php'; include 'lang/'.$_SESSION['langa'].'_common.php'; } else { include 'lang/eng_'.LOCAL_SCRIPT.'.php'; include 'lang/eng_common.php'; } $action=$_POST['action']; $lngid=$_SESSION['langa']; $query="select id,encoding from langs where indx='$lngid'"; $result=mysql_query($query); $row=mysql_fetch_array($result); $iid=$row["id"]; $enc=$row["encoding"]; $query='select * from common'; $result=mysql_query($query); $row=mysql_fetch_array ($result); $robots1=$row['robots1']; $pragma=$row['pragma']; $robots2=$row['robots2']; $robots3=$row['robots3']; $expires=$row['expires']; $revisit=$row['revisit']; $rating=$row['rating']; $distrib=$row['distrib']; $classify=$row['classify']; if($page=="") $pid=0; else $pid=$page; $query="select n".$iid." as n,t".$iid." as tl,d".$iid." as d,k".$iid." as k,c".$iid." as c,f".$iid." as f,dop".$iid." as dop from content where id='$pid'"; $result=mysql_query($query); $row=mysql_fetch_array($result); $n=$row["n"]; $tl=$row["tl"]; $d=$row["d"]; $k=$row["k"]; $c=$row["c"]; $f=$row["f"]; $dop=$row["dop"]; ?>