Joshua Posted November 2, 2009 Share Posted November 2, 2009 AS promised, I have went through, Revised and Secured my original Script to the best of my ability. This is 100% Functional on my site and has all Add-Ons in this post here, as I update it if anything changes. I spent some time on this, so I hope you enjoy 🙂 INSERT INTO Cron_Day.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. SQL's You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. INSERT INTO cracksafe SAFE SQL's You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. INSERT INTO cracksafe2 SAFE SQL's You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. INSERT INTO cracksafe3 SAFE SQL's You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. createfile cracksafe.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Joshua Posted November 2, 2009 Author Share Posted November 2, 2009 Edited Out. Quote Link to comment Share on other sites More sharing options...
Nicholas Posted November 2, 2009 Share Posted November 2, 2009 interesting remake... i might use it on my game some day lol. Quote Link to comment Share on other sites More sharing options...
Joshua Posted November 2, 2009 Author Share Posted November 2, 2009 I've been wanting that type of mod for my game forever I figured instead of just waiting for someone to make it for me i'd go ahead and do it :P Quote Link to comment Share on other sites More sharing options...
girardz Posted November 5, 2009 Share Posted November 5, 2009 crackasafe.php with table showing pot amounts and attempts remaining. crackasafe.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. EDIT: added coding to prevent users from going into negative turns. Quote Link to comment Share on other sites More sharing options...
Joshua Posted November 5, 2009 Author Share Posted November 5, 2009 Very nice addition :) Thank you :) Quote Link to comment Share on other sites More sharing options...
girardz Posted November 15, 2009 Share Posted November 15, 2009 I added total attempts to each pot: Replace crackasafe.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add these to DB [mysql] ALTER TABLE `cracksafe` ADD `attempts_1` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `cracksafe2` ADD `attempts_2` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `cracksafe3` ADD `attempts_3` INT(11) NOT NULL DEFAULT '0'; [/mysql] OPEN cracksafe.php FIND: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add Under: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add Under: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. OPEN cracksafe2.php FIND: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add Under: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add Under: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. OPEN cracksafe3.php FIND: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add Under: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add Under: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Will reset to 0 when the pot is won. Quote Link to comment Share on other sites More sharing options...
Joshua Posted November 16, 2009 Author Share Posted November 16, 2009 Original Script Updated + More Security added. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted November 16, 2009 Share Posted November 16, 2009 So where is the security? Quote Link to comment Share on other sites More sharing options...
Joshua Posted November 16, 2009 Author Share Posted November 16, 2009 Really now, I just trimmed/cleaned data with sprintf and abs intval'd the form data. What more can I do, Enlighten me :) i have an sql function that does everything else with a simple Include. Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 17, 2009 Share Posted November 17, 2009 Nicely Done Immortal I haven tested or used any of your scripts as i dont have a game, but i see your producing some nice Free mods which in my eye deserves a +1000 Welldone mate and keep the free mods flowing :) Maybe a Xmas script would be nice if you cant think of an ideas for an xmas script just message me and we'll get thinking. Quote Link to comment Share on other sites More sharing options...
Joshua Posted November 17, 2009 Author Share Posted November 17, 2009 Well hell, you just let my idea out of the bag i wanted to get something really nice done for xmas gift >< Thanks Illusions Quote Link to comment Share on other sites More sharing options...
mixerman212 Posted November 17, 2009 Share Posted November 17, 2009 Attempts Remaining: -1 Safe-tries goes into the negatives Quote Link to comment Share on other sites More sharing options...
Nicholas Posted November 17, 2009 Share Posted November 17, 2009 near bottom of the top script you need to change something :) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. change that into You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. you need to change safe_2 into safe_3 :) Quote Link to comment Share on other sites More sharing options...
mixerman212 Posted November 17, 2009 Share Posted November 17, 2009 Attempts Remaining: -2 Still in the negatives Quote Link to comment Share on other sites More sharing options...
Nicholas Posted November 17, 2009 Share Posted November 17, 2009 Attempts Remaining: -2 Still in the negatives yeh same... im trying to figure out how to stop it going into negatives, not having much luck lol. Quote Link to comment Share on other sites More sharing options...
Nicholas Posted November 17, 2009 Share Posted November 17, 2009 got it lol look for... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and add this on top. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
mixerman212 Posted November 17, 2009 Share Posted November 17, 2009 It may not be the best of fixes but it works for me try this under global $ir,$c,$h,$userid,$db; add if($ir['safetries']<1) { echo "Only 10 tries per day. > Go Home <"; $h->endpage(); exit(); } Quote Link to comment Share on other sites More sharing options...
girardz Posted November 18, 2009 Share Posted November 18, 2009 I added it to my first post it must have been missed. :rolleyes: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
girardz Posted November 18, 2009 Share Posted November 18, 2009 I have it set up on my game so that you can try as many times as you want on the two paid safes but limited to 10 tries on the free safe. Just open cracksafe.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. somewhere near the top under: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Joshua Posted November 18, 2009 Author Share Posted November 18, 2009 Whoops sorry about that guys I'll fix it. Quote Link to comment Share on other sites More sharing options...
Joshua Posted November 18, 2009 Author Share Posted November 18, 2009 Find function safe_1() { global $ir,$c,$h,$userid,$db; Under add if($ir['safetries'] < 1) { print "You have already used your 10 tries today, come back tomorrow"; $h-endpage(); exit; } That will let them only try 10 times on the free safe, and the other 2 unlimited :D Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted November 18, 2009 Share Posted November 18, 2009 3 words spring to mind right about now... Told You So. lol Good job Quote Link to comment Share on other sites More sharing options...
Joshua Posted November 19, 2009 Author Share Posted November 19, 2009 Told me so what? :P Quote Link to comment Share on other sites More sharing options...
Nicholas Posted December 19, 2009 Share Posted December 19, 2009 ive got quick question about this mod? has anyone even won it yet the free one? as i even changed the free safe crack lines to $r1 = rand(100,101); $r2 = rand(10,11); $r3 = rand(1,2); but still no ones won it lol. also i looked at some of the lines and it says if($_POST['1digit'] != $rand1) if($_POST['2digit'] != $rand2) if($_POST['3digit'] != $rand3) does that mean the $r1 $r2 $r3 meant to be $rand1 $rand2 $rand3 or is it correct with the $r1, $r2, $r3 ?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.