ishmell Posted December 19, 2008 Posted December 19, 2008 This code does not connect to the site nor its mysql. Its very simple code that i made in a minute for myself. I just thought I should post it in case anyone is ever interested. Basically what it does is it allows you to keep users from registering during closed beta. They must have a special code, in this case a coupon to enter and proceed with registration. Just do the fallowing below and it will work fine. Rename your register.php page to w/e you like. Create the page register.php with the fallowing code... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace 'SPECIAL CODE HERE' with the code you want entered in order to gain access and replace 'NEW REGISTER PAGE LOCATION HERE' with the new renamed register page you just did earlier. That should be it!!! http://www.dabmob.iiistudios.com/register.php <<< you can test it there!!! Quote
Guest Sniko` Posted December 19, 2008 Posted December 19, 2008 Re: [mccodes v1&v2] Register Coupon Lock Nice One +1 Quote
Tezza` Posted December 19, 2008 Posted December 19, 2008 Re: [mccodes v1&v2] Register Coupon Lock So there are no advantages or disadvantages to this? It just says either correct coupon or incorrect coupon? Quote
Guest Sniko` Posted December 20, 2008 Posted December 20, 2008 Re: [mccodes] Register Coupon Lock Ive no idea, i just like the idea Quote
Zero-Affect Posted December 20, 2008 Posted December 20, 2008 Re: [mccodes] Register Coupon Lock this is a basic email activation or something? Quote
ishmell Posted December 20, 2008 Author Posted December 20, 2008 Re: [mccodes] Register Coupon Lock Nope... for my games i dont like people i dont want signing up on closed betas. So using this they must have a special pass, in this case also know as a coupon to register. Keeps those out you dont want to join when your games are in closed beta...etc Quote
MartialCoder0101 Posted December 20, 2008 Posted December 20, 2008 Re: [mccodes] Register Coupon Lock Seems to be kinda simple to create. And as far as i could tell, a user that really wanted to could by-pass this easily.. Just a register coupon but Hey, They could by-pass it lmfao.. Quote
Haunted Dawg Posted December 20, 2008 Posted December 20, 2008 Re: [mccodes] Register Coupon Lock Are you seriouse? Forum clutterer ^^ not you martial coder. But ishmell. Come on if you wanted to close your register down just put die(); at the top. Use the admin panel to create friend's, staff's account's! Quote
ishmell Posted December 20, 2008 Author Posted December 20, 2008 Re: [mccodes] Register Coupon Lock Only way to bypass this is if they knew the renamed register.php. And yes this is very basic but I thought I would share it in case anyone is interested. And yeh killah you can do that but for those that would like to save time while keeping things professional this might be what you need. Im not forcing anyone to use it. Im just posting a free mod. Whether you use it or not is totally up to you. Quote
speedyg Posted January 21, 2009 Posted January 21, 2009 Re: [mccode] Register Coupon Lock Even Easier Just Change the File Permissons in your cpanel to 000 then no one can access the register page. Anyone have a way around that one let me know. Quote
Jambomb Posted January 21, 2009 Posted January 21, 2009 Re: [mccode] Register Coupon Lock -OWNED- Quote
Zero-Affect Posted January 21, 2009 Posted January 21, 2009 Re: [mccode] Register Coupon Lock you must be bored luke this post isn't even worth a post i know i've posted lol Quote
ishmell Posted January 31, 2009 Author Posted January 31, 2009 Re: [mccode] Register Coupon Lock -OWNED- Who got owned? All I see are people offering lame ass excuses that are supposedly better than the original posters. Now, we have 2 offered solutions, which both suck! Remove register and make the accounts yourself? Come on! In a closed beta, you could have upto 100 or so accounts still, what dumbass would set theirself up to make 100 accounts through the admin interface? None, I hope! Then we have CHMOD 000 - What are you achieving other than making yourself look dumb? Did he not say it simple enough, so that you understood that he wants - to let people register while blocking access somewhat. Owned? Now to the task at hand, while the script does what it intended, it can be expanded on and made to work better and does not take alot of knowledge in PHP. at the top of register.php, add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then add a new field to the form: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then it is as simple as adding a block to the page, pre-processing of data: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. No need for a new page. Good work. Its nice to see some others that see the proper logic behind this idea. Quote
Paddy Posted January 31, 2009 Posted January 31, 2009 Re: [mccode] Register Coupon Lock since its free well done and thanks, but i usually change file name much easier but thats my opinion :) Quote
RazorBladerz Posted March 19, 2009 Posted March 19, 2009 Re: [mccode] Register Coupon Lock yea thanks Quote
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.