get_wkr_user_id()==-1)//si el user sigue vacio no se ha logeado todavia
{
$language= htmlentities($_GET["language"], ENT_QUOTES);
$_SESSION['wkrUser']->set_wkr_user_lang($language);
$session_on = null;
}
else//entonces se ha logeado correctamente y se abre el panel de control
{
$language= htmlentities($_GET["language"], ENT_QUOTES);
$user=''. $_SESSION['wkrUser']->get_wkr_user_name().' '.$_SESSION['wkrUser']->get_wkr_user_surname() .'';
$session_on = "1";
}
}
else // Primera vez que entra, no estaba definida la variable
{
//viene de la zona publica del site y recupero el idioma del usuario
$language= htmlentities($_GET["language"], ENT_QUOTES);
//Inicializo la clase donde se guardaran las variables de sesion.
$current_wkr_user=new Wkr_user(-1,"","","","",$language);
$_SESSION['wkrUser']=$current_wkr_user;
$session_on = null;
}
//****** SI LANGUAGE = ENGLISH
if($language == "eng"){
$nav_title="User Panel";
$page_title='Welcome to the walkirya community';
$menu_text="";//LoadWkrMenuText("../index.html","Walkirya");
if(!empty($session_on))// si la sesion se ha iniciado correctamente.
{
$menu_icons=LoadWkrMenuIcon(1,0,$language);
$fila01='
Logout | Control Panel | '.$user.' |
Encrypted messaging |
|
Encrypted chat |
Encrypted File Manager |
|
Teletype |
Friends Network |
|
User config |
Fechar Sessão | Painel de Control | '.$user.' |
Mensagens Criptografadas |
|
Chat Criptografado |
Arquivos Criptografados |
|
Teletipo Criptografado |
Rede de Amig@s |
|
Configuração do usuário |
Cerrar sesión | Panel de Control Panel | '.$user.' |
Mensajería Encriptada |
|
Chat Encriptado |
Archivos Encriptados |
|
Teletipo Encriptado |
Red de Amigos |
|
Configuración del usuário |