svn: /web/doc-editor/trunk/ index.php js/login.js

From: Date: Mon, 21 Dec 2009 05:46:07 +0000
Subject: svn: /web/doc-editor/trunk/ index.php js/login.js
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1358@lists.php.net to get a copy of this message
mrkschan Mon, 21 Dec 2009 05:46:07 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=292400 Log: revoked anonymous login for permlink Changed paths: U web/doc-editor/trunk/index.php U web/doc-editor/trunk/js/login.js Modified: web/doc-editor/trunk/index.php =================================================================== --- web/doc-editor/trunk/index.php 2009-12-21 04:33:55 UTC (rev 292399) +++ web/doc-editor/trunk/index.php 2009-12-21 05:46:07 UTC (rev 292400) @@ -4,13 +4,6 @@ require_once './php/html.templates.php'; -// Direct access to file, grant annoymous login -if (isset($_REQUEST['perm']) && !isset($_SESSION['userID'])) { - require_once dirname(__FILE__) . '/php/AccountManager.php'; - - AccountManager::getInstance()->login('anonymous', '', array_shift(explode('/', $_REQUEST['perm']))); -} - // Log the user in if needed if (!isset($_SESSION['userID'])) { echo headerTemplate(); Modified: web/doc-editor/trunk/js/login.js =================================================================== --- web/doc-editor/trunk/js/login.js 2009-12-21 04:33:55 UTC (rev 292399) +++ web/doc-editor/trunk/js/login.js 2009-12-21 05:46:07 UTC (rev 292400) @@ -33,7 +33,7 @@ } ]) ) - }); + }); this.drawForm(); }, @@ -166,7 +166,7 @@ waitMsg : 'Sending data...', success : function(form, action) { - window.location.href = './'; + window.location.reload(); }, failure : function(form, action) {

« previous php.doc.web (#1358) next »