<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<? echo $set['game_name']; ?>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="generator" content="">
<meta http-equiv="Page-Exit" content="revealTrans(Duration=0,Transition=23)">
<meta http-equiv="Page-Enter" content="revealTrans(Duration=2,Transition=23)">
<style type="text/css">
div#container
{
position:relative;
width: 710px;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
text-align:left;
}
body {text-align:center;margin:0}
</style>
</head>
<body background="images/Untitled-1_r1_c1.jpg" bgColor="#444444" Link="#FF0000" VLink="#FF0000" ALink="#FF0000" style="background-repeat:repeat-x;background-position:top center;">
<div id="container">
<div id="image1" style="position:absolute; overflow:hidden; left:0px; top:0px; width:692px; height:600px; z-index:0">[img=images/Untitled-1_r1_c2.jpg]</div>
<div id="html1" style="position:absolute; overflow:hidden; left:0px; top:0px; width:710px; height:599px; z-index:1">
<?php
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");
$q=$db->query("SELECT userid FROM users");
$membs=$db->num_rows($q);
while($r=$db->fetch_row($settq))
{
$set[$r['conf_name']]=$r['conf_value'];
}
$q=$db->query("SELECT userid FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC");
$r1=$db->num_rows($q);
print <<<EOF
<html>
<head>
<? echo $set['game_name']; ?>
<style type="text/css">textarea,input,select {
font-family: tahoma;
color: #ffffff;
font-weight: bold;
color: #ffffff;
background-image:url(images/Mafia.jpg);
border-width: 1;
border-color: #ffffff;
border-style: Solid;
font-size: 13px;
}
body {
background-color: #444444;
}
a:visited,a:active,a:link { color: red;text-decoration: underline; }
a:hover {color: red;text-decoration: underline; }
table,tr,td { font-family:Tahoma, Tahoma, Tahoma, Tahoma;font-size: 10pt; }
img { border:none; }
textarea { font-family:Tahoma;font-size:10pt;color: red;
}
table {
font-family: Tahoma;font-size:10pt;color: red;
background-repeat: no-repeat;
}
h5.desc_abs
{
position:absolute;
left:5px;
top:325px
}
h5.copyright_abs
{
position:absolute;
left:4px;
top:470px
}
span.highlight
{
background-color:444444
}
.ur{background: url(loginpass.png); width: 187px; height: 25px; border: none; padding-right: 50px; padding-left: 3px; padding-top: 5px;}
.loginbutton{background: url(loginbutton.png); width: 70px; height: 25; padding-left: 2px; cursor: pointer; border: none;}
img{border: none;}
</style></head>
<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>
<script language="JavaScript">
var usr;
var pw;
var sv;
function getme()
{
usr = document.login.username;
pw = document.login.password;
sv = document.login.save;
if (GetCookie('player') != null)
{
usr.value = GetCookie('username')
pw.value = GetCookie('password')
if (GetCookie('save') == 'true')
{
sv[0].checked = true;
}
}
}
function saveme()
{
if (usr.value.length != 0 && pw.value.length != 0)
{
if (sv[0].checked)
{
expdate = new Date();
expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000));
SetCookie('username', usr.value, expdate);
SetCookie('password', pw.value, expdate);
SetCookie('save', 'true', expdate);
}
if (sv[1].checked)
{
DeleteCookie('username');
DeleteCookie('password');
DeleteCookie('save');
}
}
else
{
alert('You must enter a username/password.');
return false;
}
}
</script>
</head>
EOF;
$ip = ($_SERVER['HTTP_X_FORWARDED_FOR'])
? $_SERVER['HTTP_X_FORWARDED_FOR']
: $_SERVER['REMOTE_ADDR'];
{
die("[b]<font color=red size=+1>Your IP has been banned!/font>[/b]</body></html>");
}
print "
<left>
<table width= height= border=0 cellpadding=0 cellspacing=0 align=center>
<tr><td background='' width='100'></td></tr>
</table>
<table width= height= border=0 cellpadding=0 cellspacing=0 align=left>
<tr background='' width='10' height='10' valign='top'><td width='1'></td><td width='150'><center>
[b]</a>
[url='#'][/url]
[url='#'][/url]
[url='#'][/url]
[url='']High Rank[/url][/b]
";
$topselect=$db->query("SELECT * FROM users ORDER BY level ASC Limit 5");
while($topusers=$db->fetch_row($topselect))
{
print $topusers['username']." ".$topusers['']."
";
}
print "</td><td width='4'></td><td>
<table width= height= border=0 cellpadding=0 cellspacing=0 align=left>
<tr background='' width='10' height='10' valign='top'><td width='1'></td><td width='150'><center>
[b]</a>
[url='#'][/url]
[url='#'][/url]
[url='#'][/url]
[url='']best figters[/url][/b]
";
$topselect=$db->query("SELECT * FROM users ORDER BY attacking ASC Limit 5");
while($topusers=$db->fetch_row($topselect))
{
print $topusers['username']." ".$topusers['']."
";
}
print "</td><td width='5'></td><td>
<table width= height= border=0 cellpadding=0 cellspacing=0 align=left>
<tr background='' width='20' height='10' valign='top'><td width='1'></td><td width='150'><center>
[b]</a>
[url='#'][/url]
[url='#'][/url]
[url='#'][/url]
[url='']Most Banked[/url][/b]
";
$topselect=$db->query("SELECT * FROM users ORDER BY bankmoney ASC Limit 5");
while($topusers=$db->fetch_row($lastselect))
{
print $topusers['username']." ".$topusers['']."
";
}
print "</td><td width='40'></td><td>
<table width= height= border=0 cellpadding=0 cellspacing=0 align=left>
<tr background='' width='20' height='10' valign='top'><td width='1'></td><td width='150'><center>
[b]</a>
[url='#'][/url]
[url='#'][/url]
[url='#'][/url]
[url='']Top Gangs[/url][/b]
";
$topselect=$db->query("SELECT * FROM gangs ORDER BY gangNAME ASC Limit 5");
while($topusers=$db->fetch_row($lastselect))
{
print $topusers['gangNAME']." ".$topusers['']."
";
}
print "</td><td width='40'></td><td>
<form action=authenticate.php method=post name=login onsubmit=\"return saveme();\"><left>
";
print <<<OUT
</body></html>
OUT;
?></div>
<div id="html2" style="position:absolute; overflow:hidden; left:91px; top:192px; width:113px; height:26px; z-index:2">
<input class=ur type=password name=password>
</div>
<div id="html3" style="position:absolute; overflow:hidden; left:90px; top:161px; width:115px; height:24px; z-index:3">
<input class=ur type=text name=username>
</div>
<div id="html4" style="position:absolute; overflow:hidden; left:81px; top:223px; width:137px; height:29px; z-index:4">
<input type=submit value=LOGIN class=loginbutton ></form></td></tr></table>
</div>
</div>
</body>
</html>