svn: /web/doc-editor/trunk/php/ AccountManager.php ExtJsController.php

From: Date: Wed, 26 May 2010 21:09:56 +0000
Subject: svn: /web/doc-editor/trunk/php/ AccountManager.php ExtJsController.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1858@lists.php.net to get a copy of this message
yannick Wed, 26 May 2010 21:09:56 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=299833 Log: use isAnonymous properties Changed paths: U web/doc-editor/trunk/php/AccountManager.php U web/doc-editor/trunk/php/ExtJsController.php Modified: web/doc-editor/trunk/php/AccountManager.php =================================================================== --- web/doc-editor/trunk/php/AccountManager.php 2010-05-26 21:08:39 UTC (rev 299832) +++ web/doc-editor/trunk/php/AccountManager.php 2010-05-26 21:09:56 UTC (rev 299833) @@ -433,7 +433,7 @@ $db = DBConnection::getInstance(); // In DB - if( $this->vcsLogin == 'anonymous' ) { + if( $this->isAnonymous ) { $s = sprintf( 'UPDATE users SET conf="%s" WHERE vcs_login="%s" AND anonymousIdent="%s"', $db->real_escape_string(json_encode($this->userConf)), $this->vcsLogin, $this->anonymousIdent Modified: web/doc-editor/trunk/php/ExtJsController.php =================================================================== --- web/doc-editor/trunk/php/ExtJsController.php 2010-05-26 21:08:39 UTC (rev 299832) +++ web/doc-editor/trunk/php/ExtJsController.php 2010-05-26 21:09:56 UTC (rev 299833) @@ -119,7 +119,7 @@ { AccountManager::getInstance()->isLogged(); - if (AccountManager::getInstance()->vcsLogin == 'anonymous') { + if (AccountManager::getInstance()->isAnonymous) { return JsonResponseBuilder::failure(); } @@ -1092,7 +1092,7 @@ { AccountManager::getInstance()->isLogged(); - if (AccountManager::getInstance()->vcsLogin == 'anonymous') { + if ( AccountManager::getInstance()->isAnonymous ) { return JsonResponseBuilder::failure(); } @@ -1186,7 +1186,7 @@ $ac->isLogged(); - if ($ac->vcsLogin == 'anonymous') { + if ($ac->isAnonymous) { return JsonResponseBuilder::failure(); } @@ -1216,7 +1216,7 @@ $am->isLogged(); - if ($am->vcsLogin == 'anonymous') { + if ($am->isAnonymous) { return JsonResponseBuilder::failure(); } @@ -1455,7 +1455,7 @@ { AccountManager::getInstance()->isLogged(); - if (AccountManager::getInstance()->vcsLogin == 'anonymous') { + if (AccountManager::getInstance()->isAnonymous) { return JsonResponseBuilder::failure(); } @@ -1474,7 +1474,7 @@ { AccountManager::getInstance()->isLogged(); - if (AccountManager::getInstance()->vcsLogin == 'anonymous') { + if (AccountManager::getInstance()->isAnonymous) { return JsonResponseBuilder::failure(); } @@ -1924,7 +1924,7 @@ { AccountManager::getInstance()->isLogged(); - if (AccountManager::getInstance()->vcsLogin == 'anonymous') { + if (AccountManager::getInstance()->isAnonymous) { return JsonResponseBuilder::failure(); } @@ -1967,7 +1967,7 @@ { AccountManager::getInstance()->isLogged(); - if (AccountManager::getInstance()->vcsLogin == 'anonymous') { + if (AccountManager::getInstance()->isAnonymous) { return JsonResponseBuilder::failure(); } @@ -2006,7 +2006,7 @@ { AccountManager::getInstance()->isLogged(); - if (AccountManager::getInstance()->vcsLogin == 'anonymous') { + if (AccountManager::getInstance()->isAnonymous) { return JsonResponseBuilder::failure(); } @@ -2025,7 +2025,7 @@ { AccountManager::getInstance()->isLogged(); - if (AccountManager::getInstance()->vcsLogin == 'anonymous') { + if (AccountManager::getInstance()->isAnonymous) { return JsonResponseBuilder::failure(); }

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