Jump to content
MakeWebGames

Jordan Palmer

Members
  • Posts

    1,660
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jordan Palmer

  1. GREATWay to do is how Alabama says.. However there are a few ways off doing this. Limiting user's one train per day will not do you any favours though. So think about it >,<
  2. Sweet & Simple and I'm guessing you're right xD :)
  3. Hmm.. LOL @ "security" Remember Google is your best friend :)
  4. I think it looks great. I doubt it'd be something I'd use, I do like it though Good Work Taxed :D
  5. No worries matey :D
  6. [mysql] INSERT INTO `papercontent` VALUES('Edit in staff panel.'); [/mysql] Run that and boom your back ;)
  7. Sorry guys. It's just with how busy I've been with other stuff not everything gets my full attention >,< Thank's too DJkanna & Immortal >,<
  8. What do you mean buddy?
  9. @Immortal; I'm sorry >,< I have alot off custom handlers on my game so i thought it was ok lol Everyone using this, update the code :)
  10. Code updated :)
  11. It work's perfectly fine >,< As for the '@' op alot like to use it, I did this for a friend who prefers '@' $h,$c; These will be needed for those who need them, simple as that $bbc - Dont be a noob, it's for Bbcode >,< [..] then stripslashes(htmlentities($gangdata['gangDESC']))." on the way out [..] Nope >,< one str_replace(); can sort that >,< Overall dont come on my topics telling me it's a fail when we all know it's not >,< I tested this, It worked without any issues
  12. That aint too hard >,< I'll take a look :) Thank you. I should hope it is flawless :P
  13. I really couldn't say without looking at the engine database, I don't really like GRPG, Never liked working with it :huh:
  14. I'm guessing you're an expert correct? PFFT!
  15. I could possibly make it sometime next month, Wouldn't be cheap though How much you looking for this too be made?
  16. Cheers. I couldn't think off any Visual updates but I suppose it's alright as it's secure and free =) :P
  17. agreed karma was/would be a better way to do this that way if you anoy a little kid he cant destroy your reputation by blacklisting you with karma he could only give you a -1 I'd still prefer this way 8|
  18. Yeah, that'd be pretty handy >,<
  19. No need too :D I'm creating a new version which will be for sale =]
  20. . Well I got bored and fancied coding something or atleast updating something for free & I saw Casey had failed to supply a free secured gangs.php so here it is xD About this mod: A few month's ago ''Casey'' tried to secure one and basically failed, He used a number off failed ways including sprinf(); where it wasn't wanted nor needed, So I got bored and posted a basic copy then I thought I think it's time to re update, So now there a few more updates However only the code, nothing visual :D What I've done; Prez's and VPS will get an event when someone applies Secured the file Removed all "`Select * FROM`" Changed the member list to show it formatted (- 1,400 days instead off 1400 days) Updated alot of the code Changed a few queries :D Thanks Too; Casey for trying to do this ImmortalThug for showing me something I'd missed DJkanna for the help in the thread [align=center]This is a tested modification and it's working without any issue's [align=left] <?php include(dirname(__file__) . '/globals.php'); $_GET['ID'] = isset($_GET['ID']); if(!$_GET['ID']) { echo 'Invalid use of file'; } else { $gq=$db->query("SELECT `gangPRESIDENT`,`gangVICEPRES`,`gangRESPECT`,`gangID`,`gangDESC` FROM `gangs` WHERE(`gangID` = ".abs(intval($_GET['ID'])).")"); $gangdata=$db->fetch_row($gq); $_GET['action'] = isset($_GET['action']) && ctype_alpha($_GET['action']) ? trim($_GET['action']) : ''; switch($_GET['action']) { case 'view':gang_view();break; case 'userlist':gang_userlist();break; case 'apply':gang_applyform();break; case 'applys':gang_applysubmit();break; } if (!in_array($_GET['action'], array('view','userlist','apply','applys'))) { echo "<h2>Illegal Operation</h2>"; $h->endpage(); exit; } } function gang_view() { global $db,$ir,$c,$h,$gangdata,$bbc; $pq=$db->query("SELECT `username`,`userid` FROM `users` WHERE (`userid` =".$gangdata['gangPRESIDENT']).")"); $ldr=$db->fetch_row($pq); $vpq=$db->query("SELECT `username`, `userid`FROM `users` WHERE (`userid` = ".$gangdata['gangVICEPRES'].")"); $coldr=$db->fetch_row($vpq); echo "<h3><span style='text-decoration: underline;'>".stripslashes(htmlentities($gangdata['gangNAME'], ENT_QUOTES))." Gang</span></h3><hr /> President: [url='viewuser.php?u=".$ldr[']".stripslashes(htmlentities($ldr['username'], ENT_QUOTES))."[/url] Vice-President: [url='viewuser.php?u=".$coldr[']".stripslashes(htmlentities($coldr['username'], ENT_QUOTES))."[/url] [b]Respect Level: [/b] ".number_format($gangdata['gangRESPECT'])." <hr />"; $cnt=$db->query("SELECT `username` FROM `users` WHERE `gang` = (".$gangdata['gangID'].")"); echo "[b]Members:[/b] ".$db->num_rows($cnt)." [b]Description:[/b]".stripslashes(htmlentities($gangdata['gangDESC'], ENT_QUOTES))." > [url='gangs.php?action=userlist&ID=".$gangdata[']User List[/url] > [url='gangs.php?action=apply&ID=".$gangdata[']Apply[/url]"; } function gang_userlist() { global $db,$ir,$c,$h,$gangdata; echo "<h3>Userlist for ".stripslashes(htmlentities($gangdata['gangNAME'], ENT_QUOTES))."</h3> <table><tr style='background: gray;'><th>User</th><th>Level</th><th>Days In Gang</th></tr>"; $q=$db->query("SELECT `userid`,`username`,`daysingang` FROM `users` WHERE ( `gang` = ".$gangdata['gangID']." ) ORDER BY `daysingang` DESC, `level` DESC"); while($r=$db->fetch_row($q)) { echo "<tr><td>".stripslashes(htmlentities($r['username'], ENT_QUOTES))." [".number_format($r['userid'])."] </td><td>".number_format($r['level'])."</td><td>".number_format($r['daysingang'])."</td></tr>"; } echo "</table> [url='gangs.php?action=view&ID=".$gangdata[']> Back[/url]"; } function gang_applyform() { global $ir,$c,$h,$gangdata; if(!$ir['gang']) { echo "<form action='gangs.php?action=applys&ID=".abs(intval($_GET['ID']))."' method='post'> Type the reason you should be in this faction. <textarea name='application' rows='7' cols='40'></textarea> <input type='submit' value='Apply' /></form>"; } else { echo "You cannot apply for a gang when you are already in one."; } } function gang_applysubmit() { global $db,$ir,$c,$h,$gangdata,$userid; if(!$ir['gang']) { $db->query("INSERT INTO applications VALUES('',$userid,".abs(intval($_GET['ID'])).",'".mysql_real_escape_string(strip_tags($_POST['application']))."')"); $db->query("INSERT INTO gangevents VALUES('',".abs(intval($_GET['ID'])).",unix_timestamp(),'[url='viewuser.php?u=$userid']".strip_tags(mysql_real_escape_string($ir['username']))."[/url] sent an application to join this gang.')"); print "You sent your application to the ".stripslashes(htmlentities($gangdata['gangNAME'], ENT_QUOTES))."gang."; event_add($gangdata['gangPRESIDENT'], '[url="viewuser.php?u='.$userid.'"]'.strip_tags(mysql_real_escape_string($ir['username'])).'[/url] just applied to your gang!'); event_add($gangdata['gangVICEPRES'], '[url="viewuser.php?u='.$userid.'"]'.strip_tags(mysql_real_escape_string($ir['username'])).'[/url] just applied to your gang!'); } else { print "You cannot apply for a gang when you are already in one."; } } $h->endpage(); ?>   Should be fully working guys. As I said, it's more off an code update rather then visual :) [/align][/align]
  21. IF you can code ;) Not everyone can xD
  22. I do have to admit, I do try and make time for friends, I love Joey! lol
  23. Feel free to add my MSN, I'll help :) :thumbup:
  24. I like it, I think they both did a good job, However I won't be playing the game :(
  25. Looks rather nice :)
×
×
  • Create New...