Ver Mensaje Individual
  #30 (permalink)  
Antiguo 13/05/2010, 02:35
Avatar de Flow89
Flow89
 
Fecha de Ingreso: abril-2010
Ubicación: Valladolid
Mensajes: 346
Antigüedad: 14 años
Puntos: 1
Respuesta: Seguridad en PHP [Importante];

Sí, me muestra la funcion, y lo que hay debajo las dos cosas XDD

te muestro el de el panel d administracion x ej;

Código PHP:
<?php 
  
include("conex.php"); 
  include(
"login.php"); 
  include(
"seguridad.php");

  if(
$loginCorrecto)
  { 
?>
<html>
<head>
<title>JuventudMDC - Panel de Administraci&oacute;n</title>
<link href="../css/general.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
    background-image: url(../imagenes/bg_pattern.gif);

</style></head>

<body>

<div align="center">
  <table width="200" border="0" id="general">
    <tr>
      <td colspan="3"><img src="http://www.forosdelweb.com/f18/imagenes/panel.png" width="500" height="200"></td>
    </tr>
    <tr>
      <td colspan="3">&nbsp;</td>
    </tr>
    <tr>
      <td width="161"><div align="center"><a href="http://www.forosdelweb.com/f18/noticias/administrar.php"><img src="http://www.forosdelweb.com/f18/imagenes/addnoticia.png" width="100" height="100" border="0" usemap="#Map"></a></div></td>
      <td width="162"><div align="center"><a href="http://www.forosdelweb.com/f18/noticias/enoticias.php"><img src="http://www.forosdelweb.com/f18/imagenes/editarnoticia.png" width="100" height="100" border="0" usemap="#map"></a></div></td>
      <td width="165"><div align="center"><a href="http://www.forosdelweb.com/f18/noticias/bnoticias.php"><img src="http://www.forosdelweb.com/f18/imagenes/borrar.png" width="100\" height="100" border="0" usemap="#map"></a></div></td>
    </tr>
    <tr>
      <td><div align="center" ><a href="http://www.forosdelweb.com/f18/noticias/administrar.php" class="Estilo16">Crear Noticia </a></div></td>
      <td> <div align="center" ><a href="http://www.forosdelweb.com/f18/noticias/enoticias.php" class="Estilo16">Editar Noticia </a></div></td>
      <td><div align="center" ><a href="http://www.forosdelweb.com/f18/noticias/bnoticias.php" class="Estilo16">Borrar Noticia </a></div></td>
    </tr>
    <tr><td><br></td></tr>
    <tr>
      <td width="161"><div align="center"><a href="http://www.forosdelweb.com/f18/usuarios/addusuario.php"><img src="http://www.forosdelweb.com/f18/imagenes/addusuario.png" width="100" height="100" border="0" usemap="#Map"></a></div></td>
      <td width="162"><div align="center"><a href="http://www.forosdelweb.com/f18/usuarios/eusuario.php"><img src="http://www.forosdelweb.com/f18/imagenes/editarusuario.png" width="100" height="100" border="0" usemap="#map"></a></div></td>
      <td width="165"><div align="center"><a href="http://www.forosdelweb.com/f18/usuarios/busuario.php"><img src="http://www.forosdelweb.com/f18/imagenes/borrarusuario.png" width="100" height="100" border="0" usemap="#map"></a></div></td>
    </tr>
    <tr>
      <td><div align="center" ><a href="http://www.forosdelweb.com/f18/usuarios/addusuario.php" class="Estilo16">Crear Usuario </a></div></td>
      <td><div align="center" ><a href="http://www.forosdelweb.com/f18/usuarios/eusuario.php" class="Estilo16">Editar Usuario </a></div></td>
      <td><div align="center" ><a href="http://www.forosdelweb.com/f18/usuarios/busuario.php" class="Estilo16">Borrar Usuario </a></div></td>
    </tr>
  </table>
</div>
</body>
</html>

<?php  }
  else
  {
  echo 
"<META HTTP-EQUIV=\"refresh\" CONTENT=\"2; url=../panel.php\">";
  echo 
"<table style=\"height:100%;width:100%;\"border=\"0\"><tr><td class=\"estilo34\"><div align=\"center\">El sistema no lo ha identificado, solo los usuarios registrados tienen acceso a esta area<br> Seras redireccionado automaticamente.</div></td></tr></table>";
  }
?>
Un saludo