timpitts Posted June 21, 2008 Share Posted June 21, 2008 create a file called crystalbank.php and add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I havnt tested it, please edit it and post back here, I think it should work, I converted it from ruby bank so those who want crystal bank can have it as crystal bank hope you all like it 1 Quote Link to comment Share on other sites More sharing options...
mentaljason Posted June 21, 2008 Share Posted June 21, 2008 Re: crystal bank what version is this? Quote Link to comment Share on other sites More sharing options...
jimmytubbs Posted June 21, 2008 Share Posted June 21, 2008 Re: crystal bank what version is this? OMG v2 well ill give you credit as ur a newbie but [v2] look for include "globals.php"; [v1] look for require "global_func.php"; Quote Link to comment Share on other sites More sharing options...
webster2001 Posted June 21, 2008 Share Posted June 21, 2008 Re: crystal bank what version is this? OMG v2 well ill give you credit as ur a newbie but [v2] look for include "globals.php"; [v1] look for require "global_func.php"; It does not have to be include "globals.php"; it could be require "globals.php"; for V2 Also it does not have to be require "global_func.php"; it could be include "global_func.php"; Include just means include it if the files exists whereas require means the file has got to exist otherwise it will not display Quote Link to comment Share on other sites More sharing options...
jimmytubbs Posted June 21, 2008 Share Posted June 21, 2008 Re: crystal bank what version is this? OMG v2 well ill give you credit as ur a newbie but [v2] look for include "globals.php"; [v1] look for require "global_func.php"; It does not have to be include "globals.php"; it could be require "globals.php"; for V2 Also it does not have to be require "global_func.php"; it could be include "global_func.php"; Include just means include it if the files exists whereas require means the file has got to exist otherwise it will not display Actually The require() function is identical to include(), except that it handles errors differently. The include() function generates a warning (but the script will continue execution) while the require() function generates a fatal error (and the script execution will stop after the error). If you include a file with the include() function and an error occurs, you might get an error message Quote Link to comment Share on other sites More sharing options...
nath2k7 Posted July 20, 2008 Share Posted July 20, 2008 Re: crystal bank this doesnt work :? Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 20, 2008 Share Posted July 20, 2008 Re: crystal bank dude u got hacked and u cant even code that means you shouldent even have a damn pc so just dos ur self or soemthign and give up ur pc cause u cant code so yeah just leave xD ive seen ur sites ;) i offer'd to help secure them a bit but ur like naw i do it myself and that is why urs got h4acked XDXDXDXDXDXDXD now onto the mod it isn't even secure i bet ur waitin for nyna or magictallguy to secure them please dont xD no offense to you Squimmy its just idk learn to code and secure wid Sprintf() like all the others do :-) Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted July 20, 2008 Share Posted July 20, 2008 Re: crystal bank Perhaps you (X_TheJoker_X) would like to explain to us ~why~ it's insecure... Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 20, 2008 Share Posted July 20, 2008 Re: crystal bank well i thought it wasent most stuff wid out Sprintf() isnt secure and is like some how exploitable yes i know i have loads of stuff well had now i have made it a tad bit secureer for wannabe injectors but yeah soz for saying it wasnet i didnt get a chance to look at it clear some skiddie its tryin to hack me he did get in but he tryed to dos me TRYED xD i got him tho byebye The Joker+1 Skiddies -5 Quote Link to comment Share on other sites More sharing options...
Tonka Posted July 20, 2008 Share Posted July 20, 2008 Re: crystal bank this doesnt work :? it does work, you just need to add the column to your users table ALTER TABLE `users` ADD `crystalbank` INT( 11 ) NOT NULL DEFAULT '-1'; 1 Quote Link to comment Share on other sites More sharing options...
nath2k7 Posted July 20, 2008 Share Posted July 20, 2008 Re: crystal bank thanks :-D it is now working but it now says that you dont have enough crystals to deposit this much :? Quote Link to comment Share on other sites More sharing options...
hurra Posted July 20, 2008 Share Posted July 20, 2008 Re: crystal bank get more credits. Quote Link to comment Share on other sites More sharing options...
Tonka Posted July 20, 2008 Share Posted July 20, 2008 Re: crystal bank Update, been debugged abit You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. also the mysql query you need is 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...
Guest Anonymous Posted July 21, 2008 Share Posted July 21, 2008 Re: crystal bank well i thought it wasent most stuff wid out Sprintf() isnt secure and is like some how exploitable yes i know i have loads of stuff well had now i have made it a tad bit secureer for wannabe injectors but yeah soz for saying it wasnet i didnt get a chance to look at it clear some skiddie its tryin to hack me he did get in but he tryed to dos me TRYED xD i got him tho byebye The Joker+1 Skiddies -5 Man, your more stupider then a thought. Quote Link to comment Share on other sites More sharing options...
Mark F Posted July 21, 2008 Share Posted July 21, 2008 Re: crystal bank dude u got hacked and u cant even code that means you shouldent even have a damn pc so just dos ur self or soemthign and give up ur pc cause u cant code so yeah just leave xD ive seen ur sites ;) i offer'd to help secure them a bit but ur like naw i do it myself and that is why urs got h4acked XDXDXDXDXDXDXD now onto the mod it isn't even secure i bet ur waitin for nyna or magictallguy to secure them please dont xD no offense to you Squimmy its just idk learn to code and secure wid Sprintf() like all the others do :-) Maybe you should work on your own modifications, in the time that you bag other people? Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted July 22, 2008 Share Posted July 22, 2008 Re: crystal bank Before posting all over CE what I'm attempting to teach you, actually learn it? Brilliant quote from Nyna If you don't understand it, leave it alone.. You should take heed Chris.. well i thought it wasent most stuff wid out Sprintf() isnt secure and is like some how exploitable yes i know i have loads of stuff well had now i have made it a tad bit secureer for wannabe injectors but yeah soz for saying it wasnet i didnt get a chance to look at it clear some skiddie its tryin to hack me he did get in but he tryed to dos me TRYED xD i got him tho byebye The Joker+1 Skiddies -5 Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted July 22, 2008 Share Posted July 22, 2008 Re: crystal bank For the sake of The Joker, sprintf() has been implemented.. Joker, sprintf() on it's own, will offer little protection. Combine it with mysql_real_escape_string() and you'll have a file fit for a king.. (or Nyna..) Secured Crystal Bank You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 1 Quote Link to comment Share on other sites More sharing options...
XCU53S Posted July 22, 2008 Share Posted July 22, 2008 Re: crystal bank looks great metallic guy and 'secure' may i and "X_TheJoker_X" you go around the forum putting others down criticising there work the thing is i never see anything from you maybe make us a little addon for gangs should be easy work for you (sarcasm). Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted July 22, 2008 Share Posted July 22, 2008 Re: crystal bank Yea.. it's "Magictallguy", although I do like Metallica.... looks great metallic guy ... Quote Link to comment Share on other sites More sharing options...
BigBoy Posted August 20, 2010 Share Posted August 20, 2010 Yea.. it's "Magictallguy", although I do like Metallica.... looks great metallic guy ... Pharse error: syntax error, unexpected ',' in /home/public_html/crystalbank.php on line 122 getting that from your code for some reason Quote Link to comment Share on other sites More sharing options...
BigBoy Posted August 23, 2010 Share Posted August 23, 2010 nvm my fault lmao I am a noob still Quote Link to comment Share on other sites More sharing options...
ngeinc Posted November 18, 2010 Share Posted November 18, 2010 nvm my fault lmao I am a noob stillwait why , i get the same error how do you fix it? Quote Link to comment Share on other sites More sharing options...
phoenix201012 Posted March 25, 2011 Share Posted March 25, 2011 works for me thanks Quote Link to comment Share on other sites More sharing options...
The Bonded Game Posted June 22, 2011 Share Posted June 22, 2011 My Whack at ths. @ timpitts: Not bad. You got the ball rolling. Plus one. @ Tonka: Thank you for the table code. Plus one. @ Magictallguy: Thank you for securing it. Plus one. @ Bineye: Still using your hint of removing multiple quote sets from a single line. Now, for the mod itself, it is wonderful and I have added it. Now fully functional. I had to combine pieces from each of the postings. Below you will find my copy which is working for me and should be fully functional. Although it has one error I am still trying to track down. When you open the CB it does not auto fill in how many crystals the player has out into the deposit box. (it is either blank or the amount already in the bank). However the withdraw box will auto fill in how many are in the bank. Also when depositing crystals it does not update the actual total in CB when making a deposit, but does for withdraw. If anyone fixes let me know and I will update the post. Further this is not my mod nor do I take any credit for it. it does work, you just need to add the column to your users table 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. Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted June 23, 2011 Share Posted June 23, 2011 ? mysql_real_escape_string($gain) you have that two times only need once. why not use intval($gain) is it not a number? mres is not for numbers... better is to add it like... $gain=intval($_POST['withdraw']); then just add $gain to the queries. 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.