<?php
/*
  ===============================================================

  inGenio X
  http://ingenio.area421.com

  Created by 
  Julian Moreno Hidalgo (Software developer)
  Jesus Moreno Hidalgo (Communication's tree)

  inGenio X is a free software licensed under CC-GNU GPL

  ===============================================================
*/
	if (!defined("IGNX")) { die("Attempt..."); }

/*

Administrador en modo web

*/

if ((isset($_COOKIE["GX_ss"]) && isset($_COOKIE["GX_ps"])) && $_COOKIE["GX_ss"] == CONFIG_8 && $_COOKIE["GX_ps"] == CONFIG_9)
{

	$enadmin="<div class=\"div_admin\"><a href=\"javascript:edit('".RUTA_INICIO_IMG."gestor.php',".CONFIG_5.")\" class=\"admin\">".LEN_56."</a>";
	$ensalir=" - <a href=\"".RUTA_INICIO."len".IGUAL."0".AMPER."sr".IGUAL."1\" class=\"admin\">".LEN_57."</a></div>";
		
	// Web oculta
	$tpl_enadmin = $enadmin.$ensalir;
	
	// Smarty
	$smarty->assign("tpl_enadmin", $enadmin.$ensalir);

} else if ((isset($_SESSION["log"]) && isset($_SESSION["pass"])) && $_SESSION["log"] == CONFIG_8 && $_SESSION["pass"] == CONFIG_9)
{
		
	$enadmin="<div class=\"div_admin\"><a href=\"javascript:edit('".RUTA_INICIO_IMG."gestor.php',".CONFIG_5.")\" class=\"admin\">".LEN_56."</a>";
	$ensalir=" - <a href=\"".RUTA_INICIO."len".IGUAL."0".AMPER."sr".IGUAL."1\" class=\"admin\">".LEN_57."</a></div>";
		
	// Web oculta
	$tpl_enadmin = $enadmin.$ensalir;
	
	// Smarty
	$smarty->assign("tpl_enadmin", $enadmin.$ensalir);

}


/*

FIN de Administrador en modo web

*/


?>