Update contacts path (#7192)
* Update contacts path * Update menu.php * Update contact_edit.php * Update contact_relation_edit.php * Update config.php * Update authentication.php * Update database.php * Update totp.php * Update email.php
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 ";
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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'] = '';
|
||||
|
||||
Reference in New Issue
Block a user