View Single Post
  #1  
Old 21st August 2009, 20:00
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default redesigned login makes footer go crazy
so here is redesigned login window code (in main.php)
Code:
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){
?>
<style type="text/css">
body {
background : url(themes/pmbt/pics/matrix.gif);
color : #7e7b7b;
}
</style>
<div id="logino" >
<? 
OpenTable(_btumenu, '144');
        echo "<form method=\"POST\" action=\"user.php\"><input type=\"hidden\" name=\"op\" value=\"login\" />\n";    
        echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr><td align=\"center\"><p>"._btusername."</p></td>\n</tr><tr><td align=\"center\"><input type=\"text\" name=\"username\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btpassword."</p></td></tr><tr><td align=\"center\"><input type=\"password\" name=\"password\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btremember."</p></td></tr><tr><td align=\"center\"><input type=\"checkbox\" name=\"remember\" value=\"yes\"></td></tr>";
        if ($gfx_check) {
                $rnd_code = strtoupper(RandomAlpha(5));
                echo "<p align=\"center\">"._btsecuritycode."<br><img src=\"gfxgen.php?code=".base64_encode($rnd_code)."\" alt=\"Security Code\"><br>\n<input type=\"text\" name=\"gfxcode\" size=\"10\" maxlength=\"6\">";
                echo "<input type=\"hidden\" name=\"gfxcheck\" value=\"".md5($rnd_code)."\">\n\n";
        }
        echo "<tr><td><p align=\"center\"><input type=\"submit\" value=\""._btlogin."\"></p></td></tr></table></form>";
        echo imgdescr("singup.png","user.php?op=register",_btsignup);
        echo imgdescr("renew.png","user.php?op=lostpassword",_btlostpassword);
        CloseTable(); 
include'footer.php'; 
}
?></div> <?
but what happens if i add this code (but why code is ok i don't see mistakes in it )

btw this mod makes login look like (image 2)
Attached Thumbnails
Ekranattels.png   Ekranattels-1.png  
Reply With Quote