Jump to content
MakeWebGames

Recommended Posts

Posted

Hey MWG, i need a easy job done here: i want this lite header to look abit like torn

 

 

<?php
/*
MCCodes Lite
header.php Rev 1.0.1
Copyright (C) 2006 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.
*/
class headers {
function startheaders() {
global $ir;
echo <<<EOF
<html>
<head>
<title>Your Game Name</title>
<style>
body { font-family:helvetica, arial, geneva, sans-serif;font-size:12;color: black;
  scrollbar-base-color: #005B70;
  scrollbar-arrow-color: #F3960B;
  scrollbar-DarkShadow-Color: #000000; }
a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; }
table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12; }
img { border:none; }
textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12;color: black; }
</style>
</head>

EOF;

}
function userdata($ir,$lv,$fm,$dosessh=1)
{
global $c,$userid;
$ip = ($_SERVER['HTTP_X_FORWARDED_FOR'])
   ?  $_SERVER['HTTP_X_FORWARDED_FOR']
   :  $_SERVER['REMOTE_ADDR'];
mysql_query("UPDATE users SET laston=unix_timestamp(),lastip='$ip' WHERE userid=$userid",$c);
if(!$ir['email'])
{
die ("<body>Your account may be broken. Please mail [email][email protected][/email] stating your username and player ID.");
}
if($dosessh && $_SESSION['attacking'])
{
print "You lost all your EXP for running from the fight.";
mysql_query("UPDATE users SET exp=0 WHERE userid=$userid",$c);
$_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'];
print "<body bgcolor='#C3C3C3'>
<table width=100%><tr><td>[img=logo.png]</td>
<td>[b]Name:[/b] {$u} [{$ir['userid']}]

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

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

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

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

<img src=bargreen.gif width=$enperc height=10><img src=barred.gif width=$enopp height=10>

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

<img src=bargreen.gif width=$wiperc height=10><img src=barred.gif width=$wiopp height=10>

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

<img src=bargreen.gif width=$brperc height=10><img src=barred.gif width=$bropp height=10>

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

<img src=bargreen.gif width=$experc height=10><img src=barred.gif width=$exopp height=10>

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

<img src=bargreen.gif width=$hpperc height=10><img src=barred.gif width=$hpopp height=10></td></tr></table></div>
";
print "<table width=100%><tr><td width=20% valign='top'>
";
if($ir['fedjail'])
{
$q=mysql_query("SELECT * FROM fedjail WHERE fed_userid=$userid",$c);
$r=mysql_fetch_array($q);
die("[b]<font color=red size=+1>You have been put in the Your 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, there is no way around this.</font>[/b]</body></html>");
}
}
function menuarea()
{
include "mainmenu.php";
global $ir,$c;
print "</td><td valign='top'>
";
}
function endpage()
{
print "</td></tr></table></body>
</html>";
}
}
?>

Posted

As I said in the same topic elsewhere.

If it's an easy job then why are you unable to do it yourself?

And finally how much are you willing to pay someone for their time to do this for you?

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...