<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: viewpage.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
$pass = MD5('mynewpass'); // <-- Enter new user password 'mynewpass'
$pass_admin = MD5('mynewadminpass'); // <-- Enter new admin password 'mynewadminpass'
$result = dbquery("UPDATE ".DB_USERS." SET user_password = MD5('".$pass."') WHERE user_id = '1' LIMIT 1");
if ($result) {echo "pass changed for super admin in ".DB_USERS;}
else {echo "An error ocurred for user pass.";}
$result2 = dbquery("UPDATE ".DB_USERS." SET user_admin_password = MD5('".$pass_admin."') WHERE user_id = '1' LIMIT 1");
if ($result) {echo "<br />admin pass changed for super admin in ".DB_USERS;}
else {echo "<br />An error ocurred for admin pass.";}
require_once THEMES."templates/footer.php";
?>
Quote
Neoman wrote:
WEC , thanks , it worked
Quote
googlebot wrote:Quote
Neoman wrote:
WEC , thanks , it worked
How?? In WEC's code, the passwords are only md5 hashed once. PHPFusion 7 uses double md5 hashing.
Quote
SiteMaster wrote:Quote
googlebot wrote:Quote
Neoman wrote:
WEC , thanks , it worked
How?? In WEC's code, the passwords are only md5 hashed once. PHPFusion 7 uses double md5 hashing.
yes someone please tell us how this works
is 2x md5 not like this ?
example
md5 string: 1
md5 hash: c4ca4238a0b923820dcc509a6f75849b
md5 string: c4ca4238a0b923820dcc509a6f75849b
md5 hash: 28c8edde3d61a0411511d3b1866f0636
$pass = MD5('mynewpass'); // <-- Enter new user password 'mynewpass'
$pass_admin = MD5('mynewadminpass'); // <-- Enter new admin password 'mynewadminpass'
$result = dbquery("UPDATE ".DB_USERS." SET user_password = MD5('".$pass."') WHERE user_id = '1' LIMIT 1");
$result2 = dbquery("UPDATE ".DB_USERS." SET user_admin_password = MD5('".$pass_admin."') WHERE user_id = '1' LIMIT 1");
Quote
SiteMaster wrote:
DOH he is duoble md5 it
first timeCode Download source
$pass = MD5('mynewpass'); // <-- Enter new user password 'mynewpass'
$pass_admin = MD5('mynewadminpass'); // <-- Enter new admin password 'mynewadminpass'
second timeCode Download source
$result = dbquery("UPDATE ".DB_USERS." SET user_password = MD5('".$pass."') WHERE user_id = '1' LIMIT 1");
$result2 = dbquery("UPDATE ".DB_USERS." SET user_admin_password = MD5('".$pass_admin."') WHERE user_id = '1' LIMIT 1");
Quote
Neoman wrote:
i didn't o anything to PF . i just copied the code to a page in my root and opened it . that is it !
Quote
---
UPDATE YOURPREFIX_users SET user_admin_password = md5(md5('YOURPASSWORD'),user_admin_algo='md5', user_algo='md5',user_password=md5(md5('YOURPASSWORD') WHERE user_id = '1' LIMIT 1;
Quote
PolarFox wrote:
Try to use
change: YOURPREFIX_users and YOURPASSWORDQuote
---
UPDATE YOURPREFIX_users SET user_admin_password = md5(md5('YOURPASSWORD')),user_admin_algo='md5', user_algo='md5',user_password=md5(md5('YOURPASSWORD')) WHERE user_id = '1' LIMIT 1;
After that, you password will be YOURPASSWORD
Quote
ik got php my admin how do i change it there?
<?php
require_once 'maincore.php';
$pass = 'yourpass';
$passadm = 'youradminpass';
dbquery("UPDATE ".DB_USERS." SET user_admin_password = md5(md5('$passadm')),user_admin_algo='md5', user_algo='md5',user_password=md5(md5('$pass')) WHERE user_id = '1' LIMIT 1;");
echo 'Done';
?>
Quote
PolarFox wrote:
Here is the code for php page:
call it page.php , upload to the root dir, and direct your browser to yoursite.com/page.phpCode Download source<?php
require_once 'maincore.php';
$pass = 'yourpass';
$passadm = 'youradminpass';
dbquery("UPDATE ".DB_USERS." SET user_admin_password = md5(md5('$passadm')),user_admin_algo='md5', user_algo='md5',user_password=md5(md5('$pass')) WHERE user_id = '1' LIMIT 1;");
echo 'Done';
?>
This code will reset your password to specified.
Remove this file after use! And make a DB backup at first.
Category Forum
User Administration - 8Labels
None yet
Statistics
11 participants
Notifications
You are not receiving notifications from this thread.
Related Questions