Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 35
SyntaxHighlighte... 47
Newsletters v4.03 105
Facebook Like Box 117
Newsletters v4.02 55
Metro 148
Facebook Connect 163
Shoutbox Panel 123
Redactor for PHP... 102
MI Floating Side... 105
Facebook Login/R... 146
Avatar Studio v2.03 176
Relationship Sta... 94
Sexual Orientati... 111
Fisherman 139
Popular Addons
iTheme2 5792
Arise 5780
User Control v1.23 4612
Event Calendar 4040
Photowidget panel 3880
Radio-Theme red2... 3347
Highslide Gallery 3308
CSS/JavaScript D... 3220
Facebook Connect... 2973
Dynamic Menu 2886
Slideshow Lightb... 2716
L-AMANT 2655
Enigma 2628
2Dark 2602
Black 2567
View Thread
Who is here? 1 guest(s)
 Print Thread
Admin reset
ObelixDK
i have made a mess on my new PHP-Fusion (latest version)
now i cant login as admin or superuser

i have tried admin reset it didnt work
then i tried this code found her: and cant login anymore

Please help me

<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| <a href="http://www.php-fu..." target="_blank" rel="nofollow" title="autolink">http://www.php-fu... </a>
+--------------------------------------------------------+
| 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 <a href="http://www.gnu.org/licen..." target="_blank" rel="nofollow" title="autolink">www.gnu.org/licen... </a> 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 "admin pass changed for super admin in ".DB_USERS;}
else {echo "An error ocurred for admin pass.";}

require_once THEMES."templates/footer.php";
Edited by PolarFox on 17-03-2012 06:32
 
Wanabo
Register as a new user. Go to phpmyadmin and copy the hashes of the new user to your profile. Now you can login with user pass from new user.

MD5 and Salt.

I believe you used an old admin reset tool wich is not compattible with the latest version. Newer versions have extra Salt hashes protection.
KPN Gebruikers Groep, my largest pHp-Fusion site about an ISP.
pHp-Fusion.Org, tutorials to enhance php-fusion.
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support site. Send PB for info.
 
http://ziggo.gebruikers.eu
ObelixDK
THX
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
A new admin interface Roadmap 3 20-05-2013 01:02
PM to Admin when new user Content Administration 4 11-05-2013 22:50
Reset Administrator password System Administration 5 17-04-2013 17:53
reset admin password Security Issues & Announcements 3 13-04-2013 14:46
Moving Panels and Admin Panel Content Administration 9 08-04-2013 12:06
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue