Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-22-2011, 10:28 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,617
SilverDragonTears is on a distinguished road
Default Trying to upgrade....

without losing all my modifications and when I try to encrypt passwords it says I have to upgrade to 1.2.3 Why can't I just do it manually? This is really frustrating.
__________________

Check out SilvaTales
Reply With Quote
  #2  
Old 10-24-2011, 07:47 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 339,038
Hall of Famer is on a distinguished road
Default

Lol this. It was set this way to prevent admins from running password encryption multiple times, as they may end up running userencrypt.php twice to mess things up. I will show u a solution to ur problem later.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 10-24-2011, 11:18 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,617
SilverDragonTears is on a distinguished road
Default

Thank you ;)
__________________

Check out SilvaTales
Reply With Quote
  #4  
Old 10-24-2011, 04:28 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 339,038
Hall of Famer is on a distinguished road
Default

Well your userencrypt.php file should looks like this below:

PHP Code:
<?php

include("inc/functions.php");

//***************//
//  START SCRIPT //
//***************//

$article_title "User Password Encryption Wizard"
$article_content "You are trying to encrypt every user's password, this may take a few secs or mins depending on the size of your memberbase. </br></br>";
$vers grabanysetting("version");

if(
$vers == "1.2.3"){

$query "SELECT * FROM {$prefix}users";
$result runquery($query);

while(
$user mysql_fetch_array($result)){
$newpass updatepass($user['username'], $user['password']);

$query "UPDATE {$prefix}users SET password='{$newpass}' WHERE username='{$user['username']}'";
runquery($query);

$article_content .= "Updating user {$user['username']}, action complete.</br>";

}



$article_content .= "</br>You have successfully encrypted your password! You can now log into your account and build an awesome adoptables site of yours!</br>
<br><b>We strongly recommend you to remove usercrypt.php now, together with the entire /install folder before managing your site.</b>"
;

$query "DELETE FROM {$prefix}settings WHERE name='version'";
runquery($query);

}
else{
  
$article_content .= "You are still using an old version of Mysidia Adoptables, please upgrade before running user password encryption wizard.";
}

//***************//
//  OUTPUT PAGE  //
//***************//

echo showpage($article_title$article_content$date);

?>
Replace with:
PHP Code:
<?php

include("inc/functions.php");

//***************//
//  START SCRIPT //
//***************//

$article_title "User Password Encryption Wizard"
$article_content "You are trying to encrypt every user's password, this may take a few secs or mins depending on the size of your memberbase. </br></br>";

$query "SELECT * FROM {$prefix}users";
$result runquery($query);

while(
$user mysql_fetch_array($result)){
$newpass updatepass($user['username'], $user['password']);

$query "UPDATE {$prefix}users SET password='{$newpass}' WHERE username='{$user['username']}'";
runquery($query);

$article_content .= "Updating user {$user['username']}, action complete.</br>";

}



$article_content .= "</br>You have successfully encrypted your password! You can now log into your account and build an awesome adoptables site of yours!</br>
<br><b>We strongly recommend you to remove usercrypt.php now, together with the entire /install folder before managing your site.</b>"
;

$query "DELETE FROM {$prefix}settings WHERE name='version'";
runquery($query);

//***************//
//  OUTPUT PAGE  //
//***************//

echo showpage($article_title$article_content$date);

?>
Make sure you back up your table prefix.users before running the new script, since you will mess up the password encryption if you by any chance executes the script twice or more. Sometimes you may not even realize that you've done this, it happens to me too with slower internet.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 10-24-2011, 06:54 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,617
SilverDragonTears is on a distinguished road
Default

I got this
Fatal error: Call to undefined function updatepass() in /home/robynswo/public_html/userencrypt.php on line 16
__________________

Check out SilvaTales
Reply With Quote
  #6  
Old 10-25-2011, 01:54 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 339,038
Hall of Famer is on a distinguished road
Default

Well then you need to update your functions.php file.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to upgrade mys version? Rovick Questions and Supports 2 11-22-2013 07:29 AM
Columns after upgrade draugluin Questions and Supports 4 10-22-2012 04:49 AM
Upgrade? The Codfin Keeper Feedback and Suggestions 5 06-07-2011 11:47 PM
help needed with upgrade Lady_Olive Questions and Supports 25 06-24-2009 02:31 PM
Upgrade help LilPixie Questions and Supports 4 06-17-2009 03:28 PM


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

Currently Active Users: 9643 (0 members and 9643 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636