Hello,
I made a WHM plugin I placed into /usr/local/cpanel/whostmgr/docroot/cgi/mywhmplugin.php with the following code:
it works fine with root access but when logged in as a reseller:
Can you help understand what may cause this issue under reseller access?
Does the file /mywhmplugin/index.php also needs an ACL statement somewhere ?
Thx for helping,
Stephane
I made a WHM plugin I placed into /usr/local/cpanel/whostmgr/docroot/cgi/mywhmplugin.php with the following code:
PHP:
<?PHP
#ACLS:edit-dns
#WHMADDON:mywhmplugin:My WHM Plugin
header("Location: ".$_ENV{'cp_security_token'}."/mywhmplugin/index.php");
?>
- I can see "My WHM Plugin" link in plugins section
- When clicking the "My WHM Plugin" link it shows a blank page
- HTTP headers shows a 200 status code instead of redirecting to /mywhmplugin/index.php as it should do (header() function above)
Can you help understand what may cause this issue under reseller access?
Does the file /mywhmplugin/index.php also needs an ACL statement somewhere ?
Thx for helping,
Stephane