diff options
author | Andrew Dolgov <[email protected]> | 2007-03-05 17:27:48 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-03-05 17:27:48 +0100 |
commit | 793185a9a51e3c5a104f4addb736b6372516d17e (patch) | |
tree | 6806b3f72e0959362cdc9f73476a5b922614fb08 /functions.php | |
parent | 6ada2c303efd52d0486873e231483b45db87ee0d (diff) |
mobile: sync login stuff and such with desktop version
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/functions.php b/functions.php index 14c68e864..4c5059d14 100644 --- a/functions.php +++ b/functions.php @@ -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 |