Heres My First ever login it took me awhile to make so i hope u like, and since its my first i would like people to talk about how to improve it. Enjoy :)
<html>
<head>
<title>Game Name</title>
<style type="text/css">
body {
padding : 0;
margin : 0;
background : url(images/bg.jpg);
color : #6b6b6b;
font-family : Myriad Pro;
font-size : 15px;
}
.top {
background : url(images/topbg.jpg) repeat-x;
height : 198px;
text-align : center;
}
.input {
background : #313131;
border : none;
width : 140px;
height : 18px;
margin-top : 7px;
vertical-align : top;
color : #6b6b6b;
font-family : Myriad Pro;
font-size : 12px;
}
.submit {
background : #313131;
border : 1px solid #000000;
padding-bottom : 3px;
height : 18px;
color : #6b6b6b;
font-family : Myriad Pro;
font-size : 12px;
}
.loginform {
padding-top : 5px;
}
.welcome {
padding-top : 25px;
}
.signup {
display : inline-table;
width : 310px;
}
.text {
display : inline-table;
vertical-align : top;
text-align : center;
width : 360px;
}
a {
color : #484848;
text-decoration : none;
}
</style>
</head>
<body>
<center>
<div class="top">
<center>
<div style="width: 1000px; text-align: center;">[img=images/logo.png]</div>
</center>
</div>
<div style="width: 1000px;text-align: left;">
<center><form action='authenticate.php' method='post'>[img=images/username.png]
<input type="text" name="username" class="input" /><div style="padding-left: 45px; display: inline;"></div>[img=images/password.png]
<input type="password" name="password" class="input" /> <div style="display: inline-table; vertical-align: top; padding-top: 8px;padding-left: 10px;"><input type="submit" value="Login" class="submit" /></div></form></center></div>
</div>
</div>
<center>
<div style="width: 1000px; text-align: center;">[img=images/screen.png]</div>
</center>
<center>
[url="register.php"]<div style="width: 1000px; text-align: center;">[img=images/register.png]</div>[/url]
</center>
</center>
</body>
</html>
<center>
<?php
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'];
}
$numb = $db->num_rows($db->query("SELECT userid FROM users"));
echo'There are: '.number_format($numb). ' Member';
$online = $db->num_rows($db->query("SELECT userid FROm users WHERE laston>(unix_timestamp()-15*60)"));
echo' | There are '.number_format($online).' users online';
?>
</center>
Images:
http://img64.imageshack.us/i/68129318.jpg/
http://img64.imageshack.us/i/logoavn.png/
http://img685.imageshack.us/i/passwordc.png/
http://img693.imageshack.us/i/screenvj.png/
http://img51.imageshack.us/i/topbg.jpg/
http://img195.imageshack.us/i/usernamev.png/
Screenshot: