Junio Cristian Posted April 7 Posted April 7 Olá, bom dia galera. Gostaria de desabilitar, pois vendo sites por assinatura e não gostaria de permitir login no plesk. Utilizo revenda, então teria que ser algo no whmcs mesmo, pois tenho os minimos de funções no painel plesk. Gostaria de um codigo, hook ou algo do tipo, conseguem me ajudar? 0 Quote
Jefferson Posted April 7 Posted April 7 Teste com este Hook: ocultarcpanel.php <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { if (!is_null($primarySidebar->getChild('Service Details Actions'))) { $primarySidebar->getChild('Service Details Actions') ->removeChild('Login to cPanel'); $primarySidebar->getChild('Service Details Actions') ->removeChild('Login to Webmail'); $primarySidebar->getChild('Service Details Actions') ->removeChild('Change Password'); } }); add_hook( 'ClientAreaHeadOutput', 1, function($vars) { $netstream_css = array(); $netstream_css['netstream_css'] ='<style type="text/css">#cPanelQuickShortcutsPanel, #cPanelQuickEmailPanel {display:none !important}</style>'; return $netstream_css['netstream_css']; }); 1 Quote █ DDR Host - https://www.ddrhost.com.br █ Hospedagem de Sites, Revenda de Hospedagem, Servidores Virtuais, Registro de Domínios
adrianosan Posted April 8 Posted April 8 Lembrando que estará só ocultando, se alguém souber o link ainda acessará. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.