Jump to content
MakeWebGames

sniko

Members
  • Posts

    2,210
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by sniko

  1. Just to throw this into the mix, a user agent string is supplied by the user (ie: you), and this string is easily spoofed so you can't rely on it too much. Though, it depends what you need to detect it for. [MENTION=65073]lucky3809[/MENTION] has a nice solution, let's build on it.   $objBrowser = get_browser(); if( in_array( strtolower($objBrowser->browser), array('chrome', 'msie') )) { echo 'We detected you\'re using either chrome or internet explorer'; die; } echo 'You\'re okay';   Because get_browser() requires some extra configuration (outlined in the manual), it may be better (depending on your access level on the server) to use a solution like this: http://stackoverflow.com/questions/5302302/php-if-internet-explorer-6-7-8-or-9
  2. Or go full pro with PHPStorm and get an awesome integrated environment.
  3. About a year ago, not as little as 50%. I've seen v2 licenses being marketed for USD60$, USD40$ (not sold I don't think), USD60$ (sold). So, the price fluctuates between 60%+ (from old stats, if you want the sell/buy) You're probably looking at spending USD50$+ for a license in 2015; though I've not had first hand experience with selling a license recently, so I may be off.
  4. Make sure you remove it when you go into production.
  5. But seriously, ok... why are you telling me?
  6. You charmer ;) Might drop it this weekend then, maybe.
  7. Or... you know....   ini_set('display_errors', 1); error_reporting(E_ALL);   ;) Personally, I dislike the error handler that is shipped - might drop my custom one if there is enough interest
  8. Because you bumped a thread when it was last active 5 years ago. 3 years old if we count this reply. But still, it's a useless bump :)
  9. I don't mind providing help/support/spoonfeeding, just as long as the receiver uses their brain. For example; My Reply states "That PHP snippet is supposed to go into register after a user is inserted in the database. " and your reply included " do I just enter it into my header.php file?" - my reply states it's the register file, yet you overlooked that part. That's probably what [MENTION=69001]Zettieee[/MENTION] picked up on too.
  10.   Valid point :)
  11. Thanks what do I save the php file as? That PHP snippet is supposed to go into register after a user is inserted in the database. Choose 1 solution out of the 2. And possibly explain it a little clearer please? I'm not sure what part needs explaining Do I add the sql? Yes, execute the SQL statements once (if you choose the trigger approach) Is there a code I can save as a .doc or .txt file and it alters the tables or whatever. What? Just run it in your MySQL client (PHPMyAdmin, SQLBuddy, Navicat, w/e)
  12. This has been explained and posted on this forum many times. Nevertheless; Using MySQL trigger # Set default unread mail to 1 because we will have a trigger ALTER TABLE `users` MODIFY COLUMN `new_mail` int(5) NOT NULL DEFAULT 1 AFTER `new_events`; # On INSERT into users table, it will insert a new event record for the user. CREATE TRIGGER `send_event_from_admin` AFTER INSERT ON `users` FOR EACH ROW INSERT INTO events (evUSER,evTIME,evREAD,evTEXT) VALUES (new.id, unix_timestamp(), 0, 'Welcome to the game. This is a message from the admins! Yay.'); # On INSERT, send them a new mail CREATE TRIGGER `send_mail_from_admin` AFTER INSERT ON `users` FOR EACH ROW INSERT INTO mail (mail_read,mail_from,mail_to,mail_time,mail_subject,mail_text) VALUES (0, 1, new.id, unix_timestamp(), 'A welcome subject', 'Welcome to the game. This is a message from the admins! Yay.');   Using code $userid = $db->insert_id(); //... //Send the user an event event_add($userid, 'Welcome to the game. This is a message'); //Send the user a mail $db->query("INSERT INTO `mail` (`mail_read`,`mail_from`,`mail_to`,`mail_time`,`mail_subject`,`mail_text`) VALUES (0, 1, ". $userid .", unix_timestamp(), 'Welcome to the game', 'This is a message from the admins! Yay.')"); $db->query("UPDATE users SET `new_mail` = `new_mail` + 1 WHERE `userid`=". $userid);
  13. Their previous thread: http://makewebgames.io/showthread.php/45597-Any-one-interested-in-2-app-game-sites-for-sale Insecure game (at the time of the other thread): http://soldierwarfare.com They've changed the name at the bottom, but this version captured by the archive shows their name on it - not sure if it's still their game and they're selling another though.
  14. Is this the same game you advertised a while ago, and I spotted a few security holes; e-mailed you and didn't get a response. Is it still vulnerable?
  15. Are you asking how to change the text color of an anchor tag?
  16. CONGRATULATIONS The winner of the giveaway is [MENTION=70655]Damond[/MENTION]! I'll PM you the coupon code now. Thanks to the people who participated. Whenever you upgrade your Pusher account, enter the coupon code SNIKO_REALTIME_50 for 50$ Pusher credit!  
  17. [MENTION=69576]LeeMason[/MENTION] - I use services like this (as previously hinted, I use Enpass) along with Apple Keychain - both are fantastic. I'll look into your recommendation later tonight and see if I fancy to migrate :D Woo! 2,000th post! Achievement unlocked?
  18. Does it offer migration from tools like Enpass?
  19. Giveaway is now closed   To celebrate the launch of Integration of Pusher with McCodes, the great guys at Pusher have sent me a 150$ coupon for someone to use. This will grant them 150$ credit on their pusher account, which will give you the freedom of 3 months free* with Pusher! To enter the giveaway Launch the Pusher chat module, on to your game (either live or your development environment - to show your interest in Pusher) Reply to this thread with a link to your game (development environment needs to be open to validate the install), and a brief summary of your game   Giveaway will close Monday 18th May 2015 Winner will be chosen by the post number at random, using random.org. If a winner doesn't qualify, I will re-roll. * Using the Startup package Post count won't be taken into consideration. So if you're a lurker and have the modification installed, signup and enter this giveaway :) Signup to Pusher and enter coupon code SNIKO_REALTIME_50 when upgrading your package for a free 50$ Optionally, you can hit like on this thread ;)
  20. It's in the OP. It's always been in the OP.
  21. No. Making something universal in such a niche market with a direct targeted audience would be pointless. Though, making a universal version would be beneficial to release elsewhere, sure.
  22. > the space between the ! and array_key_exists() ? i'd remove it anyway just incase No, it doesn't matter. You need that condition to go through a NOT gate (ie: make true become false and vice versa). Though, you can do this instead;   if(array_key_exists('uid', $_SESSION) === FALSE AND !in_array($_GET['page'], array('signup', 'index')) ) { [MENTION=71090]Fraserb[/MENTION] - I'll be able to assist you in ~2 hours from now via Skype
  23. If there is enough interest in Panther, I can publish an updated version and accompany it with a website to help with installation and FAQ's. [MENTION=71090]Fraserb[/MENTION] - I'm currently at work. If you haven't sorted it before I get home (in 5 hours), please add me on skype. (harry.sniko) - or add me on Skype anyway :p Thanks! (Thanks [MENTION=68711]KyleMassacre[/MENTION] and [MENTION=69670]Script47[/MENTION])
  24. How would we purchase this? What payment methods do you accept? What kind of support is offered? How extendible is BlueImp? Does it come with any stuff functionality? We cannot register to your test site. "Closed beta - means you can't reg"   This is a nice alternative to the Pusher system I dropped :) Nice work!
×
×
  • Create New...