fixed errors in session with send mail alerts graph API
This commit is contained in:
parent
494b858a20
commit
a3aa84bf92
|
@ -32,9 +32,7 @@ if (!$config["MR"]) {
|
|||
|
||||
echo '<a class="white_bold footer" target="_blank" href="' . $config["homeurl"] . $license_file. '">';
|
||||
|
||||
if(enterprise_installed()){
|
||||
enterprise_include_once("../include/functions_update_manager.php");
|
||||
}
|
||||
include_once ($config["homedir"]."/include/functions_update_manager.php");
|
||||
|
||||
$current_package = update_manager_get_current_package();
|
||||
|
||||
|
|
|
@ -215,6 +215,7 @@ if ($delete_action) {
|
|||
__('Could not be deleted'));
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->data = array ();
|
||||
|
|
|
@ -72,10 +72,14 @@ switch($info) {
|
|||
if (isInACL($ipOrigin)) {
|
||||
if (empty($apiPassword) || (!empty($apiPassword) && $api_password === $apiPassword)) {
|
||||
$user_in_db = process_user_login($user, $password, true);
|
||||
|
||||
if ($user_in_db !== false) {
|
||||
$config['id_user'] = $user_in_db;
|
||||
$correctLogin = true;
|
||||
|
||||
if (session_status() === PHP_SESSION_NONE) session_start();
|
||||
$_SESSION["id_usuario"] = $user;
|
||||
session_write_close();
|
||||
|
||||
}
|
||||
else {
|
||||
$no_login_msg = "Incorrect user credentials";
|
||||
|
@ -178,11 +182,6 @@ if ($correctLogin) {
|
|||
returnError('no_exist_operation', $returnType);
|
||||
}
|
||||
}
|
||||
|
||||
//XXXXX
|
||||
if (file_exists(session_save_path() . DIRECTORY_SEPARATOR . "pansess_" . session_id())) {
|
||||
unlink(session_save_path() . DIRECTORY_SEPARATOR . "pansess_" . session_id());
|
||||
}
|
||||
}
|
||||
else {
|
||||
// TODO: Implement a new switch in config to enable / disable
|
||||
|
|
|
@ -176,7 +176,7 @@ date_default_timezone_set("Europe/Madrid");
|
|||
//////////////////////////////////////
|
||||
require_once ($config["homedir"].'/include/load_session.php');
|
||||
|
||||
if (session_id() == '') session_start();
|
||||
if (session_status() === PHP_SESSION_NONE) session_start();
|
||||
|
||||
config_process_config();
|
||||
config_prepare_session();
|
||||
|
|
Loading…
Reference in New Issue