Viewing file: index1111.php (2.14 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
// Configura la información de tu cuenta
$dbhost='localhost';
$dbusername='root';
$dbuserpass='';
$dbname='autenticacion';
session_start();
// Conexión a la base de datos
mysql_connect ($dbhost, $dbusername, $dbuserpass);
mysql_select_db($dbname) or die('Cannot select database');
if (isset($_SESSION['s_username'])) {
echo "".$_SESSION['s_username']."";
}else{
echo "Tu no estas autentificado dirígete a login.php o registrate en register.php";
echo $_SESSION['s_username'];
}
?>
<html>
<head>
<title>Publicidad Exterior Visual -Secretaria Distrital de Ambiente</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000" background="imagenes/107.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<img SRC="imagenes/logo.png" height=111 width=351><img SRC="imagenes/whiteblock2.gif" height=54 width=109>
<br>
<center><table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=2 WIDTH="100%" >
<tr VALIGN=TOP>
<td VALIGN=TOP WIDTH="177"><img SRC="imagenes/button2.jpg" height=50 width=168><img SRC="imagenes/button2.jpg" height=50 width=168><img SRC="imagenes/button2.jpg" height=50 width=168><img SRC="imagenes/button2.jpg" height=50 width=168><img SRC="imagenes/button2.jpg" height=50 width=168></td>
<td>
<center><table BORDER=0 CELLSPACING=6 CELLPADDING=6 COLS=1 WIDTH="100%" >
<tr VALIGN=TOP>
<td VALIGN=TOP></td>
</tr>
</table></center>
</td>
</tr>
<tr>
<td></td>
<td><img SRC="imagenes/whiteblock2.gif" height=2 width=536></td>
</tr>
</table></center>
<br>
<br><tt><font size=-2></font></tt>
<br><font size=-2></font>
<br><font size=-2></font>
<br><font size=-2></font>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<center><table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=2 WIDTH="100%" HEIGHT="300" >
<tr>
<td></td>
<td></td>
</tr>
</table></center>
<br>
<br>
<br>
<br>
<br>
</body>
</html>
|