Skip to content
Permalink
Browse files

Correction problèmes https de login et logout

  • Loading branch information...
lnprieto committed Apr 23, 2019
1 parent 85cc0ff commit c260764d6386f5a35f1b8e261f1c1f74d521f205
Showing with 4 additions and 4 deletions.
  1. +1 −1 lodel/src/lodel/admin/login.php
  2. +2 −2 lodeladmin/login.php
  3. +1 −1 lodeladmin/logout.php
@@ -46,7 +46,7 @@
break;
} else {
check_internal_messaging();
header ("Location: http://". $_SERVER['SERVER_NAME']. ($_SERVER['SERVER_PORT'] != 80 ? ':'. $_SERVER['SERVER_PORT'] : ''). C::get('url_retour'));
header ("Location: http".(C::get('https', 'cfg') ? 's' : '')."://". $_SERVER['SERVER_NAME']. ($_SERVER['SERVER_PORT'] != 80 ? ':'. $_SERVER['SERVER_PORT'] : ''). C::get('url_retour'));
}
}
break;
@@ -36,7 +36,7 @@
break;
} else {
check_internal_messaging();
header ("Location: http://". $_SERVER['SERVER_NAME']. ($_SERVER['SERVER_PORT'] != 80 ? ':'. $_SERVER['SERVER_PORT'] : ''). C::get('url_retour'));
header ("Location: http".(C::get('https', 'cfg') ? 's' : '')."://". $_SERVER['SERVER_NAME']. ($_SERVER['SERVER_PORT'] != 80 ? ':'. $_SERVER['SERVER_PORT'] : ''). C::get('url_retour'));
die();
}
}
@@ -71,7 +71,7 @@
}
}
check_internal_messaging();
header ('Location: http://'. $_SERVER['SERVER_NAME']. ($_SERVER['SERVER_PORT'] ? ':'. $_SERVER['SERVER_PORT'] : ''). C::get('url_retour'));
header ("Location: http".(C::get('https', 'cfg') ? 's' : '')."://". $_SERVER['SERVER_NAME']. ($_SERVER['SERVER_PORT'] ? ':'. $_SERVER['SERVER_PORT'] : ''). C::get('url_retour'));
die ();
} while (0);
}
@@ -27,7 +27,7 @@
setcookie(C::get('sessionname', 'cfg'), "", $time,C::get('urlroot', 'cfg'));
}
header ('Location: http://'. $_SERVER['SERVER_NAME']. ($_SERVER['SERVER_PORT'] ? ':'. $_SERVER['SERVER_PORT'] : ''). C::get('urlroot', 'cfg'));
header ("Location: http".(C::get('https', 'cfg') ? 's' : '')."://". $_SERVER['SERVER_NAME']. ($_SERVER['SERVER_PORT'] ? ':'. $_SERVER['SERVER_PORT'] : ''). C::get('urlroot', 'cfg'));
exit;
}
catch(LodelException $e)

0 comments on commit c260764

Please sign in to comment.
You can’t perform that action at this time.