From 06e012eaa925d7866e7830022c290078dd119e72 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 1 Jan 2013 23:51:36 +0000 Subject: [PATCH] Move the old voicemail messages to the dev/apps directory. --- app/voicemail_msgs/app_config.php | 55 --- app/voicemail_msgs/app_languages.php | 111 ----- app/voicemail_msgs/root.php | 50 -- app/voicemail_msgs/voicemail_msgs.php | 300 ------------ app/voicemail_msgs/voicemail_msgs_delete.php | 96 ---- .../voicemail_msgs_password.php | 428 ------------------ app/voicemail_msgs/voicemail_msgs_play.php | 118 ----- 7 files changed, 1158 deletions(-) delete mode 100644 app/voicemail_msgs/app_config.php delete mode 100644 app/voicemail_msgs/app_languages.php delete mode 100644 app/voicemail_msgs/root.php delete mode 100644 app/voicemail_msgs/voicemail_msgs.php delete mode 100644 app/voicemail_msgs/voicemail_msgs_delete.php delete mode 100644 app/voicemail_msgs/voicemail_msgs_password.php delete mode 100644 app/voicemail_msgs/voicemail_msgs_play.php diff --git a/app/voicemail_msgs/app_config.php b/app/voicemail_msgs/app_config.php deleted file mode 100644 index 58123829a7..0000000000 --- a/app/voicemail_msgs/app_config.php +++ /dev/null @@ -1,55 +0,0 @@ - \ No newline at end of file diff --git a/app/voicemail_msgs/app_languages.php b/app/voicemail_msgs/app_languages.php deleted file mode 100644 index 8390502a0a..0000000000 --- a/app/voicemail_msgs/app_languages.php +++ /dev/null @@ -1,111 +0,0 @@ - \ No newline at end of file diff --git a/app/voicemail_msgs/root.php b/app/voicemail_msgs/root.php deleted file mode 100644 index 7b882438ea..0000000000 --- a/app/voicemail_msgs/root.php +++ /dev/null @@ -1,50 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2008-2012 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ - -// make sure the PATH_SEPARATOR is defined - if (!defined("PATH_SEPARATOR")) { - if ( strpos( $_ENV[ "OS" ], "Win" ) !== false ) { define("PATH_SEPARATOR", ";"); } else { define("PATH_SEPARATOR", ":"); } - } - -// make sure the document_root is set - $_SERVER["SCRIPT_FILENAME"] = str_replace("\\", "/", $_SERVER["SCRIPT_FILENAME"]); - $_SERVER["DOCUMENT_ROOT"] = str_replace($_SERVER["PHP_SELF"], "", $_SERVER["SCRIPT_FILENAME"]); - $_SERVER["DOCUMENT_ROOT"] = realpath($_SERVER["DOCUMENT_ROOT"]); - //echo "DOCUMENT_ROOT: ".$_SERVER["DOCUMENT_ROOT"]."
\n"; - //echo "PHP_SELF: ".$_SERVER["PHP_SELF"]."
\n"; - //echo "SCRIPT_FILENAME: ".$_SERVER["SCRIPT_FILENAME"]."
\n"; - -// if the project directory exists then add it to the include path otherwise add the document root to the include path - if (is_dir($_SERVER["DOCUMENT_ROOT"].'/fusionpbx')){ - if(!defined('PROJECT_PATH')) { define('PROJECT_PATH', '/fusionpbx'); } - set_include_path( get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"].'/fusionpbx' ); - } - else { - if(!defined('PROJECT_PATH')) { define('PROJECT_PATH', ''); } - set_include_path( get_include_path() . PATH_SEPARATOR . $_SERVER['DOCUMENT_ROOT'] ); - } - -?> \ No newline at end of file diff --git a/app/voicemail_msgs/voicemail_msgs.php b/app/voicemail_msgs/voicemail_msgs.php deleted file mode 100644 index 8f7edfa1a6..0000000000 --- a/app/voicemail_msgs/voicemail_msgs.php +++ /dev/null @@ -1,300 +0,0 @@ - - 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 "includes/require.php"; -require_once "includes/checkauth.php"; -if (permission_exists('voicemail_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']]; - } - -//download the voicemail - if ($_GET['a'] == "download") { - - //pdo voicemail database connection - include "includes/lib_pdo_vm.php"; - - session_cache_limiter('public'); - - $uuid = $_GET["uuid"]; - $sql = "select * from voicemail_msgs "; - $sql .= "where domain = '".$_SESSION['domain_name']."' "; - $sql .= "and uuid = '$uuid' "; - $prep_statement = $db->prepare(check_sql($sql)); - $prep_statement->execute(); - $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); - foreach ($result as &$row) { - $created_epoch = $row["created_epoch"]; - $read_epoch = $row["read_epoch"]; - $username = $row["username"]; - $uuid = $row["uuid"]; - $cid_name = $row["cid_name"]; - $cid_number = $row["cid_number"]; - $in_folder = $row["in_folder"]; - $file_path = $row["file_path"]; - $message_len = $row["message_len"]; - $flags = $row["flags"]; - $read_flags = $row["read_flags"]; - break; //limit to 1 row - } - unset ($prep_statement); - - if ($_GET['type'] = "vm") { - if (file_exists($file_path)) { - $fd = fopen($file_path, "rb"); - if ($_GET['t'] == "bin") { - header("Content-Type: application/force-download"); - header("Content-Type: application/octet-stream"); - header("Content-Type: application/download"); - header("Content-Description: File Transfer"); - $file_ext = substr($file_path, -3); - if ($file_ext == "wav") { - header('Content-Disposition: attachment; filename="voicemail.wav"'); - } - if ($file_ext == "mp3") { - header('Content-Disposition: attachment; filename="voicemail.mp3"'); - } - } - else { - $file_ext = substr($file_path, -3); - if ($file_ext == "wav") { - header("Content-Type: audio/x-wav"); - } - if ($file_ext == "mp3") { - header("Content-Type: audio/mp3"); - } - } - header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 - header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // date in the past - header("Content-Length: " . filesize($file_path)); - fpassthru($fd); - } - return; - } - } - -//get the includes - require "includes/require.php"; - require_once "includes/header.php"; - require_once "includes/paging.php"; - -//get the http values and set them as variables - if (isset($_GET["order_by"])) { - $order_by = check_str($_GET["order_by"]); - $order = check_str($_GET["order"]); - } - else { - $order_by = ''; - $order = ''; - } - -//pdo voicemail database connection - include "includes/lib_pdo_vm.php"; - -//show the content - echo "
"; - echo "\n"; - echo "\n"; - echo " \n"; - $tmp_msg_header .= th_order_by('created_epoch', $text['label-created'], $order_by, $order); - //$tmp_msg_header .= th_order_by('read_epoch', 'Read', $order_by, $order); - //$tmp_msg_header .= th_order_by('username', 'Ext', $order_by, $order); - //$tmp_msg_header .= th_order_by('domain', 'Domain', $order_by, $order); - //$tmp_msg_header .= th_order_by('uuid', 'UUID', $order_by, $order); - $tmp_msg_header .= th_order_by('cid_name', $text['label-caller-id-name'], $order_by, $order); - $tmp_msg_header .= th_order_by('cid_number', $text['label-caller-id-number'], $order_by, $order); - $tmp_msg_header .= th_order_by('in_folder', $text['label-folder'], $order_by, $order); - //$tmp_msg_header .= "\n"; - //$tmp_msg_header .= th_order_by('file_path', 'File Path', $order_by, $order); - $tmp_msg_header .= th_order_by('message_len', $text['label-length'], $order_by, $order); - $tmp_msg_header .= "\n"; - //$tmp_msg_header .= th_order_by('flags', 'Flags', $order_by, $order); - //$tmp_msg_header .= th_order_by('read_flags', 'Read Flags', $order_by, $order); - $tmp_msg_header .= "\n"; - $tmp_msg_header .= "\n"; - - echo "
\n"; - echo "
\n"; - echo "
"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "
".$text['title']." 
\n"; - echo "".$text['description']." \n"; - if (if_group("admin") || if_group("superadmin")) { - echo "".$text['description-2']." \n"; - echo "".$text['description-3']." \n"; - echo "
\n"; - echo "
\n"; - } - echo "
\n"; - - $tmp_msg_header = ''; - $tmp_msg_header .= "
Options".$text['label-size']."\n"; - //$tmp_msg_header .= " \n"; - $tmp_msg_header .= "
\n"; - if (!isset($_SESSION['user']['extension'])) { - echo $tmp_msg_header; - } - else { - foreach ($_SESSION['user']['extension'] as $value) { - if (strlen($value['user']) > 0) { - echo "\n"; - echo "\n"; - echo "\n"; - - echo $tmp_msg_header; - - $sql = "select * from voicemail_msgs "; - if (count($_SESSION['domains']) > 1) { - $sql .= "where domain = '".$_SESSION['domain_name']."' "; - $sql .= "and username = '".$value['user']."' "; - } - else { - $sql .= "where username = '".$value['user']."' "; - } - if (isset($order_by)) { - if (strlen($order_by) > 0) { - $sql .= "order by $order_by $order "; - } - } - $prep_statement = $db->prepare(check_sql($sql)); - $prep_statement->execute(); - $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); - $result_count = count($result); - unset ($prep_statement, $sql); - - $c = 0; - $row_style["0"] = "row_style0"; - $row_style["1"] = "row_style1"; - - if ($result_count > 0) { - $prevextension = ''; - foreach($result as $row) { - $extension_uuid = ''; - foreach($_SESSION['user']['extension'] as $value) { - if ($value['user'] == $row['username']) { - $extension_uuid = $value['extension_uuid']; - break; - } - } - - $tmp_filesize = filesize($row['file_path']); - $tmp_filesize = byte_convert($tmp_filesize); - $file_ext = substr($row['file_path'], -3); - - $tmp_message_len = $row['message_len']; - if ($tmp_message_len < 60 ) { - $tmp_message_len = $tmp_message_len. " sec"; - } - else { - $tmp_message_len = round(($tmp_message_len/60), 2). " min"; - } - - if ($row['read_epoch'] == 0) { - $style = "style=\"font-weight: bold;\""; - } - else { - $style = ""; - } - - echo "\n"; - echo " \n"; - //echo " \n"; - //echo " \n"; - //echo " \n"; - //echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - //echo " \n"; - //echo " \n"; - echo " \n"; - echo " \n"; - echo "\n"; - - $prevextension = $row['username']; - unset($tmp_message_len, $tmp_filesize); - if ($c==0) { $c=1; } else { $c=0; } - } //end foreach - unset($sql, $result, $row_count); - } //end if results - } - } - } - - echo "
\n"; - echo "
\n"; - echo " ".$text['table-mailbox'].": ".$value['user']." \n"; - echo " \n"; - echo "
\n"; - echo " \n"; - echo " \n"; - echo "
"; - echo date("j M Y g:i a",$row['created_epoch']); - echo "".$row['read_epoch']."".$row['username']."".$row['domain']."".$row['uuid']."".$row['cid_name']."".$row['cid_number']."".$row['in_folder']."\n"; - echo " \n"; - echo " $tmp_message_len"; - echo " "; - echo " ".$row[flags]." ".$row[read_flags].""; - echo " \n"; - echo $tmp_filesize; - echo " "; - echo "\n"; - //echo " $v_link_label_edit\n"; - echo "   $v_link_label_delete\n"; - echo "
"; - echo "
"; - echo "

"; - echo "

"; - - echo ""; - echo ""; - echo ""; - echo ""; - echo "

"; - -//show the footer - require "includes/require.php"; - require_once "includes/footer.php"; - -?> \ No newline at end of file diff --git a/app/voicemail_msgs/voicemail_msgs_delete.php b/app/voicemail_msgs/voicemail_msgs_delete.php deleted file mode 100644 index 67b503af94..0000000000 --- a/app/voicemail_msgs/voicemail_msgs_delete.php +++ /dev/null @@ -1,96 +0,0 @@ - - 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 "includes/require.php"; -require_once "includes/checkauth.php"; -require_once "app_languages.php"; -if (permission_exists('voicemail_delete')) { - //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']]; - } - -//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']; - -//create the event socket connection - $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); - if (!$fp) { - $msg = "
".$text['confirm-socket']."
"; - } - -//show the error message or show the content - if (strlen($msg) > 0) { - require_once "includes/header.php"; - echo "
\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
".$text['label-message']."
$msg
\n"; - echo "
\n"; - require_once "includes/footer.php"; - return; - } - -// delete the voicemail - $cmd = "api vm_delete " .$id."@".$domain_name." ".$uuid; - $response = trim(event_socket_request($fp, $cmd)); - echo $xml_response; - if (strcmp($response,"+OK")==0) { - $msg = "".$text['confirm-complete'].""; - } - else { - $msg = "".$text['confirm-failed'].""; - } - -//redirect the user - require_once "includes/header.php"; - echo "\n"; - echo "
\n"; - echo "".$text['confirm-delete-2']." $msg\n"; - echo "
\n"; - require_once "includes/footer.php"; - return; - -?> \ No newline at end of file diff --git a/app/voicemail_msgs/voicemail_msgs_password.php b/app/voicemail_msgs/voicemail_msgs_password.php deleted file mode 100644 index 51a065b647..0000000000 --- a/app/voicemail_msgs/voicemail_msgs_password.php +++ /dev/null @@ -1,428 +0,0 @@ - - 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 "includes/require.php"; -require_once "includes/checkauth.php"; -if (permission_exists('voicemail_edit')) { - //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']]; - } - -//set the action as an add or update - if (isset($_REQUEST["id"])) { - $action = "update"; - $extension_uuid = check_str($_REQUEST["id"]); - } - -//deny the user if not assigned to this mailboxes - $sql = ""; - $sql .= " select * from v_extensions "; - $sql .= "where domain_uuid = '$domain_uuid' "; - $sql .= "and extension_uuid = '$extension_uuid'"; - if (!(if_group("admin") || if_group("superadmin"))) { - if (count($_SESSION['user']['extension']) > 0) { - $sql .= "and ("; - $x = 0; - foreach($_SESSION['user']['extension'] as $row) { - if ($x > 0) { $sql .= "or "; } - $sql .= "extension = '".$row['user']."' "; - $x++; - } - $sql .= ")"; - } - else { - //hide any results when a user has not been assigned an extension - $sql .= "and extension = 'disabled' "; - } - } - $prep_statement = $db->prepare(check_sql($sql)); - $prep_statement->execute(); - $v_mailboxes = ''; - $x = 0; - $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); - foreach ($result as &$row) { - $x++; - } - unset ($prep_statement); - if ($x == 0) { - //user has not been assigned to this account - echo "access denied"; - exit; - } - -//get the http post variables - if (count($_POST)>0) { - //$domain_uuid = check_str($_POST["domain_uuid"]); - $extension = check_str($_POST["extension"]); - $password = check_str($_POST["password"]); - - $mailbox = check_str($_POST["mailbox"]); - $vm_password = check_str($_POST["vm_password"]); - $accountcode = check_str($_POST["accountcode"]); - $effective_caller_id_name = check_str($_POST["effective_caller_id_name"]); - $effective_caller_id_number = check_str($_POST["effective_caller_id_number"]); - $outbound_caller_id_name = check_str($_POST["outbound_caller_id_name"]); - $outbound_caller_id_number = check_str($_POST["outbound_caller_id_number"]); - $vm_enabled = check_str($_POST["vm_enabled"]); - $vm_mailto = check_str($_POST["vm_mailto"]); - $vm_attach_file = check_str($_POST["vm_attach_file"]); - $vm_keep_local_after_email = check_str($_POST["vm_keep_local_after_email"]); - $user_context = check_str($_POST["user_context"]); - $call_group = check_str($_POST["call_group"]); - $auth_acl = check_str($_POST["auth_acl"]); - $cidr = check_str($_POST["cidr"]); - $sip_force_contact = check_str($_POST["sip_force_contact"]); - $enabled = check_str($_POST["enabled"]); - $description = check_str($_POST["description"]); - } - -if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { - - $msg = ''; - if ($action == "update") { - $extension_uuid = check_str($_POST["extension_uuid"]); - } - - //check for all required data - //if (strlen($domain_uuid) == 0) { $msg .= "Please provide: domain_uuid
\n"; } - //if (strlen($extension) == 0) { $msg .= "Please provide: Extension
\n"; } - //if (strlen($password) == 0) { $msg .= "Please provide: Password
\n"; } - //if (strlen($mailbox) == 0) { $msg .= "Please provide: Mailbox
\n"; } - if (strlen($vm_password) == 0) { $msg .= "".$text['confirm-password']."
\n"; } - //if (strlen($accountcode) == 0) { $msg .= "Please provide: Account Code
\n"; } - //if (strlen($effective_caller_id_name) == 0) { $msg .= "Please provide: Effective Caller ID Name
\n"; } - //if (strlen($effective_caller_id_number) == 0) { $msg .= "Please provide: Effective Caller ID Number
\n"; } - //if (strlen($outbound_caller_id_name) == 0) { $msg .= "Please provide: Outbound Caller ID Name
\n"; } - //if (strlen($outbound_caller_id_number) == 0) { $msg .= "Please provide: Outbound Caller ID Number
\n"; } - //if (strlen($vm_enabled) == 0) { $msg .= "Please provide: Voicemail Enabled
\n"; } - //if (strlen($vm_mailto) == 0) { $msg .= "Please provide: Voicemail Mail To
\n"; } - //if (strlen($vm_attach_file) == 0) { $msg .= "Please provide: Voicemail Attach File
\n"; } - //if (strlen($vm_keep_local_after_email) == 0) { $msg .= "Please provide: VM Keep Local After Email
\n"; } - //if (strlen($user_context) == 0) { $msg .= "Please provide: User Context
\n"; } - //if (strlen($call_group) == 0) { $msg .= "Please provide: Call Group
\n"; } - //if (strlen($auth_acl) == 0) { $msg .= "Please provide: Auth ACL
\n"; } - //if (strlen($cidr) == 0) { $msg .= "Please provide: CIDR
\n"; } - //if (strlen($sip_force_contact) == 0) { $msg .= "Please provide: SIP Force Contact
\n"; } - //if (strlen($enabled) == 0) { $msg .= "Please provide: Enabled
\n"; } - //if (strlen($description) == 0) { $msg .= "Please provide: Description
\n"; } - if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) { - require_once "includes/header.php"; - require_once "includes/persistformvar.php"; - echo "
\n"; - echo "
\n"; - echo $msg."
"; - echo "
\n"; - persistformvar($_POST); - echo "
\n"; - require_once "includes/footer.php"; - return; - } - - //add or update the database - if ($_POST["persistformvar"] != "true") { - - if ($action == "update") { - $sql = "update v_extensions set "; - //$sql .= "extension = '$extension', "; - //$sql .= "password = '$password', "; - //$sql .= "mailbox = '$mailbox', "; - $sql .= "vm_password = '#$vm_password', "; - //$sql .= "accountcode = '$accountcode', "; - //$sql .= "effective_caller_id_name = '$effective_caller_id_name', "; - //$sql .= "effective_caller_id_number = '$effective_caller_id_number', "; - //$sql .= "outbound_caller_id_name = '$outbound_caller_id_name', "; - //$sql .= "outbound_caller_id_number = '$outbound_caller_id_number', "; - $sql .= "vm_enabled = '$vm_enabled', "; - $sql .= "vm_mailto = '$vm_mailto', "; - $sql .= "vm_attach_file = '$vm_attach_file', "; - $sql .= "vm_keep_local_after_email = '$vm_keep_local_after_email' "; - //$sql .= "user_context = '$user_context', "; - //$sql .= "call_group = '$call_group', "; - //$sql .= "auth_acl = '$auth_acl', "; - //$sql .= "cidr = '$cidr', "; - //$sql .= "sip_force_contact = '$sip_force_contact', "; - //$sql .= "enabled = '$enabled', "; - //$sql .= "description = '$description' "; - $sql .= "where domain_uuid = '$domain_uuid' "; - $sql .= "and extension_uuid = '$extension_uuid'"; - $db->exec(check_sql($sql)); - unset($sql); - - //syncrhonize configuration - save_extension_xml(); - - //apply settings reminder - $_SESSION["reload_xml"] = true; - - //redirect the user - require_once "includes/header.php"; - echo "\n"; - echo "
\n"; - echo "".$text['confirm-update']."\n"; - echo "
\n"; - require_once "includes/footer.php"; - return; - } //if ($action == "update") - } //if ($_POST["persistformvar"] != "true") -} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) - -//pre-populate the form - if (count($_GET)>0 && $_POST["persistformvar"] != "true") { - $extension_uuid = $_GET["id"]; - $sql = ""; - $sql .= "select * from v_extensions "; - $sql .= "where domain_uuid = '$domain_uuid' "; - $sql .= "and extension_uuid = '$extension_uuid' "; - $prep_statement = $db->prepare(check_sql($sql)); - $prep_statement->execute(); - $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); - foreach ($result as &$row) { - $domain_uuid = $row["domain_uuid"]; - $extension = $row["extension"]; - $password = $row["password"]; - $mailbox = $row["mailbox"]; - $vm_password = $row["vm_password"]; - $vm_password = str_replace("#", "", $vm_password); //preserves leading zeros - $accountcode = $row["accountcode"]; - $effective_caller_id_name = $row["effective_caller_id_name"]; - $effective_caller_id_number = $row["effective_caller_id_number"]; - $outbound_caller_id_name = $row["outbound_caller_id_name"]; - $outbound_caller_id_number = $row["outbound_caller_id_number"]; - $vm_enabled = $row["vm_enabled"]; - $vm_mailto = $row["vm_mailto"]; - $vm_attach_file = $row["vm_attach_file"]; - $vm_keep_local_after_email = $row["vm_keep_local_after_email"]; - $user_context = $row["user_context"]; - $call_group = $row["call_group"]; - $auth_acl = $row["auth_acl"]; - $cidr = $row["cidr"]; - $sip_force_contact = $row["sip_force_contact"]; - $enabled = $row["enabled"]; - $description = $row["description"]; - break; //limit to 1 row - } - unset ($prep_statement); - } - -//show the header - require_once "includes/header.php"; - -//show the content - echo ""; - - echo "
"; - echo "\n"; - echo "\n"; - echo " "; - echo " "; - echo "
\n"; - echo "
"; - - echo "
\n"; - echo "
\n"; - echo "\n"; - echo "\n"; - echo " \n"; - echo " \n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - //echo "\n"; - //echo "\n"; - //echo "\n"; - //echo "\n"; - - //echo "\n"; - //echo "\n"; - //echo "\n"; - //echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - //echo "\n"; - //echo "\n"; - //echo "\n"; - //echo "\n"; - - echo " \n"; - echo " \n"; - echo " "; - echo "
".$text['label-voicemail']." $extension

\n"; - echo " ".$text['label-password'].":\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo "".$text['description-password']." \n"; - echo "
\n"; - //echo " Effective Caller ID Name:\n"; - //echo "\n"; - //echo " \n"; - //echo "
\n"; - //echo "Enter the effective caller id name here.\n"; - //echo "
\n"; - //echo " Effective Caller ID Number:\n"; - //echo "\n"; - //echo " \n"; - //echo "
\n"; - //echo "Enter the effective caller id number here.\n"; - //echo "
\n"; - echo " ".$text['label-enabled'].":\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo " ".$text['description-voicemail-enable']."\n"; - echo "
\n"; - echo " ".$text['label-mail'].":\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo "".$text['description-email']."\n"; - echo "
\n"; - echo " ".$text['label-attach'].":\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo "".$text['description-email-attachment']."\n"; - echo "
\n"; - echo " ".$text['label-vm'].":\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo "".$text['description-keep-local']." \n"; - echo "
\n"; - //echo " Description:\n"; - //echo "\n"; - //echo " \n"; - //echo "
\n"; - //echo "\n"; - //echo "
\n"; - if ($action == "update") { - echo " \n"; - } - echo " \n"; - echo "
"; - echo ""; - - echo "
"; - echo "
"; - -//show the footer - require_once "includes/footer.php"; - -?> diff --git a/app/voicemail_msgs/voicemail_msgs_play.php b/app/voicemail_msgs/voicemail_msgs_play.php deleted file mode 100644 index 6c71a34939..0000000000 --- a/app/voicemail_msgs/voicemail_msgs_play.php +++ /dev/null @@ -1,118 +0,0 @@ - - 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 "includes/require.php"; -require_once "includes/checkauth.php"; -if (permission_exists('voicemail_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']]; - } - -//get the http get values - $uuid = $_GET['uuid']; - $file_ext = $_GET['ext']; - $type = $_GET['type']; //vm - $desc = $_GET['desc']; - $id = $_GET['id']; - -//get the domain from the domains array - $domain_name = $_SESSION['domains'][$domain_uuid]['domain_name']; - -//create the event socket connection - $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); - if (!$fp) { - $msg = "
".$text['confirm-socket']."
"; - } - -//show the error message or show the content - if (strlen($msg) > 0) { - require_once "includes/header.php"; - echo "
\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
".$text['label-message']."
$msg
\n"; - echo "
\n"; - require_once "includes/footer.php"; - return; - } - -?> - - - - - - - - - - - - -
- voicemail: -
- \n"; - } - //object html tag to add flash player that can play the mp3 file - if ($file_ext == "mp3") { - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - } - ?> -
- - \ No newline at end of file