Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,701
  • Joined

  • Last visited

  • Days Won

    88

Everything posted by Uridium

  1. are you just adding this to an iframe ?
  2. send me your script matey so i can have a look
  3. peter look at how the cron files grab data to begin with then you will know what to add i dont mean the SELECT OR ADD OR INSERTS but how the page calls for the complete DBASE
  4. $25 id stick with the MCC version :)
  5. Hope this helps added a fwe extra features for you cos im nice like that lol Now has an Action category that shows whos in hosp whos in jail and if they can be attacked..   <?php require "globals.php"; if ($_GET['time']) { $time=$_GET['time']; } else { $time=60; } $cn=0; $lk=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-1440*60"); $aa=mysql_num_rows($lk); $ll=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-60*60"); $ab=mysql_num_rows($ll); $lm=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-45*60"); $ac=mysql_num_rows($lm); $ln=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-30*60"); $ad=mysql_num_rows($ln); $lo=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60"); $ae=mysql_num_rows($lo); $he=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-1*60"); $hu=mysql_num_rows($he); $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-{$time}*60 ORDER BY laston DESC"); ?> <table border="0" class=table width="100%" cellpading="0" cellspacing="0"> <tr> <td class=table> <h3>Time Selecter</h3> <a href='usersonline.php?time=1'>(1 Min)</a><br /> <a href='usersonline.php?time=15'>(15 Mins)</a><br /> <a href='usersonline.php?time=30'>(30 Mins)</a><br /> <a href='usersonline.php?time=45'>(45 Mins)</a><br /> <a href='usersonline.php?time=60'">(60 Mins)</a><br /> <a href='usersonline.php?time=1440'>(24 Hours)</a><br /> </td> <td class=table> <h3>Statistics</h3> Users online in the last minute: <?php print"{$hu}"; ?><br /> Users online in the last 15 minutes: <?php print"{$ae}"; ?><br /> Users online in the last 30 minutes: <?php print"{$ad}"; ?><br /> Users online in the last 45 minutes: <?php print"{$ac}"; ?><br /> Users online in the last hour: <?php print"{$ab}"; ?><br /> Users online in the last 24 hours: <?php print"{$aa}"; ?><br /> </td> <tr> </table> <table border="0" class=table width="100%" cellpading="0" cellspacing="0"> <tr> <td class=table> <h3></h3> </td> <td class=table> <h3>Gang Tag</h3> </td> <td class=table> <h3><center>User</center></h3> </td> <td class=table> <h3>Last Action</h3> </td> <td class=table> <h3>Time Online</h3> </td> <td class=table> <h3>Action</h3> </td> </tr> <?php while($r=mysql_fetch_assoc($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $cn++; $name=$r['username']; $gangtag=$r['yourgangPREF']; if($r['donatordays'] > 0) { $donator="VIP:<img src='donator.gif' alt='Donator: {$r['donatordays']} Days Left' title='Donator: {$r['donatordays']} Days Left' />"; } if($r['donatordays'] == 0) { $donator=""; } if($r['user_level']== 2) { $staff="<img src='images/admin.gif' alt='Game Staff' />"; } if($r['user_level']== 1) { $staff=""; } if($r['userid']==1) { $owner=" <img src='images/owner.gif' alt='Game Owner' />"; } $r['username']="<b>$staff $owner $donator<a href='viewuser.php?u={$r['userid']}'><font color='{$r['colour']}'> $name</b></font></a>"; print "<tr> <td class=table> $cn. </td> <td class=table>"; if ($r['gang'] > 0) { print" <a href='gangs.php?action=view&ID={$r['gang']}'>View Gang</a> </td>"; } else { print" <small>No Gang</small> </td>"; } print" <td class=table> {$r['username']} </td> <td class=table> ($la $unit) </td> <td class=table>"; $lb=time()-$r['last_login']; $units="secs"; if($lb >= 60) { $lb=(int) ($lb/60); $units="mins"; } if($lb >= 60) { $lb=(int) ($lb/60); $units="hours"; if($lb >= 24) { $lb=(int) ($lb/24); $units="days"; } } if($r['laston'] <= time()-60*60) { $lb="offline"; $unit=""; } print "{$lb} {$units}</td>"; if($r['hospital'] > 0) { print"<td><small>Hospital</small></td>"; } if($r['jail'] > 0) { print"<td><small>Jail</small></td>"; } if($r['hospital'] == 0 AND $r['jail'] == 0) { print"<td><small>[<a href='attack.php?uid={$r['userid']}'>Attack</a>]</td>"; } print"</tr>"; } ?> </td> </tr> </table> <?php $h->endpage(); ?>
  6. ayone remember the zapp engine or what ever its name was that was exactly the same as this idea and it went tits up
  7. all i can see with this idea is arguments arguments and more arguments :)
  8. send your installer.php to me via inbox
  9. Snake for line 14 do the same as above just add pregmatch and a / before the first ^ and one before $" so its $/" if (!preg_match("/^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$/", $local_array[$i])) {
  10. create 2 new entries in the users call it attsave and attrem ALTER TABLE users ADD attsave INT(11) NOT NULL default 0; ALTER TABLE users ADD attrem INT(11) NOT NULL default 0; Now in your attack.php add $db->query("UPDATE users SET attsave=0,attrem=0 WHERE userid=$userid"); to place where if a user cant fight for example they are in hosp or jail or low on energy or no weapon equipped or anywhere where the user needs to leave the page for example print "WTF you doing, bro?"; $db->query("UPDATE users SET attsave=0, attrem=0 WHERE userid=$userid"); // new entry print "<a href='index.php'> Leave here</a>"; $h->endpage(); exit; } now open header.php and get rid of the part that says you ran from the fight.. and add if($ir['attsave'] == 1 ) { die("<h1>Attack Count ERROR!</h1></h2>Your in a fight you cant just leave ?<br/><br/><b><a href='attack.php?ID={$ir['attrem']}'><br />Rejoin Fight!</a></b>"); }
  11. on line 6 change to >> if (!preg_match("/^[^@]{1,64}@[^@]{1,255}$/", $email)) {
  12. Just change any mention of ereg to preg_match and you should be ok
  13. Easiest way would be to stop users from re-directing to any page thus putting them back in the fight....
  14. Nah didnt think you was shouting at me Sniko and I hope my post didnt come across the same..
  15. Just to note you dont always need to use a code at the end of a Cron url and even if users manage to find the cron file to run, It still wouldnt work for them as its being called for by a file with a function to actually run the cron
  16. adding code tags example [*php] at start of <?PHP and [*/php] will display the code neater remove the * from both
  17. damn if he can get $20 for this i think i'll sell my version :)
  18. Kryptonite this site does not hack or give refrerence to hacking of any games thread closed..
  19. We are not a hacking forum end of Subject Thread Closed...
  20. OFAH now what a programme that was one of the best sad day though when Learnard Pierece, Buster Merryfield, Kenneth Macdonald died the same year. You just dont get programmes like this anymore that show down to earth nitty gritty life styles. Some people didnt understand the nature of OFAH so disbanded it as a bad sit-com. With Ofah you either understood how they lived cos youd been there and done it or you just watched Dallas... Guess the laughter wont be the same now that John Sullivan has gone.
  21. well spotted and why didnt I think of that lol will now get round to updating the links...
  22. HITMAN i gave up trying to find them i found them one then they changed the forum again
  23. Nicely helped out chicka :) thank you
  24. but when attacked and they lose dont they usually end up in hosp for X amount of minutes ?
  25. You need to make the database remember who had which house before being married so when divorce occurs both move into their old properties
×
×
  • Create New...