Move fax logs inside app/fax

This commit is contained in:
Mark Crane 2014-09-09 16:41:53 +00:00
parent 98a1d4c987
commit 4c971dbe6d
8 changed files with 166 additions and 270 deletions

View File

@ -20,26 +20,36 @@
$apps[$x]['description']['pt-br'] = "";
//menu details
$apps[$x]['menu'][0]['title']['en-us'] = "Fax Server";
$apps[$x]['menu'][0]['title']['es-cl'] = "Servidor de Fax";
$apps[$x]['menu'][0]['title']['es-mx'] = "Servidor de Fax";
$apps[$x]['menu'][0]['title']['de-de'] = "Faxserver";
$apps[$x]['menu'][0]['title']['de-ch'] = "Faxserver";
$apps[$x]['menu'][0]['title']['de-at'] = "Faxserver";
$apps[$x]['menu'][0]['title']['fr-fr'] = "Serveur Fax";
$apps[$x]['menu'][0]['title']['fr-ca'] = "Serveur du fax";
$apps[$x]['menu'][0]['title']['fr-ch'] = "";
$apps[$x]['menu'][0]['title']['pt-pt'] = "Servidor de Fax";
$apps[$x]['menu'][0]['title']['pt-br'] = "";
$apps[$x]['menu'][0]['uuid'] = "9c9642e4-2b9b-2785-18d0-6c0a4ede2b2f";
$apps[$x]['menu'][0]['parent_uuid'] = "fd29e39c-c936-f5fc-8e2b-611681b266b5";
$apps[$x]['menu'][0]['category'] = "internal";
$apps[$x]['menu'][0]['path'] = "/app/fax/fax.php";
$apps[$x]['menu'][0]['groups'][] = "user";
$apps[$x]['menu'][0]['groups'][] = "admin";
$apps[$x]['menu'][0]['groups'][] = "superadmin";
$y = 0;
$apps[$x]['menu'][$y]['title']['en-us'] = "Fax Server";
$apps[$x]['menu'][$y]['title']['es-cl'] = "Servidor de Fax";
$apps[$x]['menu'][$y]['title']['es-mx'] = "Servidor de Fax";
$apps[$x]['menu'][$y]['title']['de-de'] = "Faxserver";
$apps[$x]['menu'][$y]['title']['de-ch'] = "Faxserver";
$apps[$x]['menu'][$y]['title']['de-at'] = "Faxserver";
$apps[$x]['menu'][$y]['title']['fr-fr'] = "Serveur Fax";
$apps[$x]['menu'][$y]['title']['fr-ca'] = "Serveur du fax";
$apps[$x]['menu'][$y]['title']['fr-ch'] = "";
$apps[$x]['menu'][$y]['title']['pt-pt'] = "Servidor de Fax";
$apps[$x]['menu'][$y]['title']['pt-br'] = "";
$apps[$x]['menu'][$y]['uuid'] = "9c9642e4-2b9b-2785-18d0-6c0a4ede2b2f";
$apps[$x]['menu'][$y]['parent_uuid'] = "fd29e39c-c936-f5fc-8e2b-611681b266b5";
$apps[$x]['menu'][$y]['category'] = "internal";
$apps[$x]['menu'][$y]['path'] = "/app/fax/fax.php";
$apps[$x]['menu'][$y]['groups'][] = "user";
$apps[$x]['menu'][$y]['groups'][] = "admin";
$apps[$x]['menu'][$y]['groups'][] = "superadmin";
$y++;
//$apps[$x]['menu'][$y]['title']['en-us'] = 'FAX Logs';
//$apps[$x]['menu'][$y]['uuid'] = 'f91b1476-e7e9-40f5-a181-2f3e1e5bc16b';
//$apps[$x]['menu'][$y]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5';
//$apps[$x]['menu'][$y]['category'] = 'internal';
//$apps[$x]['menu'][$y]['path'] = '/app/fax_logs/fax_logs.php';
//$apps[$x]['menu'][$y]['groups'][] = 'superadmin';
//permission details
$y = 0;
$apps[$x]['permissions'][$y]['name'] = "fax_extension_view";
$apps[$x]['permissions'][$y]['menu']['uuid'] = "9c9642e4-2b9b-2785-18d0-6c0a4ede2b2f";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";

View File

@ -70,6 +70,11 @@
$text['label-sent']['pt-pt'] = "Enviados";
$text['label-sent']['fr-fr'] = "Expédié";
$text['label-log']['en-us'] = "Log";
$text['label-log']['es-cl'] = "Log";
$text['label-log']['pt-pt'] = "Log";
$text['label-log']['fr-fr'] = "Enregistrer";
$text['label-description']['en-us'] = "Description";
$text['label-description']['es-cl'] = "Descripción";
$text['label-description']['pt-pt'] = "Descrição";
@ -433,4 +438,137 @@
$text['message-invalid-fax']['pt-pt'] = "Fax inválida - Por favor, digite uma mensagem ou selecionar um arquivo a ser enviado.";
$text['message-invalid-fax']['fr-fr'] = "Invalid Fax - S'il vous plaît entrer un message ou sélectionner un fichier à envoyer.";
//fax logs
$text['title-fax_logs']['en-us'] = 'FAX Logs';
$text['title-fax_logs']['pt-pt'] = '';
$text['title-fax_log']['en-us'] = 'Fax Log';
$text['title-fax_log']['pt-pt'] = '';
$text['description-fax_log']['en-us'] = 'The details for sending and receiving a fax included are whether fax was successful, ECM (Error Correction Mode), number of retries, destination number, date, etc. ';
$text['description-fax_log']['pt-pt'] = '';
$text['label-fax_success']['en-us'] = 'Success';
$text['label-fax_success']['pt-pt'] = '';
$text['description-fax_success']['en-us'] = '';
$text['description-fax_success']['pt-pt'] = '';
$text['label-fax_result_code']['en-us'] = 'Code';
$text['label-fax_result_code']['pt-pt'] = '';
$text['description-fax_result_code']['en-us'] = '';
$text['description-fax_result_code']['pt-pt'] = '';
$text['label-fax_result_text']['en-us'] = 'Result';
$text['label-fax_result_text']['pt-pt'] = '';
$text['description-fax_result_text']['en-us'] = '';
$text['description-fax_result_text']['pt-pt'] = '';
$text['label-fax_file']['en-us'] = 'File';
$text['label-fax_file']['pt-pt'] = '';
$text['description-fax_file']['en-us'] = '';
$text['description-fax_file']['pt-pt'] = '';
$text['label-fax_ecm_used']['en-us'] = 'ECM';
$text['label-fax_ecm_used']['pt-pt'] = '';
$text['description-fax_ecm_used']['en-us'] = '';
$text['description-fax_ecm_used']['pt-pt'] = '';
$text['label-fax_local_station_id']['en-us'] = 'Local Station ID';
$text['label-fax_local_station_id']['pt-pt'] = '';
$text['description-fax_local_station_id']['en-us'] = '';
$text['description-fax_local_station_id']['pt-pt'] = '';
$text['label-fax_document_transferred_pages']['en-us'] = 'Document Transferred Pages';
$text['label-fax_document_transferred_pages']['pt-pt'] = '';
$text['description-fax_document_transferred_pages']['en-us'] = '';
$text['description-fax_document_transferred_pages']['pt-pt'] = '';
$text['label-fax_document_total_pages']['en-us'] = 'Document Total Pages';
$text['label-fax_document_total_pages']['pt-pt'] = '';
$text['description-fax_document_total_pages']['en-us'] = '';
$text['description-fax_document_total_pages']['pt-pt'] = '';
$text['label-fax_image_resolution']['en-us'] = 'Image Resolution';
$text['label-fax_image_resolution']['pt-pt'] = '';
$text['description-fax_image_resolution']['en-us'] = '';
$text['description-fax_image_resolution']['pt-pt'] = '';
$text['label-fax_image_size']['en-us'] = 'Image Size';
$text['label-fax_image_size']['pt-pt'] = '';
$text['description-fax_image_size']['en-us'] = '';
$text['description-fax_image_size']['pt-pt'] = '';
$text['label-fax_bad_rows']['en-us'] = 'Bad Rows';
$text['label-fax_bad_rows']['pt-pt'] = '';
$text['description-fax_bad_rows']['en-us'] = '';
$text['description-fax_bad_rows']['pt-pt'] = '';
$text['label-fax_transfer_rate']['en-us'] = 'Transfer Rate';
$text['label-fax_transfer_rate']['pt-pt'] = '';
$text['description-fax_transfer_rate']['en-us'] = '';
$text['description-fax_transfer_rate']['pt-pt'] = '';
$text['label-fax_retry_attempts']['en-us'] = 'Retry';
$text['label-fax_retry_attempts']['pt-pt'] = '';
$text['description-fax_retry_attempts']['en-us'] = '';
$text['description-fax_retry_attempts']['pt-pt'] = '';
$text['label-fax_retry_limit']['en-us'] = 'Retry Limit';
$text['label-fax_retry_limit']['pt-pt'] = '';
$text['description-fax_retry_limit']['en-us'] = '';
$text['description-fax_retry_limit']['pt-pt'] = '';
$text['label-fax_retry_sleep']['en-us'] = 'Retry Sleep';
$text['label-fax_retry_sleep']['pt-pt'] = '';
$text['description-fax_retry_sleep']['en-us'] = '';
$text['description-fax_retry_sleep']['pt-pt'] = '';
$text['label-fax_destination']['en-us'] = 'Destination';
$text['label-fax_destination']['pt-pt'] = '';
$text['label-fax_uri']['en-us'] = 'URI';
$text['label-fax_uri']['pt-pt'] = '';
$text['description-fax_uri']['en-us'] = '';
$text['description-fax_uri']['pt-pt'] = '';
$text['label-fax_date']['en-us'] = 'Date';
$text['label-fax_date']['pt-pt'] = '';
$text['description-fax_date']['en-us'] = '';
$text['description-fax_date']['pt-pt'] = '';
$text['label-fax_epoch']['en-us'] = 'Epoch';
$text['label-fax_epoch']['pt-pt'] = '';
$text['description-fax_epoch']['en-us'] = '';
$text['description-fax_epoch']['pt-pt'] = '';
$text['message-add']['en-us'] = 'Add Completed';
$text['message-add']['pt-pt'] = '';
$text['message-update']['en-us'] = 'Update Completed';
$text['message-update']['pt-pt'] = '';
$text['message-delete']['en-us'] = 'Delete Completed';
$text['message-delete']['pt-pt'] = '';
$text['message-required']['en-us'] = 'Please provide: ';
$text['message-required']['pt-pt'] = '';
?>

View File

@ -1,39 +0,0 @@
<?php
//application details
$apps[$x]['name'] = 'FAX Logs';
$apps[$x]['uuid'] = '02ffd6e8-c7d5-4f56-812e-5c1b4fd3fe02';
$apps[$x]['category'] = '';
$apps[$x]['subcategory'] = '';
$apps[$x]['version'] = '';
$apps[$x]['license'] = 'Mozilla Public License 1.1';
$apps[$x]['url'] = 'http://www.fusionpbx.com';
$apps[$x]['description']['en-us'] = '';
//menu details
$apps[$x]['menu'][0]['title']['en-us'] = 'FAX Logs';
$apps[$x]['menu'][0]['uuid'] = 'f91b1476-e7e9-40f5-a181-2f3e1e5bc16b';
$apps[$x]['menu'][0]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5';
$apps[$x]['menu'][0]['category'] = 'internal';
$apps[$x]['menu'][0]['path'] = '/app/fax_logs/fax_logs.php';
//$apps[$x]['menu'][0]['groups'][] = 'user';
//$apps[$x]['menu'][0]['groups'][] = 'admin';
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
//permission details
$y = 0;
$apps[$x]['permissions'][$y]['name'] = 'fax_log_view';
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
//$apps[$x]['permissions'][$y]['groups'][] = 'user';
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
$y++;
$apps[$x]['permissions'][$y]['name'] = 'fax_log_edit';
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
//$apps[$x]['permissions'][$y]['groups'][] = 'user';
$y++;
$apps[$x]['permissions'][$y]['name'] = 'fax_log_delete';
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
$y++;
?>

View File

@ -1,163 +0,0 @@
<?php
//FAX Logs
$text['title-fax_logs']['en-us'] = 'FAX Logs';
$text['title-fax_logs']['pt-pt'] = '';
$text['title-fax_log']['en-us'] = 'Fax Log';
$text['title-fax_log']['pt-pt'] = '';
$text['description-fax_log']['en-us'] = 'The details for sending and receiving a fax included are whether fax was successful, ECM (Error Correction Mode), number of retries, destination number, date, etc. ';
$text['description-fax_log']['pt-pt'] = '';
$text['label-fax_success']['en-us'] = 'Success';
$text['label-fax_success']['pt-pt'] = '';
$text['description-fax_success']['en-us'] = '';
$text['description-fax_success']['pt-pt'] = '';
$text['label-fax_result_code']['en-us'] = 'Code';
$text['label-fax_result_code']['pt-pt'] = '';
$text['description-fax_result_code']['en-us'] = '';
$text['description-fax_result_code']['pt-pt'] = '';
$text['label-fax_result_text']['en-us'] = 'Result';
$text['label-fax_result_text']['pt-pt'] = '';
$text['description-fax_result_text']['en-us'] = '';
$text['description-fax_result_text']['pt-pt'] = '';
$text['label-fax_file']['en-us'] = 'File';
$text['label-fax_file']['pt-pt'] = '';
$text['description-fax_file']['en-us'] = '';
$text['description-fax_file']['pt-pt'] = '';
$text['label-fax_ecm_used']['en-us'] = 'ECM';
$text['label-fax_ecm_used']['pt-pt'] = '';
$text['description-fax_ecm_used']['en-us'] = '';
$text['description-fax_ecm_used']['pt-pt'] = '';
$text['label-fax_local_station_id']['en-us'] = 'Local Station ID';
$text['label-fax_local_station_id']['pt-pt'] = '';
$text['description-fax_local_station_id']['en-us'] = '';
$text['description-fax_local_station_id']['pt-pt'] = '';
$text['label-fax_document_transferred_pages']['en-us'] = 'Document Transferred Pages';
$text['label-fax_document_transferred_pages']['pt-pt'] = '';
$text['description-fax_document_transferred_pages']['en-us'] = '';
$text['description-fax_document_transferred_pages']['pt-pt'] = '';
$text['label-fax_document_total_pages']['en-us'] = 'Document Total Pages';
$text['label-fax_document_total_pages']['pt-pt'] = '';
$text['description-fax_document_total_pages']['en-us'] = '';
$text['description-fax_document_total_pages']['pt-pt'] = '';
$text['label-fax_image_resolution']['en-us'] = 'Image Resolution';
$text['label-fax_image_resolution']['pt-pt'] = '';
$text['description-fax_image_resolution']['en-us'] = '';
$text['description-fax_image_resolution']['pt-pt'] = '';
$text['label-fax_image_size']['en-us'] = 'Image Size';
$text['label-fax_image_size']['pt-pt'] = '';
$text['description-fax_image_size']['en-us'] = '';
$text['description-fax_image_size']['pt-pt'] = '';
$text['label-fax_bad_rows']['en-us'] = 'Bad Rows';
$text['label-fax_bad_rows']['pt-pt'] = '';
$text['description-fax_bad_rows']['en-us'] = '';
$text['description-fax_bad_rows']['pt-pt'] = '';
$text['label-fax_transfer_rate']['en-us'] = 'Transfer Rate';
$text['label-fax_transfer_rate']['pt-pt'] = '';
$text['description-fax_transfer_rate']['en-us'] = '';
$text['description-fax_transfer_rate']['pt-pt'] = '';
$text['label-fax_retry_attempts']['en-us'] = 'Retry';
$text['label-fax_retry_attempts']['pt-pt'] = '';
$text['description-fax_retry_attempts']['en-us'] = '';
$text['description-fax_retry_attempts']['pt-pt'] = '';
$text['label-fax_retry_limit']['en-us'] = 'Retry Limit';
$text['label-fax_retry_limit']['pt-pt'] = '';
$text['description-fax_retry_limit']['en-us'] = '';
$text['description-fax_retry_limit']['pt-pt'] = '';
$text['label-fax_retry_sleep']['en-us'] = 'Retry Sleep';
$text['label-fax_retry_sleep']['pt-pt'] = '';
$text['description-fax_retry_sleep']['en-us'] = '';
$text['description-fax_retry_sleep']['pt-pt'] = '';
$text['label-fax_destination']['en-us'] = 'Destination';
$text['label-fax_destination']['pt-pt'] = '';
$text['label-fax_uri']['en-us'] = 'URI';
$text['label-fax_uri']['pt-pt'] = '';
$text['description-fax_uri']['en-us'] = '';
$text['description-fax_uri']['pt-pt'] = '';
$text['label-fax_date']['en-us'] = 'Date';
$text['label-fax_date']['pt-pt'] = '';
$text['description-fax_date']['en-us'] = '';
$text['description-fax_date']['pt-pt'] = '';
$text['label-fax_epoch']['en-us'] = 'Epoch';
$text['label-fax_epoch']['pt-pt'] = '';
$text['description-fax_epoch']['en-us'] = '';
$text['description-fax_epoch']['pt-pt'] = '';
$text['label-true']['en-us'] = 'true';
$text['label-true']['pt-pt'] = '';
$text['label-false']['en-us'] = 'false';
$text['label-false']['pt-pt'] = 'falso';
$text['button-add']['en-us'] = 'Add';
$text['button-add']['pt-pt'] = '';
$text['button-edit']['en-us'] = 'Edit';
$text['button-edit']['pt-pt'] = '';
$text['button-delete']['en-us'] = 'Delete';
$text['button-delete']['pt-pt'] = '';
$text['button-save']['en-us'] = 'Save';
$text['button-save']['pt-pt'] = 'Guardar';
$text['button-view']['en-us'] = 'View';
$text['button-view']['pt-pt'] = '';
$text['button-back']['en-us'] = 'Back';
$text['button-back']['pt-pt'] = 'Voltar';
$text['confirm-delete']['en-us'] = 'Do you really want to delete this?';
$text['confirm-delete']['pt-pt'] = '';
$text['message-add']['en-us'] = 'Add Completed';
$text['message-add']['pt-pt'] = '';
$text['message-update']['en-us'] = 'Update Completed';
$text['message-update']['pt-pt'] = '';
$text['message-delete']['en-us'] = 'Delete Completed';
$text['message-delete']['pt-pt'] = '';
$text['message-required']['en-us'] = 'Please provide: ';
$text['message-required']['pt-pt'] = '';
?>

View File

@ -1,50 +0,0 @@
<?php
/*
FusionPBX
Version: MPL 1.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
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 <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>
*/
// 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"]."<br />\n";
//echo "PHP_SELF: ".$_SERVER["PHP_SELF"]."<br />\n";
//echo "SCRIPT_FILENAME: ".$_SERVER["SCRIPT_FILENAME"]."<br />\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'] );
}
?>