Tylor Posted September 27, 2008 Share Posted September 27, 2008 can anyone modify my site login page so the login button can have a picture instead of being really plain <?php /*--------------------- -- Login Page made by zero affect + images brought to you by heaven designs -- Re coded by kyle. ----------------------*/ session_start(); include("config.php"); global $_CONFIG; define("MONO_ON", 1); require("class/class_db_".$_CONFIG['driver'].".php"); $db = new database; $db->configure ( $_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent'] ); $db->connect(); $c = $db->connection_id; $set = array(); $settq = $db->query("SELECT * FROM settings"); while($r = $db->fetch_row($settq)) { $set[$r['conf_name']] = $r['conf_value']; } print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$set['game_name']}</title> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <head> <style type="text/css"> <!-- body { background-color: #282828; background-image:url(untitled.jpg); margin-top: 0px; margin-bottom: 0px; font-family:Palatino Linotype;font-size:12px;color: white; scrollbar-base-color: aqua; scrollbar-arrow-color: blue; scrollbar-DarkShadow-Color: pink; } a:visited,a:active,a:link { color: orange;text-decoration: italic; } a:hover { color: silver;text-decoration: overline underline;background: none; } table,tr,td { font-family:chamealeon std;font-size: 12px; } .button { font-family:Charlemagne Std; font-size:12; color:#282828; background-color: orange; } input,textarea,dropdown{ font-family:Palatino Linotype; font-size:12; color:#ffffff; background-color: black; } .submit{ font-family:Palatino Linotype; font-size:12; color:#282828; background-color: red; } img { border:none; } textarea { font-family:Palatino Linotype;font-size:12px;color: black; } .table2 { } .center { width:932px; // background-color:#282828; background-image:url(untitled.jpg); vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#000000; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#000000; height:22px; } td .h { background-image:url(untitled.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#222; } .table th { background-image:url(untitled.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#000000; } .linegrad2 { background-image:url(untitled.jpg); background-repeat:repeat-y; background-align: right; width:2px; } .navi { background-image:url(untitled.jpg); background-repeat:repeat-x; font-weight: bold; background-color:#000000; } --> </style> </head> <body onload="getme();"> <center> <table width="1005" border="0" cellpadding="0" cellspacing="0" class="table2" height=100%> <tr> <td class="center">[img=logo.png] EOF; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } $year=date('Y'); echo " <table width=100% valign=center align=center> <tr bgcolor=black> <th width=20%>[url='register.php']Register[/url]</th> </tr> </table> <table width='374' border='0' cellpadding='0' cellspacing='0' background='images/untitled.jpg' align='left'> <tr> <td height='76' colspan='3' valign='top'><table width='374' border='0' cellpadding='0' cellspacing='0' background='untitled.jpg'> <tr> <td width='184' height='10'></td> </tr><tr> <td height='33' align='center' valign='bottom'><font face='Arial, Helvetica, sans-serif'>[b]Login[/b]</font></td> </tr><tr> <td height='26'> </td> </tr></table></td></tr><tr> <td width='17' height='114'> </td> <td width='374' height='50' valign='top'><font face='Arial, Helvetica, sans-serif'><center>"; echo ' <form action="authenticate.php" method="post"> <table border="0" width="20%"> <tr> <td>Username:</td> <td><input type="text" name="username"></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="password"></td> </tr> <tr align="right"> <td colspan="2" align="right" valign="right"><input type="submit" value="Submit"></td> </tr> </table> </form>'; echo " </center></font> </td> <td width='19'> </td></tr><tr> <td height='62' colspan='3' valign='top'>[img=Gangster-life.png]</td> </tr></table>"; echo " <table width='374' border='0' cellpadding='0' cellspacing='0' background='images/lbc.png' align='right'> <tr> <td height='76' colspan='3' valign='top'><table width='374' border='0' cellpadding='0' cellspacing='0' background='images/untitled.jpg'> <tr> <td width='184' height='10'></td> </tr><tr> <td height='33' align='center' valign='bottom'><font face='Arial, Helvetica, sans-serif'>[b]About {$set['game_name']}[/b]</font></td> </tr><tr> <td height='26'> </td> </tr></table></td></tr><tr> <td width='17' height='114'> </td> <td width='374' height='50' valign='top'><font face='Arial, Helvetica, sans-serif'><center> <table border=0> <tr align=center> <td width=20%>{$set['game_description']}</td> </tr></table> </center></font> </td> <td width='19'> </td></tr><tr> <td height='62' colspan='3' valign='top'>[img=logo.png]</td> </tr></table> [b]Brought to you by Zero.Affect © Heaven-Designs™ {$year}-2009.[/b]"; print <<<OUT </td> </tr> </table> OUT; ?> Quote Link to comment Share on other sites More sharing options...
Dave Posted September 27, 2008 Share Posted September 27, 2008 Re: help me with my login page Instead of your button do <input type='image' src='images/button.png'> And that will make it a button if its inside the form :D Quote Link to comment Share on other sites More sharing options...
Tylor Posted September 28, 2008 Author Share Posted September 28, 2008 Re: help me with my login page thanks for that iamwicked but ive changed to a better login page Quote Link to comment Share on other sites More sharing options...
Tylor Posted September 28, 2008 Author Share Posted September 28, 2008 Re: help me with my login page but i will be sure to remember that for future reference Quote Link to comment Share on other sites More sharing options...
Dave Posted September 28, 2008 Share Posted September 28, 2008 Re: help me with my login page Yerp its handy i discovered it one day when i was playing around and decided to see if it works, and it did so i was very pleased with myself. Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted September 29, 2008 Share Posted September 29, 2008 Re: help me with my login page Easy and simple way to find out is use this: <input type="submit" value="" style="background-image: url(images/login.jpg);"> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.