Jump to content
MakeWebGames

Magictallguy

Administrators
  • Posts

    2,124
  • Joined

  • Last visited

  • Days Won

    144

Everything posted by Magictallguy

  1. Ran a test and ... holy ****ake mushrooms! There are so many insecurities in that site, I could have a field day!
  2. I don't.. Kung Fu all the way!
  3. S'all good, happy to help :)
  4. Add $needs = ''; above the foreach() loop
  5. Confirmed. He's one hell of a designer :)
  6. That looks like my chat's code...
  7. The little code snippet you posted showed nothing for sanitation or validation. I was going, purely, from your post. All I did was validate, then sanitize, then validate again - which, yes, it does look like a lot of work, but try and exploit that code ;)
  8. Wish I'd thought of that when I wrote my success/warning/info/error functions haha
  9. False, you can use his method - though I'd recommend a rather large update first. if(!array_key_exists('xferu', $_POST)) { echo 'The form hasn\'t been submitted'; exit($h->endpage()); } $_POST['xferu'] = isset($_POST['xferu']) && ctype_digit($_POST['xferu']) ? $_POST['xferu'] : null; if(empty($_POST['xferu'])) { echo 'You didn\'t enter a valid player ID'; exit($h->endpage()); } $select = $db->query('SELECT `username` FROM `users` WHERE `userid` = '.$_POST['xferu']); if(!$db->num_rows($select)) { echo 'That player doesn\'t exist'; exit($h->endpage()); } // Continue here.. make sure to validate input for amount too!
  10. Question; does this effect already existing posts?
  11. A DMCA for use my mod that I've allowed? Get a grip of yourself, there's plenty of hard feelings Ibraheem..   Yes.   The way I've done it uses its own table with only 1 addition to the (grpg)users table. The reason I've not routed it through an access file is due to a security flaw that would arise by using encrypted URLs - you simply can't beat hard-coded methods when it comes to things like that.
  12. Whereas, I'm quite against it. Studies have shown the drawbacks (no pun intended) in prolonged use. I have previously smoked it, stopped and made a promise to my other half never to touch it again. With that being said, it depends on "which" weed you get your hands on. If you get the stuff that's been sprayed with THC, then it's not weed. If you get the stuff that's been laced with f*ck knows what, then it's not weed. <-- that's the stuff that has been used in the studies. If you get the stuff that has had no extra "modification" done to it, then the choice is yours. Smoke it, or don't. Just let it be known that I'm against it :P
  13. Don't worry about it, I can add you to the queue :)
  14. It is indeed. There's a slight delay, due to all the IRL stuff going on, but you will get what you ask for :)
  15. Send me a PM, I'll sort out your server for you. I have around 6 years of experience as a sysadmin and have fairly extensive knowledge of most *NIX systems. I don't claim to know everything, I'm not that good, but I can fix most problems :)
  16.   $selectUsers = $db->query("SELECT `userid` FROM `users` WHERE `gang` = ".$gangdata['gangID']); while($row = $db->fetch_row($selectUsers)) $db->query("DELETE FROM `inventory` WHERE `inv_borrowed` = 'yes' AND `inv_userid` = ".$row['userid']); $db->query("UPDATE `users` SET `equip_primary` = IF(`equip_primary_loaned` = 'yes', 0, `equip_primary`), `equip_secondary` = IF(`equip_secondary_loaned` = 'yes', 0, `equip_secondary`), `equip_armor` = IF(`equip_armor_loaned` = 'yes', 0, `equip_armor`) WHERE `gang` = ".$gangdata['gangID']);
  17. That requires an update to the attack.php (by default). Find the place where the DELETE FROM `gangs` [...] query is, then add below: $db->query("DELETE FROM `gang_armoury` WHERE `gang` = ".$gangdata['gangID']); Replace $gangdata['gangID'] with whatever the gang ID variable is
  18. I like that idea.   I'll need better instruction than that. You haven't given me enough information on what you want   And you will!
  19. Topic died.. REVIVAL! This is still available. I can also code something up for gRPG if needed. Just tell me what you want and which platform you want it for :)
  20. I saw my name O.o
  21. Naturally, I use MySQL Events. Unfortunately, not every host allows you to do this by default. Enabling the event scheduler can be quite the arse if your host doesn't like it. However, as I host my own sites, I don't need to worry about that and will continue to use MySQL Events until something better is written to replace them
  22. Without first understanding what those variables are used for, simply changing += to = would not be a good idea. What you should've done *above* those three lines was add this: $stat1 = 0; $stat2 = 0; $stat3 = 0;   What the code was doing is this: It was trying to add on to a non-set variable
  23. You could also edit docrime.php to include more attributes. On a game I use to work on, I edited it to include the player's stats - went down a treat
  24. Alright guys, enough now. Back on topic: Anyone willing to help Ben do the trivial content generation on his game that would otherwise bore the s**t out of me? (Means, I'm not)
×
×
  • Create New...