Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Addons/Mods Graveyard (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=41)
-   -   Rename adoptables (Security issue fixed!) (http://www.mysidiaadoptables.com/forum/showthread.php?t=595)

kisazeky 04-01-2009 01:15 AM

Rename adoptables (Security issue fixed!)
 
Update: I fixed the "hacking" security issue, I think.

Step 1:

Download rename.php and rename2.php and put them in your main folder.

Step 2:

Add this link <a href='rename.php?id=$id'>Rename ".$name."</a> to myadoptables.php. Here is an example:

Find this line with ctrl + f.
PHP Code:

//Begin our content output... 

Directly below it is
PHP Code:

$article_content=$article_content."<p align='center'><b><u>".$name.":</u></b></p>
<p align='center'><img src='"
.$imageurl."' border='0'></p>
<b>Current level of "
.$name.": ".$currentlevel."<br></b><b>Total clicks on ".$name.": ".$totalclicks."<br></b>
<b>Clicks needed until LevelUP "
.$name.": ".$neededclicks."<br></b><br>
<a href='levelup.php?id="
.$id."'>Click Here to LevelUP ".$name.".</a>  (You can do this once per day)<br>
<a href='manage.php?id="
.$id."&action=bbcode'>Click Here to get BBCODEs for ".$name.".</a> <br>
<a href='manage.php?id="
.$id."&action=delete'>Click Here to Delete (Kill) ".$name.".</a> <br>
<a href='rename.php?id=
$id'>Rename ".$name.".</a> <br>"

:)

Now the pages have been updated to display general messages.

Ashje 04-01-2009 02:17 AM

RE: Rename adoptables (because we REALLY can't wait)
 
iluvu =)

zhiichiro 04-01-2009 04:26 AM

RE: Rename adoptables (because we REALLY can't wait)
 
i now have it

gjac1 04-01-2009 04:57 AM

RE: Rename adoptables (because we REALLY can't wait)
 
wow, thanks again for a great mod kisazeky :) , but where exactly do i add "rename.php?id=$id" ??

Can you help us all out with the shop mod though please ?? no-one can get it working :(

rosepose 04-01-2009 08:59 AM

RE: Rename adoptables (because we REALLY can't wait)
 
OH MY GOSH. You are officially a genius ><

gjac1 04-01-2009 09:06 AM

RE: Rename adoptables (because we REALLY can't wait)
 
rosepose, if you got it working, can you tell me where you added the link "rename.php?id=$id" please ??

Rsmiley 04-01-2009 02:35 PM

RE: Rename adoptables (because we REALLY can't wait)
 
In rename.php

Some of you might wanna change this...

PHP Code:

    if($name == ""){
    
$article_title "Oops";
    
$article_date date('Y-m-d');
    
$article_content "This Digimon does not exist.";
    }
    else if(
$owner != $username){
    
$article_title "Oops";
    
$article_date date('Y-m-d');
    
$article_content "You do not own this Digimon!";
    } 

Some might wanna change digimon to adopable or pet

kisazeky 04-01-2009 03:10 PM

RE: Rename adoptables (because we REALLY can't wait)
 
D'oh! Sorry. I changed it to display general messages.

gjac1 04-01-2009 05:12 PM

RE: Rename adoptables (Updated!!)
 
The link you say to add doesnt work, you need to add it like this :

<a href='rename.php?id=".$id."&action=rename'>Click Here to rename ".$name.".</a> <br>

Killgore 04-01-2009 05:15 PM

RE: Rename adoptables (Updated!!)
 
You sir, are a genius!

EDIT: It works fine on my site, just the way it is, So maybe you didn't have something right in your script page?


All times are GMT -5. The time now is 09:41 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.