session_start(); //error_reporting(0); include('functions/database.php'); $SQL=new SQLDataBase("localhost","maikapri_maika","maikapri_nana","w,t)|7sADf,X"); //$SQL=new SQLDataBase("localhost","shirt","root","vertrigo"); include('session.php'); include('functions/functions.php'); include("includes/rating_functions.php"); include("functions/html.php"); define("action",true); //config $res=mysql_query("SELECT * FROM config"); $config=mysql_fetch_assoc($res); //user data $users=mysql_query("select * from users where id='$_SESSION[id]'"); $user_data=mysql_fetch_array($users); //blocks $res=mysql_query("SELECT * FROM blocks_geo WHERE active='1' ORDER BY pos"); while($data=mysql_fetch_array($res)) { if($data["align"]=="top") $top_block.=$data["content"]; if($data["align"]=="left") $left_block.=$data["content"]; if($data["align"]=="right") $right_block.=$data["content"]; if($data["align"]=="buttom") $buttom_block.=$data["content"]; } if(isset($_GET["lang"])) $_SESSION["lang"]=$_GET["lang"]; elseif(!$_SESSION["lang"] || $_SESSION["lang"]=="") $_SESSION["lang"]="geo"; include("lang/$_SESSION[lang].php"); $lng=$_SESSION["lang"]; if($lng==""){$lng="geo";}else{$lng=$lng;} //----------------------------------change_lang---------------------------- //georgian lang if($_SERVER['QUERY_STRING']!="") $lang_geo=$_SERVER['REQUEST_URI']."&lang=geo"; else $lang_geo=$_SERVER['REQUEST_URI']."?lang=geo"; //english lang if($_SERVER['QUERY_STRING']!="") $lang_eng=$_SERVER['REQUEST_URI']."&lang=eng"; else $lang_eng=$_SERVER['REQUEST_URI']."?lang=eng"; //if($_POST['delete_from_card'] and $_SESSION['log']==true) //mysql_query("delete from shopping_card where prod_id='$_POST[prod_id]' and user_id='$user_data[id]'"); if($_SESSION["log"]==true && isset($_REQUEST['udo']) && $_REQUEST['udo']=='siteconfig') include('user_admin/modules/siteconfig.php'); elseif($_SESSION["log"]==true) include('modules/users_admin.php'); elseif(isset($_REQUEST['users_page'])) { include('modules/users_page.php'); } elseif($_REQUEST['do']=="prod") include('prod.php'); elseif($_REQUEST['do']=='creator') include('creator.php'); else include('default.php'); mysql_close(); ?>