
-Matt-
Members-
Posts
1,011 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by -Matt-
-
Ok well i see Zeon made an advanced users online mod i inproved it abit, <?php 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(); $cn=0; switch($_GET['online']) { case 'fiveminutes': fiveminutes(); break; case 'thirtyminutes': thirtyminutes(); break; case 'onehour': onehour(); break; case 'oneday': oneday(); break; default: index(); break; } function index() { print " <table width='90%' border='2' height='20'> <tr> <th><u>[url='usersonline.php?online=fiveminutes']Five Minutes[/url]</u></th> <th><u>[url='usersonline.php?online=thirtyminutes']Thirty Minutes[/url]</u></th> <th><u>[url='usersonline.php?online=onehour']One Hour[/url]</u></th> <th><u>[url='usersonline.php?online=oneday']One Day[/url]</u></th> </tr> </table>"; } function fiveminutes() { print " <table width='90%' border='2' height='20'> <tr> <th><u>[url='usersonline.php?online=fiveminutes']Five Minutes[/url]</u></th> <th><u>[url='usersonline.php?online=thirtyminutes']Thirty Minutes[/url]</u></th> <th><u>[url='usersonline.php?online=onehour']One Hour[/url]</u></th> <th><u>[url='usersonline.php?online=oneday']One Day[/url]</u></th> </tr> </table>"; echo "<table width='90%' border='2' height='20'> <tr> <th height='6'><u>Order</u></th> <th><u>Name</u></th> <th><u>ID</u></th> <th><u>Level</u></th> <th><u>Gender<u/></th> <th><u>Last Action<u/></th> <th><u>Money</u></th> <th><u>Attack</u></th> </tr>"; $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-5*60 ORDER BY laston DESC"); while($r=mysql_fetch_array($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"; } } if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } $cn++; echo "<tr> <th>$cn.</th> <th>[url='viewuser.php?u={$r[']{$r['username']}[/url]</th> <th>{$r['userid']}</th> <th>{$r['level']}</th> <th>{$r['gender']}</th> <th>$str</th> <th>{$r['money']}</th> <th><a href='attack.php?ID={$r['userid']}'>Attack "; if($r['gender'] == 'Female') { echo "her"; } else { echo "him"; } echo "</a></th> </tr>"; } echo "</table>";} function thirtyminutes() { print " <table width='90%' border='2' height='20'> <tr> <th><u>[url='usersonline.php?online=fiveminutes']Five Minutes[/url]</u></th> <th><u>[url='usersonline.php?online=thirtyminutes']Thirty Minutes[/url]</u></th> <th><u>[url='usersonline.php?online=onehour']One Hour[/url]</u></th> <th><u>[url='usersonline.php?online=oneday']One Day[/url]</u></th> </tr> </table>"; echo "<table width='90%' border='2' height='20'> <tr> <th height='6'><u>Order</u></th> <th><u>Name</u></th> <th><u>ID</u></th> <th><u>Level</u></th> <th><u>Gender<u/></th> <th><u>Last Action<u/></th> <th><u>Money</u></th> <th><u>Attack</u></th> </tr>"; $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-30*60 ORDER BY laston DESC"); while($r=mysql_fetch_array($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"; } } if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } $cn++; echo "<tr> <th>$cn.</th> <th>[url='viewuser.php?u={$r[']{$r['username']}[/url]</th> <th>{$r['userid']}</th> <th>{$r['level']}</th> <th>{$r['gender']}</th> <th>$str</th> <th>{$r['money']}</th> <th><a href='attack.php?ID={$r['userid']}'>Attack "; if($r['gender'] == 'Female') { echo "her"; } else { echo "him"; } echo "</a></th> </tr>"; } echo "</table>";} function onehour() { print " <table width='90%' border='2' height='20'> <tr> <th><u>[url='usersonline.php?online=fiveminutes']Five Minutes[/url]</u></th> <th><u>[url='usersonline.php?online=thirtyminutes']Thirty Minutes[/url]</u></th> <th><u>[url='usersonline.php?online=onehour']One Hour[/url]</u></th> <th><u>[url='usersonline.php?online=oneday']One Day[/url]</u></th> </tr> </table>"; echo "<table width='90%' border='2' height='20'> <tr> <th height='6'><u>Order</u></th> <th><u>Name</u></th> <th><u>ID</u></th> <th><u>Level</u></th> <th><u>Gender<u/></th> <th><u>Last Action<u/></th> <th><u>Money</u></th> <th><u>Attack</u></th> </tr>"; $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-60*60 ORDER BY laston DESC"); while($r=mysql_fetch_array($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"; } } if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } $cn++; echo "<tr> <th>$cn.</th> <th>[url='viewuser.php?u={$r[']{$r['username']}[/url]</th> <th>{$r['userid']}</th> <th>{$r['level']}</th> <th>{$r['gender']}</th> <th>$str</th> <th>{$r['money']}</th> <th><a href='attack.php?ID={$r['userid']}'>Attack "; if($r['gender'] == 'Female') { echo "her"; } else { echo "him"; } echo "</a></th> </tr>"; } echo "</table>";} function oneday() { print " <table width='90%' border='2' height='20'> <tr> <th><u>[url='usersonline.php?online=fiveminutes']Five Minutes[/url]</u></th> <th><u>[url='usersonline.php?online=thirtyminutes']Thirty Minutes[/url]</u></th> <th><u>[url='usersonline.php?online=onehour']One Hour[/url]</u></th> <th><u>[url='usersonline.php?online=oneday']One Day[/url]</u></th> </tr> </table>"; echo "<table width='90%' border='2' height='20'> <tr> <th height='6'><u>Order</u></th> <th><u>Name</u></th> <th><u>ID</u></th> <th><u>Level</u></th> <th><u>Gender<u/></th> <th><u>Last Action<u/></th> <th><u>Money</u></th> <th><u>Attack</u></th> </tr>"; $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-1440*60 ORDER BY laston DESC"); while($r=mysql_fetch_array($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"; } } if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } $cn++; echo "<tr> <th>$cn.</th> <th>[url='viewuser.php?u={$r[']{$r['username']}[/url]</th> <th>{$r['userid']}</th> <th>{$r['level']}</th> <th>{$r['gender']}</th> <th>$str</th> <th>{$r['money']}</th> <th><a href='attack.php?ID={$r['userid']}'>Attack "; if($r['gender'] == 'Female') { echo "her"; } else { echo "him"; } echo "</a></th> </tr>"; } echo "</table>";} $h->endpage(); ?> Thanks, It would all work just replace your usersonline.php with that example can be seen on www.deadlyblood.com/login2.php
-
Re: CE goes Porn Ok you can delete/lock this now.
-
CE goes Porn LOLz i'v seen some not very good looking image's on the add's :roll:
-
Re: Ignore List [$2.50] :oops: Were? :?
-
Re: Ignore List [$2.50] I never refused :s I said i was busy i just emailed you it.
-
Re: New GPhone Another way of google to make money :|.
-
Re: 3 Word Game lolly pop but
-
Re: Help with hosting! Yes and my job if i'm abit short.
-
Re: Counting (nr game) 1795
-
Re: Help with hosting! $140 a month you on a private or some really good dedicated server? I'm on dedicated. Managed.
-
Re: Help with hosting! Nothings cheap on the web, If you want quality you have to pay for it I'm paying $140/Month for mine.
-
Re: Help with hosting! They have been round years, There support is through email and they get back to asap they have alot of clients.
-
Re: Help with hosting! Well i'v been with afew hosting now and i suggest lunarpages Somw other's will agree its good PS: Maybe using my refer link: http://www.lunarpages.com/id/deadlybl
-
Ignore List Description: If you don't like someone or you don't wish to talk to them or they are just bugging you for some reason you can block them from sending you mails, so you will get no more spam etc, Price: $2.50 ( Which i think is a fare price ) Copie's Left: 6 Thankyou for your time. If you have any questions please feel free to PM me.
-
Re: NEAB engine FREE edition I setted it up it was all fine.
-
Re: [$25] Treasure Map! Wow thats wicked.
-
Re: Counting (nr game) 1792
-
Re: Free News Script In english none of oxi mods work. :wink:
-
Suggestions (post them here please for further updates)
-Matt- replied to topmorpg's topic in Other Game Engines
Re: Suggestions (post them here please for further updates) Maybe summit like, Clicks, Hour's Online, Cash Earned, Summit like that, Also there is quite alot to edit in ipn.php maybe instead of doing your link put {$domain} Or Summit. -
Re: Newsletter Mod of what using a free host? :roll:
-
Re: Newsletter Mod Then Get A Better Host :x
-
Re: Registration problem at 50 members 1. Messed Up Your SQL 2. Messed Up Your Register Page
-
Suggestions (post them here please for further updates)
-Matt- replied to topmorpg's topic in Other Game Engines
Re: Suggestions (post them here please for further updates) Maybe A Better Profile for users? -
Mafia Game Script v1.0 details (FREE UPDATES FOR LIFE)
-Matt- replied to topmorpg's topic in Other Game Engines
Re: Mafia Game Script v1.0 details (FREE UPDATES FOR LIFE) Just bought this and his support is great. Wicked Script also Thanks Mdshare for discount :p