Discussion Forums  >  Self Hosted Control Panels

Replies: 4    Views: 92

dmonco
Code is Art
Profile
Posts: 12
Reg: Jun 25, 2012
Mariupol
6,220
07/28/12 05:38 PM (13 years ago)

Permissions

Hi! I just installed self hosted control panel. As I see it has 2 types of users: admin and normal. Please, tell me where I can find this code. I want to add 3rd type - manager. He won't be able to create users but he will have access to all apps. Or even if you can give me ready script to add I will appreciate it.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/28/12 05:44 PM (13 years ago)
The code is in: /admin/user_add.php
 
dmonco
Code is Art
Profile
Posts: 12
Reg: Jun 25, 2012
Mariupol
6,220
like
07/29/12 03:51 AM (13 years ago)
Thanks
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/29/12 04:01 AM (13 years ago)
No problem @dmonco This might help... I've got a front end mod that you can download from: https://www.buzztouchmods.com/downloads.php?cat_id=2&download_id=37 The register.php file in the download is a modified user_add.php file, but I've stripped out the 'admin' options. It MIGHT help to compare the 2 files and give you an idea where and how to add code to add an additional user level. But because you're adding another level, there might be other files that also need to be modified. I'm not sure.
 
dmonco
Code is Art
Profile
Posts: 12
Reg: Jun 25, 2012
Mariupol
6,220
like
07/29/12 04:08 PM (13 years ago)
Are you sure you gave me the correct link to download? I only found plugin for simple menu for Android. I tried to find arrays in user_add.php This is the place where I can add a new type but where do I find arrays which create types of users and give them permissions? For example, this $objUser->infoArray['userType'] = $userType; From where does this string take users?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.