Jump to content
MakeWebGames

Right Menu


Renkia

Recommended Posts

Hey

Im still doing my game up and most of the stuff is on the right and looks kinda of stupid. So i was wodering could any help me with a right menu? If you want payment thats fine, but cart do through paypal. If you dont want payment then i thank you very much. ;)

 

<?php

class headers {
function startheaders() {
global $ir, $set;
echo <<<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">
<body background=http://i46.tinypic.com/2d11b4h.png>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>{$set['game_name']}</title>
<style type="text/css">
<!--
body {
background-color: #1b1b1b;
margin-top: 0px;
margin-bottom: 0px;
font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: white;
  scrollbar-base-color: #005B70; 
  scrollbar-arrow-color: #F3960B;
  scrollbar-DarkShadow-Color: #000000;
}
a:visited,a:active,a:hover,a:link { color: white;text-decoration: none; }
table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; }
img { border:none; }
textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: black; }
.table2 {
}
.lgrad {
background-image:url([url]http://i47.tinypic.com/4g1d1k.jpg[/url]);
background-repeat:repeat-y;
width:19px;
}
.linegrad {
background-image:url(linegrad.PNG);
background-repeat:repeat-y;
background-align: center;
width:2px;
}
.rgrad {
background-image:url([url]http://i50.tinypic.com/1198msi.jpg[/url]);
background-repeat:repeat-y;
width:19px;
}
.dgrad {
background-image:url([url]http://i45.tinypic.com/2132ib9.jpg[/url]);
background-repeat:repeat-x;
height:38px;
}
.dgradl {
background-image:url([url]http://i45.tinypic.com/2132ib9.jpg[/url]);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.dgradr {
background-image:url([url]http://i45.tinypic.com/2132ib9.jpg[/url]);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.center {
width:932px;
background-color:#1b1b1b;
vertical-align:top;
text-align:center;
}
.table {
background-color:#000000;
}
.table3 {
background-color:#000000;
}
.table td {
background-color:#222222;
height:22px;
}
.table3 td {
background-color:#222222;
}
td .alt {
background-color:#222222;
height:22px;
}
td .h {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #D6D6D6;
}
.table th {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #D6D6D6;
}
-->
</style></head>
<body>
<center>
<table width="970" border="0" cellpadding="0" cellspacing="0" class="table2">
<tr>
<td class="lgrad"></td>
<td class="center">
EOF;
}
function userdata($ir,$lv,$fm,$cm,$dosessh=1)
{
global $db,$c,$userid, $set;
$_GET['ID'] = abs(@intval($_GET['ID']));
$_GET['reply'] = abs(@intval($_GET['reply']));
$IP = $_SERVER['REMOTE_ADDR'];
$IP=addslashes($IP);
$IP=mysql_real_escape_string($IP);
$IP=strip_tags($IP);
$db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid");
if(!$ir['email'])
{
global $domain;
die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID.");
}
if($dosessh && ($_SESSION['attacking'] || $ir['attacking']))
{
print "You lost all your EXP for running from the fight.";
$db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid");
$_SESSION['attacking']=0;
}
$enperc=(int) ($ir['energy']/$ir['maxenergy']*100);
$wiperc=(int) ($ir['will']/$ir['maxwill']*100);
$experc=(int) ( $ir['exp']/$ir['exp_needed']*100);
$brperc=(int) ($ir['brave']/$ir['maxbrave']*100);
$hpperc=(int) ($ir['hp']/$ir['maxhp']*100);
$enopp=100-$enperc;
$wiopp=100-$wiperc;
$exopp=100-$experc;
$bropp=100-$brperc;
$hpopp=100-$hpperc;
$d="";
$u=$ir['username'];
if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; }

$gn=""; 
global $staffpage;

$bgcolor = '1b1b1b';

print <<<OUT
[img=http://img246.imageshack.us/img246/9031/headerpd.gif]


<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" bgcolor="#$bgcolor" valign="top">



[b]Name:[/b] $gn{$u} [{$ir['userid']}] $d

[b]Money:[/b] {$fm}

[b]Level:[/b] {$ir['level']}

[b]Crystals:[/b] {$ir['crystals']}

<font color=gold>[</font>[url='logout.php']Emergency Logout[/url]<font color=gold>]</font>
<hr />
[b]Energy:[/b] {$enperc}%

<img src=http://i45.tinypic.com/iwt5ec.gif width=$enperc height=10><img src=http://i50.tinypic.com/2jbw7ph.gif  width=$enopp height=10>

[b]Will:[/b] {$wiperc}%

<img src=http://i45.tinypic.com/iwt5ec.gif width=$wiperc height=10><img src=http://i50.tinypic.com/2jbw7ph.gif  width=$wiopp height=10>

[b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']}

<img src=http://i45.tinypic.com/iwt5ec.gif width=$brperc height=10><img src=http://i50.tinypic.com/2jbw7ph.gif  width=$bropp height=10>

[b]EXP:[/b] {$experc}%

<img src=http://i45.tinypic.com/iwt5ec.gif width=$experc height=10><img src=http://i50.tinypic.com/2jbw7ph.gif  width=$exopp height=10>

[b]Health:[/b] {$hpperc}%

<img src=http://i45.tinypic.com/iwt5ec.gif width=$hpperc height=10><img src=http://i50.tinypic.com/2jbw7ph.gif  width=$hpopp height=10>
<hr />

OUT;
if($ir['fedjail'])
{
$q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid");
$r=$db->fetch_row($q);
die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).

Reason: {$r['fed_reason']}</font>[/b]</body></html>");
}
if(file_exists('ipbans/'.$IP))
{
die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>");
}
}
function menuarea()
{
include "mainmenu.php";
global $ir,$c;
$bgcolor = '1b1b1b';
print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"></td><td width="80%"  bgcolor="#'.$bgcolor.'" valign="top">
<center>';
if($ir['hospital'])
{
 print "[b]<hr><font size=1 color=blue>NB:[/b]You are currently in hospital for {$ir['hospital']} minutes.<hr 

/>
";
}
if($ir['jail'])
{
 print "[b]<font size=1 color=green><hr>NB:[/b] You are currently in jail for {$ir['jail']} minutes.<hr 

/></font>
";
}
print "<hr>[url='donator.php'][b]<font size=1 >Donate to {$set['game_name']} now for game benefits!</font>[/b][/url]<hr />
";
}
function smenuarea()
{
include "smenu.php";
global $ir,$c;
$bgcolor = '1b1b1b';
print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"></td><td width="80%"  bgcolor="#'.$bgcolor.'" valign="top"><center>';
}
function endpage()
{
global $db;
print <<<OUT
</center>
</td>
</tr>
</table></td>
<td class="rgrad"></td>
</tr>
<tr>
<td colspan="3">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class="dgradl"></td>
<td class="dgrad"></td>
<td class="dgradr"></td>
</tr>
</table>
</td>
</tr>
</table>
{$db->num_queries} queries</body>
</html>
OUT;
}
}
?>
Link to comment
Share on other sites

I am curious , Why are you hosting all the images that build your site from remote image hosting ?

 

<img src=http://i45.tinypic.com/iwt5ec.gif />

[img=http://img246.imageshack.us/img246/9031/headerpd.gif]

.dgradl {
background-image:url([url]http://i45.tinypic.com/2132ib9.jpg[/url]);

<body background=http://i46.tinypic.com/2d11b4h.png>

 

 

 

 

wrx

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.

×
×
  • Create New...