1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-31 17:31:28 +00:00

mobile: sync login stuff and such with desktop version

This commit is contained in:
Andrew Dolgov
2007-03-05 17:27:48 +01:00
parent 6ada2c303e
commit 793185a9a5
6 changed files with 53 additions and 144 deletions

View File

@@ -1192,7 +1192,7 @@
return true;
}
function login_sequence($link) {
function login_sequence($link, $mobile = false) {
if (!SINGLE_USER_MODE) {
if (defined('_DEBUG_USER_SWITCH') && $_SESSION["uid"]) {
@@ -1227,7 +1227,7 @@
// print_r($_SESSION);
if (!$_SESSION["uid"] || !validate_session($link)) {
render_login_form($link);
render_login_form($link, $mobile);
exit;
}
@@ -3165,8 +3165,12 @@
return true;
}
function render_login_form($link) {
require_once "login_form.php";
function render_login_form($link, $mobile = false) {
if (!$mobile) {
require_once "login_form.php";
} else {
require_once "mobile/login_form.php";
}
}
// from http://developer.apple.com/internet/safari/faq.html