Update sip_status.php
This commit is contained in:
parent
20abd0bf8c
commit
d90ee9e4cb
|
|
@ -24,19 +24,22 @@
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
James Rose <james.o.rose@gmail.com>
|
James Rose <james.o.rose@gmail.com>
|
||||||
*/
|
*/
|
||||||
include "root.php";
|
//includes
|
||||||
require_once "resources/require.php";
|
include "root.php";
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/require.php";
|
||||||
|
require_once "resources/check_auth.php";
|
||||||
|
|
||||||
|
//check permissions
|
||||||
|
if (permission_exists('system_status_sofia_status')
|
||||||
|
|| permission_exists('system_status_sofia_status_profile')
|
||||||
|
|| if_group("superadmin")) {
|
||||||
|
//access granted
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "access denied";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
if (permission_exists('system_status_sofia_status')
|
|
||||||
|| permission_exists('system_status_sofia_status_profile')
|
|
||||||
|| if_group("superadmin")) {
|
|
||||||
//access granted
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "access denied";
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
@ -143,12 +146,7 @@ if ($_GET['a'] == "download") {
|
||||||
echo " <br><br>";
|
echo " <br><br>";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td width='50%' align='right'>\n";
|
echo "<td width='50%' align='right'>\n";
|
||||||
if ($_SESSION['cache']['method']['text'] == 'memcache') {
|
echo " <input type='button' class='btn' value='".$text['button-flush_cache']."' onclick=\"document.location.href='cmd.php?cmd=api+cache+flush';\" />\n";
|
||||||
echo " <input type='button' class='btn' value='".$text['button-flush_memcache']."' onclick=\"document.location.href='cmd.php?cmd=api+memcache+flush';\" />\n";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo " <input type='button' class='btn' value='".$text['button-flush_cache']."' onclick=\"document.location.href='cmd.php?cmd=api+cache+flush';\" />\n";
|
|
||||||
}
|
|
||||||
echo " <input type='button' class='btn' value='".$text['button-reload_acl']."' onclick=\"document.location.href='cmd.php?cmd=api+reloadacl';\" />\n";
|
echo " <input type='button' class='btn' value='".$text['button-reload_acl']."' onclick=\"document.location.href='cmd.php?cmd=api+reloadacl';\" />\n";
|
||||||
echo " <input type='button' class='btn' value='".$text['button-reload_xml']."' onclick=\"document.location.href='cmd.php?cmd=api+reloadxml';\" />\n";
|
echo " <input type='button' class='btn' value='".$text['button-reload_xml']."' onclick=\"document.location.href='cmd.php?cmd=api+reloadxml';\" />\n";
|
||||||
echo " <input type='button' class='btn' value='".$text['button-refresh']."' onclick=\"document.location.href='sip_status.php';\" />\n";
|
echo " <input type='button' class='btn' value='".$text['button-refresh']."' onclick=\"document.location.href='sip_status.php';\" />\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue