<?php
/**
 *  infdj.com
 *  Funciones necesarias para mi portal...
 */
 require( "addons/open_db.php" );
 require( "addons/autenticate.php" );
 require( "addons/cbox.php");
?>

<!-- main.htm -->
<html>
 <head>
  <title>Inform&aacute;tica D.J. programadores :: w w w . i n f d j . c o m ::</title>

  <link rel="stylesheet" type="text/css" href="addons/infdj.css" body="addons/infdj.css">
  <script language="JavaScript" src="addons/cb.js"></script>
<!--
  <script language="javascript">baseA = "";</script>
  <script language="javascript" src="addons/menu_bar/sniffer.js"></script>
  <script language="javascript1.2" src="addons/menu_bar/custom.js"></script>
  <script language="javascript1.2" src="addons/menu_bar/style.js"></script>
-->
  <script language="JavaScript">
<?
  echo "numNew=".getNumNews().";var level=";
  if ( isset( $user_level ) ) echo "$user_level;"; else echo "0;";
?>
  </script>

 </head>

<body bgcolor="#FFFFFF" text="#FFFFFF" topmargin="0" leftmargin="0" ondragstart="return false" onselectstart="return false" oncontextmenu="return false">

<div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0" width="769" background="images/bg.jpg">
    <tr>
        <td background="images/ln.gif" valign="top"><img src="images/lb.gif" width="1" height="77"><br><img src="images/ln.gif" width="1" height="500"></td>
	<td valign="top" width="777">
<!-- begin header.htm -->

	<table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr bgcolor="#FFFFFF">
                <td width="10">&nbsp;</td>
                <td width="76"><img src="images/bm_logo_sup.gif" width="76" height="77"></td>
                <td width="186"  valign="top" width="186"><a href="/index.php"><img src="images/txt_infdj.gif" width="186" height="37" border="0"></a></td>
                <td align="center" style="text-align='center'">[ESPACIO RESERVADO]</td>
            </tr>
	</table>
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	    <tr bgcolor="#FFFFFF">
                <td width="10"><img src="images/bm_med.gif" width="10" height="29"></td>
                <td width="76"><img src="images/bm_logo_med.gif" width="76" height="29"></td>
                <td width="130" background="images/bm_crist_med.gif" class="cristal"><img src="images/bm_med.gif" align="absmiddle" width="10" height="29"><img  src="images/bm_crist_izq.gif" align="absmiddle" width="10" height="29"><?if ( isset($user_nick) ) echo strtoupper($user_nick); else echo date("d-M-Y" );?></td>
       	        <td background="images/bm_med.gif"><img src="images/bm_crist_der.gif" width="10" height="29" align="absmiddle"><img src="sep.gif" name="anchor" alt="" border=0 width=5 height=20 align="absmiddle"></td>
	    </tr>
            <tr>
       	        <td width="10"><img src="images/bm_minf.gif" width="10" height="30"></td>
                <td width="76"><img src="images/bm_logo_inf.gif" width="76" height="30"></td>
                <td width="130" background="images/bm_crist_medinf.gif"><img src="images/bm_minf.gif" align="absmiddle" width="10" height="30"><img src="images/bm_crist_izqinf.gif" align="absmiddle" width="10" height="30"></td>
                <td background="images/bm_minf.gif"><img src="images/bm_crist_derinf.gif" align="absmiddle" width="10" height="30">Mas pruebas</td>
            </tr>
       	</table>

<!-- end header.htm -->

	<table border="0" cellpadding="5" cellspacing="0" width="100%">
		    <tr>
	                <td width="167" valign="top">
<!-- begin leftnav.htm -->
<p><br><br></p>
				<img src="images/sep.gif" width="5" height="5">
				<script language="javascript" src="addons/box_noticias.js"></script>
				<img src="images/sep.gif" width="5" height="5">
<?
if ( ! $user_auth )
 echo '<script language="javascript" src="addons/box_ident.js"></script>';
?>
				<img src="images/sep.gif" width="5" height="5">
				<script language="javascript" src="addons/box_enlaces.js"></script>
				<img src="images/sep.gif" width="5" height="5">
				<script language="javascript" src="addons/box_miniChat.js"></script>
<!-- end leftnav.htm -->
			</td>
	                <td valign="top">
<?
   global $go;
   if ( isset($go) ) 
   {
	if ( file_exists( "pages/$go" ) )
	{
		$ruta = dirname( "pages/".$go );
		$repl = "src=\"$ruta/";
		$repl2= "href=\"./?go=$ruta/";
		$desc = fopen( "pages/$go", "r" );
		while ( !feof( $desc ) )
		{
			echo eregi_replace( "\href=\"", $repl2, 
				eregi_replace( "\src=\"", $repl, fgets( $desc, 256 ) ) );
		}
		fclose( $desc );
//			require("pages/$go");
	} else
			echo "<CENTER>la pagina no esta disponible</center>";
   } else
	require('./default.php');
?>
			</td>
            	    </tr>
	        </table>

	        <p><br></p>
        </td>
        <td background="images/ln.gif"  valign="top"><img src="images/lb.gif" width="1" height="77"><br><img src="images/sep.gif" width="1" height="1"></td>
    </tr>
    <tr>
        <td bgcolor="#000000"><img src="images/sep.gif" width="1" height="1"></td>
        <td align="right" valign="top" bgcolor="#000000" class="litt" style="text-align:right;margin-right:5.0pt">:: copyright © 1999 - 2002 <a href="http://jd.infdj.com" class="litt">JDsoft</a> ::</td>
        <td bgcolor="#000000"><img src="images/sep.gif" width="1" height="1"></td>
    </tr>
</table>
</center></div>
<!--
<script language="javascript1.2" src="addons/menu_bar/menu.js"></script>
-->
<p><br></p>
</body>
</html>
<?
 mysql_close($conexion);
?>
