Jump to content
MakeWebGames

seanybob

Members
  • Posts

    666
  • Joined

  • Last visited

Everything posted by seanybob

  1. Whoa. Bertrand, do tell. I vote you write an entire article on the topic of how you pay $4 a month for your phone plan.
  2. seanybob

    security check??

    Yes, I 'spose it would. Although it seems a little weird to test to see if an input is a number and is positive, and then ONLY IF IT IS get it's absolute value. That means the absolute value isn't doing anything. If I may suggest... function CleanNum($var) { return abs((int) $var); //turns input into a number, then gets it's absolute value }   This same code doesn't return an annoying error to the user, but corrects their input - making it positive, and a number. (Feel free to correct me if I'm wrong. This has always worked for me, but I've heard people using @intval and other weird junk like that nowadays)
  3. MdShare is correct, they do have google checkout. Regarding GBay: http://www.google.com/Top/Shopping/Auctions/   They're working on it: http://www.google.com/corporate/green/footprint.html
  4. A vietnamese mccode game based on pirates??? You said 'Namless'. Nam + less Nam = short for vietnam Less = without something Therefore: 'Without Vietnam'. About pirates. Interesting.
  5. Zeggy answered it pretty well - only thing I would add is that VIM > emacs, any day of the week. ;)   The single biggest reason I'd switch to linux. Putty is nice and all... but I've fallen in love with the terminal.
  6. Thanks Illusions. I have added this to the mod - it'll be in the next update.
  7. Easy CSS work. If I was a front-end guy, I would do it.
  8. 50 cents is much more reasonable. Personally, I fail to see how you can pull a profit spending $5 for each new player to your game, using the McCode business model. You get 100 new players - cost, $500 Say 25% of those buy standard $5 donator packs the first month (a very generous assumption) - profit, $125 Say 10% of those buy standard $5 donator packs the second month - profit, $50 Say that for the next 5 months, the same 10% keep buying a dp - profit, $50 per month, $250 total Even with these generous numbers, for the pack of 100 people you paid $500 for, you only earned $425 after 5 months. My point being - with such high costs, it will take a significantly long time for you to even BREAK EVEN! And even then, to break even, you have to continuously add new updates to your game which interest your users, constantly code new things to keep them interested, making contests, etc... Just warning ya.
  9. Thanks boogie ;) Several updates to the mod released - for those who have purchased it, please check your emails ;) This should be the last update released for a bit - most/all bugs should be fixed. This update also includes some code that is made solely to anticipate further bugs, and help the game proceed forward, fixing the bug itself (instead of crashing). We're working on some upgrades for admin panels / options in a future update. If you have any ideas for admin powers/options you'd like to see, feel free to PM me ;)
  10. I've always just uploaded a ico file named favicon.ico to my game/website directory, and it worked just fine (didn't have to change any code)
  11. http://www.echoecho.com/htmlforms10.htm Hopefully that will help
  12. In the past, I thought about optimizing it like so: On EVERY mccode page, add a string variable above the include "globals.php"; line. The string character will contain a comma separated list of all the fields from the users table used on that page. E. G. $userfields=",crytalbank, crystalsstored"; In globals.php, the query would look like: $db->query("SELECT money,exp,username,userid{$userfields} WHERE userid=$userid "); or something along those lines. So in globals.php you would have it load all the variables that are used on every page like username/money/level, and then in the userfields variable have it store (and thus, load) those variables that are only used on specific pages. May not be the most efficient, but that's the idea I had floating around in my head.
  13. would it not be easier to just check if it goes to a specific file like on MC loggedin.php after authenticate, and stays on authenticate if there's a problem. Probably. But since the phrase 'Bad login' or 'Invalid password' are unlikely to appear on a successfully logged in page, they serve the purpose just as well.
  14. Yes, yes, you're all correct - the correct name for the method this program uses is a dictionary attack. I used the term 'brute force' in a general way, as it doesn't use logic or anything of that nature, but just word by word throws a possibility at a website and checks to see if it works (thus, brute force). True Brute Forcing would be checking all possible permutations, etc, etc. Bertrand, I can take this off if it bothers you, but really - there are dozens of much better programs that are easily found online that perform a similar or better function. While that doesn't justify posting it on here, I think that does make it so there is very little risk involved in doing so. But you're welcome to delete this thread at any time you wish to. I just want to re-iterate; this program doesn't work super-well. It was one of the first things I wrote in VB. You'll notice from the code it's actually a very, very simple program. Source: http://seanybob.net/codedownloads/bruteforcer/brute.zip
  15. I was screwing around in Visual Basic a while back and wrote this. Just found it on my hard drive, and thought I'd share it here. It works decently well, but I think it may have problems with wordlists that are too large (haven't really checked beyond a thousand or so). Also, I didn't bother packaging the OCX file with it. I had the OCX file installed on my computer, but I found some other computers with XP don't have it, so I put up a download link for it too (just keep it in the same directory as the program, I believe). Enjoy. If anyone is interested in developing this application further, or wants to see the code to learn from it, post here and I will. I just have to be motivated (I'd have to search a bit for the source) Download: http://seanybob.net/codedownloads/bruteforcer/BruteForcer.exe http://seanybob.net/codedownloads/bruteforcer/MSINET.OCX
  16. What Zeggy said. Or, for the more mysql illiterate: $x=HighestIDYouWantToGoTo; $i=0; while($i<$x) { $fullID=$db->num_rows($db->query("SELECT userid FROM users WHERE userid=$i")); if(!$fullID){$db->query("INSERT INTO free_ids VALUES($i)");} $x++; } Not nearly as efficient as Zeggy's would be, but as you're only running it once shouldn't really matter.
  17. For the prices Cronus charges, you should consider yourself lucky he supports them as he does. If I had written this mod, I would have spent quite a bit of time testing it, so that any typo's that caused errors would be easily found. The only bugs left would be purely logic bugs, and even with that there shouldn't be too many after that much testing. But the difference is that I include that testing in the price, and would have sold the mod for 5 times the price Cronus is selling it for. Cronus codes well enough, releases his mod for an un-godly low price, and then fixes any bugs that pop up. What more could you want, really? If you think there may be bugs in that mod you just purchased from him for $10, shell out another $40 to somebody to ensure the mod is secure and has no bugs - you'd still just be paying what the mod is worth.
  18. function mail_send() { global $db,$ir,$c,$userid,$h; $subj=str_replace(array("\n"),array(" "),strip_tags($_POST['subject'])); $msg=str_replace(array("\n"),array(" "),strip_tags($_POST['message'])); if($_POST['user1'] && $_POST['user2']) { die("Please do not select a contact AND enter a username, only do one. [url='mailbox.php']> Back[/url]"); } if(!$_POST['user1'] && !$_POST['user2']) { die("You must select a contact or enter a username. [url='mailbox.php']> Back <[/url]"); } $codes = array( ':)', ';)', ':o', ':D', ':s', ':(', 'angry', 'kissy', 'clapping', 'drool', 'crying', 'hyper', 'newbie', 'rolleyes', 'shock', 'thumbsup', ':P', 'yawn', '[b]', '[/b]', '[i]', '[/i]', '[u]', '[/u]', ); $images = array( '[img=smilies/smile.gif]', '[img=smilies/wink.gif]', '[img=smilies/shock.gif]', '[img=smilies/happy.gif]', '[img=smilies/confused.gif]', '[img=smilies/sad.gif]', '[img=smilies/angry.gif]', '[img=smilies/kissy.gif]', '[img=smilies/clapping.gif]', '[img=smilies/drool.gif]', '[img=smilies/cry1.gif]', '[img=smilies/hyper.gif]', '[img=smilies/newbie.gif]', '[img=smilies/rolleye.gif]', '[img=smilies/shock.gif]', '[img=smilies/thumbsup.gif]', '[img=smilies/tongue.gif]', '[img=smilies/yawn.gif]', '[b]', '[/b]', '[i]', '[/i]', '<u>', '</u>', ); $newmsg = str_replace($codes, $images, $msg); if(!preg_match('~(.?).(http|www|.com|.co.uk|.info|.co.cc|fuck|nob|fanny|vagina|dick|.net|bitch|gay|shit)~i', $newmsg)) { die("Sorry, we dont allow advertising or swear words... [url='index.php']> Go Back <[/url]"); } $to=($_POST['user1']) ? $_POST['user1'] : $_POST['user2']; $q=$db->query("SELECT userid FROM users WHERE username='{$to}'"); if($db->num_rows($q)==0) { die("<font color=white>You cannot send mail to nonexistant users. [url='mailbox.php']> <font color=white>Back[/url]"); } $to=$db->fetch_single($q); $db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmsg')"); $db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid={$to}"); print "<font color=white>Message sent. [url='mailbox.php']> <font color=white>Back[/url]"; }   Fixed. I crudely just made it die... but that'll work.
  19. second php page, line 81, 88, 95 and 102 not sure what is does but there are there at the end That is where $rlist is USED, not where $rlist is DEFINED. I imagine there's many problems in this script - one of which (as Alabama pointed out) $rlist isn't defined. I don't have time to actually go through it, but perhaps someone else will...
  20. Hey guys, We've released some new updates to the Texas Hold 'Em mod. First, the customizable features have been moved to a pokerconfig.php file. (They were in two different php pages, now they are easier to find/alter) Secondly, we've added a view table option. User's are now able to watch a texas hold 'em game (that they aren't playing in), and/or check to see who's playing at a table before they join it. Thirdly, we fixed a little bug that had to do with re-betting. If a user Raised a bet twice in one round, they would be forced to call their own bet as though they were the player to the left of them. Should be fixed now.
  21. Fixed some things. No need for Database query.
  22. Without the high score system, correct. But for the high score system to work, there was some complicated php code involved, that had to be located on a specific page / relative url. Meh. Maybe it would have worked with the high score system. Don't wanna think about it right now. I do want to say though, for all you new mccode owners starting games, definitely consider facebook. It's a heck of a lot easier to go viral, you can set up EASY free advertising (by posting actions on a user's wall, etc), and you'll have access to a new group of people than the several thousand that hop from mccode game to mccode game.
  23. Interesting method - if you're not completely satisfied with that, I'd be happy to tell you how I do it (they only ever see encrypted code on one page, but it's pure php and doesn't require a decoder). Interesting service as well. I've only coded one thing on facebook, and that was my flash arcade with high score systems. It worked well - but I could only do it with the iframe. The fbml junk started my head rolling, and I didn't want to recode everything. I was wondering when someone would convert mccodes to work on facebook... *thumbs up*
  24. I decided to toss in all my casino mods as a bonus for this package. Now when you purchase Texas Hold 'Em, you also get Video Poker, Blackjack, Slots, and Roulette for free. To those who have purchased it thus far, check your emails, you'll see a download link for these mods.
  25. Thanks mate, I'll definitely give you a call soon
×
×
  • Create New...