Hide memcache on the system status page if FreeSWITCH is not installed.

This commit is contained in:
markjcrane
2016-02-04 23:28:23 -07:00
parent 4385d0edde
commit b4f9a1308e

View File

@@ -372,8 +372,7 @@ $document['title'] = $text['title-sys-status'];
}
//memcache information
if (permission_exists('system_view_memcache')) {
if (if_group("system_view_memcache") && file_exists($_SERVER["PROJECT_ROOT"]."/app/sip_status/app_config.php")){
echo "<table width='100%' border='0' cellpadding='7' cellspacing='0'>\n";
echo " <tr>\n";
echo " <th class='th' colspan='2' align='left'>".$text['title-memcache']."</th>\n";
@@ -418,7 +417,6 @@ $document['title'] = $text['title-sys-status'];
echo "</table>\n";
echo "<br /><br />\n";
}
//backup