Add fax default setting keep_local.

This commit is contained in:
markjcrane 2015-08-16 01:53:39 -06:00
parent bdebe75d78
commit 91911a10ca
3 changed files with 13 additions and 5 deletions

View File

@ -256,10 +256,6 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Authorized email-to-fax sender addresses.";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_local";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "fax_pin_number";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
@ -281,6 +277,11 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
//$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "fax_keep_local";
//$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "fax_local";
//$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
//$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
//$z++;
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "fax_description";
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "faxdescription";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";

View File

@ -53,7 +53,13 @@ if ($domains_processed == 1) {
$array[$x]['default_setting_enabled'] = 'true';
$array[$x]['default_setting_description'] = 'Send a T38 reinvite when a fax tone is detected.';
$x++;
$array[$x]['default_setting_category'] = 'fax';
$array[$x]['default_setting_subcategory'] = 'keep_local';
$array[$x]['default_setting_name'] = 'boolean';
$array[$x]['default_setting_value'] = 'true';
$array[$x]['default_setting_enabled'] = 'true';
$array[$x]['default_setting_description'] = 'Keep the file after sending or receiving the fax.';
$x++;
//get an array of the default settings
$sql = "select * from v_default_settings ";
$prep_statement = $db->prepare($sql);

View File

@ -135,6 +135,7 @@ else {
} else {
$forward_prefix = $forward_prefix.$fax_forward_number.'#'; //found
}
$fax_local = check_str($_POST["fax_local"]);
$fax_description = check_str($_POST["fax_description"]);
}