for anyone who wants it for V1
<?php
/*
MCCodes FREE
explore.php Rev 1.1.0cj
Copyright (C) 2005-2012 Dabomstew
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
session_start();
require "global_func.php";
if ($_SESSION['loggedin'] == 0)
{
header("Location: login.php");
exit;
}
$userid = $_SESSION['userid'];
require "header.php";
$h = new headers;
$h->startheaders();
include "mysql.php";
global $c;
$is =
mysql_query(
"SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",
$c) or die(mysql_error());
$ir = mysql_fetch_array($is);
check_level();
$fm = money_formatter($ir['money']);
$cm = money_formatter($ir['crystals'], '');
$lv = date('F j, Y, g:i a', $ir['laston']);
$h->userdata($ir, $lv, $fm, $cm);
$h->menuarea();
$tresder = (int) rand(100, 999);
print
"<b>You begin exploring, you see a bit that interests you.</b>
<table width=75% border=7>
<tr height='100'>
<td valign=top>
<u><font color=black><b><center>Statistics Depts</b></font></u></center>
<STYLE TYPE=text/css>
a:link { color: black; text-decoration: none }
a:active { color: white; text-decoration: none }
a:visited { color: black; text-decoration: none }
a:hover { color: red; text-decoration: underline }
</STYLE>
<a href='userlist.php'><center><span class=highlight>User List</span></a>
<a href='stafflist.php'>Staff</a><br />
<a href='halloffame.php'>Hall of Fame</a><br />
<a href='stats.php'>Game Stats</a><br />
<a href='usersonline.php'>Users Online</a><br /></CENTER>
</td>
<td valign=top>
<u><font color=black><center><b>Local Gangsters</b></center></font></u>
<a href='gangcentral.php'><center>Gangs</a><br />
<a href='gangwars.php'>Gang Wars</a><br />
<a href='fedjail.php'>Federal Jail</a></CENTER><br />
</td>
<td valign=top>
<u><font color=black><b><center>Legend Tower</b></center></font></u>
<a href='crystaltemple.php'><center>Crystal Temple</a><br />
<a href='slotsmachine.php?tresde=$tresder'>Slots Machine</a><br />
<a href='roulette.php?tresde=$tresder'>Roulette</a><br />
<a href='lucky.php'>Lucky Boxes</CENTER></BR></a>
</td>
</tr>
<tr height=100>
<td valign=top>
<u><font color=black><b><center>City Center</b></font></u></br>
<a href='shops.php'><CENTER>Shops</a><br />
<a href='itemmarket.php'>Item Market</a><br />
<a href='cmarket.php'>Crystal Market</a></br></a>
</td>
<td valign=top>
<u><font color=black><b><center>Area Coming Soon</b></center></font></u>
</td>
<td valign=top>
<u><font color=black><b><center>Donators Area</b></font></u></br>
<a href='friendslist.php'>Friends List</a><br />
<a href='blacklist.php'>Black List</a></center>
</td>
</tr>
<tr height=100>
<td valign=top>
<u><font color=black><b><center>Your Area</b></center></u>
<a href='inventory.php'><center>My Items</a></a><br />
<a href='mailbox.php'>Mailbox</a></a><br />
<a href='events.php'>Events</a></a><br />
<a href='job.php'>Your Job</a></a><br />
<a href='education.php'>Local School</a></a><br /></CENTER>
</td>
<td valign=top>
<u><font color=black><center><b>Public Society</b></u></br>
<a href='estate.php'>Estate Agent</a><br />
<a href='bank.php'>City Bank</a></br></CENTER>
</td>
<td valign=top>
<u><font color=black><b><center>Area Coming Soon</b></font></u></br>
</td>
</tr>
<tr height=100>
<td valign=top>
<u><font color=black><b><center>Area Coming Soon</b></font></u></br>
</td>
<td valign=top>
<u><font color=black><b><center>Area Coming Soon</b></center></font></u>
</td>
<td valign=top>
<u><font color=black><b><center>Area Coming Soon</b></center></font></u>
</td>
</tr>
</table>
<table cellspacing='3' border='2' cellpadding='4' class='table' width='53%'>
<tr>
<td colspan='2'><b><center>Referal Link: http://register.php?REF=($userid);
</td>
<td colspan='2'>Every signup from this link earns you two valuable crystals!</td>
</tr>
</table>
</td></tr></table><br /><br />This is your referal link: http://mafiacrimes.x10.mx/register.php?REF=$userid<br />
<br />
Every signup from this link earns you two valuable crystals!";
$h->endpage();