Jump to content
MakeWebGames

SRB

Members
  • Posts

    785
  • Joined

  • Last visited

  • Days Won

    79

Everything posted by SRB

  1. Nice Capahcta !
  2. SRB

    Games List

    What if we want to messsge the owners? Maybe found a bug in their game etc?
  3. SRB

    Games List

    Or like this:   Drug District Owner: Frosty     Year 1920 Owner: Peter & HauntedDawg     MafiaXtreme Owner: RJD Development     DANE Owner: Dane Gaming (Newttster)      
  4. SRB

    Available for work

    Yeah, you better :P
  5. Let's try this at $10 and see how it goes.... $10 to [email protected] and I'll forward when I get it (If I am sleeping, when I wake) And if staff could edit the title to be $10 too, I'd appreciate it.
  6. So, I have a little spare time again, so I'm putting it out there that I am willing to work for game systems again. If you're interested, feel free to send me a PM including what job you need doing and what you're willing to pay, or email me with the details: [email protected] Look forward to hearing from people.
  7. Number 7 raises a concern... If videos can't be repeated, then say somebody from a record company sees it and needs to show their colleagues... See the problem? Or am I missing something?
  8. I totally missed the part that said 5. With that said, if only 5 were allowed, it should have been "top 5 programs" and not what we install on a fresh box.
  9. uTorrent Photoshop CS4 AVG FileZilla Google Chrome Foxit Reader mIRC notepad++ Skype Sublime Text WinRar VLC Player   About me done, methinks  
  10. When I sit and think "I know what I'll do today" and the answer is clean up the laptop/computer or iPhone of all unused crap.
  11. Chrome for me -- firefox was my old browser of choice, but it's bloated these days, sluggish and just annoys me.
  12. And then read this: http://ryanfait.com/articles/the-difference-between-ids-and-classes/ And any other "Difference between class and ID in html" result from Google you wish to.
  13. I have my domains in a couple places, so I'll give some info on all. Namecheap Current domains with them: 1 Domains bought there: 1 First registered: 21st Dec 2012 123 Reg (2) Current domains with them: 2 Domains bought there: 4 First registered: 19th April 2012 Rocket Hosts Current domains with them: 2 Domains bought there: 10+ First registered: 2005 To be fair, they have all served me well with no problems to report on any. I use 123-reg for my .co.uk domains as they give you 2 years for slightly more than a 1 year .com cost, but .co.uk have free domain privacy as long as you are from the UK and not a business, so added bonus. Namecheap is only being used because I bought a site and domain and it was there, but I didn't see the need in moving it. RH is still used because it was the first one I found years ago and I've never had an issue with them.
  14. Just completed it last week -- was on my "to buy" list as soon as I saw the release info, but when it was given a 10/10 from Sony, it made it to the top of my list and off I went to grab it. Totally loved the game!   Surely they'd go with the one with more sales, hence more computers? Link to sale info And when you consider a high percentage that died of RROD, the numbers become bloated on the xbox front since millions of them were killed by those faults, resulting in more sales from the die hard plans.
  15. The play station for sure. Whoever states that there is little difference between the ps3 and the 360 clearly doesn't consider the technical specification. I am sure that logic comes down to something like "They both play games, go online, have TV apps to watch catch up programs and watch DVD's", but 360 has no blu-ray and spec for spec, the PS3 pretty much wins on all fronts. If, however, you only use it for games and not blu-ray etc, I guess that logic works. One thing that I would like to point out is that xbox wouldn't be capable of this :)
  16. Thank you for reporting that. I'll be sure to check that when I am home and post the update here. I am thinking the problem is with the stripped code I am using for the demo site, as it's running on a live game without issue, but is pointless to point anybody there since they won't be able to view the admin side of stuff. I stripped the global functions file to only contain event_add() so the culprit could be in there. Again, thanks.
  17. SRB

    Securing $_POST

    Since the OP asked about security and then posted code for INPUT into the database, you can only assume your post was in relation, no?
  18. None yet. May just remove it and release on a mod site. That said, curious how many people buy from those now too.
  19. SRB

    Securing $_POST

    Say what now? I've just gave a perfect example of how to input data. Htmlspecialchars for database input? Are you kidding me? Mysql_real_escape_string() is all that's required since it only escapes what it needs to and therefore keeps the data in the rawest possible form. If you really want to, you could add strip tags, but again, takes away from raw data. Output then needs wrapping in a function too, but since this isn't asking for output, we'll leave it out as its not on topic.
  20. SRB

    Securing $_POST

    Or maybe even set it to show you what you did wrong, in the errors? And check all data for conforming?   <?php if ($_SERVER['REQUEST_METHOD'] == "POST") { $name = check_string($_POST['hname']); $spec = check_string($_POST['hspec']); $color = check_string($_POST['hcolour']); $age = check_int($_POST['hage']); if ($ir['goldcoins'] < 1000) { echo '<p>You do not have enough gold coins.</p>'; } else if ($name == FALSE) { echo '<p>You did not enter a name.</p>'; } else if ($spec == FALSE) { echo '<p>You did not enter a spec</p>'; } else if ($color == FALSE) { echo '<p>You did not enter a color.</p>'; } else if ($age == FALSE) { echo '<p>You did not enter an age.</p>'; } else { $sql = "INSERT INTO `hoes` VALUES ('', '{$ir['userid']}', '{$name}', '{$age}', 0, 1, '{$spec}', '{$color}')"; $db->query($sql); $sql = "UPDATE `users` SET `goldcoins` = `goldcoins` - 1000 WHERE `userid` = '{$ir['userid']}'"; $db->query($sql); echo '<p>Your hoe was created.</p>'; } echo '<p><a href="brothel.php">Go Back</a></p>'; } function check_int($input) { return (strlen($input) > 0 && ctype_digit($input)) ? $input : FALSE ; } function check_string($input) { global $c; return (strlen($input) > 0 && is_string($input)) ? mysql_real_escape_string($input, $c) : FALSE ; }   NOTE This was wrote at 9:15am after being awake 15 minutes, so I'll probably end up changing something later. ~Luke
  21. Sold. Please delete/lock/whatever.
  22. Updated top post. Thanks to DJKanna for pointing out that I didn't have the query to insert a row, to block them reloading a page.
  23. Ugh :/ http://makewebgames.io/showthread.php/43770-Daily-random-items?p=294409&viewfull=1#post294409
  24. RAND() removed and used PHP to parse. Also, to limit to 6, use this one (From the other post)   <?php include_once('globals.php'); $sql = "SELECT * FROM `random_items` WHERE `user` = '{$ir['userid']}'"; $run = mysql_query($sql, $c) or die (mysql_error()); if (mysql_num_rows($run) == 0) { if ($ir['crystals'] < 100) { echo '<p>You do not have 100 crystals</p>'; } else { // Create list of valid items $items = array(); $sql = mysql_query("SELECT `itmid`,`itmname` FROM `items` WHERE `itmbuyprice` < 100000 AND `itmbuyable` = 1"); while ($item = mysql_fetch_assoc($sql)) { $items[] = array('id' => $item['itmid'], 'name' => "{$item['itmname']}"); } $amount = 6; echo '<p>You have collected ' . $amount . ' random items for today.</p> <p>The items you have been given, are:</p> <ul>'; for ($i = 1; $i <= $amount; $i++) { $give = $items[ mt_rand(0, (count($items) - 1)) ]; echo '<li>1x ' . htmlentities($give['name'], ENT_QUOTES, "UTF-8") . '</li>'; item_add($ir['userid'], $give['id'], 1); } echo '</ul>'; $sql = "UPDATE `users` SET `crystals` = `crystals` - 100 WHERE `userid` = '{$ir['userid']}'"; mysql_query($sql, $c) or die (mysql_error()); } } else { echo '<p>You have already claimed your free items today.</p>'; } $h->endpage();
  25. I don't particularly like the RAND() either but I'm decorating my house still, so time isn't plentiful right now. Personally, I'd create the array of all items and then random the array. In regards to donator items, I'd assume they aren't buy able, hence the clause for itmbuyable in the query
×
×
  • Create New...