Softaculous


Topic : Full Adminpanel in WHMCS


Posted By: wolke on December 22, 2017, 2:24 am
Hi,

when creating vm with "managed by admin", the whmcs module for enduser is restricted to a few functions. Unfortunately, admins can´t manage the vm too using the adminarea of WHMCS. That does not make any sense.

So it would be a good idea to not restrict the admin part of the whmcs module.


Posted By: Joshua2504 on December 27, 2017, 10:30 pm | Post: 1
I was wondered about this too, it seems to use the enduser view (/ui/index.html)

-----------------------
Joshua

TREUDLER - High-Performance KVM NVMe Virtual Servers in 10 locations world-wide

Posted By: wolke on December 28, 2017, 8:59 am | Post: 2
yes, that´s true. and with further restrictions. Admins can´t cook recipes for example. (Not even from the controlpanel itself)

Posted By: Joshua2504 on December 29, 2017, 9:58 pm | Post: 3
Just use the Virtualizor Admin Interface with ACL :)

That's what we do at the moment.

-----------------------
Joshua

TREUDLER - High-Performance KVM NVMe Virtual Servers in 10 locations world-wide

Posted By: wolke on December 30, 2017, 9:38 am | Post: 4
Just for testing (as I don´t want to keep up with regular changes of the module)

Use at own risk...

1. Copy ui subfolder to ui2

2. in virtualizor.php change

 
PHP Code

 $var['theme'] = $modules_url.'/virtualizor/ui/';
   
$var['theme_path'] = dirname(__FILE__).'/ui/'



into

 
PHP Code

 if ($_SESSION['adminid']<>""){
            
$var['theme'] = $modules_url.'/virtualizor/ui2/';
            
$var['theme_path'] = dirname(__FILE__).'/ui2/';
       
        }else{   
             
//enduserui       
            
$var['theme'] = $modules_url.'/virtualizor/ui/';
            
$var['theme_path'] = dirname(__FILE__).'/ui/';
        } 




3. in ui2/js2/virtualizor.js remove all occurance of

PHP Code

 && empty(N['info']['vps']['admin_managed']) 



EXACT this string. It´s part of a longer command and occurs 17 times.



Posted By: Joshua2504 on December 30, 2017, 11:48 pm | Post: 5
Hi,

works perfectly. Sadly we customized the UI a lot, so I guess I gotta re-upload the UI to the ui2 folder.

Thanks for that, you're pro!

-----------------------
Joshua

TREUDLER - High-Performance KVM NVMe Virtual Servers in 10 locations world-wide

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.