Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Secure Random Adoption Process
This mod is intended for people who already or wanted to have a random adoption process on their adoptables site.
This mod will use Session Value instead of the GET method to transfer the id of an adoptables from adopt.php to doadopt.php That way people won't be able to manipulate the id of an adoptables to another id to get the adoptables they want. You can use POST method but they can change it using the text editor. So with this mod, they have no idea how to do that. NOTE:Please make a backup of your files before installing this mod! Now, let's move on! 1. Open your adopt.php file, on line 2 just below the PHP Code:
PHP Code:
Go to line 86, replace this code PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
1. Open your doadopt.php, on line 2 just below the PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
4. And then before this PHP Code:
PHP Code:
NOTE:Don't forget to edit the "Enter error message here" text That's it you're done! Now people will completely get unchangeable random adoptables! If there's any error you encounter after installing this mod, please let me know! (This is my first mod) Last edited by fadillzzz; 01-28-2011 at 12:10 PM. |
#2
|
|||
|
|||
Thank you =D
|
#3
|
|||
|
|||
First post updated!
Added a fix for the broken promo code page |
#4
|
||||
|
||||
It would seem there's a conflict between your mod and the Gender Ratio mod that Famer has.
|
#5
|
|||
|
|||
I'll take a look into it, thanks for letting me know Kaeliah!
|
#6
|
||||
|
||||
Yes I checked this mod with HOF's Gender Ratio mod are giving a invaid ID error.
|
#7
|
|||
|
|||
First post updated!
I've updated the tutorial so it won't break the promo code feature, and it will work with any mod that will require the edit of adopt.php and doadopt.php such as HoF's gender ratio system. EDIT: Updated again! I added a security fix to prevent the user from using the GET method to enter any ID of an adoptables (with the condition of whenisavail set to always) and fill in the promocode with random string to bypass the security..Hopefully this will be the last problem I found with this mod Last edited by fadillzzz; 01-25-2011 at 12:14 PM. |
#8
|
||||
|
||||
I have a few mods on already I don't know what to do could some one help me?
|
#9
|
|||
|
|||
Sure, I'll help.
|
#10
|
||||
|
||||
Thanks, I tried to add it but I already have HOF other two mods in place so going by line number is not work. I got a lot of errors the adopt page.
This what my adopt page looks like now without your mod. Were do I put the things I need? PHP Code:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adoption Problems | Kamalya | Questions and Supports | 8 | 01-27-2013 01:15 PM |
Secure Random Adoption V2 | fadillzzz | Mys v1.2.x Mods | 7 | 02-28-2012 01:57 PM |
Random Adoption | nitrogen | Questions and Supports | 4 | 05-10-2009 09:10 AM |
Random 5 is not realy random! | RipJawWolfFang | Questions and Supports | 9 | 04-30-2009 06:03 AM |
What's New? |
What's Hot? |
What's Popular? |