loging in as admin

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
richman_tck
Posts: 4
Joined: Sat Jul 11, 2009 11:29 am

loging in as admin

Post by richman_tck »

Script URL: www.classifiededition.com/support/
Version of script: 2.0
Hosting company: Dot5Hosting
URL of phpinfo.php: www.classifiededition.com/support/phpinfo.php
URL of session_test.php: www.classifiededition.com/support/session_test.php
What terms did you try when SEARCHING for a solution:
phpjunkyard i have read some forums as well, i didn't see what i was searching for but read the useful info for possible later use.

Write your message below:

Hi,

I'm having issues logging in as admin. i have uploaded the proper files to my server for anyone who might have a solution.
links are above.

In the admin area when i was able to get in by another way was http://www.classifiededition.com/suppor ... ttings.php it got me passed the login?.. so i changed the login default to what i wished the user name and password for admin would be for me. i then logged out and tried to log back in and i have been unable to since.

i searched all my folders for the admin login and password and i can only find the DB one...


thanks for any help.. sorry for the trouble.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

You can reset your Administrator password like this:
viewtopic.php?t=2318&highlight=reset+password
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
richman_tck
Posts: 4
Joined: Sat Jul 11, 2009 11:29 am

Post by richman_tck »

Klemen wrote:Hi,

You can reset your Administrator password like this:
viewtopic.php?t=2318&highlight=reset+password
great, speedy reply :)
sorry for the delay..

is there one for user name reset? im unable to log in still..
i'll do a reinstall if nothing else.

btw.. i did buy u a beer :) desg..frg.. i used to srch for email.. sorry for the trouble
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

This should do the trick then:

Code: Select all

<?php 
define('IN_SCRIPT',1); 
define('HESK_PATH',''); 
require(HESK_PATH . 'hesk_settings.inc.php'); 
require(HESK_PATH . 'language/'.$hesk_settings['language'].'.inc.php'); 
require(HESK_PATH . 'inc/common.inc.php'); 
require(HESK_PATH . 'inc/database.inc.php'); 

hesk_dbConnect(); 

$sql = "UPDATE `".$hesk_settings['db_pfix']."users` SET `user`='Administrator', `pass`='499d74967b28a841c98bb4baaabaad699ff3c079' WHERE `id`=1 LIMIT 1"; 
hesk_dbQuery($sql); 

echo "Admin username and password reset"; 
?>
Then you should be able to login using
Username: Administrator
Password: admin
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
richman_tck
Posts: 4
Joined: Sat Jul 11, 2009 11:29 am

Post by richman_tck »

Klemen wrote:This should do the trick then:

Code: Select all

<?php 
define('IN_SCRIPT',1); 
define('HESK_PATH',''); 
require(HESK_PATH . 'hesk_settings.inc.php'); 
require(HESK_PATH . 'language/'.$hesk_settings['language'].'.inc.php'); 
require(HESK_PATH . 'inc/common.inc.php'); 
require(HESK_PATH . 'inc/database.inc.php'); 

hesk_dbConnect(); 

$sql = "UPDATE `".$hesk_settings['db_pfix']."users` SET `user`='Administrator', `pass`='499d74967b28a841c98bb4baaabaad699ff3c079' WHERE `id`=1 LIMIT 1"; 
hesk_dbQuery($sql); 

echo "Admin username and password reset"; 
?>
Then you should be able to login using
Username: Administrator
Password: admin

case solved, thanks for all the help. :)
lock thread
Post Reply