| Posts: n/a |
Saving hacked admin ability
if your admin ability is stolen [ and all infos are changed (like e-mail and etc...)] or if you lost your password in order to re-save admin ability do followings
in order to make this you must have ability of running sql qury in phmyadmin
(suppose that your old admin name is jack and jack's userid is 1)
1-remove jack's userid from config.php (from followings)
2- register yourself as different name (for exapmle tespara and suppose that tespara's userid is 2007)
3- Ban jack ( using following query)
4- add tespara' s userid into config.php
5- and finally make tespara admin using following query
thats all.....
in order to make this you must have ability of running sql qury in phmyadmin
(suppose that your old admin name is jack and jack's userid is 1)
1-remove jack's userid from config.php (from followings)
PHP Code:
$config['SpecialUsers']['canviewadminlog'] = '1';
$config['SpecialUsers']['canpruneadminlog'] = '1';
$config['SpecialUsers']['canrunqueries'] = '1';
$config['SpecialUsers']['undeletableusers'] = '1';
$config['SpecialUsers']['superadministrators'] = '1';
3- Ban jack ( using following query)
PHP Code:
UPDATE `user` SET `usergroupid` = '8' WHERE `username` ='jack' LIMIT 1 ;
PHP Code:
$config['SpecialUsers']['canviewadminlog'] = '2007';
$config['SpecialUsers']['canpruneadminlog'] = '2007';
$config['SpecialUsers']['canrunqueries'] = '2007';
$config['SpecialUsers']['undeletableusers'] = '2007';
$config['SpecialUsers']['superadministrators'] = '2007';
PHP Code:
UPDATE `user` SET `usergroupid` = '6' WHERE `username` ='tespara' LIMIT 1 ;




Linear Mode

