session_start(); include $_SERVER['DOCUMENT_ROOT']."/admin/includes/funcoes.php"; conexao(); /*************************************************************************************** DEFINE O COOKIE PARA A LINGUA DOS CONTEUDOS ****************************************************************************************/ $lg = $_GET["lg"]; if($lg != ""){ setcookie("lg", $lg, time() + (60 * 60 * 24 * 30)); } if($lg == "" and $_COOKIE["lg"] != ""){ $lg = $_COOKIE["lg"]; } else if($lg == "" and $_COOKIE["lg"] == ""){ $lg = "01"; } else { $lg = $_GET["lg"]; } /********************************************************************************************** TAGS SEO *************************************************************************************************/ include $_SERVER['DOCUMENT_ROOT']."/includes/tags.php"; /********************************************************************************************** CARREGA A LINGUAGEM DO UTILIZADOR *************************************************************************************************/ switch ($lg) { case 01: include "language/pt.php"; $classpt = "linguas_active"; $lg_file_name = "pt"; break; case 02: include "language/es.php"; $classes = "linguas_active"; $lg_file_name = "es"; break; case 03: include "language/en.php"; $classen = "linguas_active"; $lg_file_name = "en"; break; case 04: include "language/fr.php"; $classfr = "linguas_active"; $lg_file_name = "fr"; break; case 05: include "language/al.php"; $classal = "linguas_active"; $lg_file_name = "al"; break; case 06: include "language/it.php"; $classit = "linguas_active"; $lg_file_name = "it"; break; } ?>