ya tenia una pagina armada asi que estaba intentando adaptarlo a esta, tengo un problema al poner el login:
Al poner el usuario y la contraseña aparece el siguiente error:
Código:
el index es este:Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\PortalTS Design\index.php:4) in C:\xampp\htdocs\PortalTS Design\class.loginusers.php on line 202 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\PortalTS Design\index.php:4) in C:\xampp\htdocs\PortalTS Design\class.loginusers.php on line 203 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\PortalTS Design\index.php:4) in C:\xampp\htdocs\PortalTS Design\class.loginusers.php on line 204 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\PortalTS Design\index.php:4) in C:\xampp\htdocs\PortalTS Design\class.loginusers.php on line 219
Código PHP:
<html>
<head>
<title>PortalTS - Design Community</title>
<?php include("incluido.php"); ?>
</head>
<body>
<div align="center">
<table width="990" height="174" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"></td><td>
<?php include("login_logo.php"); ?>
</tr>
</table>
<table class="navegacion" cellspacing="0" cellpadding="2" border="0" width="990" align="center">
<?php include("navegacion.php"); ?>
<tr>
<td colspan="8" style="background: #16233a;">
<table width="100%" cellspacing="0" cellpadding="10">
<tr>
<td colspan="2">
<table width="100%" cellpadding="0" cellspacing="0" border="0" id="tabla" style="display:block;">
<tr>
<td><img src="images/esquina_izquierda.png"></td><td style="background: url('images/fondo_bienvenida.png');background-repeat:repeat-x; background-position:top left;"><div style="position:absolute;padding-top:0px;padding-left:925px;"><img src="images/cerrar.png" onclick="javascript:OcultarTable('tabla')"></div><div style="padding-top:0px;padding-left:10px;padding-bottom:5px;"><img src="images/bienvenida.png"></div><br>
<div style="padding-left:10px;"><font size="1" color="#a4a4a4">Actualmente estamos trabajando constantemente en esta comunidad, por lo que es muy probable que puedan experimentar lentitud en el servidor, o encontrar algunas funciones
con errores.<br>Les agradeceremos que nos informen de estos mediante el formulario de <a href="contacto.php" class="logo">Contáctanos</a>.</font></div>
</td>
<td><img src="images/esquina_derecha.png"></td></tr></table>
</td>
</tr>
<tr>
<td> <object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0"
id="salonfama"
width="433" height="152"
>
<param name="movie" value="salonfama.swf">
<param name="bgcolor" value="#16233A">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
name="salonfama"
width="433" height="152"
src="salonfama.swf"
bgcolor="#16233A"
quality="high"
swliveconnect="true"
allowscriptaccess="samedomain"
>
<noembed>
</noembed>
</embed>
</object></td><td width="100%">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="images/publicidad.jpg"></td><td style="background: url('images/publicidad_fondo.jpg');background-repeat:no-repeat;background-position:top right;">
<div style="padding-top:2px;padding-right:2px;padding-bottom:2px;"><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0"
id="tantra"
width="489" height="148"
>
<param name="movie" value="tantra.swf">
<param name="bgcolor" value="#162542">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
name="tantra"
width="489" height="148"
src="tantra.swf"
bgcolor="#162542"
quality="high"
swliveconnect="true"
allowscriptaccess="samedomain"
>
<noembed>
</noembed>
</embed>
</object></div>
</td></tr>
</table></td></tr>
</table>
</td>
</tr>
<tr>
<td>
</td></tr>
</table>
</body>
</html>
Código PHP:
<?php include("login_logo.php"); ?>
Código PHP:
<?php
include_once "class.loginusers.php";
$class = new LoginUsers();
if((isset($_POST['Login'])) && $_POST['nombre']!='' && $_POST['password']!='') {
$class->LogUser = (isset($_POST['nombre'])) ? $_POST['nombre'] : '';
$class->LogPass = (isset($_POST['password'])) ? $_POST['password'] : '';
print $class->PrintLogin($_POST['Login']);
} else {
print $class->PrintLogin();
}
?>
Código PHP:
setcookie("LogUsuario", $this->LogUser, time()+$this->SysVars['ExpCookie']);
setcookie("LogSesid", $LogSesId, time()+$this->SysVars['ExpCookie']);
setcookie("LogLevel", $rowL['level'], time()+$this->SysVars['ExpCookie']);
header("location: ".$this->SysVars['UrlRe']."?Sid=".$LogSesId);
espero su ayuda, gracias.