chris_j Posted November 1, 2007 Share Posted November 1, 2007 Hi, Is there a way to make the serverstatus.php private, so that it's not viewable publicly? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
uberhost Posted November 1, 2007 Share Posted November 1, 2007 /whmcs/templates/TEMPLATE-NAME/serverstatus.tpl {if $loggedin} {$LANG.serverstatusheadingtext}</p> <table class="clientareatable" align="center" cellspacing="1"> <tr class="clientareatableheading"> <td>{$LANG.servername}</td> <td>HTTP</td> <td>FTP</td> <td>POP3</td> <td>{$LANG.serverstatusphpinfo}</td> <td>{$LANG.serverstatusserverload}</td> <td>{$LANG.serverstatusuptime}</td> </tr> {foreach key=num item=server from=$servers} <tr class="clientareatableactive"> <td>{$server.name}</td> <td>{get_port_status num="$num" port="80"}</td> <td>{get_port_status num="$num" port="21"}</td> <td>{get_port_status num="$num" port="110"}</td> <td>[url="{$server.phpinfourl}"]{$LANG.serverstatusphpinfo}[/url]</td> <td>{$server.serverload}</td> <td>{$server.uptime}</td> </tr> {foreachelse} <tr class="clientareatableactive"> <td colspan="7">{$LANG.serverstatusnoservers}</td> </tr> {/foreach} </table> {else} Please [url="clientarea.php"]login to your account[/url] to use this function.</p> {/if} 0 Quote Link to comment Share on other sites More sharing options...
chris_j Posted November 1, 2007 Author Share Posted November 1, 2007 Thanks a lot for the helpful tip. But, I meant to give access to ADMINS ONLY & not for the customer logins. Seems like "$loggedin" flag is for the client login ONLY...so, how can I get the flag for ADMIN login? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
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.