<?php
// Locate config.php and set the basedir path
$folder_level = ""; $i = 0;
while (!file_exists($folder_level."config.php")) {
$folder_level .= "../"; $i++;
if ($i == 5) { die("Config file not found"); }
}
require_once $folder_level."config.php";
define("BASEDIR", $folder_level);
function dbconnect($db_host, $db_user, $db_pass, $db_name) {
$db_connect = @mysql_connect($db_host, $db_user, $db_pass);
$db_select = @mysql_select_db($db_name);
if (!$db_connect) {
die("<div style='font-family:Verdana;font-size:11px;text-align:center;'><b>Unable to establish connection to MySQL</b><br />".mysql_errno()." : ".mysql_error()."</div>");
} elseif (!$db_select) {
die("<div style='font-family:Verdana;font-size:11px;text-align:center;'><b>Unable to select MySQL database</b><br />".mysql_errno()." : ".mysql_error()."</div>");
}
}
// Establish mySQL database connection
$link = dbconnect($db_host, $db_user, $db_pass, $db_name);
//////////////////////////////////////
$db_request = 'SELECT * FROM fusion_users ORDER BY user_id';
$exec = mysql_query($db_request);
while ($line = mysql_fetch_array($exec)) {
extract($line);
$result = md5($line['user_password']);
mysql_query("UPDATE fusion_users SET user_password='".$result."' WHERE user_id = ".$line['user_id']);
echo "id ".$line['user_id']." done sucessfully<br />";
}
?>
Quote
muscapaul wrote:
Non-working passwords only apply to upgrades of v6 installations from before v6.01.12...
Quote
hajriz wrote:
Notice: Undefined index: user_admin_password in /mnt/web5/51/48/52078348/htdocs/themes/templates/panels.php on line 110
Warning: admin password not set, click Edit Profile to set it.
Notice: Undefined index: user_admin_password in /mnt/web5/51/48/52078348/htdocs/edit_profile.php on line 56
i have set it but there is some problem with datebase when i put old users list from phpfusion 6 to phpfusion 7... how to fix that?
and i put new admin password its working fine but there is error :(
PS : I CAN NOT CHANGE ADMIN PASSWORD OR GIVE NEW PASS :(...JUST USER PASSWORD IS WORKING!
Quote
Daywalker wrote:
This script is not necessary if you followed the following procedures:
Step 1) Upgraded to the most recent copy of PHP Fusion.(Database and everything)
Step 2) Downloaded most up to date version of v7 client.
Step 3) Extracted said download from Step 2.
Step 4) Open the extracted folder.
You should now see:
1) Folder named Files
2) Folder named upgrade v601x
3) Text Document copy of the AGPL
5) Several language variations of the Readme.
Step 5) open folder named Upgrade v601x
Step 6) Uploaded upgrade.php located in said folder in Step 5 to administration/ folder on your host using your FTP client.
Step 7) Log into your website and proceed to Admin Panel < System Admin < Upgrade and follow the steps for that Upgrade.
Step 8) After the upgrade is completed upload the contents of the folder marked Files(except _config and setup.php) overwriting everything.
Holy geegolly batman, we now have a perfectly working v7 website and we didnt have to use the script in the original post of this thread.
Category Forum
Upgrading issues - 8Labels
None yet
Statistics
8 participants
Notifications
You are not receiving notifications from this thread.
Related Questions