error_reporting(E_ERROR | E_PARSE); session_name("sessid"); session_start(); session_register("selected_lang"); if(!isset($action_logout)) $action_logout=0; if(!isset($action_login)) $action_login=0; if(!isset($left_menu)) $left_menu="main"; if(!isset($site)) $site="main"; if(!isset($_SESSION["selected_lang"])) $_SESSION["selected_lang"]=1; require_once ("include/functions.php"); require_once ("config/config.php"); $selectlang=$_SESSION["selected_lang"]; include ("language/lang_".$lang_pack[$selectlang].".php"); if($action_login==1): login($login,$password); endif; if($action_logout==1): unset ($_SESSION["loged_user"]); unset ($_SESSION["last_login"]); unset ($_SESSION["id_client"]); session_destroy(); header("location: index.php?animstop=1"); endif; // SETUP MYSQL CONNECTIONS FROM SESSION if(isset($_SESSION["loged_user"])): $mysql_conn=unserialize($_SESSION["mysql_connection_system"]); // GET mysql conection object from session; else: $mysql_conn = new clsMysql($mysqlserver[1],$mysqluser[1],$mysqlpassw[1],$dbname[1]); endif; // END OF SETUP MYSQL CONNECTIONS FROM SESSION ?>
|
|||||||
|
|||||||
Copyright © 2009 CesWEB.cz Provozovatel: EWH reklama s.r.o. |
|||||||