Page 1 of 1
How to manage user accounts in the admin panel?
Posted:
Wed Sep 19, 2012 1:44 pm
by Morbo
How to change the user registration to be made by the administrator in the Admin Panel > Users
Re: How to manage user accounts in the admin panel?
Posted:
Thu Sep 20, 2012 6:44 pm
by SamEA
You mean only the administrator (Admin) can register users? In other words, disable user registration and only the admin can register users?
Re: How to manage user accounts in the admin panel?
Posted:
Thu Sep 20, 2012 6:57 pm
by Morbo
Yes, I mean to implement something like that.
Regards
Re: How to manage user accounts in the admin panel?
Posted:
Wed Sep 26, 2012 5:06 am
by SamEA
Allowing only the Admin to access the user registration page:
Find in ./pages/register.php:
- Code: Select all
if(in_array($language, $LANGUAGE_LIST)) {
include('./lang/'.$language.'.php');
} else {
include('./lang/'.$LANGUAGE_LIST[0].'.php');
}
Add after:
- Code: Select all
if(!$_SESSION['user'] == "admin"){
echo "Sorry only the Admin can register users.";
die();
}
Re: How to manage user accounts in the admin panel?
Posted:
Sat Feb 07, 2015 10:56 am
by ideal
Hey Sam, its not working do you think if I give FTP access you can help me out.
Re: How to manage user accounts in the admin panel?
Posted:
Sat Feb 07, 2015 9:49 pm
by SamEA
What issues are you having in implementing the above? Also, please post the full file with the above modification applied to it and I will investigate further.