\n";
echo "
".$text['title-call_forward']."
\n";
echo "
\n";
- echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'id'=>'btn_back','onclick'=>'history.back();']);
+ echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'id'=>'btn_back','onclick'=>$back_destination]);
echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'id'=>'btn_save','style'=>'margin-left: 15px;']);
echo "
\n";
echo "
\n";
diff --git a/app/call_forward/resources/classes/call_forward.php b/app/call_forward/resources/classes/call_forward.php
index 746286dced..8b7ef70ebd 100644
--- a/app/call_forward/resources/classes/call_forward.php
+++ b/app/call_forward/resources/classes/call_forward.php
@@ -89,7 +89,7 @@
}
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('extension_add', 'temp');
//execute update
@@ -214,7 +214,7 @@
if (is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('extension_edit', 'temp');
//save the array
diff --git a/app/call_forward/resources/classes/do_not_disturb.php b/app/call_forward/resources/classes/do_not_disturb.php
index 9d75dc1b48..b597437c6f 100644
--- a/app/call_forward/resources/classes/do_not_disturb.php
+++ b/app/call_forward/resources/classes/do_not_disturb.php
@@ -95,7 +95,7 @@
$array['extensions'][0]['do_not_disturb'] = $this->enabled;
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('extension_edit', 'temp');
//execute update
@@ -226,7 +226,7 @@
if (is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('extension_edit', 'temp');
//save the array
diff --git a/app/call_forward/resources/classes/follow_me.php b/app/call_forward/resources/classes/follow_me.php
index 4a0c848c55..97a66625cb 100644
--- a/app/call_forward/resources/classes/follow_me.php
+++ b/app/call_forward/resources/classes/follow_me.php
@@ -91,7 +91,7 @@
$array['follow_me'][0]['follow_me_enabled'] = $this->follow_me_enabled;
$array['follow_me'][0]['follow_me_ignore_busy'] = $this->follow_me_ignore_busy;
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('follow_me_add', 'temp');
//execute insert
$database = new database;
@@ -115,7 +115,7 @@
$array['follow_me'][0]['follow_me_enabled'] = $this->follow_me_enabled;
$array['follow_me'][0]['follow_me_ignore_busy'] = $this->follow_me_ignore_busy;
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('follow_me_add', 'temp');
//execute update
$database = new database;
@@ -135,7 +135,7 @@
//delete related follow me destinations
$array['follow_me_destinations'][0]['follow_me_uuid'] = $this->follow_me_uuid;
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('follow_me_destination_delete', 'temp');
//execute delete
$database = new database;
@@ -210,7 +210,7 @@
}
if (is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('follow_me_destination_add', 'temp');
//execute insert
$database = new database;
@@ -234,7 +234,7 @@
$extension_uuid = $result[0]['extension_uuid'];
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add("follow_me_edit", 'temp');
$p->add("extension_edit", 'temp');
@@ -389,7 +389,7 @@
if (is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('extension_edit', 'temp');
$p->add('follow_me_edit', 'temp');
diff --git a/app/call_forward/resources/dashboard/config.php b/app/call_forward/resources/dashboard/config.php
index 29f7122a91..edc3f0c0a7 100644
--- a/app/call_forward/resources/dashboard/config.php
+++ b/app/call_forward/resources/dashboard/config.php
@@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'ba60799a-1c40-44a8-80ef-c2be4f4692f
$array['dashboard'][$x]['dashboard_name'] = 'Call Forward';
$array['dashboard'][$x]['dashboard_path'] = 'call_forward/call_forward';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-forward';
+$array['dashboard'][$x]['dashboard_icon_color'] = '';
$array['dashboard'][$x]['dashboard_url'] = '/app/call_forward/call_forward.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
-$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
+$array['dashboard'][$x]['dashboard_number_background_color'] = '';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';
diff --git a/app/call_recordings/resources/classes/call_recordings.php b/app/call_recordings/resources/classes/call_recordings.php
index 0029970748..614a51c577 100644
--- a/app/call_recordings/resources/classes/call_recordings.php
+++ b/app/call_recordings/resources/classes/call_recordings.php
@@ -110,7 +110,7 @@ if (!class_exists('call_recordings')) {
if (is_array($array) && @sizeof($array) != 0) {
//add temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('xml_cdr_edit', 'temp');
//remove record_path, record_name and record_length
@@ -200,7 +200,7 @@ if (!class_exists('call_recordings')) {
if (is_array($array) && @sizeof($array) != 0) {
//add temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('xml_cdr_edit', 'temp');
//remove record_path, record_name and record_length
diff --git a/app/calls_active/app_languages.php b/app/calls_active/app_languages.php
index f87811d1fc..83d93f15a6 100644
--- a/app/calls_active/app_languages.php
+++ b/app/calls_active/app_languages.php
@@ -468,8 +468,8 @@ $text['label-domain']['zh-cn'] = "领域";
$text['label-domain']['ja-jp'] = "ドメイン";
$text['label-domain']['ko-kr'] = "도메인";
-$text['label-destination']['en-us'] = "Dest";
-$text['label-destination']['en-gb'] = "Dest";
+$text['label-destination']['en-us'] = "Destination";
+$text['label-destination']['en-gb'] = "Destination";
$text['label-destination']['ar-eg'] = "الوجهة";
$text['label-destination']['de-at'] = "Ziel";
$text['label-destination']['de-ch'] = "Ziel";
@@ -546,8 +546,8 @@ $text['label-codec']['zh-cn'] = "读/写编解码器";
$text['label-codec']['ja-jp'] = "読み取り/書き込みコーデック";
$text['label-codec']['ko-kr'] = "읽기/쓰기 코덱";
-$text['label-cid-number']['en-us'] = "CID Number";
-$text['label-cid-number']['en-gb'] = "CID Number";
+$text['label-cid-number']['en-us'] = "Caller Number";
+$text['label-cid-number']['en-gb'] = "Caller Number";
$text['label-cid-number']['ar-eg'] = "رقم CID";
$text['label-cid-number']['de-at'] = "Anrufer Nummer";
$text['label-cid-number']['de-ch'] = "Anrufer Nummer";
@@ -572,8 +572,8 @@ $text['label-cid-number']['zh-cn'] = "来电号码";
$text['label-cid-number']['ja-jp'] = "CID番号";
$text['label-cid-number']['ko-kr'] = "CID 번호";
-$text['label-cid-name']['en-us'] = "CID Name";
-$text['label-cid-name']['en-gb'] = "CID Name";
+$text['label-cid-name']['en-us'] = "Caller Name";
+$text['label-cid-name']['en-gb'] = "Caller Name";
$text['label-cid-name']['ar-eg'] = "اسم CID";
$text['label-cid-name']['de-at'] = "Anrufer Name";
$text['label-cid-name']['de-ch'] = "Anrufer Name";
@@ -650,6 +650,33 @@ $text['label-eavesdrop']['zh-cn'] = "窃听";
$text['label-eavesdrop']['ja-jp'] = "盗聴";
$text['label-eavesdrop']['ko-kr'] = "엿듣다";
+$text['label-duration']['en-us'] = "Duration";
+$text['label-duration']['en-gb'] = "Duration";
+$text['label-duration']['ar-eg'] = "المدة";
+$text['label-duration']['de-at'] = "Dauer";
+$text['label-duration']['de-ch'] = "Dauer";
+$text['label-duration']['de-de'] = "Dauer";
+$text['label-duration']['el-gr'] = "Διάρκεια";
+$text['label-duration']['es-cl'] = "Duración";
+$text['label-duration']['es-mx'] = "Duración";
+$text['label-duration']['fr-ca'] = "Durée";
+$text['label-duration']['fr-fr'] = "Durée";
+$text['label-duration']['he-il'] = "משך השיחה";
+$text['label-duration']['it-it'] = "Durata";
+$text['label-duration']['ka-ge'] = "ხანგრძლივობა";
+$text['label-duration']['nl-nl'] = "Duur";
+$text['label-duration']['pl-pl'] = "Czas trwania";
+$text['label-duration']['pt-br'] = "Duração";
+$text['label-duration']['pt-pt'] = "Duração";
+$text['label-duration']['ro-ro'] = "Durată";
+$text['label-duration']['ru-ru'] = "Продолжительность";
+$text['label-duration']['sv-se'] = "Samtalstid";
+$text['label-duration']['uk-ua'] = "Тривалість";
+$text['label-duration']['tr-tr'] = "Süre";
+$text['label-duration']['zh-cn'] = "期间";
+$text['label-duration']['ja-jp'] = "間隔";
+$text['label-duration']['ko-kr'] = "지속";
+
$text['description-2']['en-us'] = "Use this to view all extensions and monitor and interact with active calls.";
$text['description-2']['en-gb'] = "Use this to view all extensions and monitor and interact with active calls.";
$text['description-2']['ar-eg'] = "استخدم هذا لعرض جميع الملحقات ومراقبة المكالمات النشطة والتفاعل معها.";
diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php
index ffa00988c4..567951aa52 100644
--- a/app/calls_active/calls_active_inc.php
+++ b/app/calls_active/calls_active_inc.php
@@ -88,10 +88,8 @@
}
$num_rows = @sizeof($rows);
-
//if the connnection is available then run it and return the results
if (!$event_socket) {
-
$msg = "
".$text['confirm-socket']."
";
echo "
\n";
echo "
\n";
@@ -103,172 +101,203 @@
echo "\n";
echo "
\n";
echo "
\n";
-
+ return;
}
- else {
- //create token
- $object = new token;
- $token = $object->create('/app/calls_active/calls_active_inc.php');
+//create token
+ $object = new token;
+ $token = $object->create('/app/calls_active/calls_active_inc.php');
- //show content
- echo "
\n";
- echo "
".$text['title']."".number_format($num_rows)."
\n";
- echo "
\n";
- echo "
".button::create(['type'=>'button','title'=>$text['label-refresh_pause'],'icon'=>'sync-alt fa-spin','onclick'=>'refresh_stop()'])."";
- if (permission_exists('call_active_eavesdrop') && !empty($_SESSION['user']['extensions'])) {
- if (sizeof($_SESSION['user']['extensions']) > 1) {
- echo "
\n";
- echo "
\n";
- echo "
\n";
-?>
\ No newline at end of file
+?>
diff --git a/app/xml_cdr/resources/dashboard/recent_calls.php b/app/xml_cdr/resources/dashboard/recent_calls.php
index bdeb2148f3..8de16e74cb 100644
--- a/app/xml_cdr/resources/dashboard/recent_calls.php
+++ b/app/xml_cdr/resources/dashboard/recent_calls.php
@@ -147,7 +147,7 @@
echo "
\n";
echo "
\n";
echo " \n";
- echo " ".$num_rows."\n";
+ echo " ".$num_rows."\n";
echo "
\n";
echo "
";
}
@@ -240,4 +240,4 @@
}
echo "
\n";
-?>
\ No newline at end of file
+?>
diff --git a/app/xml_cdr/xml_cdr_details.php b/app/xml_cdr/xml_cdr_details.php
index 414b6f998a..eca4c79e62 100644
--- a/app/xml_cdr/xml_cdr_details.php
+++ b/app/xml_cdr/xml_cdr_details.php
@@ -114,7 +114,7 @@
if (is_array($array) && @sizeof($array) != 0) {
//add temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('xml_cdr_edit', 'temp');
//remove record_path, record_name and record_length
diff --git a/app/xml_cdr/xml_cdr_extension_summary.php b/app/xml_cdr/xml_cdr_extension_summary.php
index fc77f5f507..b7eade3167 100644
--- a/app/xml_cdr/xml_cdr_extension_summary.php
+++ b/app/xml_cdr/xml_cdr_extension_summary.php
@@ -67,7 +67,7 @@
//set the headers
header('Content-type: application/octet-binary');
- header('Content-Disposition: attachment; filename=user-summary.csv');
+ header('Content-Disposition: attachment; filename=extension-summary.csv');
//show the column names on the first line
$z = 0;
diff --git a/app/yealink/app_config.php b/app/yealink/app_config.php
index d09a0784c2..2f5a9f280a 100644
--- a/app/yealink/app_config.php
+++ b/app/yealink/app_config.php
@@ -228,7 +228,7 @@
$apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "yealink_cid_source";
$apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
- $apps[$x]['default_settings'][$y]['default_setting_value'] = "2";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "4";
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "The type of SIP header(s) to carry the caller ID; 0-FROM, 1-PAI 2-PAI-FROM (default), 3-PRID-PAI-FROM, 4-PAI-RPID-FROM, 5-RPID-FROM, 6-Preference";
$y++;
diff --git a/core/authentication/app_defaults.php b/core/authentication/app_defaults.php
index d0d2c6f9f0..ed70985cbd 100644
--- a/core/authentication/app_defaults.php
+++ b/core/authentication/app_defaults.php
@@ -94,7 +94,7 @@
//add the missing email templates
if (!empty($array['email_templates'])) {
//add the temporary permission
- $p = new permissions;
+ $p = permissions::new();
$p->add("email_template_add", 'temp');
$p->add("email_template_edit", 'temp');
diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php
index 5355451606..790f319709 100644
--- a/core/authentication/resources/classes/authentication.php
+++ b/core/authentication/resources/classes/authentication.php
@@ -79,7 +79,7 @@ class authentication {
}
//check if contacts app exists
- $contacts_exists = file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/contacts/') ? true : false;
+ $contacts_exists = file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/core/contacts/') ? true : false;
//use the authentication plugins
foreach ($_SESSION['authentication']['methods'] as $name) {
diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php
index 7b55144de9..9d61f26379 100644
--- a/core/authentication/resources/classes/plugins/database.php
+++ b/core/authentication/resources/classes/plugins/database.php
@@ -171,7 +171,7 @@ class plugin_database {
$user_authorized = false;
//check if contacts app exists
- $contacts_exists = file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/contacts/') ? true : false;
+ $contacts_exists = file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/core/contacts/') ? true : false;
//check the username and password if they don't match then redirect to the login
$sql = "select ";
@@ -310,7 +310,7 @@ class plugin_database {
$array['user_groups'][0]['user_uuid'] = $this->user_uuid;
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_edit', 'temp');
//execute insert
diff --git a/core/authentication/resources/classes/plugins/email.php b/core/authentication/resources/classes/plugins/email.php
index dc822d7a01..900c467b36 100644
--- a/core/authentication/resources/classes/plugins/email.php
+++ b/core/authentication/resources/classes/plugins/email.php
@@ -258,7 +258,7 @@ class plugin_email {
$hostname = gethostname();
//add the temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add("email_queue_add", 'temp');
$p->add("email_queue_edit", 'temp');
@@ -404,7 +404,7 @@ class plugin_email {
unset($_POST['authentication_code']);
//check if contacts app exists
- $contacts_exists = file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/contacts/') ? true : false;
+ $contacts_exists = file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/core/contacts/') ? true : false;
//get the user details
if ($auth_valid) {
@@ -522,4 +522,4 @@ class plugin_email {
}
}
-?>
\ No newline at end of file
+?>
diff --git a/core/authentication/resources/classes/plugins/ldap.php b/core/authentication/resources/classes/plugins/ldap.php
index 3fe2ec859b..dfd499602f 100644
--- a/core/authentication/resources/classes/plugins/ldap.php
+++ b/core/authentication/resources/classes/plugins/ldap.php
@@ -178,7 +178,7 @@ class plugin_ldap {
$array['user_groups'][0]['user_uuid'] = $this->user_uuid;
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_add', 'temp');
$p->add('user_group_add', 'temp');
diff --git a/core/authentication/resources/classes/plugins/totp.php b/core/authentication/resources/classes/plugins/totp.php
index 5bb5134857..0524335a63 100644
--- a/core/authentication/resources/classes/plugins/totp.php
+++ b/core/authentication/resources/classes/plugins/totp.php
@@ -224,7 +224,7 @@ class plugin_totp {
$array['users'][$x]['user_totp_secret'] = $this->user_totp_secret;
//add the user_edit permission
- $p = new permissions;
+ $p = permissions::new();
$p->add("user_edit", "temp");
//save the data
@@ -328,7 +328,7 @@ class plugin_totp {
unset($_POST['authentication_code']);
//check if contacts app exists
- $contacts_exists = file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/contacts/') ? true : false;
+ $contacts_exists = file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/core/contacts/') ? true : false;
//get the user details
if ($auth_valid) {
@@ -440,4 +440,4 @@ class plugin_totp {
}
}
-?>
\ No newline at end of file
+?>
diff --git a/core/contacts/contact_address_edit.php b/core/contacts/contact_address_edit.php
index a1a079e2b3..1715f04f65 100644
--- a/core/contacts/contact_address_edit.php
+++ b/core/contacts/contact_address_edit.php
@@ -131,7 +131,7 @@
$array['contacts'][0]['last_mod_date'] = 'now()';
$array['contacts'][0]['last_mod_user'] = $_SESSION['username'];
- $p = new permissions;
+ $p = permissions::new();
$p->add('contact_edit', 'temp');
$database = new database;
diff --git a/core/contacts/contact_auth.php b/core/contacts/contact_auth.php
index b5c9335960..e43356017f 100644
--- a/core/contacts/contact_auth.php
+++ b/core/contacts/contact_auth.php
@@ -61,7 +61,7 @@ if ($_SESSION['contact_auth']['source'] == 'google') {
if (isset($_REQUEST['signout'])) {
unset($_SESSION['contact_auth']['token']);
message::add($text['message-google_signed_out']);
- header("Location: https://www.google.com/accounts/Logout?continue=https://appengine.google.com/_ah/logout?continue=".(($_SERVER["HTTPS"] == "on") ? "https" : "http")."://".$_SERVER['HTTP_HOST'].PROJECT_PATH."/app/contacts/".$_SESSION['contact_auth']['referer']);
+ header("Location: https://www.google.com/accounts/Logout?continue=https://appengine.google.com/_ah/logout?continue=".(($_SERVER["HTTPS"] == "on") ? "https" : "http")."://".$_SERVER['HTTP_HOST'].PROJECT_PATH."/core/contacts/".$_SESSION['contact_auth']['referer']);
exit;
}
@@ -117,4 +117,4 @@ else {
exit;
}
-?>
\ No newline at end of file
+?>
diff --git a/core/contacts/contact_edit.php b/core/contacts/contact_edit.php
index 605f7045fc..d8d1767eab 100644
--- a/core/contacts/contact_edit.php
+++ b/core/contacts/contact_edit.php
@@ -543,7 +543,7 @@
//save the data
if (!empty($array)) {
//add the permission object
- $p = new permissions;
+ $p = permissions::new();
$p->add('contact_add', 'temp');
$p->add('contact_phone_add', 'temp');
$p->add('contact_address_add', 'temp');
@@ -963,10 +963,10 @@
}
};
if (search) {
- xhttp.open("GET", "/app/contacts/contact_json.php?search="+search, true);
+ xhttp.open("GET", "/core/contacts/contact_json.php?search="+search, true);
}
else {
- xhttp.open("GET", "/app/contacts/contact_json.php", true);
+ xhttp.open("GET", "/core/contacts/contact_json.php", true);
}
xhttp.send();
}
diff --git a/core/contacts/contact_email_edit.php b/core/contacts/contact_email_edit.php
index b6c89d8b37..1f41f0ba77 100644
--- a/core/contacts/contact_email_edit.php
+++ b/core/contacts/contact_email_edit.php
@@ -112,7 +112,7 @@ if (!empty($_GET["contact_uuid"]) && is_uuid($_GET["contact_uuid"])) {
$array['contacts'][0]['last_mod_date'] = 'now()';
$array['contacts'][0]['last_mod_user'] = $_SESSION['username'];
- $p = new permissions;
+ $p = permissions::new();
$p->add('contact_edit', 'temp');
$database = new database;
diff --git a/core/contacts/contact_import_google.php b/core/contacts/contact_import_google.php
index 0cb041c5ef..aebd791ff6 100644
--- a/core/contacts/contact_import_google.php
+++ b/core/contacts/contact_import_google.php
@@ -107,7 +107,7 @@ if ($_POST['a'] == 'import') {
unset($duplicate_contact_uuid);
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('contact_delete', 'temp');
//delete duplicate contact
diff --git a/core/contacts/contact_note_edit.php b/core/contacts/contact_note_edit.php
index 6c6061e13a..0915d21c44 100644
--- a/core/contacts/contact_note_edit.php
+++ b/core/contacts/contact_note_edit.php
@@ -102,7 +102,7 @@
$array['contacts'][0]['last_mod_date'] = 'now()';
$array['contacts'][0]['last_mod_user'] = $_SESSION['username'];
- $p = new permissions;
+ $p = permissions::new();
$p->add('contact_edit', 'temp');
$database = new database;
diff --git a/core/contacts/contact_phone_edit.php b/core/contacts/contact_phone_edit.php
index 4d729c34f2..c999eb7aec 100644
--- a/core/contacts/contact_phone_edit.php
+++ b/core/contacts/contact_phone_edit.php
@@ -132,7 +132,7 @@
$array['contacts'][0]['last_mod_date'] = 'now()';
$array['contacts'][0]['last_mod_user'] = $_SESSION['username'];
- $p = new permissions;
+ $p = permissions::new();
$p->add('contact_edit', 'temp');
$database = new database;
diff --git a/core/contacts/contact_relation_edit.php b/core/contacts/contact_relation_edit.php
index e77b1d4fcf..f223e084e5 100644
--- a/core/contacts/contact_relation_edit.php
+++ b/core/contacts/contact_relation_edit.php
@@ -110,7 +110,7 @@
$array['contacts'][0]['last_mod_date'] = 'now()';
$array['contacts'][0]['last_mod_user'] = $_SESSION['username'];
- $p = new permissions;
+ $p = permissions::new();
$p->add('contact_edit', 'temp');
$database = new database;
@@ -241,10 +241,10 @@
}
};
if (search) {
- xhttp.open("GET", "/app/contacts/contact_json.php?search="+search, true);
+ xhttp.open("GET", "/core/contacts/contact_json.php?search="+search, true);
}
else {
- xhttp.open("GET", "/app/contacts/contact_json.php", true);
+ xhttp.open("GET", "/core/contacts/contact_json.php", true);
}
xhttp.send();
}
diff --git a/core/contacts/contact_setting_edit.php b/core/contacts/contact_setting_edit.php
index 5fe5a36dbb..94d1f63f71 100644
--- a/core/contacts/contact_setting_edit.php
+++ b/core/contacts/contact_setting_edit.php
@@ -129,7 +129,7 @@
$array['contacts'][0]['last_mod_date'] = 'now()';
$array['contacts'][0]['last_mod_user'] = $_SESSION['username'];
- $p = new permissions;
+ $p = permissions::new();
$p->add('contact_edit', 'temp');
$database = new database;
diff --git a/core/contacts/contact_time_edit.php b/core/contacts/contact_time_edit.php
index d7d4b0cb08..ec4d3fa7bb 100644
--- a/core/contacts/contact_time_edit.php
+++ b/core/contacts/contact_time_edit.php
@@ -102,7 +102,7 @@
$array['contacts'][0]['last_mod_date'] = 'now()';
$array['contacts'][0]['last_mod_user'] = $_SESSION['username'];
- $p = new permissions;
+ $p = permissions::new();
$p->add('contact_edit', 'temp');
$database = new database;
diff --git a/core/contacts/contact_url_edit.php b/core/contacts/contact_url_edit.php
index 3cef3ff885..323e5e7afa 100644
--- a/core/contacts/contact_url_edit.php
+++ b/core/contacts/contact_url_edit.php
@@ -115,7 +115,7 @@
$array['contacts'][0]['last_mod_date'] = 'now()';
$array['contacts'][0]['last_mod_user'] = $_SESSION['username'];
- $p = new permissions;
+ $p = permissions::new();
$p->add('contact_edit', 'temp');
$database = new database;
diff --git a/core/contacts/resources/classes/contacts.php b/core/contacts/resources/classes/contacts.php
index 9fa93eec23..c29f0243a8 100644
--- a/core/contacts/resources/classes/contacts.php
+++ b/core/contacts/resources/classes/contacts.php
@@ -108,7 +108,7 @@ if (!class_exists('contacts')) {
if (is_array($array) && @sizeof($array) != 0) {
//grant temp permissions
- $p = new permissions;
+ $p = permissions::new();
$database = new database;
foreach ($this->tables as $table) {
$p->add(database::singular($table).'_delete', 'temp');
diff --git a/core/contacts/resources/dashboard/config.php b/core/contacts/resources/dashboard/config.php
index 09f7ca8b64..4f076d885c 100644
--- a/core/contacts/resources/dashboard/config.php
+++ b/core/contacts/resources/dashboard/config.php
@@ -5,7 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = '3b0cbb2f-733d-4646-8332-7d108808f2f
$array['dashboard'][$x]['dashboard_name'] = 'Contacts';
$array['dashboard'][$x]['dashboard_path'] = 'dashboard/icon';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-regular fa-address-card';
-$array['dashboard'][$x]['dashboard_url'] = '/app/contacts/contacts.php';
+$array['dashboard'][$x]['dashboard_url'] = '/core/contacts/contacts.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
$array['dashboard'][$x]['dashboard_height'] = '';
diff --git a/core/dashboard/app_config.php b/core/dashboard/app_config.php
index 63f0950532..89549d09e7 100644
--- a/core/dashboard/app_config.php
+++ b/core/dashboard/app_config.php
@@ -78,6 +78,11 @@
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard icon.';
$z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_icon_color';
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard icon color.';
+ $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_url';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
@@ -157,6 +162,11 @@
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the number text color hover.';
$z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_number_background_color';
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the number background color.';
+ $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_background_color';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
diff --git a/core/dashboard/app_defaults.php b/core/dashboard/app_defaults.php
index 7334a5591a..7019d63cf1 100644
--- a/core/dashboard/app_defaults.php
+++ b/core/dashboard/app_defaults.php
@@ -66,7 +66,9 @@ if ($domains_processed == 1) {
if (!empty($row['dashboard_label_text_color_hover'])) { $array['dashboard'][$x]['dashboard_label_text_color_hover'] = $row['dashboard_label_text_color_hover']; }
if (!empty($row['dashboard_number_text_color'])) { $array['dashboard'][$x]['dashboard_number_text_color'] = $row['dashboard_number_text_color']; }
if (!empty($row['dashboard_number_text_color_hover'])) { $array['dashboard'][$x]['dashboard_number_text_color_hover'] = $row['dashboard_number_text_color_hover']; }
+ if (!empty($row['dashboard_number_background_color'])) { $array['dashboard'][$x]['dashboard_number_background_color'] = $row['dashboard_number_background_color']; }
if (!empty($row['dashboard_icon'])) { $array['dashboard'][$x]['dashboard_icon'] = $row['dashboard_icon']; }
+ if (!empty($row['dashboard_icon_color'])) { $array['dashboard'][$x]['dashboard_icon_color'] = $row['dashboard_icon_color']; }
if (!empty($row['dashboard_url'])) { $array['dashboard'][$x]['dashboard_url'] = $row['dashboard_url']; }
if (!empty($row['dashboard_width'])) { $array['dashboard'][$x]['dashboard_width'] = $row['dashboard_width']; }
if (!empty($row['dashboard_height'])) { $array['dashboard'][$x]['dashboard_height'] = $row['dashboard_height']; }
@@ -98,7 +100,7 @@ if ($domains_processed == 1) {
}
//add the temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('dashboard_add', 'temp');
$p->add('dashboard_group_add', 'temp');
diff --git a/core/dashboard/app_languages.php b/core/dashboard/app_languages.php
index 1cdca26cda..02d88537c3 100644
--- a/core/dashboard/app_languages.php
+++ b/core/dashboard/app_languages.php
@@ -216,6 +216,168 @@ $text['description-dashboard_path']['zh-cn'] = "输入仪表板小部件路径
$text['description-dashboard_path']['ja-jp'] = "ダッシュボード ウィジェットのパスを入力します。";
$text['description-dashboard_path']['ko-kr'] = "대시보드 위젯 경로를 입력합니다.";
+$text['description-dashboard_icon']['en-us'] = "Select an icon.";
+$text['description-dashboard_icon']['en-gb'] = "Select an icon.";
+$text['description-dashboard_icon']['ar-eg'] = "اختر أيقونة.";
+$text['description-dashboard_icon']['de-at'] = "Wählen Sie ein Symbol.";
+$text['description-dashboard_icon']['de-ch'] = "Wählen Sie ein Symbol.";
+$text['description-dashboard_icon']['de-de'] = "Wählen Sie ein Symbol.";
+$text['description-dashboard_icon']['el-gr'] = "Επιλέξτε ένα εικονίδιο.";
+$text['description-dashboard_icon']['es-cl'] = "Selecciona un ícono.";
+$text['description-dashboard_icon']['es-mx'] = "Selecciona un ícono.";
+$text['description-dashboard_icon']['fr-ca'] = "Sélectionnez une icône.";
+$text['description-dashboard_icon']['fr-fr'] = "Sélectionnez une icône.";
+$text['description-dashboard_icon']['he-il'] = "בחר אייקון.";
+$text['description-dashboard_icon']['it-it'] = "Seleziona un'icona.";
+$text['description-dashboard_icon']['ka-ge'] = "აირჩიეთ ხატული.";
+$text['description-dashboard_icon']['nl-nl'] = "Selecteer een pictogram.";
+$text['description-dashboard_icon']['pl-pl'] = "Wybierz ikonę.";
+$text['description-dashboard_icon']['pt-br'] = "Selecione um ícone.";
+$text['description-dashboard_icon']['pt-pt'] = "Selecione um ícone.";
+$text['description-dashboard_icon']['ro-ro'] = "Selectați o pictogramă.";
+$text['description-dashboard_icon']['ru-ru'] = "Выберите значок.";
+$text['description-dashboard_icon']['sv-se'] = "Välj ett ikon.";
+$text['description-dashboard_icon']['uk-ua'] = "Виберіть значок.";
+$text['description-dashboard_icon']['tr-tr'] = "Bir simge seçin.";
+$text['description-dashboard_icon']['zh-cn'] = "选择一个图标。";
+$text['description-dashboard_icon']['ja-jp'] = "アイコンを選択してください。";
+$text['description-dashboard_icon']['ko-kr'] = "아이콘을 선택하세요.";
+
+$text['label-dashboard_icon_color']['en-us'] = "Color";
+$text['label-dashboard_icon_color']['en-gb'] = "Color";
+$text['label-dashboard_icon_color']['ar-eg'] = "اللون";
+$text['label-dashboard_icon_color']['de-at'] = "Farbe";
+$text['label-dashboard_icon_color']['de-ch'] = "Farbe";
+$text['label-dashboard_icon_color']['de-de'] = "Farbe";
+$text['label-dashboard_icon_color']['el-gr'] = "Χρώμα";
+$text['label-dashboard_icon_color']['es-cl'] = "Color";
+$text['label-dashboard_icon_color']['es-mx'] = "Color";
+$text['label-dashboard_icon_color']['fr-ca'] = "Couleur";
+$text['label-dashboard_icon_color']['fr-fr'] = "Couleur";
+$text['label-dashboard_icon_color']['he-il'] = "צבע";
+$text['label-dashboard_icon_color']['it-it'] = "Colore";
+$text['label-dashboard_icon_color']['ka-ge'] = "ფერი";
+$text['label-dashboard_icon_color']['nl-nl'] = "Kleur";
+$text['label-dashboard_icon_color']['pl-pl'] = "Kolor";
+$text['label-dashboard_icon_color']['pt-br'] = "Cor";
+$text['label-dashboard_icon_color']['pt-pt'] = "Cor";
+$text['label-dashboard_icon_color']['ro-ro'] = "Culoare";
+$text['label-dashboard_icon_color']['ru-ru'] = "Цвет";
+$text['label-dashboard_icon_color']['sv-se'] = "Färg";
+$text['label-dashboard_icon_color']['uk-ua'] = "Колір";
+$text['label-dashboard_icon_color']['tr-tr'] = "Renk";
+$text['label-dashboard_icon_color']['zh-cn'] = "颜色";
+$text['label-dashboard_icon_color']['ja-jp'] = "色";
+$text['label-dashboard_icon_color']['ko-kr'] = "색상";
+
+$text['description-dashboard_icon_color']['en-us'] = "Enter the icon color.";
+$text['description-dashboard_icon_color']['en-gb'] = "Enter the icon color.";
+$text['description-dashboard_icon_color']['ar-eg'] = "أدخل لون الأيقونة.";
+$text['description-dashboard_icon_color']['de-at'] = "Geben Sie die Symbolfarbe ein.";
+$text['description-dashboard_icon_color']['de-ch'] = "Geben Sie die Symbolfarbe ein.";
+$text['description-dashboard_icon_color']['de-de'] = "Geben Sie die Symbolfarbe ein.";
+$text['description-dashboard_icon_color']['el-gr'] = "Εισάγετε το χρώμα του εικονιδίου.";
+$text['description-dashboard_icon_color']['es-cl'] = "Ingresa el color del ícono.";
+$text['description-dashboard_icon_color']['es-mx'] = "Ingresa el color del ícono.";
+$text['description-dashboard_icon_color']['fr-ca'] = "Entrez la couleur de l'icône.";
+$text['description-dashboard_icon_color']['fr-fr'] = "Entrez la couleur de l'icône.";
+$text['description-dashboard_icon_color']['he-il'] = "הזן את צבע האייקון.";
+$text['description-dashboard_icon_color']['it-it'] = "Inserisci il colore dell'icona.";
+$text['description-dashboard_icon_color']['ka-ge'] = "შეიყვანეთ ხატულის ფერი.";
+$text['description-dashboard_icon_color']['nl-nl'] = "Voer de kleur van het pictogram in.";
+$text['description-dashboard_icon_color']['pl-pl'] = "Wprowadź kolor ikony.";
+$text['description-dashboard_icon_color']['pt-br'] = "Digite a cor do ícone.";
+$text['description-dashboard_icon_color']['pt-pt'] = "Digite a cor do ícone.";
+$text['description-dashboard_icon_color']['ro-ro'] = "Introduceți culoarea pictogramei.";
+$text['description-dashboard_icon_color']['ru-ru'] = "Введите цвет значка.";
+$text['description-dashboard_icon_color']['sv-se'] = "Ange ikons färg.";
+$text['description-dashboard_icon_color']['uk-ua'] = "Введіть колір значка.";
+$text['description-dashboard_icon_color']['tr-tr'] = "Simge rengini girin.";
+$text['description-dashboard_icon_color']['zh-cn'] = "输入图标颜色。";
+$text['description-dashboard_icon_color']['ja-jp'] = "アイコンの色を入力してください。";
+$text['description-dashboard_icon_color']['ko-kr'] = "아이콘 색상을 입력하세요.";
+
+$text['description-dashboard_url']['en-us'] = "Enter the URL.";
+$text['description-dashboard_url']['en-gb'] = "Enter the URL.";
+$text['description-dashboard_url']['ar-eg'] = "أدخل الرابط.";
+$text['description-dashboard_url']['de-at'] = "Geben Sie die URL ein.";
+$text['description-dashboard_url']['de-ch'] = "Geben Sie die URL ein.";
+$text['description-dashboard_url']['de-de'] = "Geben Sie die URL ein.";
+$text['description-dashboard_url']['el-gr'] = "Εισάγετε τη διεύθυνση URL.";
+$text['description-dashboard_url']['es-cl'] = "Ingrese la URL.";
+$text['description-dashboard_url']['es-mx'] = "Ingrese la URL.";
+$text['description-dashboard_url']['fr-ca'] = "Entrez l'URL.";
+$text['description-dashboard_url']['fr-fr'] = "Entrez l'URL.";
+$text['description-dashboard_url']['he-il'] = "הכנס את ה-URL.";
+$text['description-dashboard_url']['it-it'] = "Inserisci l'URL.";
+$text['description-dashboard_url']['ka-ge'] = "შეიყვანეთ URL-მისამართი.";
+$text['description-dashboard_url']['nl-nl'] = "Voer de URL in.";
+$text['description-dashboard_url']['pl-pl'] = "Wprowadź URL.";
+$text['description-dashboard_url']['pt-br'] = "Digite a URL.";
+$text['description-dashboard_url']['pt-pt'] = "Digite a URL.";
+$text['description-dashboard_url']['ro-ro'] = "Introduceți URL-ul.";
+$text['description-dashboard_url']['ru-ru'] = "Введите URL.";
+$text['description-dashboard_url']['sv-se'] = "Ange URL:en.";
+$text['description-dashboard_url']['uk-ua'] = "Введіть URL.";
+$text['description-dashboard_url']['tr-tr'] = "URL'yi girin.";
+$text['description-dashboard_url']['zh-cn'] = "请输入网址.";
+$text['description-dashboard_url']['ja-jp'] = "URLを入力してください。";
+$text['description-dashboard_url']['ko-kr'] = "URL을 입력하세요.";
+
+$text['description-dashboard_width']['en-us'] = "Enter the window width.";
+$text['description-dashboard_width']['en-gb'] = "Enter the window width.";
+$text['description-dashboard_width']['ar-eg'] = "أدخل عرض النافذة.";
+$text['description-dashboard_width']['de-at'] = "Geben Sie die Fensterbreite ein.";
+$text['description-dashboard_width']['de-ch'] = "Geben Sie die Fensterbreite ein.";
+$text['description-dashboard_width']['de-de'] = "Geben Sie die Fensterbreite ein.";
+$text['description-dashboard_width']['el-gr'] = "Εισάγετε το πλάτος του παραθύρου.";
+$text['description-dashboard_width']['es-cl'] = "Ingrese el ancho de la ventana.";
+$text['description-dashboard_width']['es-mx'] = "Ingrese el ancho de la ventana.";
+$text['description-dashboard_width']['fr-ca'] = "Entrez la largeur de la fenêtre.";
+$text['description-dashboard_width']['fr-fr'] = "Entrez la largeur de la fenêtre.";
+$text['description-dashboard_width']['he-il'] = "הכנס את רוחב החלון.";
+$text['description-dashboard_width']['it-it'] = "Inserisci la larghezza della finestra.";
+$text['description-dashboard_width']['ka-ge'] = "შეიყვანეთ ფანჯრის სიგანე.";
+$text['description-dashboard_width']['nl-nl'] = "Voer de vensterbreedte in.";
+$text['description-dashboard_width']['pl-pl'] = "Wprowadź szerokość okna.";
+$text['description-dashboard_width']['pt-br'] = "Digite a largura da janela.";
+$text['description-dashboard_width']['pt-pt'] = "Digite a largura da janela.";
+$text['description-dashboard_width']['ro-ro'] = "Introduceți lățimea ferestrei.";
+$text['description-dashboard_width']['ru-ru'] = "Введите ширину окна.";
+$text['description-dashboard_width']['sv-se'] = "Ange fönstrets bredd.";
+$text['description-dashboard_width']['uk-ua'] = "Введіть ширину вікна.";
+$text['description-dashboard_width']['tr-tr'] = "Pencere genişliğini girin.";
+$text['description-dashboard_width']['zh-cn'] = "请输入窗口宽度.";
+$text['description-dashboard_width']['ja-jp'] = "ウィンドウの幅を入力してください。";
+$text['description-dashboard_width']['ko-kr'] = "창 너비를 입력하세요.";
+
+$text['description-dashboard_height']['en-us'] = "Enter the window height.";
+$text['description-dashboard_height']['en-gb'] = "Enter the window height.";
+$text['description-dashboard_height']['ar-eg'] = "أدخل ارتفاع النافذة.";
+$text['description-dashboard_height']['de-at'] = "Geben Sie die Fensterhöhe ein.";
+$text['description-dashboard_height']['de-ch'] = "Geben Sie die Fensterhöhe ein.";
+$text['description-dashboard_height']['de-de'] = "Geben Sie die Fensterhöhe ein.";
+$text['description-dashboard_height']['el-gr'] = "Εισάγετε το ύψος του παραθύρου.";
+$text['description-dashboard_height']['es-cl'] = "Ingrese la altura de la ventana.";
+$text['description-dashboard_height']['es-mx'] = "Ingrese la altura de la ventana.";
+$text['description-dashboard_height']['fr-ca'] = "Entrez la hauteur de la fenêtre.";
+$text['description-dashboard_height']['fr-fr'] = "Entrez la hauteur de la fenêtre.";
+$text['description-dashboard_height']['he-il'] = "הכנס את גובה החלון.";
+$text['description-dashboard_height']['it-it'] = "Inserisci l'altezza della finestra.";
+$text['description-dashboard_height']['ka-ge'] = "შეიყვანეთ ფანჯრის სიმაღლე.";
+$text['description-dashboard_height']['nl-nl'] = "Voer de vensterhoogte in.";
+$text['description-dashboard_height']['pl-pl'] = "Wprowadź wysokość okna.";
+$text['description-dashboard_height']['pt-br'] = "Digite a altura da janela.";
+$text['description-dashboard_height']['pt-pt'] = "Digite a altura da janela.";
+$text['description-dashboard_height']['ro-ro'] = "Introduceți înălțimea ferestrei.";
+$text['description-dashboard_height']['ru-ru'] = "Введите высоту окна.";
+$text['description-dashboard_height']['sv-se'] = "Ange fönstrets höjd.";
+$text['description-dashboard_height']['uk-ua'] = "Введіть висоту вікна.";
+$text['description-dashboard_height']['tr-tr'] = "Pencere yüksekliğini girin.";
+$text['description-dashboard_height']['zh-cn'] = "请输入窗口高度.";
+$text['description-dashboard_height']['ja-jp'] = "ウィンドウの高さを入力してください。";
+$text['description-dashboard_height']['ko-kr'] = "창 높이를 입력하세요.";
+
$text['label-dashboard_content_text_align']['en-us'] = "Text Align";
$text['label-dashboard_content_text_align']['en-gb'] = "Text Align";
$text['label-dashboard_content_text_align']['ar-eg'] = "محاذاة النص";
@@ -488,7 +650,7 @@ $text['label-doughnut']['ko-kr'] = "도넛";
$text['label-progress_bar']['en-us'] = "Progress Bar";
$text['label-progress_bar']['en-gb'] = "Progress Bar";
-$text['label-progress_bar']['ar-eg'] = "شريط التقدم";
+$text['label-progress_bar']['ar-eg'] = "شريط التقدم";
$text['label-progress_bar']['de-at'] = "Fortschrittsbalken";
$text['label-progress_bar']['de-ch'] = "Fortschrittsbalken";
$text['label-progress_bar']['de-de'] = "Fortschrittsbalken";
@@ -511,7 +673,7 @@ $text['label-progress_bar']['uk-ua'] = "Індикатор виконання";
$text['label-progress_bar']['tr-tr'] = "İlerleme Çubuğu";
$text['label-progress_bar']['zh-cn'] = "进度条";
$text['label-progress_bar']['ja-jp'] = "進行バー";
-$text['label-progress_bar']['ko-kr'] = "진행 막대";
+$text['label-progress_bar']['ko-kr'] = "진행 막대";
$text['label-dashboard_label_enabled']['en-us'] = "Label Enabled";
$text['label-dashboard_label_enabled']['en-gb'] = "Label Enabled";
@@ -891,6 +1053,60 @@ $text['description-dashboard_number_text_color_hover']['zh-cn'] = "输入仪表
$text['description-dashboard_number_text_color_hover']['ja-jp'] = "ダッシュボード ウィジェットの番号、テキストの色、ホバーを入力します。";
$text['description-dashboard_number_text_color_hover']['ko-kr'] = "대시보드 위젯 번호 텍스트 색상을 마우스로 가리키면 입력됩니다.";
+$text['label-dashboard_number_background_color']['en-us'] = "Number Background Color";
+$text['label-dashboard_number_background_color']['en-gb'] = "Number Background Color";
+$text['label-dashboard_number_background_color']['ar-eg'] = "لون خلفية الرقم";
+$text['label-dashboard_number_background_color']['de-at'] = "Hintergrundfarbe der Zahl";
+$text['label-dashboard_number_background_color']['de-ch'] = "Hintergrundfarbe der Zahl";
+$text['label-dashboard_number_background_color']['de-de'] = "Hintergrundfarbe der Zahl";
+$text['label-dashboard_number_background_color']['el-gr'] = "Χρώμα φόντου αριθμού";
+$text['label-dashboard_number_background_color']['es-cl'] = "Color de fondo del número";
+$text['label-dashboard_number_background_color']['es-mx'] = "Color de fondo del número";
+$text['label-dashboard_number_background_color']['fr-ca'] = "Couleur de fond du nombre";
+$text['label-dashboard_number_background_color']['fr-fr'] = "Couleur de fond du nombre";
+$text['label-dashboard_number_background_color']['he-il'] = "צבע רקע המספר";
+$text['label-dashboard_number_background_color']['it-it'] = "Colore di sfondo del numero";
+$text['label-dashboard_number_background_color']['ka-ge'] = "რიცხვის ფონური ფერი";
+$text['label-dashboard_number_background_color']['nl-nl'] = "Achtergrondkleur van het nummer";
+$text['label-dashboard_number_background_color']['pl-pl'] = "Kolor tła liczby";
+$text['label-dashboard_number_background_color']['pt-br'] = "Cor de fundo do número";
+$text['label-dashboard_number_background_color']['pt-pt'] = "Cor de fundo do número";
+$text['label-dashboard_number_background_color']['ro-ro'] = "Culoare fundal număr";
+$text['label-dashboard_number_background_color']['ru-ru'] = "Цвет фона числа";
+$text['label-dashboard_number_background_color']['sv-se'] = "Nummerbakgrundsfärg";
+$text['label-dashboard_number_background_color']['uk-ua'] = "Колір фону числа";
+$text['label-dashboard_number_background_color']['tr-tr'] = "Numara Arka Plan Rengi";
+$text['label-dashboard_number_background_color']['zh-cn'] = "数字背景颜色";
+$text['label-dashboard_number_background_color']['ja-jp'] = "数字の背景色";
+$text['label-dashboard_number_background_color']['ko-kr'] = "숫자 배경 색상";
+
+$text['description-dashboard_number_background_color']['en-us'] = "Enter the dashboard widget number background color.";
+$text['description-dashboard_number_background_color']['en-gb'] = "Enter the dashboard widget number background color.";
+$text['description-dashboard_number_background_color']['ar-eg'] = "أدخل لون خلفية الرقم في عنصر واجهة المستخدم على لوحة التحكم.";
+$text['description-dashboard_number_background_color']['de-at'] = "Geben Sie die Hintergrundfarbe der Zahl im Dashboard-Widget ein.";
+$text['description-dashboard_number_background_color']['de-ch'] = "Geben Sie die Hintergrundfarbe der Zahl im Dashboard-Widget ein.";
+$text['description-dashboard_number_background_color']['de-de'] = "Geben Sie die Hintergrundfarbe der Zahl im Dashboard-Widget ein.";
+$text['description-dashboard_number_background_color']['el-gr'] = "Εισάγετε το χρώμα φόντου του αριθμού στο widget του πίνακα ελέγχου.";
+$text['description-dashboard_number_background_color']['es-cl'] = "Ingrese el color de fondo del número en el widget del tablero.";
+$text['description-dashboard_number_background_color']['es-mx'] = "Ingrese el color de fondo del número en el widget del tablero.";
+$text['description-dashboard_number_background_color']['fr-ca'] = "Entrez la couleur de fond du nombre dans le widget du tableau de bord.";
+$text['description-dashboard_number_background_color']['fr-fr'] = "Entrez la couleur de fond du nombre dans le widget du tableau de bord.";
+$text['description-dashboard_number_background_color']['he-il'] = "הזן את צבע הרקע של המספר בווידג'ט בלוח המחוונים.";
+$text['description-dashboard_number_background_color']['it-it'] = "Inserisci il colore di sfondo del numero nel widget del cruscotto.";
+$text['description-dashboard_number_background_color']['ka-ge'] = "შეიტანეთ ფონი რიცხვის ფონური ფერი ვიჯეტში.";
+$text['description-dashboard_number_background_color']['nl-nl'] = "Voer de achtergrondkleur van het nummer in het dashboardwidget in.";
+$text['description-dashboard_number_background_color']['pl-pl'] = "Wprowadź kolor tła liczby w widżecie pulpitu nawigacyjnego.";
+$text['description-dashboard_number_background_color']['pt-br'] = "Digite a cor de fundo do número no widget do painel.";
+$text['description-dashboard_number_background_color']['pt-pt'] = "Digite a cor de fundo do número no widget do painel.";
+$text['description-dashboard_number_background_color']['ro-ro'] = "Introduceți culoarea de fundal a numărului în widgetul tabloului de bord.";
+$text['description-dashboard_number_background_color']['ru-ru'] = "Введите цвет фона числа в виджете панели управления.";
+$text['description-dashboard_number_background_color']['sv-se'] = "Ange bakgrundsfärgen för numret i dashboard-widgeten.";
+$text['description-dashboard_number_background_color']['uk-ua'] = "Введіть колір фону числа в віджеті панелі інструментів.";
+$text['description-dashboard_number_background_color']['tr-tr'] = "Panel aracındaki numara arka plan rengini girin.";
+$text['description-dashboard_number_background_color']['zh-cn'] = "输入仪表板小部件中数字的背景颜色。";
+$text['description-dashboard_number_background_color']['ja-jp'] = "ダッシュボードウィジェットの数字の背景色を入力してください。";
+$text['description-dashboard_number_background_color']['ko-kr'] = "대시보드 위젯 숫자의 배경 색상을 입력하세요.";
+
$text['label-dashboard_background_color']['en-us'] = "Background Color";
$text['label-dashboard_background_color']['en-gb'] = "Background Color";
$text['label-dashboard_background_color']['ar-eg'] = "لون الخلفية";
diff --git a/core/dashboard/dashboard_edit.php b/core/dashboard/dashboard_edit.php
index 225449b07e..24915a82c3 100644
--- a/core/dashboard/dashboard_edit.php
+++ b/core/dashboard/dashboard_edit.php
@@ -47,6 +47,7 @@
$dashboard_path = 'dashboard/icon';
//$dashboard_path = '';
$dashboard_icon = '';
+ $dashboard_icon_color = '';
$dashboard_url = '';
$dashboard_target = 'self';
$dashboard_width = '';
@@ -58,6 +59,7 @@
$dashboard_label_text_color = '';
$dashboard_label_background_color = '';
$dashboard_number_text_color = '';
+ $dashboard_number_background_color = '';
$dashboard_groups = [];
$dashboard_column_span = '';
$dashboard_row_span = '';
@@ -83,6 +85,7 @@
$dashboard_name = $_POST["dashboard_name"] ?? '';
$dashboard_path = $_POST["dashboard_path"] ?? '';
$dashboard_icon = $_POST["dashboard_icon"] ?? '';
+ $dashboard_icon_color = $_POST["dashboard_icon_color"] ?? '';
$dashboard_url = $_POST["dashboard_url"] ?? '';
$dashboard_target = $_POST["dashboard_target"] ?? 'self';
$dashboard_width = $_POST["dashboard_width"] ?? '';
@@ -99,6 +102,7 @@
$dashboard_label_background_color_hover = $_POST["dashboard_label_background_color_hover"] ?? '';
$dashboard_number_text_color = $_POST["dashboard_number_text_color"] ?? '';
$dashboard_number_text_color_hover = $_POST["dashboard_number_text_color_hover"] ?? '';
+ $dashboard_number_background_color = $_POST["dashboard_number_background_color"] ?? '';
$dashboard_background_color = $_POST["dashboard_background_color"] ?? '';
$dashboard_background_color_hover = $_POST["dashboard_background_color_hover"] ?? '';
$dashboard_detail_background_color = $_POST["dashboard_detail_background_color"] ?? '';
@@ -121,6 +125,7 @@
$dashboard_name = trim(preg_replace('/[^a-zA-Z0-9 _\-\/.#]/', '', $dashboard_name));
$dashboard_path = preg_replace($text_pattern, '', strtolower($dashboard_path));
$dashboard_icon = preg_replace($text_pattern, '', $dashboard_icon);
+ $dashboard_icon_color = preg_replace($text_pattern, '', $dashboard_icon_color);
$dashboard_url = trim(preg_replace($text_pattern, '', $dashboard_url));
$dashboard_target = trim(preg_replace($text_pattern, '', $dashboard_target));
$dashboard_width = trim(preg_replace($text_pattern, '', $dashboard_width));
@@ -136,6 +141,7 @@
$dashboard_label_background_color_hover = preg_replace($text_pattern, '', $dashboard_label_background_color_hover);
$dashboard_number_text_color = preg_replace($text_pattern, '', $dashboard_number_text_color);
$dashboard_number_text_color_hover = preg_replace($text_pattern, '', $dashboard_number_text_color_hover);
+ $dashboard_number_background_color = preg_replace($text_pattern, '', $dashboard_number_background_color);
$dashboard_background_color = preg_replace($text_pattern, '', $dashboard_background_color);
$dashboard_background_color_hover = preg_replace($text_pattern, '', $dashboard_background_color_hover);
$dashboard_detail_background_color = preg_replace($text_pattern, '', $dashboard_detail_background_color);
@@ -273,6 +279,7 @@
$array['dashboard'][0]['dashboard_name'] = $dashboard_name;
$array['dashboard'][0]['dashboard_path'] = $dashboard_path;
$array['dashboard'][0]['dashboard_icon'] = $dashboard_icon;
+ $array['dashboard'][0]['dashboard_icon_color'] = $dashboard_icon_color;
$array['dashboard'][0]['dashboard_url'] = $dashboard_url;
$array['dashboard'][0]['dashboard_width'] = $dashboard_width;
$array['dashboard'][0]['dashboard_height'] = $dashboard_height;
@@ -288,6 +295,7 @@
$array['dashboard'][0]['dashboard_label_background_color_hover'] = $dashboard_label_background_color_hover;
$array['dashboard'][0]['dashboard_number_text_color'] = $dashboard_number_text_color;
$array['dashboard'][0]['dashboard_number_text_color_hover'] = $dashboard_number_text_color_hover;
+ $array['dashboard'][0]['dashboard_number_background_color'] = $dashboard_number_background_color;
$array['dashboard'][0]['dashboard_background_color'] = $dashboard_background_color;
$array['dashboard'][0]['dashboard_background_color_hover'] = $dashboard_background_color_hover;
$array['dashboard'][0]['dashboard_detail_background_color'] = $dashboard_detail_background_color;
@@ -338,6 +346,7 @@
$sql .= " dashboard_name, ";
$sql .= " dashboard_path, ";
$sql .= " dashboard_icon, ";
+ $sql .= " dashboard_icon_color, ";
$sql .= " dashboard_url, ";
$sql .= " dashboard_width, ";
$sql .= " dashboard_height, ";
@@ -353,6 +362,7 @@
$sql .= " dashboard_label_background_color_hover, ";
$sql .= " dashboard_number_text_color, ";
$sql .= " dashboard_number_text_color_hover, ";
+ $sql .= " dashboard_number_background_color, ";
$sql .= " dashboard_background_color, ";
$sql .= " dashboard_background_color_hover, ";
$sql .= " dashboard_detail_background_color, ";
@@ -373,6 +383,7 @@
$dashboard_name = $row["dashboard_name"];
$dashboard_path = $row["dashboard_path"];
$dashboard_icon = $row["dashboard_icon"];
+ $dashboard_icon_color = $row["dashboard_icon_color"];
$dashboard_url = $row["dashboard_url"];
$dashboard_width = $row["dashboard_width"];
$dashboard_height = $row["dashboard_height"];
@@ -388,6 +399,7 @@
$dashboard_label_background_color_hover = $row["dashboard_label_background_color_hover"];
$dashboard_number_text_color = $row["dashboard_number_text_color"];
$dashboard_number_text_color_hover = $row["dashboard_number_text_color_hover"];
+ $dashboard_number_background_color = $row["dashboard_number_background_color"];
$dashboard_background_color = $row["dashboard_background_color"];
$dashboard_background_color_hover = $row["dashboard_background_color_hover"];
$dashboard_detail_background_color = $row["dashboard_detail_background_color"];
@@ -650,9 +662,21 @@
else {
echo "
";
}
+ echo $text['description-dashboard_icon']."\n";
echo " ";
echo " ";
+ echo "
\n";
+ echo "| \n";
+ echo $text['label-dashboard_icon_color']."\n";
+ echo " | \n";
+ echo "\n";
+ echo " \n";
+ echo " \n";
+ echo $text['description-dashboard_icon_color']."\n";
+ echo " | \n";
+ echo "
\n";
+
echo "
\n";
echo "| \n";
echo " ".$text['label-link']."\n";
@@ -704,10 +728,7 @@
echo " |
\n";
}
- if (
- $action == "add" ||
- $dashboard_path == "dashboard/content"
- ) {
+ if ($action == "add" || $dashboard_path == "dashboard/content") {
echo "
\n";
echo "| \n";
echo " ".$text['label-content']."\n";
@@ -734,11 +755,7 @@
echo " |
\n";
}
- if (
- $action == "add" ||
- $dashboard_path == "dashboard/content" ||
- $dashboard_path == "dashboard/icon"
- ) {
+ if ($action == "add" || $dashboard_path == "dashboard/content" || $dashboard_path == "dashboard/icon") {
echo "
\n";
echo "| \n";
echo " ".$text['label-details']."\n";
@@ -793,8 +810,7 @@
echo " | \n";
echo "
\n";
- if (
- $dashboard_path == "voicemails/voicemails" ||
+ if ($dashboard_path == "voicemails/voicemails" ||
$dashboard_path == "xml_cdr/missed_calls" ||
$dashboard_path == "xml_cdr/recent_calls" ||
$dashboard_path == "system/system_status" ||
@@ -808,8 +824,7 @@
$dashboard_path == "registrations/registrations" ||
$dashboard_path == "domains/domains" ||
$dashboard_path == "extensions/caller_id" ||
- $dashboard_path == "maintenance/maintenance"
- ) {
+ $dashboard_path == "maintenance/maintenance") {
echo "
\n";
echo "| \n";
echo $text['label-dashboard_chart_type']."\n";
@@ -900,18 +915,18 @@
echo " |
\n";
}
- echo "
\n";
- echo "| \n";
- echo $text['label-dashboard_number_text_color']."\n";
- echo " | \n";
- echo "\n";
- echo " \n";
- echo " \n";
- echo $text['description-dashboard_number_text_color']."\n";
- echo " | \n";
- echo "
\n";
+ if ($dashboard_path != "dashboard/icon") {
+ echo "
\n";
+ echo "| \n";
+ echo $text['label-dashboard_number_text_color']."\n";
+ echo " | \n";
+ echo "\n";
+ echo " \n";
+ echo " \n";
+ echo $text['description-dashboard_number_text_color']."\n";
+ echo " | \n";
+ echo "
\n";
- if ($action == "add" || $dashboard_path == "dashboard/icon") {
echo "
\n";
echo "| \n";
echo $text['label-dashboard_number_text_color_hover']."\n";
@@ -923,6 +938,19 @@
echo " | \n";
echo "
\n";
}
+
+ if ($dashboard_chart_type == "icon") {
+ echo "
\n";
+ echo "| \n";
+ echo $text['label-dashboard_number_background_color']."\n";
+ echo " | \n";
+ echo "\n";
+ echo " \n";
+ echo " \n";
+ echo $text['description-dashboard_number_background_color']."\n";
+ echo " | \n";
+ echo "
\n";
+ }
echo "
\n";
echo "| \n";
diff --git a/core/dashboard/index.php b/core/dashboard/index.php
index f58b4da2b3..c9b92880dc 100644
--- a/core/dashboard/index.php
+++ b/core/dashboard/index.php
@@ -78,6 +78,7 @@
$sql .= "dashboard_name, ";
$sql .= "dashboard_path, ";
$sql .= "dashboard_icon, ";
+ $sql .= "dashboard_icon_color, ";
$sql .= "dashboard_url, ";
$sql .= "dashboard_target, ";
$sql .= "dashboard_width, ";
@@ -93,6 +94,7 @@
$sql .= "dashboard_label_background_color_hover, ";
$sql .= "dashboard_number_text_color, ";
$sql .= "dashboard_number_text_color_hover, ";
+ $sql .= "dashboard_number_background_color, ";
$sql .= "dashboard_background_color, ";
$sql .= "dashboard_background_color_hover, ";
$sql .= "dashboard_detail_background_color, ";
@@ -263,6 +265,11 @@ div.hud_chart {
0 || substr_count($subcategory, '_key') > 0 || substr_count($subcategory, '_secret') > 0) {
- echo " ".str_repeat('*', strlen($row['default_setting_value'] ?? ''));
+ echo " ".str_repeat('*', 10); //use the same number of characters to mask the password length
}
else if ($category == 'theme' && $subcategory == 'button_icons' && $name == 'text') {
echo " ".$text['option-button_icons_'.$row['default_setting_value']]."\n";
diff --git a/core/domain_settings/domain_setting_edit.php b/core/domain_settings/domain_setting_edit.php
index 98f776ad8b..80b8395569 100644
--- a/core/domain_settings/domain_setting_edit.php
+++ b/core/domain_settings/domain_setting_edit.php
@@ -155,7 +155,7 @@
unset($sql, $parameters);
//update the timezone
- $p = new permissions;
+ $p = permissions::new();
if ($detail_action == "update") {
$array['dialplan_details'][0]['dialplan_detail_uuid'] = $dialplan_detail_uuid;
$array['dialplan_details'][0]['dialplan_detail_data'] = 'timezone='.$domain_setting_value;
@@ -280,7 +280,7 @@
$array['dialplan_details'][0]['dialplan_detail_group'] = $dialplan_detail_group;
$array['dialplan_details'][0]['dialplan_detail_order'] = '15';
- $p = new permissions;
+ $p = permissions::new();
$p->add('dialplan_detail_add', 'temp');
}
@@ -289,7 +289,7 @@
$array['dialplan_details'][0]['dialplan_detail_uuid'] = $dialplan_detail_uuid;
$array['dialplan_details'][0]['dialplan_detail_data'] = 'timezone='.$domain_setting_value;
- $p = new permissions;
+ $p = permissions::new();
$p->add('dialplan_detail_edit', 'temp');
}
diff --git a/core/domains/resources/dashboard/config.php b/core/domains/resources/dashboard/config.php
index 16ec86f112..ef2b1df3b3 100644
--- a/core/domains/resources/dashboard/config.php
+++ b/core/domains/resources/dashboard/config.php
@@ -5,6 +5,7 @@ $array['dashboard'][$x]['dashboard_uuid'] = 'c41e7619-e213-49fd-a82f-df8fb8c46ad
$array['dashboard'][$x]['dashboard_name'] = 'Domains';
$array['dashboard'][$x]['dashboard_path'] = 'domains/domains.php';
$array['dashboard'][$x]['dashboard_icon'] = 'fa-solid fa-earth-americas';
+$array['dashboard'][$x]['dashboard_icon_color'] = '#bfbfbf';
$array['dashboard'][$x]['dashboard_url'] = '/core/domains/domains.php';
$array['dashboard'][$x]['dashboard_target'] = 'self';
$array['dashboard'][$x]['dashboard_width'] = '';
@@ -18,9 +19,9 @@ $array['dashboard'][$x]['dashboard_label_text_color'] = '';
$array['dashboard'][$x]['dashboard_label_text_color_hover'] = '';
$array['dashboard'][$x]['dashboard_label_background_color'] = '';
$array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
-$array['dashboard'][$x]['dashboard_number_background_color'] = '';
-$array['dashboard'][$x]['dashboard_number_text_color'] = '#bfbfbf';
+$array['dashboard'][$x]['dashboard_number_text_color'] = '#ffffff';
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
+$array['dashboard'][$x]['dashboard_number_background_color'] = '#0292FF';
$array['dashboard'][$x]['dashboard_background_color'] ='';
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';
diff --git a/core/domains/resources/dashboard/domains.php b/core/domains/resources/dashboard/domains.php
index 6b35a3e7b4..190ebb6cd0 100644
--- a/core/domains/resources/dashboard/domains.php
+++ b/core/domains/resources/dashboard/domains.php
@@ -37,7 +37,7 @@
echo " ".escape($dashboard_label)."";
echo " \n";
echo " \n";
- echo " ".$domain_count."\n";
+ echo " ".$domain_count."\n";
echo " \n";
echo " \n";
if (empty($dashboard_details_state) || $dashboard_details_state != "disabled") {
@@ -46,4 +46,4 @@
echo " ";
echo "\n";
-?>
\ No newline at end of file
+?>
diff --git a/core/groups/group_member_add.php b/core/groups/group_member_add.php
index b21269d25e..98b4b310d4 100644
--- a/core/groups/group_member_add.php
+++ b/core/groups/group_member_add.php
@@ -68,7 +68,7 @@
$array['user_groups'][0]['group_name'] = $group_name;
$array['user_groups'][0]['user_uuid'] = $user_uuid;
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_group_add', 'temp');
$database->app_name = 'groups';
diff --git a/core/groups/permissions_copy.php b/core/groups/permissions_copy.php
index 9236524cce..c017b1321b 100644
--- a/core/groups/permissions_copy.php
+++ b/core/groups/permissions_copy.php
@@ -113,7 +113,7 @@
}
if (is_array($array) && sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('group_permission_add', 'temp');
//execute insert
diff --git a/core/groups/resources/classes/permission.php b/core/groups/resources/classes/permission.php
index 45578b78f5..779a176048 100644
--- a/core/groups/resources/classes/permission.php
+++ b/core/groups/resources/classes/permission.php
@@ -95,7 +95,7 @@
}
if (is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('group_permission_delete', 'temp');
//execute delete
$database = new database;
@@ -185,7 +185,7 @@
if (is_array($array) && @sizeof($array)) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('group_permission_add', 'temp');
//execute insert
diff --git a/core/install/install.php b/core/install/install.php
index 66099f5653..78b77825c0 100644
--- a/core/install/install.php
+++ b/core/install/install.php
@@ -205,7 +205,7 @@
//if the domain name does not exist then add the domain name
if (!$domain_exists) {
//add the domain permission
- $p = new permissions;
+ $p = permissions::new();
$p->add("domain_add", "temp");
//prepare the array
@@ -271,7 +271,7 @@
unset($parameters);
//add the user permission
- $p = new permissions;
+ $p = permissions::new();
$p->add("user_add", "temp");
$p->add("user_edit", "temp");
$p->add("user_group_add", "temp");
diff --git a/core/notifications/app_defaults.php b/core/notifications/app_defaults.php
index e379565697..27e2e818b1 100644
--- a/core/notifications/app_defaults.php
+++ b/core/notifications/app_defaults.php
@@ -36,7 +36,7 @@ if ($domains_processed == 1) {
// $array['notifications'][0]['notification_uuid'] = uuid();
// $array['notifications'][0]['project_notifications'] = 'false';
// //grant temporary permissions
- // $p = new permissions;
+ // $p = permissions::new();
// $p->add('notification_add', 'temp');
// //execute insert
// $database->app_name = 'notifications';
diff --git a/core/permissions/app_defaults.php b/core/permissions/app_defaults.php
index 23d1113aec..b3e8fac14f 100644
--- a/core/permissions/app_defaults.php
+++ b/core/permissions/app_defaults.php
@@ -45,7 +45,7 @@ if ($domains_processed == 1) {
//save the data to the database
if (!empty($array)) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('permission_add', 'temp');
//execute insert
diff --git a/core/software/app_defaults.php b/core/software/app_defaults.php
index 15cb2bf3e5..62e7965bc6 100644
--- a/core/software/app_defaults.php
+++ b/core/software/app_defaults.php
@@ -46,7 +46,7 @@ if ($domains_processed == 1) {
//save the data in the array
if (!empty($array)) {
//add the temporary permission
- $p = new permissions;
+ $p = permissions::new();
$p->add("software_add", 'temp');
$p->add("software_edit", 'temp');
diff --git a/core/user_logs/resources/classes/user_logs.php b/core/user_logs/resources/classes/user_logs.php
index c690b1a32a..041603f66f 100644
--- a/core/user_logs/resources/classes/user_logs.php
+++ b/core/user_logs/resources/classes/user_logs.php
@@ -84,7 +84,7 @@ if (!class_exists('user_logs')) {
}
//add the dialplan permission
- $p = new permissions;
+ $p = permissions::new();
$p->add("user_log_add", 'temp');
//save to the data
diff --git a/core/user_settings/user_setting_edit.php b/core/user_settings/user_setting_edit.php
index 4696c4c95b..b480be6f05 100644
--- a/core/user_settings/user_setting_edit.php
+++ b/core/user_settings/user_setting_edit.php
@@ -156,14 +156,14 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
//update the timezone
if ($detail_action == "update") {
- $p = new permissions;
+ $p = permissions::new();
$p->add('dialplan_detail_edit', 'temp');
$array['dialplan_details'][0]['dialplan_detail_uuid'] = $dialplan_detail_uuid;
$array['dialplan_details'][0]['dialplan_detail_data'] = 'timezone='.$user_setting_value;
}
else {
- $p = new permissions;
+ $p = permissions::new();
$p->add('dialplan_detail_add', 'temp');
$array['dialplan_details'][0]['domain_uuid'] = $domain_uuid;
@@ -266,7 +266,7 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
$array['dialplan_details'][0]['dialplan_detail_group'] = !empty($dialplan_detail_group) ? $dialplan_detail_group : 'null';
$array['dialplan_details'][0]['dialplan_detail_order'] = '15';
- $p = new permissions;
+ $p = permissions::new();
$p->add('dialplan_detail_add', 'temp');
$database->app_name = 'user_settings';
@@ -284,7 +284,7 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
$array['dialplan_details'][0]['domain_uuid'] = $_SESSION["domain_uuid"];
$array['dialplan_details'][0]['dialplan_uuid'] = $dialplan_uuid;
- $p = new permissions;
+ $p = permissions::new();
$p->add('dialplan_detail_edit', 'temp');
$database->app_name = 'user_settings';
diff --git a/core/user_settings/user_setting_set.php b/core/user_settings/user_setting_set.php
index 2c8361f6b4..90dc47ed26 100644
--- a/core/user_settings/user_setting_set.php
+++ b/core/user_settings/user_setting_set.php
@@ -97,7 +97,7 @@ Mark J Crane
$array['user_settings'][0]['user_uuid'] = $_SESSION['user_uuid'];
$array['user_settings'][0]['domain_uuid'] = $_SESSION['domain_uuid'];
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_setting_delete', 'temp');
//execute
$database->app_name = 'user_settings';
@@ -132,7 +132,7 @@ Mark J Crane
$array['user_settings'][0]['user_setting_enabled'] = $user_setting_enabled;
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_setting_add', 'temp');
$p->add('user_setting_edit', 'temp');
diff --git a/core/users/app_defaults.php b/core/users/app_defaults.php
index a061e6587d..75c00a25c1 100644
--- a/core/users/app_defaults.php
+++ b/core/users/app_defaults.php
@@ -151,7 +151,7 @@ if ($domains_processed == 1) {
$array['default_settings'][$x]['default_setting_subcategory'] = "password_special";
//add the temporary permission
- $p = new permissions;
+ $p = permissions::new();
$p->add("default_setting_edit", 'temp');
//save to the data
@@ -200,7 +200,7 @@ if ($domains_processed == 1) {
$x++;
//add the temporary permission
- $p = new permissions;
+ $p = permissions::new();
$p->add("email_template_add", 'temp');
$p->add("email_template_edit", 'temp');
diff --git a/core/users/resources/classes/users.php b/core/users/resources/classes/users.php
index 6f1589da9f..734ce273d9 100644
--- a/core/users/resources/classes/users.php
+++ b/core/users/resources/classes/users.php
@@ -130,7 +130,7 @@ if (!class_exists('users')) {
//delete the checked rows
if (is_array($array) && @sizeof($array) != 0) {
//execute
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_setting_delete', 'temp');
$p->add('user_group_delete', 'temp');
diff --git a/core/users/user_edit.php b/core/users/user_edit.php
index 4e7c8914ee..71813680bc 100644
--- a/core/users/user_edit.php
+++ b/core/users/user_edit.php
@@ -88,7 +88,7 @@
$array['user_groups'][0]['group_uuid'] = $group_uuid;
$array['user_groups'][0]['user_uuid'] = $user_uuid;
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_group_delete', 'temp');
$database->delete($array);
@@ -297,7 +297,7 @@
$array_delete['user_settings'][0]['user_setting_subcategory'] = 'language';
$array_delete['user_settings'][0]['user_uuid'] = $user_uuid;
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_setting_delete', 'temp');
$database->delete($array_delete);
@@ -345,7 +345,7 @@
$array_delete['user_settings'][0]['user_setting_subcategory'] = 'time_zone';
$array_delete['user_settings'][0]['user_uuid'] = $user_uuid;
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_setting_delete', 'temp');
$database->delete($array_delete);
@@ -394,7 +394,7 @@
$array_delete['user_settings'][0]['user_setting_subcategory'] = 'key';
$array_delete['user_settings'][0]['user_uuid'] = $user_uuid;
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_setting_delete', 'temp');
$database->delete($array_delete);
@@ -555,7 +555,7 @@
$x++;
//add the user_edit permission
- $p = new permissions;
+ $p = permissions::new();
$p->add("user_setting_add", "temp");
$p->add("user_setting_edit", "temp");
$p->add("user_edit", "temp");
diff --git a/logout.php b/logout.php
index 176edd78ae..108163ef28 100644
--- a/logout.php
+++ b/logout.php
@@ -89,7 +89,7 @@
$array['user_settings'][0]['user_setting_value'] = $referrer;
$array['user_settings'][0]['user_setting_enabled'] = 'true';
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_setting_add', 'temp');
//execute insert
$database = new database;
diff --git a/resources/classes/directory.php b/resources/classes/directory.php
index c000e60df3..fc1574aea0 100644
--- a/resources/classes/directory.php
+++ b/resources/classes/directory.php
@@ -179,7 +179,7 @@
$array['extensions'][0]['description'] = $description;
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('extension_add', 'temp');
//execute insert
@@ -282,7 +282,7 @@
$array['extensions'][0]['description'] = $description;
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('extension_edit', 'temp');
//execute insert
@@ -304,7 +304,7 @@
$array['extensions'][0]['extension_uuid'] = $extension_uuid;
$array['extensions'][0]['domain_uuid'] = $domain_uuid;
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('extension_delete', 'temp');
//execute delete
$database = new database;
diff --git a/resources/classes/domains.php b/resources/classes/domains.php
index 8d3fd4c643..2875616cdd 100644
--- a/resources/classes/domains.php
+++ b/resources/classes/domains.php
@@ -707,7 +707,7 @@ if (!class_exists('domains')) {
//add the missing default settings
if (isset($array) && is_array($array) && count($array) > 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('default_setting_add', 'temp');
//execute insert
diff --git a/resources/classes/email.php b/resources/classes/email.php
index 18ebc9b64b..81cf026dd3 100644
--- a/resources/classes/email.php
+++ b/resources/classes/email.php
@@ -335,7 +335,7 @@ if (!class_exists('email')) {
}
//add temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add("email_queue_add", 'temp');
$p->add("email_queue_attachment_add", 'temp');
diff --git a/resources/classes/groups.php b/resources/classes/groups.php
index 430110d914..2bf85c4e63 100644
--- a/resources/classes/groups.php
+++ b/resources/classes/groups.php
@@ -141,7 +141,7 @@ if (!class_exists('groups')) {
if (is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('group_permission_delete', 'temp');
//execute delete
@@ -193,7 +193,7 @@ if (!class_exists('groups')) {
if (is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('user_group_delete', 'temp');
//execute delete
@@ -437,7 +437,7 @@ if (!class_exists('groups')) {
$group_uuids[$array['groups'][$x]['group_name']] = $array['groups'][$x]['group_uuid'];
//add the temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add("group_add", "temp");
$p->add("group_edit", "temp");
@@ -482,7 +482,7 @@ if (!class_exists('groups')) {
unset($group_uuids);
//add the temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add("group_permission_add", "temp");
$p->add("group_permission_edit", "temp");
diff --git a/resources/classes/menu.php b/resources/classes/menu.php
index 3ab7b1372f..194956d409 100644
--- a/resources/classes/menu.php
+++ b/resources/classes/menu.php
@@ -142,7 +142,7 @@ if (!class_exists('menu')) {
//delete the checked rows
if (is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('menu_item_delete', 'temp');
$p->add('menu_item_group_delete', 'temp');
$p->add('menu_language_delete', 'temp');
@@ -223,7 +223,7 @@ if (!class_exists('menu')) {
if (!empty($array) && is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('menu_language_delete', 'temp');
$p->add('menu_item_group_delete', 'temp');
@@ -507,7 +507,7 @@ if (!class_exists('menu')) {
}
if (is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('menu_item_add', 'temp');
$p->add('menu_language_add', 'temp');
//execute insert
@@ -572,7 +572,7 @@ if (!class_exists('menu')) {
if (is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('menu_item_group_add', 'temp');
//execute insert
$this->database->app_name = 'menu';
@@ -901,7 +901,7 @@ if (!class_exists('menu')) {
$array['menus'][0]['menu_description'] = 'Default Menu';
//grant temporary permissions
- $p = new permissions;
+ $p = permissions::new();
$p->add('menu_add', 'temp');
//execute insert
@@ -1082,7 +1082,7 @@ if (!class_exists('menu')) {
$user_graphic = "";
//overwrite user graphic with image from session, if exists
if ($this->settings->get('theme', 'body_header_user_image', true) == true && !empty($_SESSION['user']['contact_image']) && is_uuid($_SESSION['user']['contact_image'])) {
- $user_graphic = "";
+ $user_graphic = "";
}
$html .= " \n";
$html .= " ";
@@ -1126,7 +1126,7 @@ if (!class_exists('menu')) {
$html .= "\n";
$html .= " \n";
if (!empty($_SESSION['user']['contact_image']) && is_uuid($_SESSION['user']['contact_image'])) {
- $html .= " \n";
+ $html .= " \n";
}
else {
$html .= " text['label-primary-contact-attachment-image']."\"> \n";
@@ -1165,30 +1165,29 @@ if (!class_exists('menu')) {
public function menu_vertical($menu_array) {
//set defaults
$menu_side_state = $this->settings->get('theme', 'menu_side_state', 'contracted');
- $menu_side_state_style = $menu_side_state !== 'expanded' ? 'display: none;' : '';
$menu_side_state_class = $menu_side_state !== 'hidden' ? 'hide-sm-up ' : '';
//menu brand image and/or text
$html = " |