
athena26
Members-
Posts
195 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by athena26
-
When I press enter competition the page refreshes...
-
How do I add a background image were the color is , example I want to remove the #333333 and replace it with a image . <?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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <style type="text/css"> <!-- body { background-image: url('main.png'); margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: white; scrollbar-base-color: #333333; scrollbar-arrow-color: #333333; scrollbar-DarkShadow-Color: #333333; } 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(); 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(); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url(); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url(); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url(); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-image: url(''); vertical-align:top; text-align:center; } .table { background-image: url(''); } .table3 { background-image: url(''); } .table td { background-image: url(''); height:22px; } .table3 td { background-image: url(''); } td .alt { background-image: url(''); height:22px; } td .h { background-image:url(main.png); background-repeat:repeat-x; font-weight: bold; background-image: url(''); } .table th { background-image:url(main.png); background-repeat:repeat-x; font-weight: bold; body { background-image: url('main.png'); } --> </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; $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 = ($ir['will'] > $ir['maxwill']) ? $ir['maxwill'] : ($ir['will']/$ir['maxwill']*100); $experc = ($ir['exp'] > $ir['exp_needed']) ? $ir['exp_needed'] : ($ir['exp']/$ir['exp_needed']*100); $brperc = ($ir['brave'] > $ir['maxbrave']) ? $ir['maxbrave'] : ($ir['brave']/$ir['maxbrave']*100); $hpperc = ($ir['hp'] > $ir['maxhp']) ? $ir['maxhp'] : ($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 src='donator.gif' alt='Donator: {$ir['donatordays']} Days Left' title='Donator: {$ir['donatordays']} Days Left' />"; } if($ir['smoking'] > 100) { $smoking = "<font color=red>Addictive</font>"; } else { $smoking = "<font color=blue>Not Addictive</font>"; } if($ir['smoking'] == 0) { $smoke = "Dont Smoke "; } else { $smoke = "$smoking"; } $gn=""; global $staffpage; $bgcolor = '333333'; print <<<OUT <img src="Good pic.bmp" alt="Gangster Paradise" /><br /> <!-- Begin Main Content --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> <!-- Side Panel --> <b>Name:</b> $gn{$u} [{$ir['userid']}] $d<br /> <b>Money:</b> {$fm}<br /> <b>Level:</b> {$ir['level']}<br /> <b>Crystals:</b> {$ir['crystals']}<br /> OUT; if($ir['smoking'] > 0) { print " <b>Smoking Level:</b> {$ir['smoking']}<br /> <b>Smoker:</b> $smoke<br />"; } print <<<OUT [<a href='logout.php'>Emergency Logout</a>] <hr /> <b>Energy:</b> {$enperc}%<br /> <img src=greenbar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10><br /> <b>Will:</b> {$wiperc}%<br /> <img src=bluebar.png width=$wiperc height=10><img src=redbar.png width=$wiopp height=10><br /> <b>Brave:</b> {$ir['brave']}/{$ir['maxbrave']}<br /> <img src=yellowbar.png width=$brperc height=10><img src=redbar.png width=$bropp height=10><br /> <b>Health:</b> {$hpperc}%<br /> <img src=greenbar.png width=$hpperc height=10><img src=redbar.png width=$hpopp height=10><br /><hr /> <!-- Links --> 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).<br /> Reason: {$r['fed_reason']}</font></b></body></html>
-
Since I upgraded my servers my Crons has now stopped working again I'm having major issues as a new coder it's difficult but still trying to understand it
-
Hmm I wasn't sure why it went to - days as the code seems fine to me I also have another issue the level issue my experience gets stuck at level 165 and experience is a 999999999 it won't allow me to level to level 166
-
ok here the education.php that i have i got it from here in the forums ,,, <?php /* This is free work of Razor42! Do not try to re-sell this! */ include "globals.php"; print "<h3>Schooling</h3>"; if($ir['course'] > 0) { $cd=$db->query("SELECT * FROM courses WHERE crID={$ir['course']}"); $coud=$db->fetch_row($cd); print "You are currently doing the {$coud['crNAME']}, you have {$ir['cdays']} days remaining."; } else { if($_GET['cstart']) { $_GET['cstart'] = abs((int) $_GET['cstart']); //Verify. $cd=$db->query("SELECT * FROM courses WHERE crID={$_GET['cstart']}"); if($db->num_rows($cd) == 0) { print "You are trying to start a non-existant course!"; } else { $coud=$db->fetch_row($cd); $cdo=$db->query("SELECT * FROM coursesdone WHERE userid=$userid AND courseid={$_GET['cstart']}"); if($ir['money'] < $coud['crCOST']) { print "You don't have enough money to start this course."; $h->endpage(); exit; } if($ir['level'] < $coud['crLEVEL']) { print "Your don't have the required level to start this course."; $h->endpage(); exit; } if($db->num_rows($cdo) > 0) { print "You have already done this course."; $h->endpage(); exit; } $db->query("UPDATE users SET course={$_GET['cstart']},cdays={$coud['crDAYS']},money=money-{$coud['crCOST']} WHERE userid=$userid"); print "You have started the {$coud['crNAME']}, it will take {$coud['crDAYS']} days to complete."; } } else { //list courses print "Here is a list of available courses."; $q=$db->query("SELECT * FROM courses"); print "<br /><table width=75% cellspacing=1 class='table'><tr style='background:gray;'><th>Course</th><th>Description</th><th>Cost</th><th>Level</th><th>Take</th></tr>"; while($r=$db->fetch_row($q)) { $cdo=$db->query("SELECT * FROM coursesdone WHERE userid=$userid AND courseid={$r['crID']}"); if($db->num_rows($cdo)) { $do="<i>Done</i>"; } else { $do="<a href='education.php?cstart={$r['crID']}'>Take</a>"; } print "<tr><td>{$r['crNAME']}</td><td>{$r['crDESC']}</td><td>\${$r['crCOST']}</td><td>{$r['crLEVEL']}</td><td>$do</td></tr>"; } print "</table>"; } } $h->endpage(); ?> and the cron that is currently running on this education file is $db->query("UPDATE users SET cdays=cdays-1 WHERE course > 0"); $q=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0"); while($r=$db->fetch_row($q)) { $cd=$db->query("SELECT * FROM courses WHERE crID={$r['course']}"); $coud=$db->fetch_row($cd); $userid=$r['userid']; $db->query("INSERT INTO coursesdone VALUES({$r['userid']},{$r['course']})"); $upd=""; $ev=""; if($coud['crSTR'] > 0) { $upd.=",us.strength=us.strength+{$coud['crSTR']}"; $ev.=", {$coud['crSTR']} strength"; } if($coud['crGUARD'] > 0) { $upd.=",us.guard=us.guard+{$coud['crGUARD']}"; $ev.=", {$coud['crGUARD']} guard"; } if($coud['crLABOUR'] > 0) { $upd.=",us.labour=us.labour+{$coud['crLABOUR']}"; $ev.=", {$coud['crLABOUR']} labour"; } if($coud['crAGIL'] > 0) { $upd.=",us.agility=us.agility+{$coud['crAGIL']}"; $ev.=", {$coud['crAGIL']} agility"; } if($coud['crIQ'] > 0) { $upd.=",us.IQ=us.IQ+{$coud['crIQ']}"; $ev.=", {$coud['crIQ']} IQ"; } $ev=substr($ev,1); if ($upd) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET us.userid=us.userid $upd WHERE u.userid=$userid"); } $db->query("INSERT INTO events VALUES('',$userid,unix_timestamp(),0,'Congratulations, you completed the {$coud['crNAME']} and gained $ev!')"); } $db->query("UPDATE users SET course=0 WHERE cdays=0"); $db->query("TRUNCATE TABLE votes;"); ?>
-
How do I fix this . What can I do to fix this should I post my education.php in here and the cron I'm using ?
-
Having a issue with education this shows ...You are currently doing the Foundation Mathematics, you have -21 days remaining -21 days.
-
okay how do i fix the exp bit on header every time i gain experience the stat bar goes off the roof and i have to refresh until the experience stops rising and how to make money higher than 2,1223434324 ,,
-
still doesnt work .
-
will try it now hope it works im afriad it still doesnt work i dont know what to do anymore http://gangsterparadise.rf.gd/htdocs/cron_minute.php?code= this is what i put and it doesnt work
-
So basically remove the under score PHP (space) code so no under score ? cron_hour.phpcode= my code like this ... no it still aint working .. i dont know why it doesnt work i know removed the underscore and it still doesnt work what do i do .. well jail time was at 5 mins it now went to 4 minutes and its stuck in 4 minutes
-
Yes it in htdocs and now the day old keeps going up I don't know how to fix this I'm giving up.
-
Thanks will try this now I did go to cron jobs and added all 4 Crons but it still doesn't work 😞 I'm new to this so I hardly understand on how to do this I also will be moving to a upgraded plan. In a week time with ifastnet however I'm clueless on how to do this . http://gangsterparadise.rf.gd/htdocs/cron_fivemins.php this is the code I add to cron jobs . And correct I'm using MC codes v2 now ive done this http://gangsterparadise.rf.gd/htdocs/cron_day.php_code=2c72366341cc8e9c36fc7565fe77b1b4 and it still doesnt work ;( can someone please help me ive tried every method and i cant do it
-
I'm new to this and this is my website gangsterparadise.rf.gd and the Crons doesn't work 😞
-
Can someone help me set my cron jobs please