<?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

  ===============================================================
*/

	// valor "1" en desarrollo y "0" en internet
	ini_set("display_errors", "0");

	// Attempt...
	define("IGNX", 1);

	// conex, config, login  global
	require("inc.global.php");

/******* CONFIGURACION  **********/

$titulo = INGENIO_NOMBRE." ".INGENIO_VERSION;
$archivo_php = $_SERVER['SCRIPT_NAME'];

/****** CONFIGURACION FIN ********/

	$cadena_get_comple = $_SERVER['QUERY_STRING'];
	$no_get = $cadena_get_comple == "" ? 1 : 0 ;

	// ver pag
	$ig = $_GET;
	if ($no_get)
	{
		$dir = "";
		$ver_pag = "";
	
	} else if (isset($ig["rsc"])) {
	
		$dir = $ig["rsc"];
		
		if ($dir == "nodis")
		{		
			
			$ver_pag = 'nodisponible.php';
			Redir ($ver_pag);
			
		} else {
		
			$ver_pag = SPHP_HTTP_DIR.$dir.'/';
			
		}
	
	}

?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<?php echo '<meta http-equiv="content-type" content="text/html; charset='.CONFIG_2.'" />'; ?>
<title><?php echo $titulo; ?></title>
<?php include("inc.head.php"); ?>

</head>

<body>

<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td valign="top">

<?php include("inc.menu.php"); ?>

</td><td valign="top" width="100%">

<?php include("inc.copy.php"); ?>

<div class="contenido">

<div class="div_rotulo_top_sec">
<img class="img_icon_pag" src="../skins_admin/<?php echo substr($row_comp['skin_admin'],0,-4); ?>/imgs/icon_funciones.png" />
&nbsp;&nbsp;&nbsp;
<span class="rotulo_top_sec"><?php  echo LEN_ADMIN_248; ?></span>
</div>

<div class="rotulo"><?php  echo LEN_ADMIN_11; ?></div>

<a href="javascript:ventana ('<?php echo $ver_pag; ?>',750,550);" class="conex_gral"><?php  echo LEN_ADMIN_311; ?></a>
<br /><br />

<script language="JavaScript">

	var ancho_iframe = '100%';
	var alto_iframe = screen.availHeight - 300;
	
	document.write ('<iframe width="'+ancho_iframe+'" height="'+alto_iframe+'" src="<?php echo $ver_pag; ?>" border="0" frameborder="0" id="vernobody"></iframe>');

</script>

</div>

</td></tr></table>

</body>
</html>
<?php
	include("inc.fin.php");
?>