本文整理汇总了PHP中if_group函数的典型用法代码示例。如果您正苦于以下问题:PHP if_group函数的具体用法?PHP if_group怎么用?PHP if_group使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了if_group函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
echo "</tr>\n";
if (if_group("superadmin")) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " " . $text['label-accountcode'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
if ($action == "add") {
$accountcode = $_SESSION['domain_name'];
}
echo " <input class='formfld' type='text' name='broadcast_accountcode' maxlength='255' value=\"{$broadcast_accountcode}\">\n";
echo "<br />\n";
echo $text['description-accountcode'] . "\n";
echo "</td>\n";
echo "</tr>\n";
} elseif (if_group("admin") && file_exists($_SERVER['DOCUMENT_ROOT'] . PROJECT_PATH . "/app/billing/app_config.php")) {
$sql_accountcode = "SELECT type_value FROM v_billings WHERE domain_uuid = '" . $_SESSION['domain_uuid'] . "'";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " " . $text['label-accountcode'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select name='broadcast_accountcode' id='broadcast_accountcode' class='formfld'>\n";
$prep_statement_accountcode = $db->prepare(check_sql($sql_accountcode));
$prep_statement_accountcode->execute();
$result_accountcode = $prep_statement_accountcode->fetchAll(PDO::FETCH_NAMED);
foreach ($result_accountcode as &$row_accountcode) {
$selected = '';
if ($action == "add" && $row_accountcode['type_value'] == $_SESSION['domain_name']) {
$selected = 'selected="selected"';
} elseif ($row_accountcode['type_value'] == $accountcode) {
示例2: ucwords
}
echo "<strong style='color: black;'>" . ucwords($_REQUEST['group']) . "</strong>";
echo "<br><br>";
} else {
if (sizeof($user_extensions) > 0) {
echo "<br>";
echo "<strong style='color: black;'>" . $text['label-other_extensions'] . "</strong>";
echo "<br><br>";
}
}
if (sizeof($other_extensions) > 0) {
echo "<table width='100%'><tr><td>";
foreach ($other_extensions as $ext_block) {
echo $ext_block;
}
echo "</td></tr></table>";
} else {
echo $text['label-no_extensions_found'];
}
echo "<br><br>";
if (if_group("superadmin") && isset($_GET['debug'])) {
echo '$activity<br>';
echo "<textarea style='width: 100%; height: 600px; overflow: scroll;' onfocus='refresh_stop();' onblur='refresh_start();'>";
print_r($activity);
echo "</textarea>";
echo "<br><br>";
echo '$_SESSION<br>';
echo "<textarea style='width: 100%; height: 600px; overflow: scroll;' onfocus='refresh_stop();' onblur='refresh_start();'>";
print_r($_SESSION);
echo "</textarea>";
}
示例3: Copyright
License.
The Original Code is FusionPBX
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2012
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('get_call_details') || if_group("superadmin")) {
//access granted
} else {
echo "access denied";
exit;
}
//get_call_details
//get the call details for all calls or all active calls
//usage
//http://x.x.x.x/app/get_call_details/index.php?dest=101&username=example&password=1234
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if (!$fp) {
$msg['error']['message'] = "Connection to Event Socket failed.";
echo json_encode($row);
}
$response = trim(event_socket_request($fp, "api show calls"));
示例4: elseif
echo "</tr>\n";
if (if_group("superadmin")) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " " . $text['label-accountcode'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
if ($action == "add") {
$accountcode = $_SESSION['domain_name'];
}
echo " <input class='formfld' type='text' name='broadcast_accountcode' maxlength='255' value=\"{$broadcast_accountcode}\">\n";
echo "<br />\n";
echo $text['description-accountcode'] . "\n";
echo "</td>\n";
echo "</tr>\n";
} elseif (if_group("admin") && file_exists($_SERVER["PROJECT_ROOT"] . "/app/billing/app_config.php")) {
$sql_accountcode = "SELECT type_value FROM v_billings WHERE domain_uuid = '" . $_SESSION['domain_uuid'] . "'";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " " . $text['label-accountcode'] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select name='broadcast_accountcode' id='broadcast_accountcode' class='formfld'>\n";
$prep_statement_accountcode = $db->prepare(check_sql($sql_accountcode));
$prep_statement_accountcode->execute();
$result_accountcode = $prep_statement_accountcode->fetchAll(PDO::FETCH_NAMED);
foreach ($result_accountcode as &$row_accountcode) {
$selected = '';
if ($action == "add" && $row_accountcode['type_value'] == $_SESSION['domain_name']) {
$selected = 'selected="selected"';
} elseif ($row_accountcode['type_value'] == $accountcode) {
示例5: str_replace
*/
//check the permission
if (defined('STDIN')) {
$document_root = str_replace("\\", "/", $_SERVER["PHP_SELF"]);
preg_match("/^(.*)\\/core\\/.*\$/", $document_root, $matches);
$document_root = $matches[1];
set_include_path($document_root);
require_once "resources/require.php";
$_SERVER["DOCUMENT_ROOT"] = $document_root;
$format = 'text';
//html, text
} else {
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('upgrade_schema') || permission_exists('upgrade_svn') || if_group("superadmin")) {
//echo "access granted";
} else {
echo "access denied";
exit;
}
$format = 'html';
}
require_once "resources/classes/text.php";
//add multi-lingual support
$language = new text();
$text = $language->get();
//show the title
if ($format == 'text') {
echo "\n";
echo $text['label-upgrade'] . "\n";
示例6: Copyright
The Original Code is FusionPBX
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2012
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
James Rose <james.o.rose@gmail.com>
*/
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('setting_view') || if_group("superadmin")) {
//access granted
} else {
echo "access denied";
exit;
}
//add multi-lingual support
$language = new text();
$text = $language->get();
//get the number of rows in v_extensions
$sql = " select count(*) as num_rows from v_settings ";
$prep_statement = $db->prepare(check_sql($sql));
$num_rows = 0;
if ($prep_statement) {
$prep_statement->execute();
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
示例7: th_order_by
echo th_order_by('domain_name', $text['label-domain'], $order_by, $order, '', '', $param);
}
echo th_order_by('username', $text['label-username'], $order_by, $order);
echo "<th>" . $text['label-groups'] . "</th>\n";
echo th_order_by('user_enabled', $text['label-enabled'], $order_by, $order, '', '', $param);
echo "<td class='list_control_icons'>";
if (permission_exists('user_add')) {
if ($_SESSION['limit']['users']['numeric'] == '' || $_SESSION['limit']['users']['numeric'] != '' && $total_users < $_SESSION['limit']['users']['numeric']) {
echo "<a href='signup.php' alt='" . $text['button-add'] . "'>" . $v_link_label_add . "</a>";
}
}
echo "</td>\n";
echo "</tr>\n";
if ($user_count > 0) {
foreach ($users as $row) {
if (if_superadmin($superadmins, $row['user_uuid']) && !if_group("superadmin")) {
//hide
} else {
$tr_link = permission_exists('user_edit') ? "href='usersupdate.php?id=" . $row['user_uuid'] . "'" : null;
echo "<tr " . $tr_link . ">\n";
if (permission_exists('user_all') && $_GET['showall'] == 'true') {
echo "\t<td valign='top' class='" . $row_style[$c] . "'>" . $_SESSION['domains'][$row['domain_uuid']]['domain_name'] . "</td>\n";
}
echo "\t<td valign='top' class='" . $row_style[$c] . "'>";
if (permission_exists('user_edit')) {
echo "<a href='usersupdate.php?id=" . $row['user_uuid'] . "'>" . $row['username'] . "</a>";
} else {
echo $row['username'];
}
echo "\t</td>\n";
echo "\t<td valign='top' class='" . $row_style[$c] . "'>";
示例8: sound_select_list
function sound_select_list($var, $name, $description_name, $load_sound = false)
{
global $text, $recordings, $db;
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo "\t" . $text['label-' . $description_name] . "\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "<select name='{$name}' class='formfld' " . (if_group("superadmin") ? "onchange='changeToInput(this);'" : null) . ">\n";
echo "\t<option value=''></option>\n";
//misc optgroup
if (if_group("superadmin")) {
echo "<optgroup label=" . $text['miscellaneous'] . ">\n";
echo "\t<option value='say:'>say:</option>\n";
echo "\t<option value='tone_stream:'>tone_stream:</option>\n";
echo "</optgroup>\n";
}
//recordings
$tmp_selected = false;
if (count($recordings) > 0) {
echo "<optgroup label=" . $text['recordings'] . ">\n";
foreach ($recordings as &$row) {
$recording_name = $row["recording_name"];
$recording_filename = $row["recording_filename"];
if ($var == $_SESSION['switch']['recordings']['dir'] . "/" . $_SESSION['domain_name'] . "/" . $recording_filename && strlen($var) > 0) {
$tmp_selected = true;
echo "\t<option value='" . $_SESSION['switch']['recordings']['dir'] . "/" . $_SESSION['domain_name'] . "/" . $recording_filename . "' selected='selected'>" . $recording_name . "</option>\n";
} else {
if ($var == $recording_filename && strlen($var) > 0) {
$tmp_selected = true;
echo "\t<option value='" . $recording_filename . "' selected='selected'>" . $recording_name . "</option>\n";
} else {
echo "\t<option value='" . $recording_filename . "'>" . $recording_name . "</option>\n";
}
}
}
echo "</optgroup>\n";
}
//phrases
$sql = "select * from v_phrases where domain_uuid = '" . $domain_uuid . "' ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
if (count($result) > 0) {
echo "<optgroup label='Phrases'>\n";
foreach ($result as &$row) {
if ($var == "phrase:" . $row["phrase_uuid"]) {
$tmp_selected = true;
echo "\t<option value='phrase:" . $row["phrase_uuid"] . "' selected='selected'>" . $row["phrase_name"] . "</option>\n";
} else {
echo "\t<option value='phrase:" . $row["phrase_uuid"] . "'>" . $row["phrase_name"] . "</option>\n";
}
}
unset($prep_statement);
echo "</optgroup>\n";
}
//sounds
if ($load_sound) {
$file = new file();
$sound_files = $file->sounds();
if (is_array($sound_files)) {
echo "<optgroup label=" . $text["sounds"] . ">\n";
foreach ($sound_files as $value) {
if (strlen($value) > 0) {
if (substr($var, 0, 71) == "\$\${sounds_dir}/\${default_language}/\${default_dialect}/\${default_voice}/") {
$var = substr($var, 71);
}
if ($var == $value) {
$tmp_selected = true;
echo "\t<option value='{$value}' selected='selected'>{$value}</option>\n";
} else {
echo "\t<option value='{$value}'>{$value}</option>\n";
}
}
}
echo "</optgroup>\n";
}
}
//select
if (if_group("superadmin")) {
if (!$tmp_selected && strlen($var) > 0) {
echo "<optgroup label='Selected'>\n";
if (file_exists($_SESSION['switch']['recordings']['dir'] . "/" . $_SESSION['domain_name'] . "/" . $var)) {
echo "\t<option value='" . $_SESSION['switch']['recordings']['dir'] . "/" . $_SESSION['domain_name'] . "/" . $var . "' selected='selected'>" . $var . "</option>\n";
} else {
if (substr($var, -3) == "wav" || substr($var, -3) == "mp3") {
echo "\t<option value='" . $var . "' selected='selected'>" . $var . "</option>\n";
} else {
echo "\t<option value='" . $var . "' selected='selected'>" . $var . "</option>\n";
}
}
echo "</optgroup>\n";
}
unset($tmp_selected);
}
echo "\t</select>\n";
echo "\t<br />\n";
echo $text['description-' . $description_name] . "\n";
echo "</td>\n";
echo "</tr>\n";
//.........这里部分代码省略.........
示例9: Copyright
The Original Code is FusionPBX
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2015
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
James Rose <james.o.rose@gmail.com>
*/
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
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
$language = new text();
$text = $language->get();
//define variables
$c = 0;
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
if ($_GET['a'] == "download") {
if ($_GET['t'] == "cdrcsv") {
$tmp = $_SESSION['switch']['log']['dir'] . '/cdr-csv/';
示例10: switch_select_destination
function switch_select_destination($select_type, $select_label, $select_name, $select_value, $select_style, $action = '', $onchange = '', $text_append = ' ...')
{
//select_type can be ivr, dialplan, call_center_contact or bridge
global $text, $config, $db, $domain_uuid;
//remove special characters from the name
$select_id = str_replace("]", "", $select_name);
$select_id = str_replace("[", "_", $select_id);
if (if_group("superadmin")) {
echo "<script>\n";
echo "var Objs;\n";
echo "\n";
echo "function changeToInput" . $select_id . "(obj){\n";
echo "\ttb=document.createElement('INPUT');\n";
echo "\ttb.type='text';\n";
echo "\ttb.name=obj.name;\n";
echo "\ttb.className='formfld';\n";
echo "\ttb.setAttribute('id', '" . $select_id . "');\n";
echo "\ttb.setAttribute('style', '" . $select_style . "');\n";
if ($onchange != '') {
echo "\ttb.setAttribute('onchange', \"" . $onchange . "\");\n";
echo "\ttb.setAttribute('onkeyup', \"" . $onchange . "\");\n";
}
echo "\ttb.value=obj.options[obj.selectedIndex].value;\n";
echo "\tdocument.getElementById('btn_select_to_input_" . $select_id . "').style.visibility = 'hidden';\n";
echo "\ttbb=document.createElement('INPUT');\n";
echo "\ttbb.setAttribute('class', 'btn');\n";
echo "\ttbb.setAttribute('style', 'margin-left: 4px;');\n";
echo "\ttbb.type='button';\n";
echo "\ttbb.value=\$('<div />').html('◁').text();\n";
echo "\ttbb.objs=[obj,tb,tbb];\n";
echo "\ttbb.onclick=function(){ Replace" . $select_id . "(this.objs); }\n";
echo "\tobj.parentNode.insertBefore(tb,obj);\n";
echo "\tobj.parentNode.insertBefore(tbb,obj);\n";
echo "\tobj.parentNode.removeChild(obj);\n";
echo "\tReplace" . $select_id . "(this.objs);\n";
echo "}\n";
echo "\n";
echo "function Replace" . $select_id . "(obj){\n";
echo "\tobj[2].parentNode.insertBefore(obj[0],obj[2]);\n";
echo "\tobj[0].parentNode.removeChild(obj[1]);\n";
echo "\tobj[0].parentNode.removeChild(obj[2]);\n";
echo "\tdocument.getElementById('btn_select_to_input_" . $select_id . "').style.visibility = 'visible';\n";
if ($onchange != '') {
echo "\t" . $onchange . ";\n";
}
echo "}\n";
echo "</script>\n";
echo "\n";
}
//default selection found to false
$selection_found = false;
echo "\t<select name='" . $select_name . "' id='" . $select_id . "' class='formfld' style='" . $select_style . "' onchange=\"" . $onchange . "\">\n";
//display a default select label (specified explicitly or from the language file) if no selected value is passed in
if ($select_value == '' && $select_label != '' && $select_label != ' ') {
$options[] = "<option value=''>" . $select_label . "</option>";
$options[] = "<option value='' disabled='disabled'></option>";
} else {
if ($select_value == '' && $select_label == '' && $text['label-select_destination'] != '') {
$options[] = "<option value=''>" . $text['label-select_destination'] . "</option>";
$options[] = "<option value='' disabled='disabled'></option>";
} else {
$options[] = "<option value=''></option>";
}
}
//call center queues
if (file_exists($_SERVER['DOCUMENT_ROOT'] . PROJECT_PATH . "/app/call_center/app_config.php")) {
if ($select_type == "dialplan" || $select_type == "ivr") {
$sql = "select * from v_call_center_queues ";
$sql .= "where domain_uuid = '" . $domain_uuid . "' ";
$sql .= "order by queue_name asc ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
if (count($result) > 0) {
$options[] = "<optgroup label='Call Center'>";
$previous_call_center_name = "";
foreach ($result as &$row) {
$queue_name = $row["queue_name"];
$queue_name = str_replace('_${domain_name}@default', '', $queue_name);
$queue_extension = $row["queue_extension"];
if ($previous_call_center_name != $queue_name) {
$selected = $select_value == "transfer:" . $queue_extension . " XML " . $_SESSION["context"] || $select_value == "menu-exec-app:transfer " . $queue_extension . " XML " . $_SESSION["context"] ? true : false;
if ($select_type == "ivr") {
$options[] = "<option value='menu-exec-app:transfer " . $queue_extension . " XML " . $_SESSION["context"] . "' " . ($selected ? "selected='selected'" : null) . ">" . $queue_extension . " " . $queue_name . "</option>";
}
if ($select_type == "dialplan") {
$options[] = "<option value='transfer:" . $queue_extension . " XML " . $_SESSION["context"] . "' " . ($selected ? "selected='selected'" : null) . ">" . $queue_extension . " " . $queue_name . "</option>";
}
if ($selected) {
$selection_found = true;
}
$previous_call_center_name = $queue_name;
}
}
$options[] = "</optgroup>";
}
unset($prep_statement);
}
}
//call flows
//.........这里部分代码省略.........
示例11: Copyright
License.
The Original Code is FusionPBX
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2012
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (if_group('superadmin')) {
//access granted
} else {
echo "access denied";
exit;
}
//add multi-lingual support
$language = new text();
$text = $language->get();
// retrieve software uuid
$sql = "select software_uuid, software_url, software_version from v_software";
$prep_statement = $db->prepare($sql);
if ($prep_statement) {
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
foreach ($result as &$row) {
示例12: unset
$sql .= "default_setting_category = 'login' ";
$sql .= "and default_setting_subcategory = 'message' ";
$sql .= "and default_setting_name = 'text' ";
$db->exec(check_sql($sql));
unset($sql);
}
//add multi-lingual support
$language = new text();
$text = $language->get();
//load header
require_once "resources/header.php";
$document['title'] = $text['title-user_dashboard'];
echo "<b>" . $text['header-user_dashboard'] . "</b><br>";
echo $text['description-user_dashboard'];
//display login message
if (if_group("superadmin") && $_SESSION['login']['message']['text'] != '') {
echo "<br /><br /><br />";
echo "<div class='login_message' width='100%'><b>" . $text['login-message_attention'] . "</b> " . $_SESSION['login']['message']['text'] . " (<a href='?msg=dismiss'>" . $text['login-message_dismiss'] . "</a>)</div>";
}
//start the user table
echo "<br />";
echo "<br />";
echo "<table width=\"100%\" border=\"0\" cellpadding=\"7\" cellspacing=\"0\">\n";
echo "<tr>\n";
echo "\t<th class='th' colspan='2' align='left'>" . $text['title-user-settings'] . " </th>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "\t<td width='20%' class=\"vncell\" style='text-align: left;'>\n";
echo "\t\t" . $text['label-username'] . "\n";
echo "\t</td>\n";
echo "\t<td class=\"row_style1\">\n";
示例13:
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('group_member_delete') || if_group("superadmin")) {
//access allowed
} else {
echo "access denied";
return;
}
//requires a superadmin to delete superadmin group
if (!if_group("superadmin") && $_GET["group_name"] == "superadmin") {
echo "access denied";
return;
}
//get the http values and set them as variables
$group_name = check_str($_GET["group_name"]);
$user_uuid = check_str($_GET["user_uuid"]);
$group_uuid = check_str($_GET["group_uuid"]);
//delete the group membership
$sql_delete = "delete from v_group_users ";
$sql_delete .= "where user_uuid = '" . $user_uuid . "' ";
$sql_delete .= "and group_uuid = '" . $group_uuid . "' ";
if (!$db->exec($sql_delete)) {
$info = $db->errorInfo();
echo "<pre>" . print_r($info, true) . "</pre>";
exit;
示例14: Copyright
License.
The Original Code is FusionPBX
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2014
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists("device_key_add") || permission_exists("device_key_edit") || if_group("superadmin")) {
//access granted
} else {
echo "access denied";
exit;
}
//add multi-lingual support
$language = new text();
$text = $language->get();
//set the variables
$cmd = check_str($_GET['cmd']);
$rdr = check_str($_GET['rdr']);
$profile = check_str($_GET['profile']);
$domain = check_str($_GET['domain']);
$show = check_str($_GET['show']);
$user = check_str($_GET['user']);
示例15: Copyright
The Original Code is FusionPBX
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2016
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
require_once "root.php";
require_once "resources/require.php";
//check permisions
require_once "resources/check_auth.php";
if (permission_exists('group_permissions') || if_group("superadmin")) {
//access granted
} else {
echo "access denied";
exit;
}
//add multi-lingual support
$language = new text();
$text = $language->get();
//include the header
$document['title'] = $text['title-group_permissions'];
require_once "resources/header.php";
//include paging
require_once "resources/paging.php";
//get the list of installed apps from the core and mod directories
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");