cvs: phpdoc /scripts/online_editor login.php
| From: | Philip Olson | Date: | Thu, 02 Oct 2008 01:29:48 +0000 |
| Subject: | cvs: phpdoc /scripts/online_editor login.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2188@lists.php.net to get a copy of this message | ||
philip Thu Oct 2 01:29:48 2008 UTC
Modified files:
/phpdoc/scripts/online_editor login.php
Log:
minor changes for E_DEPRECATED and E_NOTICE
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/online_editor/login.php?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc/scripts/online_editor/login.php
diff -u phpdoc/scripts/online_editor/login.php:1.3 phpdoc/scripts/online_editor/login.php:1.4
--- phpdoc/scripts/online_editor/login.php:1.3 Sat May 31 09:23:35 2008
+++ phpdoc/scripts/online_editor/login.php Thu Oct 2 01:29:48 2008
@@ -27,7 +27,6 @@
// Logout &and=logout
if (isset($_GET['and'])) {
- session_unregister('user');
unset($_SESSION['user']);
}
@@ -35,6 +34,7 @@
//------- Login request
if (isset($_POST['lang'])) {
+ $email = '';
if (isset($_POST['email'])) {
$email = $_POST['email'];
}
@@ -72,11 +72,10 @@
if (is_dir($usersCachePath.$email) || !$requireLogin) {
// Session setup
- session_register('user');
$_SESSION['user'] = array('email'=>$email,
'cache'=>$usersCachePath.$email.'/', 'phpdocLang'=>$lang);
// If expired session, redo last request
- if ($_SESSION['redo']) {
+ if (!empty($_SESSION['redo'])) {
$link = $_SESSION['redo'];
$_SESSION['redo'] = false;
header("location: $link");