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

  ===============================================================
*/
?>
<?php
	if (!defined("IGNX")) { die("Attempt..."); }
	
	// skin
	$qcomp = myquery("SELECT * FROM ".COMPOSICION." WHERE enabled=1 ORDER BY skinID ASC limit 0, 1","[tpl_weboculta]");
	$row_comp = myfetch($qcomp);

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

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CONFIG_2; ?>" />

<title><?php echo LEN_7; ?></title>
<meta name="title" content="<?php echo LEN_7; ?>" />
<meta name="DC.Title" content="<?php echo LEN_7; ?>" />
<meta http-equiv="title" content="<?php echo LEN_7; ?>" />


<meta name="Description" content="<?php echo LEN_11; ?>" />
<meta name="KeyWords" content="<?php echo LEN_12; ?>" />

<meta name="robots" content="index, follow" />
<meta name="author" content="Julian Moreno Hidalgo - http://ingenio.area421.com" />
<meta name="Generator" content="inGenio X : <?php echo INGENIO_VERSION; ?>" />

<link rel="STYLESHEET" href="<?php echo RUTA_INICIO_IMG.'skins/'.$row_comp['skin_css'].$tpl_update_css_js; ?>" type="text/css" />
<?php
 // skins css plugins
 	$tpl_archivos_man_css = getfilesdir("./skins/".substr($row_comp['skin_css'],0,-4)."/css","","(css)");
	for ($m=0; $m<count($tpl_archivos_man_css); $m++)
	{		
		echo '<link rel="STYLESHEET" href="'.RUTA_INICIO_IMG.'skins/'.substr($row_comp['skin_css'],0,-4).'/css/'.basename($tpl_archivos_man_css[$m]).$tpl_update_css_js.'" type="text/css" media="screen" />';	
	}

?>

<link rel="STYLESHEET" href="<?php echo RUTA_INICIO_IMG.'rsc/ingenio_re.css'.$tpl_update_css_js; ?>" type="text/css" />
<?php
	if (CONFIG_3 != "+")
	{
?>
<link rel="sortcut icon" href="<?php echo RUTA_INICIO_IMG.CONFIG_3; ?>" type="image/ico" />
<?php
	}
?>
<script language="javascript" src="<?php echo RUTA_INICIO_IMG.'rsc/ingenio_scripts.js'; ?>" type="text/javascript"></script>
<script language="javascript" src="<?php echo RUTA_INICIO_IMG.'rsc/ingenio_data.js'.$tpl_update_css_js; ?>" type="text/javascript"></script>
<script language="javascript" src="<?php echo RUTA_INICIO_IMG.'ftps/ingenio_cm.js'.$tpl_update_css_js; ?>" type="text/javascript"></script>
<script language="javascript" src="<?php echo RUTA_INICIO_IMG; ?>paqs/jquery/jquery-1.2.6.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo RUTA_INICIO_IMG; ?>paqs/jquery/lib/jquery.bgiframe.js"></script>
<script type="text/javascript" src="<?php echo RUTA_INICIO_IMG; ?>paqs/jquery/lib/jquery.dimensions.js"></script>
<?php
	if (CONFIG_20 == 1)
	{
?>
<script language="javascript" src="<?php echo RUTA_INICIO_IMG; ?>paqs/jquery/tooltip/jquery.tooltip.js" type="text/javascript"></script>
   <script type="text/javascript">
    $(function() {
		$('a, #conex_tip').tooltip({
		showURL: false
		});
    });
    </script>
<?php
	} // del if CONFIG_20
?>

</head>

<body>

<?php
	
	if (isset($tpl_enadmin))
	{
		echo $tpl_enadmin;
	}

	// la pagina oculta
	echo LEN_139;

	// powered link
	echo '
	<div style="font-size: x-small;font-family: verdana,sans-serif;margin: 3px 0 2px 0;text-align: center;">'.INGENIO_POWERED.'</div>';

?>

</body>
</html>