From: <var...@us...> - 2014-12-01 13:45:22
|
Revision: 9394 http://sourceforge.net/p/phpwiki/code/9394 Author: vargenau Date: 2014-12-01 13:45:20 +0000 (Mon, 01 Dec 2014) Log Message: ----------- Comment out unreachable code Modified Paths: -------------- trunk/configurator.php trunk/lib/WikiDB/backend/ADODB_postgres7.php trunk/lib/WikiDB/backend/PearDB_pgsql.php trunk/lib/WikiUser/HttpAuth.php trunk/lib/WikiUser/IMAP.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2014-12-01 13:41:58 UTC (rev 9393) +++ trunk/configurator.php 2014-12-01 13:45:20 UTC (rev 9394) @@ -1697,6 +1697,7 @@ function _config_format($value) { return ''; + /* $v = $this->get_config_item_name(); // handle arrays: a|b --> a['b'] if (strpos($v, '|')) { @@ -1706,6 +1707,7 @@ if (preg_match("/[\"']/", $value)) $value = '"' . $value . '"'; return sprintf("%s = \"%s\"", $v, $value); + */ } function get_config_item_name() Modified: trunk/lib/WikiDB/backend/ADODB_postgres7.php =================================================================== --- trunk/lib/WikiDB/backend/ADODB_postgres7.php 2014-12-01 13:41:58 UTC (rev 9393) +++ trunk/lib/WikiDB/backend/ADODB_postgres7.php 2014-12-01 13:45:20 UTC (rev 9394) @@ -39,10 +39,12 @@ { return 0; // if the wikiuser is not the table owner + /* foreach ($this->_table_names as $table) { $this->_dbh->Execute("VACUUM ANALYZE $table"); } return 1; + */ } // just for blobs. the rest is escaped with qstr() Modified: trunk/lib/WikiDB/backend/PearDB_pgsql.php =================================================================== --- trunk/lib/WikiDB/backend/PearDB_pgsql.php 2014-12-01 13:41:58 UTC (rev 9393) +++ trunk/lib/WikiDB/backend/PearDB_pgsql.php 2014-12-01 13:45:20 UTC (rev 9394) @@ -53,10 +53,12 @@ { return 0; // if the wikiuser is not the table owner + /* foreach ($this->_table_names as $table) { $this->_dbh->query("VACUUM ANALYZE $table"); } return 1; + */ } function _quote($s) @@ -329,7 +331,7 @@ return $word; // clause specified above. - return $this->_pagename_match_clause($node) . " OR idxFTI @@ to_tsquery('$word')"; + // return $this->_pagename_match_clause($node) . " OR idxFTI @@ to_tsquery('$word')"; } } Modified: trunk/lib/WikiUser/HttpAuth.php =================================================================== --- trunk/lib/WikiUser/HttpAuth.php 2014-12-01 13:41:58 UTC (rev 9393) +++ trunk/lib/WikiUser/HttpAuth.php 2014-12-01 13:45:20 UTC (rev 9394) @@ -58,6 +58,7 @@ { return false; + /* header('WWW-Authenticate: Basic realm="' . WIKI_NAME . '"'); header("Authorization: Basic " . base64_encode($userid . ":" . $passwd)); if (!isset($_SERVER)) @@ -66,6 +67,7 @@ $_SERVER['PHP_AUTH_USER'] = $userid; $_SERVER['PHP_AUTH_PW'] = $passwd; //$GLOBALS['request']->setStatus(200); + */ } function logout() Modified: trunk/lib/WikiUser/IMAP.php =================================================================== --- trunk/lib/WikiUser/IMAP.php 2014-12-01 13:41:58 UTC (rev 9393) +++ trunk/lib/WikiUser/IMAP.php 2014-12-01 13:45:20 UTC (rev 9394) @@ -64,12 +64,14 @@ { return true; + /* if ($this->checkPass($this->_prefs->get('passwd'))) { if (DEBUG & _DEBUG_LOGIN) trigger_error(get_class($this) . "::userExists => true (pass ok)", E_USER_WARNING); return true; } if (DEBUG & _DEBUG_LOGIN) trigger_error(get_class($this) . "::userExists => false (pass wrong)", E_USER_WARNING); return $this->_tryNextUser(); + */ } function mayChangePass() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |