From: <var...@us...> - 2008-10-31 13:48:45
|
Revision: 6341 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6341&view=rev Author: vargenau Date: 2008-10-31 13:48:40 +0000 (Fri, 31 Oct 2008) Log Message: ----------- Much simpler function isActionPage Modified Paths: -------------- trunk/lib/upgrade.php Modified: trunk/lib/upgrade.php =================================================================== --- trunk/lib/upgrade.php 2008-10-30 16:55:09 UTC (rev 6340) +++ trunk/lib/upgrade.php 2008-10-31 13:48:40 UTC (rev 6341) @@ -106,20 +106,13 @@ /** * If a matching pgsrc => pluginname exists - * Need the english filename (required precondition: urlencode == urldecode). - * Returns the plugin name. + * Need the English filename (required precondition: urlencode == urldecode). */ function isActionPage($filename) { - static $special = array("DebugInfo" => "_BackendInfo", - "PhpWikiRecentChanges" => "RssFeed", - "ProjectSummary" => "RssFeed", - "RecentReleases" => "RssFeed", - "InterWikiMap" => "InterWikiMap", - ); - $base = preg_replace("/\..{1,4}$/","",basename($filename)); - if (isset($special[$base])) return $special[$base]; - if (FindFile("lib/plugin/".$base.".php",true)) return $base; - else return false; + + global $AllActionPages; + + return (in_array($filename, $AllActionPages)); } function CheckActionPageUpdate() { @@ -1296,232 +1289,6 @@ EndLoadDump($request); } - -/* - $Log: not supported by cvs2svn $ - Revision 1.61 2008/03/17 19:12:32 rurban - get rid of @ error protection in unserialize - define $backend_type for dba - fix _upgrade_relation_links for missing SQL relation field - - Revision 1.60 2007/08/25 18:43:35 rurban - add missing DBParams. Detected by Sacha Sch\xE4r. - - Revision 1.59 2007/06/09 18:57:44 rurban - fix action=upgrade for dba - - Revision 1.58 2007/01/28 22:54:18 rurban - more objectification. store last db update. - - Revision 1.57 2007/01/04 16:43:09 rurban - Changed to class Upgrade: Do not pollute our namespace with global functions. Less arguments needed. Fix missing permissions on wrong DBADMIN_USER. Let user input override the wrong constant. - - Revision 1.56 2007/01/03 21:25:34 rurban - rename InterWikiKarte to InterWikiListe. Support nosql, nopgsrc, noplugin, noconfig args. - - Revision 1.55 2007/01/02 13:24:01 rurban - 1.3.13 support: _rename_page_helper, _rename_to_help_page, _upgrade_relation_links, check for ACCESS_LOG_SQL remote_host varchar(50), _upgrade_psql_tsearch2 - - Revision 1.54 2006/12/03 17:07:29 rurban - #1535843 by matt brown: Upgrade Wizard Password fixes are not portable - - Revision 1.53 2006/12/03 17:03:18 rurban - #1535851 by matt brown - - Revision 1.52 2006/12/03 17:01:18 rurban - #1535839 by matt brown - - Revision 1.51 2006/08/07 21:05:30 rurban - patch #1535837 (debian) - - Revision 1.50 2006/06/18 11:04:09 rurban - keep overwrite arg - - Revision 1.49 2006/05/18 06:03:39 rurban - use $dbh->_backend->isSQL - - Revision 1.48 2005/11/14 22:32:38 rurban - remove user, SKIP on !session - - Revision 1.47 2005/02/27 19:13:27 rurban - latin1 mysql fix - - Revision 1.46 2005/02/12 17:22:18 rurban - locale update: missing . : fixed. unified strings - proper linebreaks - - Revision 1.45 2005/02/10 19:01:19 rurban - add PDO support - - Revision 1.44 2005/02/07 15:40:42 rurban - use defined CHARSET for db. more comment - Revision 1.43 2005/02/04 11:44:07 rurban - check passwd in access_log - - Revision 1.42 2005/02/02 19:38:13 rurban - prefer utf8 pagenames for collate issues - - Revision 1.41 2005/01/31 12:15:29 rurban - print OK - - Revision 1.40 2005/01/30 23:22:17 rurban - clarify messages - - Revision 1.39 2005/01/30 23:09:17 rurban - sanify session fields - - Revision 1.38 2005/01/25 07:57:02 rurban - add dbadmin form, add mysql LOCK TABLES check, add plugin args updater (not yet activated) - - Revision 1.37 2005/01/20 10:19:08 rurban - add InterWikiMap to special pages - - Revision 1.36 2004/12/20 12:56:11 rurban - patch #1088128 by Kai Krakow. avoid chicken & egg problem - - Revision 1.35 2004/12/13 14:35:41 rurban - verbose arg - - Revision 1.34 2004/12/11 09:39:28 rurban - needed init for ref - - Revision 1.33 2004/12/10 22:33:39 rurban - add WikiAdminUtils method for convert-cached-html - missed some vars. - - Revision 1.32 2004/12/10 22:15:00 rurban - fix $page->get('_cached_html) - refactor upgrade db helper _convert_cached_html() to be able to call them from WikiAdminUtils also. - support 2nd genericSqlQuery param (bind huge arg) - - Revision 1.31 2004/12/10 02:45:26 rurban - SQL optimization: - put _cached_html from pagedata into a new seperate blob, not huge serialized string. - it is only rarelely needed: for current page only, if-not-modified - but was extracted for every simple page iteration. - - Revision 1.30 2004/11/29 17:58:57 rurban - just aesthetics - - Revision 1.29 2004/11/29 16:08:31 rurban - added missing nl - - Revision 1.28 2004/11/16 16:25:14 rurban - fix accesslog tablename, print CREATED only if really done - - Revision 1.27 2004/11/07 16:02:52 rurban - new sql access log (for spam prevention), and restructured access log class - dbh->quote (generic) - pear_db: mysql specific parts seperated (using replace) - - Revision 1.26 2004/10/14 19:19:34 rurban - loadsave: check if the dumped file will be accessible from outside. - and some other minor fixes. (cvsclient native not yet ready) - - Revision 1.25 2004/09/06 08:28:00 rurban - rename genericQuery to genericSqlQuery - - Revision 1.24 2004/07/05 13:56:22 rurban - sqlite autoincrement fix - - Revision 1.23 2004/07/04 10:28:06 rurban - DBADMIN_USER fix - - Revision 1.22 2004/07/03 17:21:28 rurban - updated docs: submitted new mysql bugreport (#1491 did not fix it) - - Revision 1.21 2004/07/03 16:51:05 rurban - optional DBADMIN_USER:DBADMIN_PASSWD for action=upgrade (if no ALTER permission) - added atomic mysql REPLACE for PearDB as in ADODB - fixed _lock_tables typo links => link - fixes unserialize ADODB bug in line 180 - - Revision 1.20 2004/07/03 14:48:18 rurban - Tested new mysql 4.1.3-beta: binary search bug as fixed. - => fixed action=upgrade, - => version check in PearDB also (as in ADODB) - - Revision 1.19 2004/06/19 12:19:09 rurban - slightly improved docs - - Revision 1.18 2004/06/19 11:47:17 rurban - added CheckConfigUpdate: CACHE_CONTROL = NONE => NO_CACHE - - Revision 1.17 2004/06/17 11:31:50 rurban - check necessary localized actionpages - - Revision 1.16 2004/06/16 10:38:58 rurban - Disallow refernces in calls if the declaration is a reference - ("allow_call_time_pass_reference clean"). - PhpWiki is now allow_call_time_pass_reference = Off clean, - but several external libraries may not. - In detail these libs look to be affected (not tested): - * Pear_DB odbc - * adodb oracle - - Revision 1.15 2004/06/07 19:50:40 rurban - add owner field to mimified dump - - Revision 1.14 2004/06/07 18:38:18 rurban - added mysql 4.1.x search fix - - Revision 1.13 2004/06/04 20:32:53 rurban - Several locale related improvements suggested by Pierrick Meignen - LDAP fix by John Cole - reanable admin check without ENABLE_PAGEPERM in the admin plugins - - Revision 1.12 2004/05/18 13:59:15 rurban - rename simpleQuery to genericSqlQuery - - Revision 1.11 2004/05/15 13:06:17 rurban - skip the HomePage, at first upgrade the ActionPages, then the database, then the rest - - Revision 1.10 2004/05/15 01:19:41 rurban - upgrade prefix fix by Kai Krakow - - Revision 1.9 2004/05/14 11:33:03 rurban - version updated to 1.3.11pre - upgrade stability fix - - Revision 1.8 2004/05/12 10:49:55 rurban - require_once fix for those libs which are loaded before FileFinder and - its automatic include_path fix, and where require_once doesn't grok - dirname(__FILE__) != './lib' - upgrade fix with PearDB - navbar.tmpl: remove spaces for IE button alignment - - Revision 1.7 2004/05/06 17:30:38 rurban - CategoryGroup: oops, dos2unix eol - improved phpwiki_version: - pre -= .0001 (1.3.10pre: 1030.099) - -p1 += .001 (1.3.9-p1: 1030.091) - improved InstallTable for mysql and generic SQL versions and all newer tables so far. - abstracted more ADODB/PearDB methods for action=upgrade stuff: - backend->backendType(), backend->database(), - backend->listOfFields(), - backend->listOfTables(), - - Revision 1.6 2004/05/03 15:05:36 rurban - + table messages - - Revision 1.4 2004/05/02 21:26:38 rurban - limit user session data (HomePageHandle and auth_dbi have to invalidated anyway) - because they will not survive db sessions, if too large. - extended action=upgrade - some WikiTranslation button work - revert WIKIAUTH_UNOBTAINABLE (need it for main.php) - some temp. session debug statements - - Revision 1.3 2004/04/29 22:33:30 rurban - fixed sf.net bug #943366 (Kai Krakow) - couldn't load localized url-undecoded pagenames - - Revision 1.2 2004/03/12 15:48:07 rurban - fixed explodePageList: wrong sortby argument order in UnfoldSubpages - simplified lib/stdlib.php:explodePageList - - */ - // For emacs users // Local Variables: // mode: php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |