| QUOTE |
Warning: Cannot modify header information - headers already sent by (output started at c:\serv-n\www\aaas\frames.php:10) in c:\serv-n\www\aaas\login.php on line 16 |
| QUOTE |
| login.php <?php $LVuser=$_POST['Luser']; $LVsenha=$_POST['Lsenha']; $LVQlogado=$_COOKIE['userfile']; if($LVQlogado){ $LVQpermissao=159753; include("usuarios/".$LVQlogado.".cad.php"); echo "<table class=td><tr><td style='background-color:blue;'><p class=title>Login</td></tr><tr><td>$u_nm, você já está logado.</td></tr></table>"; } function conectar(){ global $LVuser; global $LVsenha; $LVQpermissao=159753; include("usuarios/".$LVuser."p".$LVsenha.".cad.php"); if($u_UsrExistente==true){ setcookie('userfile',$LVuser."p".$LVsenha); echo "<table class=td><tr><td style='background-color:blue;'><p class=title>Login</td></tr><tr><td>$u_nm, você foi logado com sucesso.</td></tr></table>"; } else{ ?> <script>setmeout("window.location.href='<?php echo $PATH_INFO;?>?tipo=1&pag=login'",3000);</script><table style=td><tr><td style="background-color: blue"><p class=title>Erro:</td></tr><tr><td>O usuário ou senha especificado é inválido<br><center><a href="<?php echo $PATH_INFO;?>?tipo=1&pag=login">Voltar</a></center></td></tr></table> <?php }} if($LVuser==true || $LVsenha==true){conectar();} if(!$LVuser || !$LVsenha){ ?> <form name=login method=post action="<? echo $PATH_INFO;?>?tipo=1&pag=login"> <table class=td> <tr> <td style="background-color:blue"><p class=title>Login</td> </tr> <tr> <td> <table> <tr> <td> Nome de usuário: </td> <td> <input type=text size=12 maxlength=12 name=Luser> </td> </tr> <tr> <td> Senha: </td> <td> <input type=password size=12 maxlength=12 name=Lsenha> </td> </tr> <tr> <td colspan=2 align=center> <input type=submit value=Entrar> </td> </tr> </table> </td> </tr> </table> </form> <?php } ?> |
| QUOTE |
| frames.php <html> <!-- Creation date: 22/1/2006 --> <head> <title>José Home Page</title> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="author" content="REVENGE Crew"> <meta name="generator" content="AceHTML 5 Pro"> <?php /*headgeral*/ echo '<style>.title{color:white; font-weight: bold; text-align:center} /**/ .td{background-color: #ECECEC;}</style>'; ?> </head> <?php /*bodygeral*/ echo '<body>'; ?> <table><tr><td><?php /*baner*/ echo "josehpbanner";?></td></tr> <tr><td><?php /*login*/ include("usermenu.php");?></td></tr> <?php $pag=$_GET['pag']; $tipo=$_GET['tipo']; $menu=$_GET['menu']; if(!$menu){$menu="menu.php";} else{} if($tipo & !pag){$tipo=false;} if(!$tipo){ echo "<tr><td><table><tr><td valign='top'>"; @include($menu); echo "</td><td>"; @include("principal.php"); echo "</td></tr></table></td></tr>"; } /* o login abre pelo if abaixo */ elseif($tipo==1){ echo "<tr><td><table><tr><td valign='top'>"; @include($menu); echo "</td><td>"; include($pag.".php"); echo "</td></tr></table></td></tr>";} /* o login abre pelo if acima */ else{ echo "<tr><td><table><tr><td valign='top'>"; @include($menu); echo "</td><td>Ocorreu um erro interno"; echo "</td></tr></table></td></tr>";} ?> <tr><td><?php /*bannerbotton*/ echo'bannervariado'?></td></tr> </table> </body> </html> |