echo "\t\t\t\t\t</select>\n"; echo "\t\t\t\t</td>\n"; echo "\t\t\t\t<td>\n"; echo "\t\t\t\t\t<select name='ring_group_destinations[" . $x . "][destination_timeout]' class='formfld' style='width:55px'>\n"; $i = 5; while ($i <= 300) { if ($i == $row['destination_timeout']) { echo "\t\t\t\t<option value='{$i}' selected='selected'>{$i}</option>\n"; } else { echo "\t\t\t\t<option value='{$i}'>{$i}</option>\n"; } $i = $i + 5; } echo "\t\t\t\t\t</select>\n"; echo "\t\t\t\t</td>\n"; if (permission_exists('ring_group_prompt')) { echo "\t\t\t<td>\n"; echo "\t\t\t\t<select class='formfld' style='width: 90px;' name='ring_group_destinations[" . $x . "][destination_prompt]'>\n"; echo "\t\t\t\t\t<option value=''></option>\n"; echo "\t\t\t\t\t<option value='1' " . ($row['destination_prompt'] ? "selected='selected'" : null) . ">" . $text['label-destination_prompt_confirm'] . "</option>\n"; //echo " <option value='2'>".$text['label-destination_prompt_announce]."</option>\n"; echo "\t\t\t\t</select>\n"; echo "\t\t\t</td>\n"; } echo "\t\t\t\t<td> </td>\n"; echo "\t\t\t\t<td class='list_control_icons' style='width: 25px;'>"; if (strlen($row['ring_group_destination_uuid']) > 0) { echo "<a href='ring_group_destination_delete.php?id=" . $row['ring_group_destination_uuid'] . "&ring_group_uuid=" . $row['ring_group_uuid'] . "&a=delete' alt='delete' onclick=\"return confirm('" . $text['confirm-delete'] . "')\">{$v_link_label_delete}</a>"; } echo "\t\t\t\t</td>\n"; echo "\t\t\t</tr>\n";
License. The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> */ require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('contact_note_edit') || permission_exists('contact_note_add')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text(); $text = $language->get(); //action add or update if (isset($_REQUEST["id"])) { $action = "update"; $contact_note_uuid = check_str($_REQUEST["id"]); } else { $action = "add"; }
echo $text['description-enabled'] . "\n"; echo "</td>\n"; echo "</tr>\n"; echo "\t<tr>"; echo "\t\t<td colspan='2' align='right'>"; echo "\t\t\t<input type='hidden' name='id' value=\"{$user_uuid}\">"; echo "\t\t\t<input type='hidden' name='username_old' value=\"{$username}\">"; echo "\t\t\t<br>"; echo "\t\t\t<input type='button' class='btn' value='" . $text['button-save'] . "' onclick=\"document.getElementById('action').value = '" . $text['button-save'] . "'; if (check_password_strength(document.getElementById('password').value)) { submit_form(); }\">"; echo "\t\t</td>"; echo "\t</tr>"; echo "</table>"; echo "<br><br>"; echo "</form>"; echo "<script>\n"; //capture enter key to submit form echo "\t\$(window).keypress(function(event){\n"; echo "\t\tif (event.which == 13) { submit_form(); }\n"; echo "\t});\n"; // convert password fields to text echo "\tfunction submit_form() {\n"; echo "\t\t\$('input:password').css('visibility','hidden');\n"; echo "\t\t\$('input:password').attr({type:'text'});\n"; echo "\t\t\$('form#frm').submit();\n"; echo "\t}\n"; echo "</script>\n"; if (permission_exists('user_setting_view')) { require "user_settings.php"; } //include the footer require_once "resources/footer.php";
The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> James Rose <*****@*****.**> */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('script_editor_save')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text(); $text = $language->get(); //get the uuid from http values $clip_uuid = check_str($_GET["id"]); //delete the clip if (strlen($_GET["id"]) > 0) { $sql = "delete from v_clips "; $sql .= "where clip_uuid = '" . $clip_uuid . "' "; $prep_statement = $db->prepare(check_sql($sql));
$sql .= "'{$invoice_number}', "; $sql .= "'{$invoice_type}', "; $sql .= "'{$contact_uuid_from}', "; $sql .= "'{$contact_uuid_to}', "; $sql .= "'{$invoice_notes}', "; $sql .= "now() "; $sql .= ")"; $db->exec(check_sql($sql)); unset($sql); //set redirect $_SESSION['message'] = $text['message-add']; header("Location: invoices.php"); exit; } //if ($action == "add") if ($action == "update" && permission_exists('invoice_edit')) { $invoice_paid = check_str($_POST["invoice_paid"]); if ($invoice_paid == '1') { $invoice_paid_date = check_str($_POST["invoice_paid_date"]); $invoice_paid_method = check_str($_POST["invoice_paid_method"]); $invoice_paid_method_ref = check_str($_POST["invoice_paid_method_ref"]); } //set defaults $invoice_paid = $invoice_paid != '1' ? 'null' : $invoice_paid; $invoice_paid_date = $invoice_paid_date == '' ? 'null' : "'" . $invoice_paid_date . "'"; $invoice_paid_method = $invoice_paid_method == '' ? 'null' : "'" . $invoice_paid_method . "'"; $invoice_paid_method_ref = $invoice_paid_method_ref == '' ? 'null' : "'" . $invoice_paid_method_ref . "'"; $sql = "update v_invoices set "; $sql .= "invoice_number = '{$invoice_number}', "; $sql .= "invoice_type = '{$invoice_type}', "; $sql .= "contact_uuid_from = '{$contact_uuid_from}', ";
The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> James Rose <*****@*****.**> */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; require_once "config.php"; if (permission_exists('content_edit')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text(); $text = $language->get(); //move down more than one level at a time //update v_rss set rss_order = (rss_order+1) where rss_order > 2 or rss_order = 2 if (count($_GET) > 0) { $rss_uuid = check_str($_GET["rss_uuid"]); $rss_order = check_str($_GET["rss_order"]); $sql = "SELECT rss_order FROM v_rss "; $sql .= "where domain_uuid = '{$domain_uuid}' ";
<?php require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('fax_log_view')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support require_once "app_languages.php"; foreach ($text as $key => $value) { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //pre-populate the form if (isset($_REQUEST["id"]) && isset($_REQUEST["fax_uuid"])) { $fax_log_uuid = check_str($_REQUEST["id"]); $fax_uuid = check_str($_REQUEST["fax_uuid"]); $sql = "select * from v_fax_logs "; $sql .= "where domain_uuid = '" . $domain_uuid . "' "; $sql .= "and fax_log_uuid = '" . $fax_log_uuid . "' "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); foreach ($result as &$row) { $fax_log_uuid = $row["fax_log_uuid"]; $fax_success = $row["fax_success"]; $fax_result_code = $row["fax_result_code"]; $fax_result_text = $row["fax_result_text"];
for the specific language governing rights and limitations under the License. The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Copyright (C) 2015 All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> */ require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('device_key_delete')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text(); $text = $language->get(); //get the id if (isset($_GET["id"])) { $id = $_GET["id"]; $device_uuid = check_str($_GET["device_uuid"]); $device_profile_uuid = check_str($_GET["device_profile_uuid"]); } //delete device keys
The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; require_once "resources/paging.php"; if (permission_exists('dialplan_add') || permission_exists('inbound_route_add') || permission_exists('outbound_route_add') || permission_exists('time_condition_add')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text(); $text = $language->get(); //set the http get/post variable(s) to a php variable if (isset($_REQUEST["id"])) { $sip_profile_uuid = check_str($_REQUEST["id"]); $sip_profile_name = check_str($_REQUEST["name"]); } //get the sip profile data if (count($_GET) > 0 && $_POST["persistformvar"] != "true") {
$prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(); foreach ($result as $row3) { $participant_pin = $row3['conference_pin_number']; } unset($prep_statement, $row3); } if (permission_exists('conference_interactive_view')) { $td_onclick = "onclick=\"document.location.href='conference_interactive.php?c=" . $meeting_uuid . "'\""; } echo "<tr>\n"; echo "<td valign='top' class='" . $row_style[$c] . "' " . $td_onclick . ">"; echo permission_exists('conference_interactive_view') ? "<a href='conference_interactive.php?c=" . $meeting_uuid . "'>" . $conference_name . "</a>" : $conference_name; echo "</td>\n"; echo "<td valign='top' class='" . $row_style[$c] . "' " . $td_onclick . ">" . $participant_pin . "</td>\n"; echo "<td valign='top' class='" . $row_style[$c] . "' " . $td_onclick . ">" . $member_count . "</td>\n"; echo "<td valign='top' class='" . $row_style[$c] . "' " . $td_onclick . ">"; echo permission_exists('conference_interactive_view') ? "<a href='conference_interactive.php?c=" . $meeting_uuid . "'>" . $text['button-view'] . "</a>" : " "; echo "</td>\n"; echo "</tr>\n"; if ($c == 0) { $c = 1; } else { $c = 0; } } } echo "</table>\n"; echo "<br /><br />"; }
License. The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('call_center_queue_add') || permission_exists('call_center_queue_edit')) { //access granted } else { echo "access denied"; exit; } $cmd = $_GET['cmd']; $rdr = $_GET['rdr']; //connect to event socket $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if ($fp) { $response = event_socket_request($fp, 'api reloadxml'); $response = event_socket_request($fp, $cmd); fclose($fp); } else { $response = '';
*/ //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";
$response = fax_enqueue($fax_uuid, $fax_file, $wav_file, $mailto_address, $fax_uri, $fax_dtmf, $dial_string); } } //wait for a few seconds sleep(5); //move the generated tif (and pdf) files to the sent directory if (file_exists($dir_fax_temp . '/' . $fax_instance_uuid . ".tif")) { copy($dir_fax_temp . '/' . $fax_instance_uuid . ".tif", $dir_fax_sent . '/' . $fax_instance_uuid . ".tif"); } if (file_exists($dir_fax_temp . '/' . $fax_instance_uuid . ".pdf")) { copy($dir_fax_temp . '/' . $fax_instance_uuid . ".pdf ", $dir_fax_sent . '/' . $fax_instance_uuid . ".pdf"); } if (!$included) { //redirect the browser $_SESSION["message"] = $response; if (permission_exists('fax_active_view')) { header("Location: fax_active.php?id=" . $fax_uuid); } else { header("Location: fax_files.php?id=" . $fax_uuid . "&box=sent"); } exit; } } //end upload and send fax if (!$included) { //show the header require_once "resources/header.php"; //javascript to toggle input/select boxes, add fax numbers echo "<script language='JavaScript' type='text/javascript' src='" . PROJECT_PATH . "/resources/javascript/reset_file_input.js'></script>\n"; echo "<script language='JavaScript' type='text/javascript'>"; echo "\tfunction toggle(field) {";
$sql .= "'{$broadcast_caller_id_name}', "; $sql .= "'{$broadcast_caller_id_number}', "; $sql .= "'{$broadcast_destination_type}', "; $sql .= "'{$broadcast_phone_numbers}', "; $sql .= "'{$broadcast_avmd}', "; $sql .= "'{$broadcast_destination_data}', "; $sql .= "'{$broadcast_accountcode}' "; $sql .= ")"; $db->exec(check_sql($sql)); unset($sql); $_SESSION["message"] = $text['confirm-add']; header("Location: call_broadcast.php"); return; } //if ($action == "add") if ($action == "update" && permission_exists('call_broadcast_edit')) { $sql = "update v_call_broadcasts set "; $sql .= "broadcast_name = '{$broadcast_name}', "; $sql .= "broadcast_description = '{$broadcast_description}', "; if (strlen($broadcast_timeout) == 0) { $sql .= "broadcast_timeout = null, "; } else { $sql .= "broadcast_timeout = '{$broadcast_timeout}', "; } if (strlen($broadcast_concurrent_limit) == 0) { $sql .= "broadcast_concurrent_limit = null, "; } else { $sql .= "broadcast_concurrent_limit = '{$broadcast_concurrent_limit}', "; } //$sql .= "recording_uuid = '$recording_uuid', "; $sql .= "broadcast_caller_id_name = '{$broadcast_caller_id_name}', ";
} else { $c = 0; } } //end foreach unset($sql, $result, $row_count); } //end if results echo "<tr>\n"; echo "<td colspan='5'>\n"; echo "\t<table width='100%' cellpadding='0' cellspacing='0'>\n"; echo "\t<tr>\n"; echo "\t\t<td width='33.3%' nowrap> </td>\n"; echo "\t\t<td width='33.3%' align='center' nowrap>{$paging_controls}</td>\n"; echo "\t\t<td width='33.3%' align='right'>\n"; if (permission_exists('hunt_group_add')) { echo "\t\t\t<a href='hunt_group_edit.php' alt='" . $text['button-add'] . "'>{$v_link_label_add}</a>\n"; } echo "\t\t</td>\n"; echo "\t</tr>\n"; echo "\t</table>\n"; echo "</td>\n"; echo "</tr>\n"; if ($v_path_show) { echo "<tr>\n"; echo "<td align='left' colspan='4'>\n"; echo "<br />\n"; echo $_SESSION['switch']['scripts']['dir'] . "\n"; echo "</td>\n"; echo "</tr>\n"; }
$dir_fax = $dir_fax_sent; } if (file_exists($dir_fax . '/' . $file_name . ".pdf")) { if ($_REQUEST['box'] == 'inbox' && permission_exists('fax_inbox_view')) { echo "\t <a href=\"fax_files.php?id=" . $fax_uuid . "&a=download&type=fax_inbox&t=bin&ext=" . urlencode($fax_extension) . "&filename=" . urlencode($file_name) . ".pdf\">PDF</a>\n"; } if ($_REQUEST['box'] == 'sent' && permission_exists('fax_sent_view')) { echo "\t <a href=\"fax_files.php?id=" . $fax_uuid . "&a=download&type=fax_sent&t=bin&ext=" . urlencode($fax_extension) . "&filename=" . urlencode($file_name) . ".pdf\">PDF</a>\n"; } } else { echo " \n"; } echo " </td>\n"; echo "\t<td valign='top' class='" . $row_style[$c] . "'>" . date("F d Y H:i:s", strtotime($row['fax_date'])) . " </td>\n"; echo "\t<td style='width: 25px;' class='list_control_icons'>"; if (permission_exists('fax_file_delete')) { echo "<a href='fax_file_delete.php?id=" . $row['fax_file_uuid'] . "' alt='" . $text['button-delete'] . "' onclick=\"return confirm('" . $text['confirm-delete'] . "')\">{$v_link_label_delete}</a>"; } echo "\t</td>\n"; echo "</tr>\n"; $c = $c ? 0 : 1; } //end foreach unset($sql, $fax_files); } //end if results //show the paging controls echo "</table>"; echo "<br /><br />"; echo "<div align='center'>" . $paging_controls . "</div>\n"; echo "<br /><br />";
$sql .= "'{$field_list_hidden}', "; $sql .= "'{$field_search_by}', "; $sql .= "'{$field_column}', "; $sql .= "'{$field_required}', "; $sql .= "'{$field_order}', "; $sql .= "'{$field_order_tab}', "; $sql .= "'{$field_description}' "; $sql .= ")"; $db->exec(check_sql($sql)); unset($sql); $_SESSION["message"] = $text['message-add']; header("Location: schema_edit.php?id=" . $schema_uuid); return; } //if ($action == "add") if ($action == "update" && permission_exists('schema_edit')) { $sql = "update v_schema_fields set "; $sql .= "field_label = '{$field_label}', "; $sql .= "field_name = '{$field_name}', "; $sql .= "field_type = '{$field_type}', "; $sql .= "field_value = '{$field_value}', "; $sql .= "field_list_hidden = '{$field_list_hidden}', "; $sql .= "field_search_by = '{$field_search_by}', "; $sql .= "field_column = '{$field_column}', "; $sql .= "field_required = '{$field_required}', "; $sql .= "field_order = '{$field_order}', "; $sql .= "field_order_tab = '{$field_order_tab}', "; $sql .= "field_description = '{$field_description}' "; $sql .= "where domain_uuid = '{$domain_uuid}' "; $sql .= "and schema_uuid = '{$schema_uuid}'"; $sql .= "and schema_field_uuid = '{$schema_field_uuid}' ";
The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2015 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> */ //includes include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; //check permissions if (permission_exists('device_add')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text(); $text = $language->get(); //set the http get/post variable(s) to a php variable if (isset($_REQUEST["id"]) && is_uuid($_REQUEST["id"])) { $device_profile_uuid = $_REQUEST["id"]; } //set the default $save = true; //get the device
//record if (permission_exists('operator_panel_record') && $ext_state == 'active') { $call_identifier_record = $ext['call_uuid']; $rec_file = $_SESSION['switch']['recordings']['dir'] . "/archive/" . date("Y") . "/" . date("M") . "/" . date("d") . "/" . $call_identifier_record . ".wav"; if (file_exists($rec_file)) { $block .= "<img src='resources/images/recording.png' style='width: 12px; height: 12px; border: none; margin: 4px 0px 0px 5px; cursor: help;' title=\"" . $text['label-recording'] . "\" " . $onhover_pause_refresh . ">"; } else { $block .= "<img src='resources/images/record.png' style='width: 12px; height: 12px; border: none; margin: 4px 0px 0px 5px; cursor: pointer;' title=\"" . $text['label-record'] . "\" onclick=\"record_call('" . $call_identifier_record . "');\" " . $onhover_pause_refresh . ">"; } } //eavesdrop if (permission_exists('operator_panel_eavesdrop') && $ext_state == 'active' && sizeof($_SESSION['user']['extensions']) > 0 && !in_array($extension, $_SESSION['user']['extensions'])) { $block .= "<img src='resources/images/eavesdrop.png' style='width: 12px; height: 12px; border: none; margin: 4px 0px 0px 5px; cursor: pointer;' title='" . $text['label-eavesdrop'] . "' onclick=\"eavesdrop_call('" . $ext['destination'] . "','" . $call_identifier . "');\" " . $onhover_pause_refresh . ">"; } //kill if (permission_exists('operator_panel_kill') || in_array($extension, $_SESSION['user']['extensions'])) { if ($ext['variable_bridge_uuid'] == '' && $ext_state == 'ringing') { $call_identifier_kill = $ext['uuid']; } else { if ($dir_icon == 'outbound') { $call_identifier_kill = $ext['uuid']; } else { $call_identifier_kill = $call_identifier; } } $block .= "<img src='resources/images/kill.png' style='width: 12px; height: 12px; border: none; margin: 4px 0px 0px 5px; cursor: pointer;' title='" . $text['label-kill'] . "' onclick=\"kill_call('" . $call_identifier_kill . "');\" " . $onhover_pause_refresh . ">"; } $block .= "</span>"; //transfer if (in_array($extension, $_SESSION['user']['extensions']) && $ext_state == 'active') { $block .= "<img id='destination_control_" . $extension . "_transfer' class='destination_control' src='resources/images/keypad_transfer.png' style='width: 12px; height: 12px; border: none; margin: 4px 0px 0px 5px; cursor: pointer;' onclick=\"toggle_destination('" . $extension . "', 'transfer');\" " . $onhover_pause_refresh . ">";
The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> Luis Daniel Lucio Quiroz <*****@*****.**> */ require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('contact_address_edit') || permission_exists('contact_address_add')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text(); $text = $language->get(); //action add or update if (isset($_REQUEST["id"])) { $action = "update"; $contact_address_uuid = check_str($_REQUEST["id"]); } else { $action = "add"; }
License. The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('menu_edit')) { //access granted } else { echo "access denied"; return; } //add multi-lingual support $language = new text(); $text = $language->get(); //move down more than one level at a time //update v_menu_items set menu_item_order = (menu_item_order+1) where menu_item_order > 2 or menu_item_order = 2 if (count($_GET) > 0) { $menu_item_id = check_str($_GET["menu_item_id"]); $menu_item_order = check_str($_GET["menu_item_order"]); $menu_parent_guid = check_str($_GET["menu_parent_guid"]); $sql = "SELECT menu_item_order FROM v_menu_items ";
$sql .= "accountcode, "; if (file_exists($_SERVER['DOCUMENT_ROOT'] . PROJECT_PATH . "/app/billing/app_config.php")) { $sql .= "call_sell, "; } if (permission_exists("xml_cdr_pdd")) { $sql .= "pdd_ms, "; } if (permission_exists("xml_cdr_mos")) { $sql .= "rtp_audio_in_mos, "; } $sql .= "(answer_epoch - start_epoch) as tta "; if ($_GET['showall'] && permission_exists('xml_cdr_all')) { $sql .= ", domain_name "; } $sql .= "from v_xml_cdr "; if ($_GET['showall'] && permission_exists('xml_cdr_all')) { if ($sql_where) { $sql .= "where "; } } else { $sql .= "where domain_uuid = '" . $domain_uuid . "' "; } $sql .= $sql_where; if (strlen($order_by) > 0) { $sql .= " order by " . $order_by . " " . $order . " "; } if ($rows_per_page == 0) { $sql .= " limit " . $_SESSION['cdr']['limit']['numeric'] . " offset 0 "; } else { $sql .= " limit " . $rows_per_page . " offset " . $offset . " "; }
echo "\t<input type='hidden' name='fax_extension' value=\"{$fax_extension}\">\n"; echo "\t<input type='hidden' name='fax_destination_number' value=\"{$fax_destination_number}\">\n"; echo "\t<input type='hidden' name='fax_caller_id_name' value=\"{$fax_caller_id_name}\">\n"; echo "\t<input type='hidden' name='fax_caller_id_number' value=\"{$fax_caller_id_number}\">\n"; echo "\t<input type='hidden' name='fax_forward_number' value=\"" . (is_numeric($fax_forward_number) ? format_phone($fax_forward_number) : $fax_forward_number) . "\">\n"; echo "\t<input type='hidden' name='fax_description' value=\"{$fax_description}\">\n"; } echo "\t\t<input type='hidden' name='fax_uuid' value='{$fax_uuid}'>\n"; echo "\t\t<input type='hidden' name='dialplan_uuid' value='{$dialplan_uuid}'>\n"; } echo "\t\t\t<input type='submit' name='submit' class='btn' value='" . $text['button-save'] . "'>\n"; echo "\t\t</td>\n"; echo "\t</tr>"; echo "</table>"; echo "<br />\n"; if (permission_exists('fax_extension_advanced') && function_exists("imap_open") && file_exists("fax_files_remote.php")) { echo "<div id='advanced_email_connection' " . ($fax_email_connection_host == '' ? "style='display: none;'" : null) . ">\n"; echo "<b>" . $text['label-advanced_settings'] . "</b><br><br>"; echo $text['description-advanced_settings'] . "<br><br>"; echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n"; echo "\t<tr>"; echo "\t\t<td width='50%' valign='top'>"; echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n"; echo "<tr>"; echo "<td colspan='2'>"; echo "\t<span style='font-weight: bold; color: #000;'>" . $text['label-email_account_connection'] . "</span><br><br>"; echo "</td>"; echo "</tr>\n"; echo "<tr>\n"; echo "<td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "\t" . $text['label-email_connection_type'] . "\n";
The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> James Rose <*****@*****.**> */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('script_editor_view')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text(); $text = $language->get(); $title = $text['title-manage-clips']; require_once "header.php"; echo "<table cellpadding='0' cellspacing='0' border='0' style='height: 100%; width: 100%;'>\n"; echo "<form method='post' name='frm' action=''>"; echo "<tr><td colspan='2' style='padding-bottom: 3px;'><div id='selectedclip'>" . $text['label-selected-clip'] . " <input type='text' name='clip_name' id='clip_name' value=''><input type='hidden' name='clip_uuid' id='clip_uuid' value=''></div></td></tr>\n"; echo "</form>"; echo "<tr>\n";
License. The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> */ 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"));
<table cellpadding='0' cellspacing='0' border='0' style="background-image: url('<!--{project_path}-->/themes/accessible/images/background_head.png'); color: #FFFFFF; font-size: 20px;" width='100%'> <tr> <td align='center' colspan='2' style='' width='100%' height='4'> </td> </tr> <tr> <td></td> <td align='left' valign='middle' nowrap> <table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='50%'> <a href='/<!--{project_path}-->'><img src='<!--{project_path}-->/themes/accessible/images/logo.png' /></a> </td> <td width='50%' class='' align='right' valign='middle'> <?php if (permission_exists("domain_select") && count($_SESSION['domains']) > 1) { //$tmp_style = "style=\"opacity:0.7;filter:alpha(opacity=70)\" "; //$tmp_style .= "onmouseover=\"this.style.opacity=1;this.filters.alpha.opacity=90\" "; //$tmp_style .= "onmouseout=\"this.style.opacity=0.7;this.filters.alpha.opacity=70\" "; $tmp_style = "style=\"opacity:0.7;\" "; $tmp_style .= "onmouseover=\"this.style.opacity=1;\" "; $tmp_style .= "onmouseout=\"this.style.opacity=0.7;\" "; echo "\t\t<select id='domain_uuid' name='domain_uuid' class='formfld' onchange=\"window.location='" . PROJECT_PATH . "/core/domain_settings/domains.php?domain_uuid='+this.value+'&domain_change=true';\" {$tmp_style}>\n"; foreach ($_SESSION['domains'] as $row) { if ($row['domain_uuid'] == $_SESSION['domain_uuid']) { echo "\t<option value='" . $row['domain_uuid'] . "' selected='selected'>" . $row['domain_name'] . "</option>\n"; } else { echo "\t<option value='" . $row['domain_uuid'] . "'>" . $row['domain_name'] . "</option>\n"; } } echo "\t</select>\n";
The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> */ include "root.php"; require "resources/require.php"; require_once "resources/check_auth.php"; require_once "app_languages.php"; if (permission_exists('voicemail_delete')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text(); $text = $language->get(); //get the http get values if (count($_GET) > 0) { $uuid = $_GET["uuid"]; $id = $_GET["id"]; } //get the domain from the domains array $domain_name = $_SESSION['domains'][$domain_uuid]['domain_name'];
License. The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> */ require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('conference_delete')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text(); $text = $language->get(); //get the id if (count($_GET) > 0) { $id = check_str($_GET["id"]); } //require the id if (strlen($id) > 0) { //get the dialplan uuid
ob_end_clean(); } break; case 'switch': if (permission_exists('exec_switch')) { $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if ($fp) { $result = htmlentities(event_socket_request($fp, 'api ' . $cmd)); } } break; } if ($result != '') { echo "<span id='response'>"; echo "<b>" . $text['label-response'] . "</b>\n"; echo "<br /><br />\n"; echo $handler == 'switch' ? "<textarea style='width: 100%; height: 450px; font-family: monospace; padding: 15px;' wrap='off'>" . $result . "</textarea>\n" : "<pre>" . $result . "</pre>"; echo "</span>"; } } } //sql result if (permission_exists('exec_sql')) { echo "<span id='sql_response' style='display: none;'>"; echo "<b>" . $text['label-results'] . "</b>\n"; echo "<br /><br />\n"; echo "<iframe name='iframe' id='iframe' style='width: calc(100% - 3px); height: 500px; background-color: #fff; border: 1px solid #c0c0c0;'></iframe>\n"; echo "</span>"; } //show the footer require_once "resources/footer.php";
License. The Original Code is FusionPBX The Initial Developer of the Original Code is Mark J Crane <*****@*****.**> Portions created by the Initial Developer are Copyright (C) 2008-2015 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <*****@*****.**> */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('menu_delete')) { //access granted } else { echo "access denied"; return; } //add multi-lingual support $language = new text(); $text = $language->get(); if (count($_GET) > 0) { //clear the menu session so it will rebuild with the update $_SESSION["menu"] = ""; //get the menu uuid $menu_uuid = check_str($_GET["id"]); $menu_item_uuid = check_str($_GET["menu_item_uuid"]); //delete the item in the menu