Jump to content
MakeWebGames

help me with my login page


Tylor
 Share

Recommended Posts

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;
?>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...