From: <var...@us...> - 2021-06-17 17:36:02
|
Revision: 10303 http://sourceforge.net/p/phpwiki/code/10303 Author: vargenau Date: 2021-06-17 17:36:01 +0000 (Thu, 17 Jun 2021) Log Message: ----------- getPlugin has second argument default false Modified Paths: -------------- trunk/SOAP.php trunk/lib/WikiDB.php trunk/lib/XmlRpcServer.php trunk/lib/editpage.php trunk/lib/plugin/PluginManager.php trunk/lib/plugin/SiteMap.php trunk/lib/plugin/WikiFormRich.php Modified: trunk/SOAP.php =================================================================== --- trunk/SOAP.php 2021-06-17 17:24:11 UTC (rev 10302) +++ trunk/SOAP.php 2021-06-17 17:36:01 UTC (rev 10303) @@ -279,7 +279,7 @@ $w = new WikiPluginLoader(); foreach ($plugins as $plugin) { $pluginName = str_replace(".php", "", $plugin); - $p = $w->getPlugin($pluginName, false); // second arg? + $p = $w->getPlugin($pluginName); // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only if (strtolower(substr(get_parent_class($p), 0, 10)) == 'wikiplugin') { $RetArray[] = $pluginName; @@ -296,7 +296,7 @@ require_once 'lib/WikiPlugin.php'; $w = new WikiPluginLoader(); $synopsis = ''; - $p = $w->getPlugin($pluginname, false); // second arg? + $p = $w->getPlugin($pluginname); // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only if (strtolower(substr(get_parent_class($p), 0, 10)) == 'wikiplugin') { $plugin_args = ''; @@ -320,7 +320,7 @@ $basepage = ''; require_once 'lib/WikiPlugin.php'; $w = new WikiPluginLoader(); - $p = $w->getPlugin($pluginname, false); // second arg? + $p = $w->getPlugin($pluginname); $pagelist = $p->run($dbi, $plugin_args, $request, $basepage); $pages = array(); if (is_object($pagelist) and is_a($pagelist, 'PageList')) { Modified: trunk/lib/WikiDB.php =================================================================== --- trunk/lib/WikiDB.php 2021-06-17 17:24:11 UTC (rev 10302) +++ trunk/lib/WikiDB.php 2021-06-17 17:36:01 UTC (rev 10303) @@ -1139,7 +1139,7 @@ ) { require_once 'lib/WikiPlugin.php'; $w = new WikiPluginLoader(); - $p = $w->getPlugin("RecentChangesCached", false); + $p = $w->getPlugin("RecentChangesCached"); $p->box_update(false, $request, $this->_pagename); } return $newrevision; Modified: trunk/lib/XmlRpcServer.php =================================================================== --- trunk/lib/XmlRpcServer.php 2021-06-17 17:24:11 UTC (rev 10302) +++ trunk/lib/XmlRpcServer.php 2021-06-17 17:36:01 UTC (rev 10303) @@ -709,7 +709,7 @@ $w = new WikiPluginLoader(); foreach ($plugins as $plugin) { $pluginName = str_replace(".php", "", $plugin); - $p = $w->getPlugin($pluginName, false); // second arg? + $p = $w->getPlugin($pluginName); // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only if (strtolower(substr(get_parent_class($p), 0, 10)) == 'wikiplugin') { $RetArray[] = short_string($pluginName); @@ -740,7 +740,7 @@ require_once 'lib/WikiPlugin.php'; $w = new WikiPluginLoader(); $synopsis = ''; - $p = $w->getPlugin($pluginName, false); // second arg? + $p = $w->getPlugin($pluginName); // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only if (strtolower(substr(get_parent_class($p), 0, 10)) == 'wikiplugin') { $plugin_args = ''; @@ -782,7 +782,7 @@ $basepage = ''; //$pluginName; require_once 'lib/WikiPlugin.php'; $w = new WikiPluginLoader(); - $p = $w->getPlugin($pluginName, false); // second arg? + $p = $w->getPlugin($pluginName); $pagelist = $p->run($dbi, $plugin_args, $request, $basepage); $list = array(); if (is_object($pagelist) and is_a($pagelist, 'PageList')) { Modified: trunk/lib/editpage.php =================================================================== --- trunk/lib/editpage.php 2021-06-17 17:24:11 UTC (rev 10302) +++ trunk/lib/editpage.php 2021-06-17 17:36:01 UTC (rev 10303) @@ -880,7 +880,7 @@ foreach ($plugins as $plugin) { $pluginName = str_replace(".php", "", $plugin); if (in_array($pluginName, $AllAllowedPlugins)) { - $p = $w->getPlugin($pluginName, false); // second arg? + $p = $w->getPlugin($pluginName); // trap php files which aren't WikiPlugin~s if (strtolower(substr(get_parent_class($p), 0, 10)) == 'wikiplugin') { $plugin_args = ''; Modified: trunk/lib/plugin/PluginManager.php =================================================================== --- trunk/lib/plugin/PluginManager.php 2021-06-17 17:24:11 UTC (rev 10302) +++ trunk/lib/plugin/PluginManager.php 2021-06-17 17:36:01 UTC (rev 10303) @@ -109,8 +109,8 @@ continue; } // instantiate a plugin - $temppluginclass = '<' . "? plugin $pluginName ?>"; // hackish - $p = $w->getPlugin($pluginName, false); // second arg? + $temppluginclass = '<' . "? plugin $pluginName ?" . '>'; // hackish + $p = $w->getPlugin($pluginName); // trap php files which aren't WikiPlugin~s if (!strtolower(substr(get_parent_class($p), 0, 10)) == 'wikiplugin') { // Security: Hide names of extraneous files within @@ -157,7 +157,7 @@ } if (defined('FUSIONFORGE') && FUSIONFORGE) { - $pluginDocPageNamelink = WikiLink($pluginDocPageName, 'known'); + $pluginDocPageNamelink = WikiLink($pluginDocPageName); } // highlight alternate rows Modified: trunk/lib/plugin/SiteMap.php =================================================================== --- trunk/lib/plugin/SiteMap.php 2021-06-17 17:24:11 UTC (rev 10302) +++ trunk/lib/plugin/SiteMap.php 2021-06-17 17:36:01 UTC (rev 10303) @@ -201,7 +201,7 @@ if (!is_string($includepages)) $includepages = ' '; // avoid plugin loader problems $loader = new WikiPluginLoader(); - $plugin = $loader->getPlugin(!empty($dtree) ? 'DynamicIncludePage' : 'IncludePage', false); + $plugin = $loader->getPlugin(!empty($dtree) ? 'DynamicIncludePage' : 'IncludePage'); $nothing = ''; } Modified: trunk/lib/plugin/WikiFormRich.php =================================================================== --- trunk/lib/plugin/WikiFormRich.php 2021-06-17 17:24:11 UTC (rev 10302) +++ trunk/lib/plugin/WikiFormRich.php 2021-06-17 17:36:01 UTC (rev 10303) @@ -366,7 +366,7 @@ $basepage = ''; require_once 'lib/WikiPlugin.php'; $w = new WikiPluginLoader(); - $p = $w->getPlugin($pluginName, false); // second arg? + $p = $w->getPlugin($pluginName); if (!is_object($p)) trigger_error("invalid input['method'] " . $input['method'], E_USER_WARNING); $pagelist = $p->run($dbi, @$input['args'], $request, $basepage); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-06-28 14:17:35
|
Revision: 10334 http://sourceforge.net/p/phpwiki/code/10334 Author: vargenau Date: 2021-06-28 14:17:34 +0000 (Mon, 28 Jun 2021) Log Message: ----------- http://www.php.net --> https://www.php.net Modified Paths: -------------- trunk/INSTALL trunk/configurator.php trunk/doc/README.coding trunk/lib/FileFinder.php trunk/lib/HttpClient.php trunk/lib/Request.php trunk/lib/WikiDB/adodb/adodb-csvlib.inc.php trunk/lib/WikiDB/adodb/adodb-lib.inc.php trunk/lib/WikiDB/adodb/adodb-time.inc.php trunk/lib/WikiDB/adodb/drivers/adodb-postgres64.inc.php trunk/lib/WikiTheme.php trunk/lib/interwiki.map trunk/lib/plugin/FuzzyPages.php trunk/lib/plugin/text2png.php trunk/lib/stdlib.php trunk/locale/de/pgsrc/Hilfe%2FWikiTechnik trunk/locale/es/pgsrc/Ayuda%2FMasAcercadeLaMecanica trunk/locale/fr/pgsrc/Aide%2FD%C3%A9tailsTechniques trunk/locale/fr/pgsrc/Aide%2FGreffonPagesFloues trunk/locale/it/pgsrc/Aiuto%2FVarieSulFunzionamento trunk/locale/nl/pgsrc/Help%2FMeerOverTechnieken trunk/locale/sv/pgsrc/Hj%C3%A4lp%2FMerOmMekanismerna trunk/passencrypt.php trunk/pgsrc/Help%2FAtomFeedPlugin trunk/pgsrc/Help%2FFuzzyPagesPlugin trunk/pgsrc/Help%2FMoreAboutMechanics trunk/themes/Crao/themeinfo.php trunk/themes/Hawaiian/themeinfo.php trunk/themes/MacOSX/themeinfo.php trunk/themes/MonoBook/themeinfo.php trunk/themes/Portland/themeinfo.php trunk/themes/Sidebar/themeinfo.php trunk/themes/Wordpress/themeinfo.php trunk/themes/blog/themeinfo.php trunk/themes/fusionforge/interwiki.map trunk/themes/fusionforge/themeinfo.php trunk/themes/shamino_com/themeinfo.php trunk/themes/wikilens/themeinfo.php Modified: trunk/INSTALL =================================================================== --- trunk/INSTALL 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/INSTALL 2021-06-28 14:17:34 UTC (rev 10334) @@ -13,7 +13,7 @@ want to use, i.e. --with-gdbm, --with-db2, --with-db3, --with-msql, --with-pgsql. Consult the PHP installation manual for specific installation and configure options. -<http://www.php.net/manual/en/installation.php> +<https://www.php.net/manual/en/installation.php> Since version 1.3.0 PhpWiki uses the 'DB.php' from PEAR, a database abstraction layer which is part of PHP. PhpWiki version 1.3.3 and later @@ -121,7 +121,7 @@ 3. ETC Installing PHP is beyond the scope of this document :-) You should -visit <http://www.php.net/> if you don't have PHP. Note that you +visit <https://www.php.net/> if you don't have PHP. Note that you should have the web server configured to allow index.php as the root document of a directory. Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/configurator.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -2480,7 +2480,7 @@ $d = str_replace("<p>", "", $d); $d = str_replace("</p>", "", $d); //restore html entities into characters - // http://www.php.net/manual/en/function.htmlentities.php + // https://www.php.net/manual/en/function.htmlentities.php $trans = get_html_translation_table(HTML_ENTITIES); $trans = array_flip($trans); $d = strtr($d, $trans); Modified: trunk/doc/README.coding =================================================================== --- trunk/doc/README.coding 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/doc/README.coding 2021-06-28 14:17:34 UTC (rev 10334) @@ -4,7 +4,7 @@ We follow, for the most part, the PEAR coding standards: - <http://www.php.net/manual/en/pear.standards.php> + <https://www.php.net/manual/en/pear.standards.php> There's code snippets for configuring Emacs and Vim as well as several other text editors at the above URL. Modified: trunk/lib/FileFinder.php =================================================================== --- trunk/lib/FileFinder.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/FileFinder.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -589,7 +589,7 @@ static $winnt; if (isset($winnt)) return $winnt; // FIXME: Do this using PHP_OS instead of php_uname(). - // $winnt = (PHP_OS == "WINNT"); // example from http://www.php.net/manual/en/ref.readline.php + // $winnt = (PHP_OS == "WINNT"); // example from https://www.php.net/manual/en/ref.readline.php if (function_usable('php_uname')) $winnt = preg_match('/^Windows NT/', php_uname()); else Modified: trunk/lib/HttpClient.php =================================================================== --- trunk/lib/HttpClient.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/HttpClient.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -215,7 +215,7 @@ // If data is compressed, uncompress it if (isset($this->headers['content-encoding']) && $this->headers['content-encoding'] == 'gzip') { $this->debug('Content is gzip encoded, unzipping it'); - $this->content = substr($this->content, 10); // See http://www.php.net/manual/en/function.gzencode.php + $this->content = substr($this->content, 10); // See https://www.php.net/manual/en/function.gzencode.php $this->content = gzinflate($this->content); } // If $persist_cookies, deal with any cookies Modified: trunk/lib/Request.php =================================================================== --- trunk/lib/Request.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/Request.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -377,7 +377,7 @@ $compress = false; // "output handler 'ob_gzhandler' cannot be used twice" - // http://www.php.net/ob_gzhandler + // https://www.php.net/ob_gzhandler if ($compress and ini_get("zlib.output_compression")) $compress = false; Modified: trunk/lib/WikiDB/adodb/adodb-csvlib.inc.php =================================================================== --- trunk/lib/WikiDB/adodb/adodb-csvlib.inc.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/WikiDB/adodb/adodb-csvlib.inc.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -264,7 +264,7 @@ */ function adodb_write_file($filename, $contents,$debug=false) { - # http://www.php.net/bugs.php?id=9203 Bug that flock fails on Windows + # https://www.php.net/bugs.php?id=9203 Bug that flock fails on Windows # So to simulate locking, we assume that rename is an atomic operation. # First we delete $filename, then we create a $tempfile write to it and # rename to the desired $filename. If the rename works, then we successfully Modified: trunk/lib/WikiDB/adodb/adodb-lib.inc.php =================================================================== --- trunk/lib/WikiDB/adodb/adodb-lib.inc.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/WikiDB/adodb/adodb-lib.inc.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -119,7 +119,7 @@ } // Force key to upper. -// See also http://www.php.net/manual/en/function.array-change-key-case.php +// See also https://www.php.net/manual/en/function.array-change-key-case.php function _array_change_key_case($an_array) { if (is_array($an_array)) { Modified: trunk/lib/WikiDB/adodb/adodb-time.inc.php =================================================================== --- trunk/lib/WikiDB/adodb/adodb-time.inc.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/WikiDB/adodb/adodb-time.inc.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -64,7 +64,7 @@ (c) 2003-2014 John Lim and released under BSD-style license except for code by jackbbs, which includes adodb_mktime, adodb_get_gmt_diff, adodb_is_leap_year -and originally found at http://www.php.net/manual/en/function.mktime.php +and originally found at https://www.php.net/manual/en/function.mktime.php ============================================================================= Modified: trunk/lib/WikiDB/adodb/drivers/adodb-postgres64.inc.php =================================================================== --- trunk/lib/WikiDB/adodb/drivers/adodb-postgres64.inc.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/WikiDB/adodb/drivers/adodb-postgres64.inc.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -157,7 +157,7 @@ } /** - * Warning from http://www.php.net/manual/function.pg-getlastoid.php: + * Warning from https://www.php.net/manual/function.pg-getlastoid.php: * Using a OID as a unique identifier is not generally wise. * Unless you are very careful, you might end up with a tuple having * a different OID if a database must be reloaded. Modified: trunk/lib/WikiTheme.php =================================================================== --- trunk/lib/WikiTheme.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/WikiTheme.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -1472,7 +1472,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. * Modified: trunk/lib/interwiki.map =================================================================== --- trunk/lib/interwiki.map 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/interwiki.map 2021-06-28 14:17:34 UTC (rev 10334) @@ -86,8 +86,8 @@ PPR http://c2.com/cgi/wiki? PangalacticOrg http://www.pangalactic.org/Wiki/ PersonalTelco http://www.personaltelco.net/index.cgi/ -php-function http://www.php.net/%s -php-lookup http://www.php.net/manual-lookup.php?pattern= +php-function https://www.php.net/%s +php-lookup https://www.php.net/manual-lookup.php?pattern= PhpWiki http://phpwiki.demo.free.fr/index.php/ PhpWikiSvn https://sourceforge.net/p/phpwiki/code/HEAD/tree/trunk/ Pikie http://pikie.darktech.org/cgi/pikie? Modified: trunk/lib/plugin/FuzzyPages.php =================================================================== --- trunk/lib/plugin/FuzzyPages.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/plugin/FuzzyPages.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -31,8 +31,8 @@ * title in the database (php's metaphone() is an improved soundex * function). * - * http://www.php.net/manual/en/function.similar-text.php - * http://www.php.net/manual/en/function.metaphone.php + * https://www.php.net/manual/en/function.similar-text.php + * https://www.php.net/manual/en/function.metaphone.php */ class WikiPlugin_FuzzyPages extends WikiPlugin Modified: trunk/lib/plugin/text2png.php =================================================================== --- trunk/lib/plugin/text2png.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/plugin/text2png.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -41,7 +41,7 @@ * * ./configure --with-gd * - * See <http://www.php.net/manual/pl/ref.image.php> for more info. + * See <https://www.php.net/manual/pl/ref.image.php> for more info. */ // define('text2png_debug', DEBUG & _DEBUG_VERBOSE); @@ -84,7 +84,7 @@ } else { // we don't have png and/or gd. $error_html = _("Sorry, this version of PHP cannot create PNG image files."); - $link = "http://www.php.net/manual/pl/ref.image.php"; + $link = "https://www.php.net/manual/pl/ref.image.php"; $error_html .= sprintf(_("See %s"), $link) . "."; trigger_error($error_html); return HTML::p($error_html); @@ -166,7 +166,7 @@ $error_html = _("PHP was unable to create a new GD image stream. Read 'lib/plugin/text2png.php' for details."); // FIXME: Error manager does not transform URLs passed // through it. - $link = "http://www.php.net/manual/en/function.imagecreate.php"; + $link = "https://www.php.net/manual/en/function.imagecreate.php"; $error_html .= sprintf(_("See %s"), $link) . "."; trigger_error($error_html); return HTML::p($error_html); Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/lib/stdlib.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -1382,7 +1382,7 @@ * Subdirectories are not traversed. * * (This was a function LoadDir in lib/loadsave.php) - * See also http://www.php.net/manual/en/function.readdir.php + * See also https://www.php.net/manual/en/function.readdir.php */ public function getFiles($exclude = '', $sortby = '', $limit = '') { @@ -1572,7 +1572,7 @@ * Recursively count all non-empty elements * in array of any dimension or mixed - i.e. * array('1' => 2, '2' => array('1' => 3, '2' => 4)) - * See http://www.php.net/manual/en/function.count.php + * See https://www.php.net/manual/en/function.count.php */ function count_all($arg) { @@ -1936,7 +1936,7 @@ * @return integer * @desc Feed a sorted array to $haystack and a value to search for to $needle. It will return false if not found or the index where it was found. -From den...@mo... http://www.php.net/array_search +From den...@mo... https://www.php.net/array_search */ function binary_search($needle, $haystack) { @@ -2185,7 +2185,7 @@ * @param string $str the string to analyze * @return bool * - * From http://www.php.net/manual/en/function.mb-detect-encoding.php#85294 + * From https://www.php.net/manual/en/function.mb-detect-encoding.php#85294 */ function is_utf8($str) { $c=0; $b=0; Modified: trunk/locale/de/pgsrc/Hilfe%2FWikiTechnik =================================================================== --- trunk/locale/de/pgsrc/Hilfe%2FWikiTechnik 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/locale/de/pgsrc/Hilfe%2FWikiTechnik 2021-06-28 14:17:34 UTC (rev 10334) @@ -7,7 +7,7 @@ Content-Transfer-Encoding: binary ~PhpWiki ist in der serverseitigen Skriptsprache PHP -([[http://www.php.net/]]) geschrieben. PHP hat eine ähnliche Syntax wie +([[https://www.php.net/]]) geschrieben. PHP hat eine ähnliche Syntax wie Perl oder C und funktioniert ähnlich wie ASP, ~EmbPerl oder JSP. ~PhpWiki besteht aus etwa einem Dutzend Dateien mit gemischtem PHP und HTML. Die Modified: trunk/locale/es/pgsrc/Ayuda%2FMasAcercadeLaMecanica =================================================================== --- trunk/locale/es/pgsrc/Ayuda%2FMasAcercadeLaMecanica 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/locale/es/pgsrc/Ayuda%2FMasAcercadeLaMecanica 2021-06-28 14:17:34 UTC (rev 10334) @@ -7,7 +7,7 @@ Content-Transfer-Encoding: binary ~PhpWiki está escrito con el lenguaje de servidor PHP, -disponible en [[http://www.php.net/]]. El PHP se asemeja a C y Perl en su +disponible en [[https://www.php.net/]]. El PHP se asemeja a C y Perl en su sintaxis, y funciona muy parecido a ASP, ~EmbPerl o JSP. ~PhpWiki consiste en mas o menos de una docena de ficheros mixtos PHP y HTML. Las páginas web Modified: trunk/locale/fr/pgsrc/Aide%2FD%C3%A9tailsTechniques =================================================================== --- trunk/locale/fr/pgsrc/Aide%2FD%C3%A9tailsTechniques 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/locale/fr/pgsrc/Aide%2FD%C3%A9tailsTechniques 2021-06-28 14:17:34 UTC (rev 10334) @@ -7,7 +7,7 @@ Content-Transfer-Encoding: binary ~PhpWiki est écrit en PHP, langage de scripting côté serveur, disponible -sur http://www.php.net/. PHP ressemble au C et à Perl dans sa syntaxe, et +sur https://www.php.net/. PHP ressemble au C et à Perl dans sa syntaxe, et fonctionne comme ASP, ~EmbPerl ou JSP. ~PhpWiki est constitué d'une douzaine de fichiers environ de PHP mélangé à du HTML. Modified: trunk/locale/fr/pgsrc/Aide%2FGreffonPagesFloues =================================================================== --- trunk/locale/fr/pgsrc/Aide%2FGreffonPagesFloues 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/locale/fr/pgsrc/Aide%2FGreffonPagesFloues 2021-06-28 14:17:34 UTC (rev 10334) @@ -14,8 +14,8 @@ title in the database (PHP's metaphone() is an improved soundex function). -* http://www.php.net/manual/en/function.similar-text.php -* http://www.php.net/manual/en/function.metaphone.php +* https://www.php.net/manual/en/function.similar-text.php +* https://www.php.net/manual/en/function.metaphone.php == Usage == {{{ Modified: trunk/locale/it/pgsrc/Aiuto%2FVarieSulFunzionamento =================================================================== --- trunk/locale/it/pgsrc/Aiuto%2FVarieSulFunzionamento 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/locale/it/pgsrc/Aiuto%2FVarieSulFunzionamento 2021-06-28 14:17:34 UTC (rev 10334) @@ -7,7 +7,7 @@ Content-Transfer-Encoding: binary ~PhpWiki è scritto in PHP, linguaggio di scripting lato-server, -disponibile su [[http://www.php.net/]]. PHP riassume nella sua sintassi il C +disponibile su [[https://www.php.net/]]. PHP riassume nella sua sintassi il C e il Perl, e funziona molto similmente a ASP, ~EmbPerl e JPS. ~PhpWiki consiste in una dozzina di file PHP misti HTML. La pagina web Modified: trunk/locale/nl/pgsrc/Help%2FMeerOverTechnieken =================================================================== --- trunk/locale/nl/pgsrc/Help%2FMeerOverTechnieken 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/locale/nl/pgsrc/Help%2FMeerOverTechnieken 2021-06-28 14:17:34 UTC (rev 10334) @@ -7,7 +7,7 @@ Content-Transfer-Encoding: binary ~PhpWiki is geschreven in de server-zijde scripttaal PHP, die -verkrijgbaar is op [[http://www.php.net/]]. PHP lijkt kwa syntax op C en +verkrijgbaar is op [[https://www.php.net/]]. PHP lijkt kwa syntax op C en Perl en functioneert goed vergelijkbaar met ASP, ~EmbPerl of JSP. PhpWiki bestaat uit een tal bestanden met een mengsel van PHP en HTML. Modified: trunk/locale/sv/pgsrc/Hj%C3%A4lp%2FMerOmMekanismerna =================================================================== --- trunk/locale/sv/pgsrc/Hj%C3%A4lp%2FMerOmMekanismerna 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/locale/sv/pgsrc/Hj%C3%A4lp%2FMerOmMekanismerna 2021-06-28 14:17:34 UTC (rev 10334) @@ -7,7 +7,7 @@ Content-Transfer-Encoding: binary ~PhpWiki är skriven i skriptspråket PHP, tillgängligt på -[[http://www.php.net/]]. PHP liknar C och Perl till syntaxen och fungerar +[[https://www.php.net/]]. PHP liknar C och Perl till syntaxen och fungerar som ASP, ~EmbPerl eller JSP. ~PhpWiki består av dussin filer med en blandning av PHP och Modified: trunk/passencrypt.php =================================================================== --- trunk/passencrypt.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/passencrypt.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -87,7 +87,7 @@ ) { $password = $posted['password']; /** - * http://www.php.net/manual/en/function.crypt.php + * https://www.php.net/manual/en/function.crypt.php */ // Use the maximum salt length the system can handle. $salt_length = max(CRYPT_SALT_LENGTH, Modified: trunk/pgsrc/Help%2FAtomFeedPlugin =================================================================== --- trunk/pgsrc/Help%2FAtomFeedPlugin 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/pgsrc/Help%2FAtomFeedPlugin 2021-06-28 14:17:34 UTC (rev 10334) @@ -49,7 +49,7 @@ {{{ <<AtomFeed feed=PHPNews description="PHP News" - url=http://www.php.net/feed.atom titleonly=true maxitem=5>> + url=https://www.php.net/feed.atom titleonly=true maxitem=5>> }}} == Author == Modified: trunk/pgsrc/Help%2FFuzzyPagesPlugin =================================================================== --- trunk/pgsrc/Help%2FFuzzyPagesPlugin 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/pgsrc/Help%2FFuzzyPagesPlugin 2021-06-28 14:17:34 UTC (rev 10334) @@ -13,8 +13,8 @@ title in the database (PHP's metaphone() is an improved soundex function). -* http://www.php.net/manual/en/function.similar-text.php -* http://www.php.net/manual/en/function.metaphone.php +* https://www.php.net/manual/en/function.similar-text.php +* https://www.php.net/manual/en/function.metaphone.php == Usage == {{{ Modified: trunk/pgsrc/Help%2FMoreAboutMechanics =================================================================== --- trunk/pgsrc/Help%2FMoreAboutMechanics 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/pgsrc/Help%2FMoreAboutMechanics 2021-06-28 14:17:34 UTC (rev 10334) @@ -7,7 +7,7 @@ Content-Transfer-Encoding: binary ~PhpWiki is written in the server-side scripting language PHP, -available from [[http://www.php.net/]]. PHP resembles C and Perl in its +available from [[https://www.php.net/]]. PHP resembles C and Perl in its syntax, and functions much like ASP, ~EmbPerl or JSP. ~PhpWiki consists of a dozen or so files of mixed PHP and HTML. The web Modified: trunk/themes/Crao/themeinfo.php =================================================================== --- trunk/themes/Crao/themeinfo.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/Crao/themeinfo.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -81,7 +81,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. */ Modified: trunk/themes/Hawaiian/themeinfo.php =================================================================== --- trunk/themes/Hawaiian/themeinfo.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/Hawaiian/themeinfo.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -106,7 +106,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. */ Modified: trunk/themes/MacOSX/themeinfo.php =================================================================== --- trunk/themes/MacOSX/themeinfo.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/MacOSX/themeinfo.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -172,7 +172,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. */ Modified: trunk/themes/MonoBook/themeinfo.php =================================================================== --- trunk/themes/MonoBook/themeinfo.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/MonoBook/themeinfo.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -134,7 +134,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. */ Modified: trunk/themes/Portland/themeinfo.php =================================================================== --- trunk/themes/Portland/themeinfo.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/Portland/themeinfo.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -120,7 +120,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. */ Modified: trunk/themes/Sidebar/themeinfo.php =================================================================== --- trunk/themes/Sidebar/themeinfo.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/Sidebar/themeinfo.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -193,7 +193,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. */ Modified: trunk/themes/Wordpress/themeinfo.php =================================================================== --- trunk/themes/Wordpress/themeinfo.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/Wordpress/themeinfo.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -119,7 +119,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. */ Modified: trunk/themes/blog/themeinfo.php =================================================================== --- trunk/themes/blog/themeinfo.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/blog/themeinfo.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -179,7 +179,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. */ Modified: trunk/themes/fusionforge/interwiki.map =================================================================== --- trunk/themes/fusionforge/interwiki.map 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/fusionforge/interwiki.map 2021-06-28 14:17:34 UTC (rev 10334) @@ -17,8 +17,8 @@ MetaWiki http://sunir.org/apps/meta.pl? MetaWikiPedia http://meta.wikipedia.com/wiki/ MoinMoin http://moinmoin.wikiwikiweb.de/ -php-function http://www.php.net/%s -php-lookup http://www.php.net/manual-lookup.php?pattern= +php-function https://www.php.net/%s +php-lookup https://www.php.net/manual-lookup.php?pattern= PhpWiki http://phpwiki.demo.free.fr/index.php/ PhpWikiSvn https://sourceforge.net/p/phpwiki/code/HEAD/tree/trunk/ SourceForge http://sourceforge.net/ Modified: trunk/themes/fusionforge/themeinfo.php =================================================================== --- trunk/themes/fusionforge/themeinfo.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/fusionforge/themeinfo.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -183,7 +183,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. */ Modified: trunk/themes/shamino_com/themeinfo.php =================================================================== --- trunk/themes/shamino_com/themeinfo.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/shamino_com/themeinfo.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -118,7 +118,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. */ Modified: trunk/themes/wikilens/themeinfo.php =================================================================== --- trunk/themes/wikilens/themeinfo.php 2021-06-28 13:50:16 UTC (rev 10333) +++ trunk/themes/wikilens/themeinfo.php 2021-06-28 14:17:34 UTC (rev 10334) @@ -101,7 +101,7 @@ * You may adjust the formats used for formatting dates and times * below. (These examples give the default formats.) * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. + * https://www.php.net/manual/en/function.strftime.php for details. * Do not include the server's zone (%Z), times are converted to the * user's time zone. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-07-15 18:32:03
|
Revision: 10350 http://sourceforge.net/p/phpwiki/code/10350 Author: vargenau Date: 2021-07-15 18:32:00 +0000 (Thu, 15 Jul 2021) Log Message: ----------- Better handling of page names with slash Modified Paths: -------------- trunk/lib/InlineParser.php trunk/lib/main.php trunk/lib/plugin/CreatePage.php trunk/lib/plugin/WikiAdminRename.php trunk/pgsrc/ReleaseNotes Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2021-07-15 16:41:39 UTC (rev 10349) +++ trunk/lib/InlineParser.php 2021-07-15 18:32:00 UTC (rev 10350) @@ -343,6 +343,12 @@ _('Page name too long')); } } + // Page name cannot end with a slash + if (substr($rawlink, -1) == "/") { + return HTML::span(array('class' => 'error'), + sprintf(_("Page name “%s” cannot end with a slash."), $rawlink)); + } + // Check illegal characters in page names: <>[]{}|" if (preg_match("/[<\[\{\|\"\}\]>]/", $rawlink, $matches) > 0) { return HTML::span(array('class' => 'error'), Modified: trunk/lib/main.php =================================================================== --- trunk/lib/main.php 2021-07-15 16:41:39 UTC (rev 10349) +++ trunk/lib/main.php 2021-07-15 18:32:00 UTC (rev 10350) @@ -784,6 +784,12 @@ GeneratePage($CONTENT, $pagename); $this->finish(); } + // Page name cannot end with a slash, redirect to page without slashes at the end + if (substr($pagename, -1) == "/") { + $pagename = rtrim($pagename, "/"); + global $request; + $request->redirect(WikiURL($pagename, array(), 'absurl')); // noreturn + } if (preg_match("/[<\[\{\|\"\}\]>]/", $pagename, $matches) > 0) { $CONTENT = HTML::p( array('class' => 'error'), Modified: trunk/lib/plugin/CreatePage.php =================================================================== --- trunk/lib/plugin/CreatePage.php 2021-07-15 16:41:39 UTC (rev 10349) +++ trunk/lib/plugin/CreatePage.php 2021-07-15 18:32:00 UTC (rev 10350) @@ -75,8 +75,9 @@ return $this->error(sprintf(_("Argument '%s' must be a boolean"), "overwrite")); } - // Prevent spaces at the start and end of a page name - $s = trim($s); + // Prevent spaces and slashes at the start and end of a page name + $s = trim($s, " /"); + if (!$s) { return $this->error(_("Cannot create page with empty name!")); } Modified: trunk/lib/plugin/WikiAdminRename.php =================================================================== --- trunk/lib/plugin/WikiAdminRename.php 2021-07-15 16:41:39 UTC (rev 10349) +++ trunk/lib/plugin/WikiAdminRename.php 2021-07-15 18:32:00 UTC (rev 10350) @@ -222,6 +222,14 @@ ) { if (strlen($newname) > MAX_PAGENAME_LENGTH) { $ul->pushContent(HTML::li(_("Cannot rename. New page name too long."))); + // Page name cannot begin with a slash + } elseif ($newname[0] == "/") { + $ul->pushContent(HTML::li( + sprintf(_("Page name “%s” cannot begin with a slash."), $newname))); + // Page name cannot end with a slash + } elseif (substr($newname, -1) == "/") { + $ul->pushContent(HTML::li( + sprintf(_("Page name “%s” cannot end with a slash."), $newname))); } elseif (preg_match("/[<\[\{\|\"\}\]>]/", $newname, $matches) > 0) { $ul->pushContent(HTML::li( sprintf(_("Illegal character “%s” in page name."), $matches[0]))); Modified: trunk/pgsrc/ReleaseNotes =================================================================== --- trunk/pgsrc/ReleaseNotes 2021-07-15 16:41:39 UTC (rev 10349) +++ trunk/pgsrc/ReleaseNotes 2021-07-15 18:32:00 UTC (rev 10350) @@ -1,4 +1,4 @@ -Date: Wed, 9 Jun 2021 19:50:57 +0000 +Date: Thu, 15 Jul 2021 20:27:26 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=ReleaseNotes; @@ -20,6 +20,7 @@ * Make function IsSafeURL more strict * Make XHTML ZIP Snapshot work again (broken since ~PhpWiki 1.5.3) * It was possible to rename a page to a name with illegal characters, like ~[~] +* Better handling of page names with slash * Remove wrong calls to setTightness in ##lib/~InlineParser.php## (bug reported by Harold Hallikainen) * Importing a ZIP from an old wiki in Latin 1 (ISO 8859-1) failed. Reported by Frank Michael. * Better check arguments for ~GoogleMaps plugin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-07-28 13:27:45
|
Revision: 10373 http://sourceforge.net/p/phpwiki/code/10373 Author: vargenau Date: 2021-07-28 13:27:43 +0000 (Wed, 28 Jul 2021) Log Message: ----------- Add language in <html> Modified Paths: -------------- trunk/configurator.php trunk/lib/ErrorManager.php trunk/passencrypt.php trunk/themes/Crao/templates/htmldump.tmpl trunk/themes/Sidebar/templates/htmldump.tmpl trunk/themes/default/templates/htmldump.tmpl trunk/themes/default/templates/redirect.tmpl trunk/themes/default/toolbar.js Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-07-27 19:44:39 UTC (rev 10372) +++ trunk/configurator.php 2021-07-28 13:27:43 UTC (rev 10373) @@ -163,7 +163,7 @@ ?> <!DOCTYPE html> -<html> +<html xml:lang="en" lang="en"> <head> <meta charset="UTF-8" /> <title>Configuration tool for PhpWiki <?php echo $config_file ?></title> Modified: trunk/lib/ErrorManager.php =================================================================== --- trunk/lib/ErrorManager.php 2021-07-27 19:44:39 UTC (rev 10372) +++ trunk/lib/ErrorManager.php 2021-07-28 13:27:43 UTC (rev 10373) @@ -270,7 +270,7 @@ if ($error->isFatal()) { $this->_noCacheHeaders(); echo "<!DOCTYPE html>\n"; - echo "<html>\n"; + echo '<html xml:lang="en" lang="en">'."\n"; echo "<head>\n"; echo "<meta charset=\"UTF-8\" />\n"; echo "<title>"._('Fatal PhpWiki Error')."</title>\n"; Modified: trunk/passencrypt.php =================================================================== --- trunk/passencrypt.php 2021-07-27 19:44:39 UTC (rev 10372) +++ trunk/passencrypt.php 2021-07-28 13:27:43 UTC (rev 10373) @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html> +<html xml:lang="en" lang="en"> <head> <meta charset="UTF-8" /> <title>Password Encryption Tool</title> Modified: trunk/themes/Crao/templates/htmldump.tmpl =================================================================== --- trunk/themes/Crao/templates/htmldump.tmpl 2021-07-27 19:44:39 UTC (rev 10372) +++ trunk/themes/Crao/templates/htmldump.tmpl 2021-07-28 13:27:43 UTC (rev 10373) @@ -5,6 +5,7 @@ */ ?> <!DOCTYPE html> +<html xml:lang="en" lang="en"> <head> <meta charset="UTF-8" /> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> Modified: trunk/themes/Sidebar/templates/htmldump.tmpl =================================================================== --- trunk/themes/Sidebar/templates/htmldump.tmpl 2021-07-27 19:44:39 UTC (rev 10372) +++ trunk/themes/Sidebar/templates/htmldump.tmpl 2021-07-28 13:27:43 UTC (rev 10373) @@ -5,7 +5,7 @@ */ ?> <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"> +<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="UTF-8" /> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> Modified: trunk/themes/default/templates/htmldump.tmpl =================================================================== --- trunk/themes/default/templates/htmldump.tmpl 2021-07-27 19:44:39 UTC (rev 10372) +++ trunk/themes/default/templates/htmldump.tmpl 2021-07-28 13:27:43 UTC (rev 10373) @@ -5,7 +5,7 @@ */ ?> <!DOCTYPE html> -<html> +<html xml:lang="en" lang="en"> <head> <meta charset="UTF-8" /> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> Modified: trunk/themes/default/templates/redirect.tmpl =================================================================== --- trunk/themes/default/templates/redirect.tmpl 2021-07-27 19:44:39 UTC (rev 10372) +++ trunk/themes/default/templates/redirect.tmpl 2021-07-28 13:27:43 UTC (rev 10373) @@ -4,7 +4,7 @@ */ ?> <!DOCTYPE html> -<html> +<html xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="robots" content="noindex, nofollow" /> Modified: trunk/themes/default/toolbar.js =================================================================== --- trunk/themes/default/toolbar.js 2021-07-27 19:44:39 UTC (rev 10372) +++ trunk/themes/default/toolbar.js 2021-07-28 13:27:43 UTC (rev 10373) @@ -25,7 +25,7 @@ } }; pullwin.window.document.writeln(doctype); - pullwin.window.document.writeln('<html>\n<head>\n<title>'+escapeQuotes(title)+'</title>'); + pullwin.window.document.writeln('<html xml:lang="en" lang="en" >\n<head>\n<title>'+escapeQuotes(title)+'</title>'); pullwin.window.document.writeln(cssfile); pullwin.window.document.writeln('</head>\n<body>'); pullwin.window.document.writeln('<p>\nYou can double-click to insert.\n</p>'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-07-28 14:45:25
|
Revision: 10381 http://sourceforge.net/p/phpwiki/code/10381 Author: vargenau Date: 2021-07-28 14:45:17 +0000 (Wed, 28 Jul 2021) Log Message: ----------- function pageLink: same prototype as base class Modified Paths: -------------- trunk/lib/plugin/PageHistory.php trunk/lib/plugin/RecentChanges.php trunk/themes/blog/lib/RecentChanges.php Modified: trunk/lib/plugin/PageHistory.php =================================================================== --- trunk/lib/plugin/PageHistory.php 2021-07-28 14:29:15 UTC (rev 10380) +++ trunk/lib/plugin/PageHistory.php 2021-07-28 14:45:17 UTC (rev 10381) @@ -178,7 +178,7 @@ 'value' => $rev->getVersion())); } - function pageLink($rev, $link_text = false) + function pageLink($rev, $link_text = '') { $text = fmt("Version %d", $rev->getVersion()); return _RecentChanges_HtmlFormatter::pageLink($rev, $text); Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2021-07-28 14:29:15 UTC (rev 10380) +++ trunk/lib/plugin/RecentChanges.php 2021-07-28 14:45:17 UTC (rev 10381) @@ -193,7 +193,6 @@ function pageLink($rev, $link_text = '') { - return WikiLink($this->include_versions_in_URLs() ? $rev : $rev->getPage(), 'auto', $link_text); /* @@ -677,7 +676,7 @@ return $linkurl; } - function pageLink($rev, $link_text = false) + function pageLink($rev, $link_text = '') { $linkurl = parent::pageLink($rev); $linkurl->setAttr('target', '_content'); Modified: trunk/themes/blog/lib/RecentChanges.php =================================================================== --- trunk/themes/blog/lib/RecentChanges.php 2021-07-28 14:29:15 UTC (rev 10380) +++ trunk/themes/blog/lib/RecentChanges.php 2021-07-28 14:45:17 UTC (rev 10381) @@ -31,7 +31,7 @@ class _blog_RecentChanges_BoxFormatter extends _RecentChanges_BoxFormatter { - function pageLink(&$rev, $link_text = false) + function pageLink($rev, $link_text = '') { if (!$link_text and $rev->get('pagetype') == 'wikiblog') $link_text = $rev->get('summary'); @@ -46,7 +46,7 @@ class _blog_RecentChanges_Formatter extends _RecentChanges_HtmlFormatter { - function pageLink(&$rev, $link_text = false) + function pageLink($rev, $link_text = '') { if (!$link_text and $rev->get('pagetype') == 'wikiblog') $link_text = $rev->get('summary'); @@ -53,14 +53,3 @@ return WikiLink($rev, 'auto', $link_text); } } -/* -class _blog_PageHistory_Formatter -extends _PageHistory_HtmlFormatter -{ - function pageLink (&$rev, $link_text=false) { - if (!$link_text and $rev->get('pagetype') == 'wikiblog') - $link_text = $rev->get('summary'); - return WikiLink($rev,'auto',$link_text); - } -} -*/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-07-28 15:12:28
|
Revision: 10383 http://sourceforge.net/p/phpwiki/code/10383 Author: vargenau Date: 2021-07-28 15:12:26 +0000 (Wed, 28 Jul 2021) Log Message: ----------- Use __construct Modified Paths: -------------- trunk/lib/XMLRPC/xmlrpc.inc trunk/lib/XMLRPC/xmlrpc_emu.inc trunk/lib/XMLRPC/xmlrpcs.inc trunk/lib/XMLRPC/xmlrpcs_emu.inc trunk/lib/XmlRpcServer.php trunk/lib/pear/Cache/Application.php trunk/lib/pear/Cache/Function.php trunk/lib/pear/Cache/Graphics.php trunk/lib/pear/Cache/HTTP_Request.php trunk/lib/pear/Cache/OutputCompression.php trunk/lib/pear/JSON.php trunk/themes/blog/jscalendar/calendar.php Modified: trunk/lib/XMLRPC/xmlrpc.inc =================================================================== --- trunk/lib/XMLRPC/xmlrpc.inc 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/lib/XMLRPC/xmlrpc.inc 2021-07-28 15:12:26 UTC (rev 10383) @@ -894,7 +894,7 @@ var $verifyhost = 1; var $no_multicall = false; - function xmlrpc_client($path, $server, $port = 0) + function __construct($path, $server, $port = 0) { $this->port = $port; $this->server = $server; @@ -1185,7 +1185,7 @@ var $errstr = ''; var $hdrs = array(); - function xmlrpcresp($val, $fcode = 0, $fstr = '') + function __construct($val, $fcode = 0, $fstr = '') { if ($fcode != 0) { // error @@ -1253,7 +1253,7 @@ var $params = array(); var $debug = 0; - function xmlrpcmsg($meth, $pars = 0) + function __construct($meth, $pars = 0) { $this->methodname = $meth; if (is_array($pars) && sizeof($pars) > 0) { @@ -1532,7 +1532,7 @@ var $me = array(); var $mytype = 0; - function xmlrpcval($val = -1, $type = '') + function __construct($val = -1, $type = '') { global $xmlrpcTypes; $this->me = array(); Modified: trunk/lib/XMLRPC/xmlrpc_emu.inc =================================================================== --- trunk/lib/XMLRPC/xmlrpc_emu.inc 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/lib/XMLRPC/xmlrpc_emu.inc 2021-07-28 15:12:26 UTC (rev 10383) @@ -6,8 +6,8 @@ 08/30/01 - last modified by Dan Libby <da...@li...> This code provides API compatibility with Edd Dumbill's php xmlrpc -library (http://phpxmlrpc.sourceforge.net/) but uses the xmlrpc-epi -engine for the actual xml processing. It is intended to provide a +library (http://phpxmlrpc.sourceforge.net/) but uses the xmlrpc-epi +engine for the actual xml processing. It is intended to provide a smooth transition path for those who would like to be able to use either implementation. @@ -161,8 +161,7 @@ var $username = ""; var $password = ""; - // constructor - function xmlrpc_client($path, $server, $port = 80) + function __construct($path, $server, $port = 80) { $this->port = $port; $this->server = $server; @@ -229,8 +228,7 @@ var $fs; var $hdrs; - // constructor. - function xmlrpcresp($val, $fcode = 0, $fstr = "") + function __construct($val, $fcode = 0, $fstr = "") { if ($fcode != 0) { $this->fn = $fcode; @@ -283,8 +281,7 @@ var $params = array(); var $debug = 0; - // constructor - function xmlrpcmsg($meth, $pars = 0) + function __construct($meth, $pars = 0) { $this->methodname = $meth; if (is_array($pars) && sizeof($pars) > 0) { @@ -385,8 +382,7 @@ var $me = array(); var $mytype = 0; - // constructor - function xmlrpcval($val = -1, $type = "") + function __construct($val = -1, $type = "") { global $xmlrpcTypes; $this->me = array(); Modified: trunk/lib/XMLRPC/xmlrpcs.inc =================================================================== --- trunk/lib/XMLRPC/xmlrpcs.inc 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/lib/XMLRPC/xmlrpcs.inc 2021-07-28 15:12:26 UTC (rev 10383) @@ -225,7 +225,7 @@ { var $dmap = array(); - function xmlrpc_server($dispMap = '', $serviceNow = 1) + function __construct($dispMap = '', $serviceNow = 1) { global $HTTP_RAW_POST_DATA; // dispMap is a dispatch array of methods Modified: trunk/lib/XMLRPC/xmlrpcs_emu.inc =================================================================== --- trunk/lib/XMLRPC/xmlrpcs_emu.inc 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/lib/XMLRPC/xmlrpcs_emu.inc 2021-07-28 15:12:26 UTC (rev 10383) @@ -6,8 +6,8 @@ 08/30/01 - last modified by Dan Libby <da...@li...> This code provides API compatibility with Edd Dumbill's php xmlrpc -library (http://phpxmlrpc.sourceforge.net/) but uses the xmlrpc-epi -engine for the actual xml processing. It is intended to provide a +library (http://phpxmlrpc.sourceforge.net/) but uses the xmlrpc-epi +engine for the actual xml processing. It is intended to provide a smooth transition path for those who would like to be able to use either implementation. @@ -26,11 +26,11 @@ - xmlrpc_decode, xmlrpc_encode are present in both the xmlrpc-epi C extension and the usefulinc implementation, and conflict. They have been enhanced and renamed to val_to_php, php_to_val. - + - the xmlrpc-epi engine uses different fault codes and strings than the xmlrpc.inc. Application fault codes will remain unchanged between implementations, but system codes will likely be - different. + different. See http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php - Certain methods are not implemented and will typically return @@ -50,7 +50,7 @@ // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF @@ -126,7 +126,7 @@ var $xmlrpc_server; // constructor. creates server and optionally services request. - function xmlrpc_server($dispMap, $serviceNow = 1) + function __construct($dispMap, $serviceNow = 1) { global $HTTP_RAW_POST_DATA; // dispMap is a despatch array of methods @@ -274,4 +274,4 @@ { global $_xmlrpc_debuginfo; $_xmlrpc_debuginfo = $_xmlrpc_debuginfo . $m . "\n"; -} +} Modified: trunk/lib/XmlRpcServer.php =================================================================== --- trunk/lib/XmlRpcServer.php 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/lib/XmlRpcServer.php 2021-07-28 15:12:26 UTC (rev 10383) @@ -947,7 +947,7 @@ $dmap['wiki.' . $name] = $val; } - $this->xmlrpc_server($dmap, 0 /* delay service*/); + parent::__construct($dmap, 0 /* delay service*/); } function service() Modified: trunk/lib/pear/Cache/Application.php =================================================================== --- trunk/lib/pear/Cache/Application.php 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/lib/pear/Cache/Application.php 2021-07-28 15:12:26 UTC (rev 10383) @@ -44,7 +44,7 @@ // // $app =& new Cache_Application(); // $app->register('foo'); -// $app->register('bar', $bar); +// $app->register('bar', $bar); // // $foo = 'Different data'; // @@ -53,7 +53,7 @@ // // As with session_register(), the contents of the variable at the *end* of the // request is registered and not at the point of registration. Therefore in this -// example, for the $foo variable, the string 'Different data' is stored and not +// example, for the $foo variable, the string 'Different data' is stored and not // 'Some data'. The exception to this rule is if you use the second argument to // register() as in the second call to it above. This will cause the data supplied // in the second argument to be stored and not the contents at the end of the request. @@ -72,7 +72,6 @@ class Cache_Application extends Cache { - var $data; var $id; var $group; @@ -79,18 +78,16 @@ var $registered_vars; /** - * Constructor - * * @param string Name of container class * @param array Array with container class options */ - function Cache_Application($container = 'file', $container_options = array('cache_dir' => '/tmp/', 'filename_prefix' => 'cache_'), $id = 'application_var', $group = 'application_cache') + function __construct($container = 'file', $container_options = array('cache_dir' => '/tmp/', 'filename_prefix' => 'cache_'), $id = 'application_var', $group = 'application_cache') { $this->id = $id; $this->group = $group; $this->registered_vars = array(); - $this->Cache($container, $container_options); + parent::__construct($container, $container_options); $this->data = $this->isCached($this->id, $this->group) ? unserialize($this->get($this->id, $this->group)) : array(); // If register_globals on, global all registered variables @@ -176,4 +173,4 @@ return $this->data; } } -?> \ No newline at end of file +?> Modified: trunk/lib/pear/Cache/Function.php =================================================================== --- trunk/lib/pear/Cache/Function.php 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/lib/pear/Cache/Function.php 2021-07-28 15:12:26 UTC (rev 10383) @@ -55,12 +55,12 @@ * $cache->call('foobar'); * * Note: -* -* You cannot cache every function. You should only cache +* +* You cannot cache every function. You should only cache * functions that only depend on their arguments and don't use -* global or static variables, don't rely on database queries or +* global or static variables, don't rely on database queries or * files, and so on. -* +* * @author Sebastian Bergmann <sb...@se...> * @module Function_Cache * @modulegroup Function_Cache @@ -79,15 +79,14 @@ * @param array Array with container class options * @param integer Number of seconds for which to cache */ - function Cache_Function($container = 'file', - $container_options = array('cache_dir' => '.', - 'filename_prefix' => 'cache_' - ), - $expires = 3600 - ) + function __construct($container = 'file', + $container_options = array('cache_dir' => '.', + 'filename_prefix' => 'cache_' + ), + $expires = 3600) { - $this->Cache($container, $container_options); - $this->expires = $expires; + parent::__construct($container, $container_options); + $this->expires = $expires; } /** Modified: trunk/lib/pear/Cache/Graphics.php =================================================================== --- trunk/lib/pear/Cache/Graphics.php 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/lib/pear/Cache/Graphics.php 2021-07-28 15:12:26 UTC (rev 10383) @@ -21,20 +21,20 @@ /** * Graphics disk cache. -* -* The usual way to create images is to pass some arguments that describe the image -* to a script that dynamically creates an image. For every image of a page +* +* The usual way to create images is to pass some arguments that describe the image +* to a script that dynamically creates an image. For every image of a page * a new PHP interpreter gets started. This is a good way to kill your webserver. -* -* When dealing with dynamically generated images you should not call another script +* +* When dealing with dynamically generated images you should not call another script * to generate the images but generate the images by the script that produces the page * that contains the images. This is a major improvement but it's only half the way. -* +* * There's no need to rerender an image on every request. A simple disk cache can reduce -* the computation time dramatically. This is what the class graphics_cache is for. -* +* the computation time dramatically. This is what the class graphics_cache is for. +* * Usage: -* +* * // create an instance of the graphics cache * $cache = new graphics_cache; * @@ -42,16 +42,16 @@ * * // compute an ID for your image based on typical parameters * $id = m5d( $size, $colors, $label); -* +* * // check if it's cached * if (!($link = $cache->getImageLink($id, 'gif'))) { -* +* * // hmmm, it's not cached, create it * ... * // cacheImageLink() and cacheImage() make the ImageGIF() call! * // cacheImage() returns the value of ImageGIF() [etc.], cacheImageLink() returns a URL * $link = $cache->cacheImageLink($id, $img, 'gif'); -* +* * } * * // Ok, let's build the ImageLink @@ -60,8 +60,8 @@ * * // for cacheImage(): * // header('Content-type: image/gif'); print $cache->cacheImage($id, $img, 'gif'); -* * +* * The class requires PHP 4.0.2+ [ImageType()]. Note that cacheImage() works with * the output buffer. Modify it if required! * @@ -71,15 +71,13 @@ */ class Cache_Graphics extends Cache { - - /** * Cache URL prefix. - * + * * Make sure that the cache URL prefix points to the $cache_dir, otherwise - * your links will be broken. Use setCacheURL to specify the cache_url and + * your links will be broken. Use setCacheURL to specify the cache_url and * setCacheDir() for the cache_dir. - * + * * @var string * @see setCacheURL(), setCacheDir() */ @@ -88,10 +86,10 @@ /** * Directory where cached files get stored. * s - * Make sure that the cache_dir is writable and offers enough space. Check + * Make sure that the cache_dir is writable and offers enough space. Check * also if your cache_url points to the directory. Use setCacheDir() to set * the variable. - * + * * @var string * @see setCacheDir(), setCacheURL() */ @@ -99,15 +97,15 @@ /** * Nameprefix of cached files. - * - * Per default the prefix "graphics_" gets used. You might use this + * + * Per default the prefix "graphics_" gets used. You might use this * for versioning or to ease (manual) clean ups. * * @var string */ var $cache_file_prefix = 'graphics_'; - - + + /** * Cache container group. * @@ -115,41 +113,38 @@ */ var $cache_group = 'graphics'; - + /** * Mapping from supported image type to a ImageType() constant. - * + * * Referr to the PHP manual for more informations on ImageType() - * + * * @var array * @link http://www.php.net/ImageType */ var $imagetypes = array( - 'gif' => IMG_GIF, + 'gif' => IMG_GIF, 'jpg' => IMG_JPG, 'png' => IMG_PNG, 'wbmp' => IMG_WBMP ); - /** * Instantiates a cache file container. - * */ - function Cache_Graphics() + function __construct() { - $this->Cache('file', array('cache_dir' => $this->cache_dir, 'filename_prefix' => $this->cache_file_prefix)); - - } // end constructor + parent::__construct('file', array('cache_dir' => $this->cache_dir, 'filename_prefix' => $this->cache_file_prefix)); - + } + /** * Returns the content of a cached image file. - * + * * This function can be used to send the image directly to the browser. * Make sure that you send a correspondending header before sending the image itself. * - * Always try to get the image from the cache before you compute it. See + * Always try to get the image from the cache before you compute it. See * the class docs for an example. * * @param string Image-ID @@ -156,7 +151,7 @@ * @param string Image type: gif, jpg, png, wbmp * @return string Image file contents if a cached file exists otherwise an empty string * @see cacheImage() - */ + */ function getImage($id, $format = 'png') { $id = $this->generateID($id, $format); @@ -163,11 +158,11 @@ return $this->get($id, $this->cache_group); } // end func getImage - + /** * Returns an array with a link to the cached image and the image file path. - * - * Always try to get the image from the cache before you compute it. See + * + * Always try to get the image from the cache before you compute it. See * the class docs for an example. * * @param string Image-ID @@ -186,14 +181,14 @@ return array($this->container->getFilename($id, $this->cache_group), $file); } // end func getImageLink - + /** * Create an image from the given image handler, cache it and return the file content. * * Always try to retrive the image from the cache before you compute it. - * - * Warning: this function uses the output buffer. If you expect collisions + * + * Warning: this function uses the output buffer. If you expect collisions * modify the code. * * @param string Image-ID. Used as a part of the cache filename. @@ -201,9 +196,9 @@ * based on characteristic values such as the color, size etc. * @param string Image handler to create the image from. * @param string Image type: gif, jpg, png, wbmp. Also used as filename suffix. - * If an unsupported type is requested the functions tries to + * If an unsupported type is requested the functions tries to * fallback to a supported type before throwing an exeption. - * @return string Image content returned by ImageGIF/... + * @return string Image content returned by ImageGIF/... * @throws Cache_Error * @access public * @see getImage() @@ -231,10 +226,10 @@ if ($image = $this->get($id, $this->cache_group)) { return $image; } - // save the image to the output buffer, write it to disk and + // save the image to the output buffer, write it to disk and // return the image. ob_end_clean(); - ob_start(); + ob_start(); if (strtoupper($format) == 'JPG') { $genFormat = 'JPEG'; @@ -256,8 +251,8 @@ return $image; } // end func cacheImage - + /** * Create an image from the given image handler, cache it and return a url and the file path of the image. * @@ -268,7 +263,7 @@ * based on characteristic values such as the color, size etc. * @param string Image handler to create the image from. * @param string Image type: gif, jpg, png, wbmp. Also used as filename suffix. - * If an unsupported type is requested the functions tries to + * If an unsupported type is requested the functions tries to * fallback to a supported type before throwing an exeption. * @return array [ full path to the image file, image url ] * @throws Cache_Error @@ -285,7 +280,7 @@ // Check if the requested image type is supported by the GD lib. // If not, try a callback to the first available image type. if (!isset($this->imagetypes[$format]) || !($types & $this->imagetypes[$format])) { - foreach ($this->imagetypes as $supported => $bitmask) + foreach ($this->imagetypes as $supported => $bitmask) if ($types & $bitmask) { new Cache_Error("The build in GD lib does not support the image type $format. Fallback to $supported.", __FILE__, __LINE__); } else { @@ -314,13 +309,13 @@ return array($ffile, $url); } // end func cacheImageLink - + /** - * Sets the URL prefix used when rendering HTML Tags. - * - * Make sure that the URL matches the cache directory, + * Sets the URL prefix used when rendering HTML Tags. + * + * Make sure that the URL matches the cache directory, * otherwise you'll get broken links. - * + * * @param string * @access public * @see setCacheDir() @@ -331,13 +326,13 @@ $cache_url .= '/'; } $this->cache_url = $cache_url; - + } // end func setCacheURL - + /** * Sets the directory where to cache generated Images - * + * * @param string * @access public * @see setCacheURL() @@ -350,13 +345,13 @@ $this->cache_dir = $cache_dir; $this->container->cache_dir = $cache_dir; } // end func setCacheDir - - + + function generateID($variable, $format = 'png') { return md5(serialize($variable)) . '.' . $format; } // end func generateID - - + + } // end class Cache_Graphics ?> Modified: trunk/lib/pear/Cache/HTTP_Request.php =================================================================== --- trunk/lib/pear/Cache/HTTP_Request.php 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/lib/pear/Cache/HTTP_Request.php 2021-07-28 15:12:26 UTC (rev 10383) @@ -106,8 +106,6 @@ // --- Public methods --- /** - * Constructor - * * @param $url The url to access * @param $params Associative array of parameters which can be: * method - Method to use, GET, POST etc @@ -128,9 +126,9 @@ * @see Cache, HTTP_Request * @access public */ - function Cache_HTTP_Request($url, $params = null, $container = 'file', - $containerOptions = null, $expires = 3600, - $mode = CACHE_HTTP_REQUEST_KEEP_LOCAL_COPY) + function __construct($url, $params = null, $container = 'file', + $containerOptions = null, $expires = 3600, + $mode = CACHE_HTTP_REQUEST_KEEP_LOCAL_COPY) { if (!isset($params)) { $params = array(); @@ -142,7 +140,7 @@ 'filename_prefix' => 'cache_' ); } - $this->Cache($container, $containerOptions); + parent::__construct($container, $containerOptions); $this->_request = new HTTP_Request($url, $params); $this->_id = md5($url.serialize($params)); $this->_id2 = md5($this->_id); // we need two keys Modified: trunk/lib/pear/Cache/OutputCompression.php =================================================================== --- trunk/lib/pear/Cache/OutputCompression.php 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/lib/pear/Cache/OutputCompression.php 2021-07-28 15:12:26 UTC (rev 10383) @@ -57,10 +57,10 @@ */ class Cache_OutputCompression extends Cache_Output { - + /** * Encoding, what the user (its browser) of your website accepts - * + * * "auto" stands for test using $_SERVER['HTTP_ACCEPT_ENCODING']($HTTP_ACCEPT_ENCODING). * * @var string @@ -67,32 +67,31 @@ * @see Cache_OutputCompression(), setEncoding() */ var $encoding = 'auto'; - - + + /** * Method used for compression * * @var string * @see isCompressed() - */ + */ var $compression = ''; - + /** * Sets the storage details and the content encoding used (if not autodetection) - * + * * @param string Name of container class * @param array Array with container class options * @param string content encoding mode - auto => test which encoding the user accepts - */ - function Cache_OutputCompression($container, $container_options = '', $encoding = 'auto') + */ + function __construct($container, $container_options = '', $encoding = 'auto') { $this->setEncoding($encoding); - $this->Cache($container, $container_options); - - } // end constructor + parent::__construct($container, $container_options); - + } + /** * Call parent deconstructor. */ @@ -100,8 +99,8 @@ { $this->_Cache(); } // end deconstructor - + function generateID($variable) { $this->compression = $this->getEncoding(); @@ -108,11 +107,11 @@ return md5(serialize($variable) . serialize($this->compression)); } // end generateID - - function get($id, $group) + + function get($id, $group = 'default') { $this->content = ''; - + if (!$this->caching) { return ''; } @@ -122,14 +121,14 @@ } return $this->content; } // end func get - - + + /** - * Stops the output buffering, saves it to the cache and returns the _compressed_ content. + * Stops the output buffering, saves it to the cache and returns the _compressed_ content. * * If you need the uncompressed content for further procession before * it's saved in the cache use endGet(). endGet() does _not compress_. - */ + */ function end($expire = 0, $userdata = '') { $content = ob_get_contents(); @@ -138,23 +137,23 @@ // store in the cache if ($this->caching) { $this->extSave($this->output_id, $content, $userdata, $expire, $this->output_group); - return $this->content; + return $this->content; } - - return $content; + + return $content; } // end func end() - - + + function endPrint($expire = 0, $userdata = '') { $this->printContent($this->end($expire, $userdata)); } // end func endPrint - + /** * Saves the given data to the cache. - * - */ + * + */ function extSave($id, $cachedata, $userdata, $expires = 0, $group = 'default') { if (!$this->caching) { @@ -162,7 +161,7 @@ } if ($this->compression) { - $len = strlen($cachedata); + $len = strlen($cachedata); $crc = crc32($cachedata); $cachedata = gzcompress($cachedata, 9); $this->content = substr($cachedata, 0, strlen($cachedata) - 4) . pack('V', $crc) . pack('V', $len); @@ -171,13 +170,13 @@ } return $this->container->save($id, $this->content, $expires, $group, $userdata); } // end func extSave - + /** * Sends the compressed data to the user. - * + * * @param string * @access public - */ + */ function printContent($content = '') { $server = &$this->_importGlobalVariable("server"); @@ -199,15 +198,15 @@ header('Vary: Accept-Encoding'); print "\x1f\x8b\x08\x00\x00\x00\x00\x00"; } - + } - + die($content); } // end func printContent - - + + /** - * Returns the encoding method of the current dataset. + * Returns the encoding method of the current dataset. * * @access public * @return string Empty string (which evaluates to false) means no compression @@ -219,7 +218,7 @@ /** * Sets the encoding to be used. - * + * * @param string "auto" means autodetect for every client * @access public * @see $encoding @@ -228,18 +227,18 @@ { $this->encoding = $encoding; } // end func setEncoding - - + + /** * Returns the encoding to be used for the data transmission to the client. * * @see setEncoding() - */ + */ function getEncoding() { $server = &$this->_importGlobalVariable("server"); - // encoding set by user + // encoding set by user if ('auto' != $this->encoding) { return $this->encoding; } @@ -252,7 +251,7 @@ } // no compression return ''; - + } // end func getEncoding // {{{ _importGlobalVariable() @@ -264,9 +263,9 @@ * @param string Type of variable (server, session, post) * @return array */ - function &_importGlobalVariable($variable) + function &_importGlobalVariable($variable) { - + $var = null; switch (strtolower($variable)) { @@ -301,7 +300,7 @@ } return $var; - } + } // }} } // end class OutputCompression Modified: trunk/lib/pear/JSON.php =================================================================== --- trunk/lib/pear/JSON.php 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/lib/pear/JSON.php 2021-07-28 15:12:26 UTC (rev 10383) @@ -134,8 +134,8 @@ * bubble up with an error, so all return values * from encode() should be checked with isError() * - SERVICES_JSON_USE_TO_JSON: call toJSON when serializing objects - * It serializes the return value from the toJSON call rather - * than the object it'self, toJSON can return associative arrays, + * It serializes the return value from the toJSON call rather + * than the object it'self, toJSON can return associative arrays, * strings or numbers, if you return an object, make sure it does * not have a toJSON method, otherwise an error will occur. */ @@ -150,7 +150,7 @@ var $_mb_strlen = false; var $_mb_substr = false; var $_mb_convert_encoding = false; - + /** * convert a string from one UTF-16 char to one UTF-8 char * @@ -274,10 +274,10 @@ $ret = $this->_encode($var); setlocale(LC_NUMERIC, $lc); return $ret; - + } /** - * PRIVATE CODE that does the work of encodes an arbitrary variable into JSON format + * PRIVATE CODE that does the work of encodes an arbitrary variable into JSON format * * @param mixed $var any number, boolean, string, array, or object to be encoded. * see argument 1 to Services_JSON() above for array-parsing behavior. @@ -287,9 +287,9 @@ * @return mixed JSON string representation of input var or an error if a problem occurs * @access public */ - function _encode($var) + function _encode($var) { - + switch (gettype($var)) { case 'boolean': return $var ? 'true' : 'false'; @@ -354,7 +354,7 @@ $ascii .= '?'; break; } - + $char = pack('C*', $ord_var_c, ord($var[$c + 1])); $c += 1; $utf16 = $this->utf82utf16($char); @@ -480,27 +480,27 @@ return '[' . join(',', $elements) . ']'; case 'object': - + // support toJSON methods. if (($this->use & SERVICES_JSON_USE_TO_JSON) && method_exists($var, 'toJSON')) { // this may end up allowing unlimited recursion // so we check the return value to make sure it's not got the same method. $recode = $var->toJSON(); - + if (method_exists($recode, 'toJSON')) { - + return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS) ? 'null' : new Services_JSON_Error(class_name($var). " toJSON returned an object with a toJSON method."); - + } - + return $this->_encode( $recode ); - } - + } + $vars = get_object_vars($var); - + $properties = array_map(array($this, 'name_value'), array_keys($vars), array_values($vars)); @@ -764,7 +764,7 @@ // element in an associative array, // for now $parts = array(); - + if (preg_match('/^\s*(["\'].*[^\\\]["\'])\s*:/Uis', $slice, $parts)) { // "name":value pair $key = $this->decode($parts[1]); @@ -871,13 +871,13 @@ return false; } - + /** * Calculates length of string in bytes - * @param string + * @param string * @return integer length */ - function strlen8( $str ) + function strlen8( $str ) { if ( $this->_mb_strlen ) { return mb_strlen( $str, "8bit" ); @@ -884,15 +884,15 @@ } return strlen( $str ); } - + /** * Returns part of a string, interpreting $start and $length as number of bytes. - * @param string - * @param integer start - * @param integer length + * @param string + * @param integer start + * @param integer length * @return integer length */ - function substr8( $string, $start, $length=false ) + function substr8( $string, $start, $length=false ) { if ( $length === false ) { $length = $this->strlen8( $string ) - $start; @@ -909,10 +909,10 @@ class Services_JSON_Error extends PEAR_Error { - function Services_JSON_Error($message = 'unknown error', $code = null, - $mode = null, $options = null, $userinfo = null) + function __construct($message = 'unknown error', $code = null, + $mode = null, $options = null, $userinfo = null) { - parent::PEAR_Error($message, $code, $mode, $options, $userinfo); + parent::__construct($message, $code, $mode, $options, $userinfo); } } @@ -923,11 +923,11 @@ */ class Services_JSON_Error { - function Services_JSON_Error($message = 'unknown error', $code = null, - $mode = null, $options = null, $userinfo = null) + function __construct($message = 'unknown error', $code = null, + $mode = null, $options = null, $userinfo = null) { } } - + } Modified: trunk/themes/blog/jscalendar/calendar.php =================================================================== --- trunk/themes/blog/jscalendar/calendar.php 2021-07-28 14:52:50 UTC (rev 10382) +++ trunk/themes/blog/jscalendar/calendar.php 2021-07-28 15:12:26 UTC (rev 10383) @@ -21,10 +21,10 @@ var $calendar_theme_file; var $calendar_options; - function DHTML_Calendar($calendar_lib_path = '/calendar/', - $lang = 'en', - $theme = 'calendar-win2k-1', - $stripped = true) { + function __construct($calendar_lib_path = '/calendar/', + $lang = 'en', + $theme = 'calendar-win2k-1', + $stripped = true) { if ($stripped) { $this->calendar_file = 'calendar_stripped.js'; $this->calendar_setup_file = 'calendar-setup_stripped.js'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-07-29 19:11:51
|
Revision: 10398 http://sourceforge.net/p/phpwiki/code/10398 Author: vargenau Date: 2021-07-29 19:11:48 +0000 (Thu, 29 Jul 2021) Log Message: ----------- PhpWeather plugin removed, uses deprecated mysql functions Modified Paths: -------------- trunk/lib/IniConfig.php trunk/lib/WikiPlugin.php trunk/lib/plugin/WikiTranslation.php trunk/locale/Makefile trunk/locale/de/LC_MESSAGES/phpwiki.mo trunk/locale/es/LC_MESSAGES/phpwiki.mo trunk/locale/fr/LC_MESSAGES/phpwiki.mo trunk/locale/it/LC_MESSAGES/phpwiki.mo trunk/locale/it/pgsrc/NoteDiRilascio trunk/locale/ja/LC_MESSAGES/phpwiki.mo trunk/locale/nl/LC_MESSAGES/phpwiki.mo trunk/locale/po/de.po trunk/locale/po/es.po trunk/locale/po/fr.po trunk/locale/po/it.po trunk/locale/po/ja.po trunk/locale/po/nl.po trunk/locale/po/phpwiki.pot trunk/locale/po/sv.po trunk/locale/po/zh.po trunk/locale/sv/LC_MESSAGES/phpwiki.mo trunk/locale/zh/LC_MESSAGES/phpwiki.mo trunk/pgsrc/ReleaseNotes Removed Paths: ------------- trunk/lib/phpweather-2.2.2/ trunk/lib/plugin/PhpWeather.php trunk/locale/fr/pgsrc/Aide%2FGreffonM%C3%A9t%C3%A9oPhp trunk/locale/zh/pgsrc/Help%2FPhpWeatherPlugin trunk/pgsrc/Help%2FPhpWeatherPlugin Modified: trunk/lib/IniConfig.php =================================================================== --- trunk/lib/IniConfig.php 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/lib/IniConfig.php 2021-07-29 19:11:48 UTC (rev 10398) @@ -634,7 +634,6 @@ $AllAllowedPlugins[] = 'PageTrail'; $AllAllowedPlugins[] = 'PhotoAlbum'; $AllAllowedPlugins[] = 'PhpHighlight'; - $AllAllowedPlugins[] = 'PhpWeather'; $AllAllowedPlugins[] = 'PopularTags'; $AllAllowedPlugins[] = 'PopUp'; $AllAllowedPlugins[] = 'PrevNext'; Modified: trunk/lib/WikiPlugin.php =================================================================== --- trunk/lib/WikiPlugin.php 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/lib/WikiPlugin.php 2021-07-29 19:11:48 UTC (rev 10398) @@ -518,8 +518,7 @@ // As an additional hack, mark the ETag weak, since, // for all we know, the page might depend - // on things other than the WikiDB (e.g. PhpWeather, - // Calendar...) + // on things other than the WikiDB (e.g. Calendar...) $timestamp = $dbi->getTimestamp(); $request->appendValidators(array('dbi_timestamp' => $timestamp, Deleted: trunk/lib/plugin/PhpWeather.php =================================================================== --- trunk/lib/plugin/PhpWeather.php 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/lib/plugin/PhpWeather.php 2021-07-29 19:11:48 UTC (rev 10398) @@ -1,181 +0,0 @@ -<?php -/** - * Copyright © 1999, 2000, 2001, 2002 $ThePhpWikiProgrammingTeam - * - * This file is part of PhpWiki. - * - * PhpWiki is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpWiki is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with PhpWiki; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - */ - -/** - * Usage: - * - * <<PhpWeather >> - * <<PhpWeather menu=true >> - * <<PhpWeather icao=KJFK >> - * <<PhpWeather language=en >> - * <<PhpWeather units=only_metric >> - * <<PhpWeather icao||=CYYZ cc||=CA language||=en menu=true >> - * - * If you want a menu, and you also want to change the default station - * or language, then you have to use the ||= form, or else the user - * wont be able to change the station or language. - * - * The units argument should be one of only_metric, only_imperial, - * both_metric, or both_imperial. - */ - -if (!defined('PHPWEATHER_BASE_DIR')) { - /* PhpWeather has not been loaded before. We include the base class from PhpWeather. */ - include_once 'lib/phpweather-2.2.2/phpweather.php'; -} - -class WikiPlugin_PhpWeather - extends WikiPlugin -{ - function getDescription() - { - return _("Provide weather reports from the Internet."); - } - - function getDefaultArguments() - { - return array('icao' => 'EKAH', - 'cc' => 'DK', - 'language' => 'en', - 'menu' => false, - 'units' => 'both_metric'); - } - - /** - * @param WikiDB $dbi - * @param string $argstr - * @param WikiRequest $request - * @param string $basepage - * @return mixed - */ - function run($dbi, $argstr, &$request, $basepage) - { - require_once(PHPWEATHER_BASE_DIR . '/output/pw_images.php'); - require_once(PHPWEATHER_BASE_DIR . '/pw_utilities.php'); - - extract($this->getArgs($argstr, $request)); - $html = HTML(); - - $w = new phpweather(); // Our weather object - - if (!empty($icao)) { - /* We assign the ICAO to the weather object: */ - $w->set_icao($icao); - if (!$w->get_country_code()) { - /* The country code couldn't be resolved, so we - * shouldn't use the ICAO: */ - trigger_error(sprintf(_("The ICAO “%s” wasn't recognized."), $icao)); - $icao = ''; - } - } - - if (!empty($icao)) { - - /* We check and correct the language if necessary: */ - //if (!in_array($language, array_keys($w->get_languages('text')))) { - if (!in_array($language, array_keys(get_languages('text')))) { - trigger_error(sprintf(_("%s does not know about the language “%s”, using “en” instead."), - $this->getName(), $language)); - $language = 'en'; - } - - $class = "pw_text_$language"; - require_once(PHPWEATHER_BASE_DIR . "/output/$class.php"); - - $t = new $class($w); - $t->set_pref_units($units); - $i = new pw_images($w); - - $i_temp = HTML::img(array('src' => $i->get_temp_image())); - $i_wind = HTML::img(array('src' => $i->get_winddir_image())); - $i_sky = HTML::img(array('src' => $i->get_sky_image())); - - $m = $t->print_pretty(); - - $m_td = HTML::td(HTML::p(new RawXml($m))); - - $i_tr = HTML::tr(); - $i_tr->pushContent(HTML::td($i_temp)); - $i_tr->pushContent(HTML::td($i_wind)); - - $i_table = HTML::table($i_tr); - $i_table->pushContent(HTML::tr(HTML::td(array('colspan' => '2'), - $i_sky))); - - $tr = HTML::tr(); - $tr->pushContent($m_td); - $tr->pushContent(HTML::td($i_table)); - - $html->pushContent(HTML::table($tr)); - - } - - /* We make a menu if asked to, or if $icao is empty: */ - if ($menu || empty($icao)) { - - $form_arg = array('action' => $request->getURLtoSelf(), - 'method' => 'get'); - - /* The country box is always part of the menu: */ - $p1 = HTML::p(new RawXml(get_countries_select($w, $cc))); - - /* We want to save the language: */ - $p1->pushContent(HTML::input(array('type' => 'hidden', - 'name' => 'language', - 'value' => $language))); - /* And also the ICAO: */ - $p1->pushContent(HTML::input(array('type' => 'hidden', - 'name' => 'icao', - 'value' => $icao))); - - $caption = (empty($cc) ? _("Submit country") : _("Change country")); - $p1->pushContent(HTML::input(array('type' => 'submit', - 'value' => $caption))); - - $html->pushContent(HTML::form($form_arg, $p1)); - - if (!empty($cc)) { - /* We have selected a country, now display a list with - * the available stations in that country: */ - $p2 = HTML::p(); - - /* We need the country code after the form is submitted: */ - $p2->pushContent(HTML::input(array('type' => 'hidden', - 'name' => 'cc', - 'value' => $cc))); - - $p2->pushContent(new RawXml(get_stations_select($w, $cc, $icao))); - $p2->pushContent(new RawXml(get_languages_select($language))); - $p2->pushContent(HTML::input(array('type' => 'submit', - 'value' => _("Submit location")))); - - $html->pushContent(HTML::form($form_arg, $p2)); - - } - - } - - return $html; - } -} Modified: trunk/lib/plugin/WikiTranslation.php =================================================================== --- trunk/lib/plugin/WikiTranslation.php 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/lib/plugin/WikiTranslation.php 2021-07-29 19:11:48 UTC (rev 10398) @@ -145,8 +145,6 @@ _("PhotoAlbumPlugin") . ',' . _("PhpHighlight") . ',' . _("PhpHighlightPlugin") . ',' . - _("PhpWeather") . ',' . - _("PhpWeatherPlugin") . ',' . _("PhpWiki") . ',' . _("PhpWikiAdministration") . ',' . _("PhpWikiDocumentation") . ',' . Modified: trunk/locale/Makefile =================================================================== --- trunk/locale/Makefile 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/locale/Makefile 2021-07-29 19:11:48 UTC (rev 10398) @@ -152,277 +152,6 @@ ${POT_FILE}: .././lib/pear/File_Passwd.php ${POT_FILE}: .././lib/pear/JSON.php ${POT_FILE}: .././lib/pear/PEAR.php -${POT_FILE}: .././lib/phpweather-2.2.2/base_object.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/connectivity_test.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/index.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/make_config.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/make_db.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/make_stations.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_dependency_and.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_dependency_equal.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_dependency_not.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_dependency_or.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_dependency.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_option_boolean.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_optiongroup.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_option_integer.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_option_multi_select.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_option.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_option_select.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_option_text.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_validator_ereg.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_validator.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/pw_validator_range.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/reset_session.php -${POT_FILE}: .././lib/phpweather-2.2.2/config/speed_test.php -${POT_FILE}: .././lib/phpweather-2.2.2/currentimage.php -${POT_FILE}: .././lib/phpweather-2.2.2/data_retrieval.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AF.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AG.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AL.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AN.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AO.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AQ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AT.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AU.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AW.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/AZ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BA.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BB.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BD.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BF.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BG.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BH.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BI.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BJ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BN.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BO.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BS.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BW.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BY.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/BZ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CA.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CD.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CF.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CG.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CH.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CI.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CK.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CL.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CN.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CO.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/countries.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CU.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CV.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CX.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CY.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/CZ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/DE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/DJ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/DK.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/DM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/DO.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/DZ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/EC.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/EE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/EG.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/EH.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/ES.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/ET.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/FI.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/FJ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/FK.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/FM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/FR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GA.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GB.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GD.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GF.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GH.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GI.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GL.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GN.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GP.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GQ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GS.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GT.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GW.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/GY.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/HK.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/HN.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/HR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/HT.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/HU.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/ID.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/IE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/IL.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/IN.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/IO.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/IQ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/IR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/IS.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/IT.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/JM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/JO.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/JP.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/KE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/KH.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/KI.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/KM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/KN.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/KP.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/KR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/KW.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/KY.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/KZ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/LA.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/LB.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/LC.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/LK.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/LR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/LS.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/LT.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/LU.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/LV.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/LY.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MA.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MD.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MG.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MH.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MK.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/ML.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MO.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MQ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MT.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MU.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MV.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MW.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MX.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MY.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/MZ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/NA.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/NC.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/NE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/NG.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/NI.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/NL.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/NO.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/NP.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/NR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/NZ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/OM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PA.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PF.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PG.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PH.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PK.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PL.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PT.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PW.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/PY.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/QA.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/RE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/RO.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/RU.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/RW.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SA.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SB.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SC.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SD.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SG.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SH.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SI.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SK.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SL.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SN.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SO.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/ST.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SV.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SY.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/SZ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TD.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TG.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TH.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TJ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TL.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TN.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TO.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TR.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TT.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TV.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TW.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/TZ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/UA.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/UG.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/UM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/US.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/UY.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/UZ.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/VC.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/VE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/VG.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/VI.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/VN.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/VU.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/WS.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/YE.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/YU.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/ZA.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/ZM.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/files/ZW.php -${POT_FILE}: .././lib/phpweather-2.2.2/db_layer.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/pw_db_adodb.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/pw_db_common.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/pw_db_dba.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/pw_db_mysql.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/pw_db_null.php -${POT_FILE}: .././lib/phpweather-2.2.2/db/pw_db_pgsql.php -${POT_FILE}: .././lib/phpweather-2.2.2/db_updater.php -${POT_FILE}: .././lib/phpweather-2.2.2/defaults-dist.php -${POT_FILE}: .././lib/phpweather-2.2.2/images-test.php -${POT_FILE}: .././lib/phpweather-2.2.2/index.php -${POT_FILE}: .././lib/phpweather-2.2.2/languages.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_images.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_output.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_cs.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_da.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_de.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_en_GB.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_en.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_en_US.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_es.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_fi.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_fr.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_hu.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_it.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_nl.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_no.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_pl.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_pt.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_sk.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_sv.php -${POT_FILE}: .././lib/phpweather-2.2.2/output/pw_text_tr.php -${POT_FILE}: .././lib/phpweather-2.2.2/phpweather.php -${POT_FILE}: .././lib/phpweather-2.2.2/pw_utilities.php ${POT_FILE}: .././lib/plugin/AddComment.php ${POT_FILE}: .././lib/plugin/AllPages.php ${POT_FILE}: .././lib/plugin/AllUsers.php @@ -494,7 +223,6 @@ ${POT_FILE}: .././lib/plugin/PasswordReset.php ${POT_FILE}: .././lib/plugin/PhotoAlbum.php ${POT_FILE}: .././lib/plugin/PhpHighlight.php -${POT_FILE}: .././lib/plugin/PhpWeather.php ${POT_FILE}: .././lib/plugin/Ploticus.php ${POT_FILE}: .././lib/plugin/PluginManager.php ${POT_FILE}: .././lib/plugin/PopularNearby.php Modified: trunk/locale/de/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/es/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/fr/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Deleted: trunk/locale/fr/pgsrc/Aide%2FGreffonM%C3%A9t%C3%A9oPhp =================================================================== --- trunk/locale/fr/pgsrc/Aide%2FGreffonM%C3%A9t%C3%A9oPhp 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/locale/fr/pgsrc/Aide%2FGreffonM%C3%A9t%C3%A9oPhp 2021-07-29 19:11:48 UTC (rev 10398) @@ -1,95 +0,0 @@ -Date: Mon, 30 Mar 2020 15:49:22 +0000 -Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) -Content-Type: application/x-phpwiki; - pagename=Aide%2FGreffonM%C3%A9t%C3%A9oPhp; - flags=PAGE_LOCKED; - charset=UTF-8 -Content-Transfer-Encoding: binary - -Le [[Aide:GreffonWiki|greffon]] **~MétéoPhp** (//PhpWeather//) utilise [[http://phpweather.sourceforge.net/|PhpWeather]] -pour afficher un bout de texte avec la météo actuelle pour n'importe quel aéroport -dans le monde. Cela ressemble à ça : - -<<PhpWeather menu=true>> - -== Arguments == - -{| class="bordered" -|- -! Argument -! Description -! Valeur par défaut -|- -| **menu** -| -Mettre ceci sur ##true## pour que le greffon affiche un menu après le -rapport. L'utilisateur pourra sélectionner un pays à partir de ce menu -et, après ça, un aéroport et une langue. -| false -|- -| **icao** -| -Utilisez ceci pour pré-sélectionner un aéroport spécifique à la place -de l'aéroport par défaut qui est ##EKAH##. - -Si vous voulez que -l'utilisateur puisse changer la station en utilisant le menu alors -lancer le greffon comme ceci : ##<<PhpWeather menu=true icao||=EKYT>>## -de telle sorte que la valeur peut être ré-écrite lorsque l'utilisateur soumet le formulaire. - -Si vous mettez seulement : ##<<PhpWeather menu=true icao=EKYT>>## -alors rien ne se produira lorsque l'utilisateur sélectionnera une autre -station depuis la liste. -| -|- -| **cc** -| -Spécifie le code du pays (country code). Vous pouvez l'utiliser si vous -souhaitez pré-sélectionner un pays différent de celui spécifié dans l'ICAO. - -Ainsi, ##<<PhpWeather menu=true cc|~|~=GB icao|~|~=KTTS>>## -affichera la météo courante à NASA Shuttle Facility, États-Unis -(##KTTS##) et en même temps donnera à l'utilisateur une liste des -stations du Royaume-Uni. - -Comme l'exemple le montre vous devriez utiliser -##cc||=XX## en le combinant avec **menu** mis sur ##true##. -| -|- -| **language** -| -La langue par défaut. Quand vous combinez **language** avec **menu** mis -à ##true## alors souvenez-vous d'utiliser la forme ##language~|~|=xx##. -| -|- -| **units** -| -Vous pouvez spécifer le manière dont les unités seront affichées. Le choix -se fait sur la possibilité d'avoir les deux unités (métriques ou impériales) -ou juste l'un d'entres elles. Mettant **units** sur ##both_metric## affichera -la valeur métrique d'abord et ensuite l'impériale entre parenthèses. -**units** sur ##both_imperial## fait exactement l'inverse. - -Si vous voulez l'une ou l'autre seulement alors mettez **units** sur -##only_metric## ou ##only_imperial## et ça le fera. -| -|} - -== Exemple == - -Le temps chez les Bretons : -{{{ -<<PhpWeather cc=FR icao=LFRN language=fr units=only_metric>> -}}} - -et qui est actuellement : -<<PhpWeather cc=FR icao=LFRN language=fr units=only_metric>> - -== Problèmes connus == - -Le greffon ne fonctionne pas à travers un proxy. - -<noinclude> ----- -[[DocumentationDePhpWiki]] [[CatégorieGreffonWiki]] -</noinclude> Modified: trunk/locale/it/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/it/pgsrc/NoteDiRilascio =================================================================== --- trunk/locale/it/pgsrc/NoteDiRilascio 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/locale/it/pgsrc/NoteDiRilascio 2021-07-29 19:11:48 UTC (rev 10398) @@ -1,4 +1,4 @@ -Date: Sat, 2 Jan 2021 19:46:14 +0000 +Date: Thu, 29 Jul 2021 21:08:02 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=NoteDiRilascio; @@ -11,11 +11,22 @@ == 1.6.0 2020-12-XX Marc-Etienne Vargenau == Major release: -* PHP 7 compatible +* PHP 7 compatible (works from PHP 5.3.3 to PHP 7) * Full HTML 5: Add HTML 5 <main> <header> <footer> <nav> in all themes. Add ARIA roles. * Flash is dead * Internet Explorer is dead +=== Fixes === +* Make function IsSafeURL more strict +* Make XHTML ZIP Snapshot work again (broken since ~PhpWiki 1.5.3) +* It was possible to rename a page to a name with illegal characters, like ~[~] +* Better handling of page names with slash +* Remove wrong calls to setTightness in ##lib/~InlineParser.php## (bug reported by Harold Hallikainen) +* Importing a ZIP from an old wiki in Latin 1 (ISO 8859-1) failed. Reported by Frank Michael. +* Better check arguments for ~GoogleMaps plugin +* Revert Subversion commit 9111, bad side effects; re-opening Bug#607 BackLinks do not work inside a RichTable +* Security fixes + === Changes === * Add new button in Edit Toolbar: convert Tab Separated Values to Wikicreole table * Update jQuery to 2.2.4 @@ -31,27 +42,20 @@ * Valid HTML5 and CSS3 logos (in debug mode) * Better is_localhost() function (allow IPv6, allow Windows IIS). Patch by Thierry Nabeth. * Remove Fusionforge-specific files (g view.php wikiadmin.php wikilist.php) +* Remove USE_SAFE_DBSESSION (always true) * PDO patch by Sébastien Le Callonnec * Updated pgsrc pages in all languages -* Security fixes * Adding SPDX-License-Identifier in PHP source files -=== Bugs === -* Make function IsSafeURL more strict -* Make XHTML ZIP Snapshot work again (broken since ~PhpWiki 1.5.3) -* It was possible to rename a page to a name with illegal characters, like ~[~] -* Remove wrong calls to setTightness in ##lib/~InlineParser.php## (bug reported by Harold Hallikainen) -* Importing a ZIP from an old wiki in Latin 1 (ISO 8859-1) failed. Reported by Frank Michael. -* Better check arguments for ~GoogleMaps plugin - === Plugins === * ~UpLoad plugin: put date and author in history * ~UpLoad plugin: don't inline images -* phpweather-2.2.2 included in ~PhpWiki; ~PhpWeather plugin allowed in Fusionforge +* PhpWeather removed, uses deprecated mysql functions * ~HtmlConverter plugin: check file is encoded in UTF-8; ~HtmlConverter plugin allowed in Fusionforge * Use jquery.autoheight.js plugin for Transclude plugin * Repair [[Help:PhotoAlbumPlugin|PhotoAlbumPlugin]] * Rename action page ~DebugInfo as ~DebugBackendInfo (to be consistent with plugin name) +* Better check boolean arguments in plugins == 1.5.5 2015-12-11 Marc-Etienne Vargenau == @@ -174,7 +178,7 @@ * fix Bug#1752172 undefined method {{{TextSearchQuery_node_or::_sql_quote()}}} * dba: fix sorting for empty mtime field * ~LdapSearch: fix layout and logic -* ~FileInfo: fix Upload: links +* ~FileInfo: fix ##Upload~:## links * XHTML validation corrections (vargenau) * avoid recursive modification when renaming a page like '~PageFoo to '~PageFooTwo' (vargenau) * fix Bug#1808002 Table of contents plugin does not nest numbering (vargenau) Modified: trunk/locale/ja/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/nl/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/po/de.po =================================================================== --- trunk/locale/po/de.po 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/locale/po/de.po 2021-07-29 19:11:48 UTC (rev 10398) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-16 13:23+0200\n" +"POT-Creation-Date: 2021-07-29 21:10+0200\n" "PO-Revision-Date: 2000-10-31 02:23+0200\n" "Last-Translator: Reini Urban <ru...@x-...>, Carsten Klapp " "<car...@us...>, Helmer Pardun <pardunpress@t-online." @@ -2267,27 +2267,6 @@ msgid "Invalid color: %s" msgstr "Ungültige Farbe: %s" -msgid "Provide weather reports from the Internet." -msgstr "Der PhpWetter plugin gibt Auskunft zur Wetterlage vom Internet." - -#, php-format -msgid "The ICAO “%s” wasn't recognized." -msgstr "Die angegebene ICAO »%s« war nicht bekannt." - -#, php-format -msgid "%s does not know about the language “%s”, using “en” instead." -msgstr "" -"%s weißt nichts von die Sprache »%s«, stattdessen wird »en« angewendet." - -msgid "Submit country" -msgstr "Land eingeben" - -msgid "Change country" -msgstr "Land ändern" - -msgid "Submit location" -msgstr "Land eingeben" - msgid "Ploticus image creation." msgstr "" @@ -4235,12 +4214,6 @@ msgid "PhpHighlightPlugin" msgstr "PhpHighlightPlugin" -msgid "PhpWeather" -msgstr "PhpWetter" - -msgid "PhpWeatherPlugin" -msgstr "PhpWetterPlugin" - msgid "PhpWiki" msgstr "PhpWiki" @@ -4683,81 +4656,7 @@ msgid "CREATED" msgstr "ERZEUGT" -msgid "database" -msgstr "Datenbank" - -msgid "db version: we want " -msgstr "" - -msgid "db version: we have " -msgstr "" - -msgid "Backend type: " -msgstr "Backend Typ: " - #, php-format -msgid "Check for table %s" -msgstr "Prüfe Tabelle %s" - -msgid "You need to upgrade to schema/psql-initialize.sql manually!" -msgstr "" - -msgid "Check for new session.sess_ip column" -msgstr "Prüfe auf neue Spalte session.sess_ip column" - -msgid "SKIP" -msgstr "" - -msgid "ADDING" -msgstr "HINZU" - -msgid "Check for mysql session.sess_id sanity" -msgstr "Prüfe auf mysql session.sess_id Korrektheit" - -msgid "fixed" -msgstr "geändert" - -msgid "Check for mysql page.id auto_increment flag" -msgstr "Prüfe auf mysql page.id auto_increment Flag" - -msgid "Check for mysql 4.1.x/5.0.0 binary search on Windows problem" -msgstr "prüfe auf mysql 4.1.x/5.0.0 Binärsuch-Problem (nur Windows)" - -#, php-format -msgid "version <em>%s</em>" -msgstr "version <em>%s</em>" - -msgid "not affected" -msgstr "nicht betroffen" - -msgid "FIXED" -msgstr "AUSGEBESSERT" - -msgid "Check for ACCESS_LOG_SQL passwords in POST requests" -msgstr "Prüfe auf ACCESS_LOG_SQL Passwörter in POST Requests" - -msgid "Check for ACCESS_LOG_SQL remote_host varchar(50)" -msgstr "Prüfe auf ACCESS_LOG_SQL Passwörter in POST Requests" - -msgid "FIXING" -msgstr "" - -msgid "db version: upgrade to " -msgstr "" - -msgid "Check for extra page.cached_html column" -msgstr "" - -msgid "CONVERTING" -msgstr "KONVERTIERE" - -msgid "Check for relation field in link table" -msgstr "" - -msgid "Rebuild entire database to upgrade relation links" -msgstr "" - -#, php-format msgid "%s not found in %s" msgstr "%s nicht gefunden in %s" @@ -4782,6 +4681,9 @@ msgid "fix BLOG_EMPTY_DEFAULT_PREFIX into BLOG_DEFAULT_EMPTY_PREFIX" msgstr "" +msgid "FIXED" +msgstr "AUSGEBESSERT" + msgid "fixed with" msgstr "Geändert mit" @@ -5997,6 +5899,73 @@ msgid "Edit this page" msgstr "Diese Seite bearbeiten" +#~ msgid "Provide weather reports from the Internet." +#~ msgstr "Der PhpWetter plugin gibt Auskunft zur Wetterlage vom Internet." + +#~ msgid "The ICAO “%s” wasn't recognized." +#~ msgstr "Die angegebene ICAO »%s« war nicht bekannt." + +#~ msgid "%s does not know about the language “%s”, using “en” instead." +#~ msgstr "" +#~ "%s weißt nichts von die Sprache »%s«, stattdessen wird »en« angewendet." + +#~ msgid "Submit country" +#~ msgstr "Land eingeben" + +#~ msgid "Change country" +#~ msgstr "Land ändern" + +#~ msgid "Submit location" +#~ msgstr "Land eingeben" + +#~ msgid "PhpWeather" +#~ msgstr "PhpWetter" + +#~ msgid "PhpWeatherPlugin" +#~ msgstr "PhpWetterPlugin" + +#~ msgid "database" +#~ msgstr "Datenbank" + +#~ msgid "Backend type: " +#~ msgstr "Backend Typ: " + +#~ msgid "Check for table %s" +#~ msgstr "Prüfe Tabelle %s" + +#~ msgid "Check for new session.sess_ip column" +#~ msgstr "Prüfe auf neue Spalte session.sess_ip column" + +#~ msgid "ADDING" +#~ msgstr "HINZU" + +#~ msgid "Check for mysql session.sess_id sanity" +#~ msgstr "Prüfe auf mysql session.sess_id Korrektheit" + +#~ msgid "fixed" +#~ msgstr "geändert" + +#~ msgid "Check for mysql page.id auto_increment flag" +#~ msgstr "Prüfe auf mysql page.id auto_increment Flag" + +#~ msgid "Check for mysql 4.1.x/5.0.0 binary search on Windows problem" +#~ msgstr "prüfe auf mysql 4.1.x/5.0.0 Binärsuch-Problem (nur Windows)" + +#~ msgid "version <em>%s</em>" +#~ msgstr "version <em>%s</em>" + +#~ msgid "not affected" +#~ msgstr "nicht betroffen" + +#~ msgid "Check for ACCESS_LOG_SQL passwords in POST requests" +#~ msgstr "Prüfe auf ACCESS_LOG_SQL Passwörter in POST Requests" + +#~ msgid "Check for ACCESS_LOG_SQL remote_host varchar(50)" +#~ msgstr "Prüfe auf ACCESS_LOG_SQL Passwörter in POST Requests" + +#~ msgid "CONVERTING" +#~ msgstr "KONVERTIERE" + #~ msgid "GoodStyle" #~ msgstr "GuterStil" Modified: trunk/locale/po/es.po =================================================================== --- trunk/locale/po/es.po 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/locale/po/es.po 2021-07-29 19:11:48 UTC (rev 10398) @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-16 13:23+0200\n" +"POT-Creation-Date: 2021-07-29 21:10+0200\n" "PO-Revision-Date: 2000-02-01 00:50-0500\n" "Last-Translator: Pablo Roca <pr...@cl...>\n" "Language-Team: \n" @@ -2205,26 +2205,6 @@ msgid "Invalid color: %s" msgstr "" -msgid "Provide weather reports from the Internet." -msgstr "" - -#, php-format -msgid "The ICAO “%s” wasn't recognized." -msgstr "" - -#, php-format -msgid "%s does not know about the language “%s”, using “en” instead." -msgstr "" - -msgid "Submit country" -msgstr "" - -msgid "Change country" -msgstr "" - -msgid "Submit location" -msgstr "" - msgid "Ploticus image creation." msgstr "" @@ -4115,12 +4095,6 @@ msgid "PhpHighlightPlugin" msgstr "" -msgid "PhpWeather" -msgstr "" - -msgid "PhpWeatherPlugin" -msgstr "" - msgid "PhpWiki" msgstr "" @@ -4551,81 +4525,7 @@ msgid "CREATED" msgstr "" -msgid "database" -msgstr "" - -msgid "db version: we want " -msgstr "" - -msgid "db version: we have " -msgstr "" - -msgid "Backend type: " -msgstr "" - #, php-format -msgid "Check for table %s" -msgstr "" - -msgid "You need to upgrade to schema/psql-initialize.sql manually!" -msgstr "" - -msgid "Check for new session.sess_ip column" -msgstr "" - -msgid "SKIP" -msgstr "" - -msgid "ADDING" -msgstr "" - -msgid "Check for mysql session.sess_id sanity" -msgstr "" - -msgid "fixed" -msgstr "fijo" - -msgid "Check for mysql page.id auto_increment flag" -msgstr "" - -msgid "Check for mysql 4.1.x/5.0.0 binary search on Windows problem" -msgstr "" - -#, php-format -msgid "version <em>%s</em>" -msgstr "versión <em>%s</em>" - -msgid "not affected" -msgstr "" - -msgid "FIXED" -msgstr "" - -msgid "Check for ACCESS_LOG_SQL passwords in POST requests" -msgstr "" - -msgid "Check for ACCESS_LOG_SQL remote_host varchar(50)" -msgstr "" - -msgid "FIXING" -msgstr "" - -msgid "db version: upgrade to " -msgstr "" - -msgid "Check for extra page.cached_html column" -msgstr "" - -msgid "CONVERTING" -msgstr "" - -msgid "Check for relation field in link table" -msgstr "" - -msgid "Rebuild entire database to upgrade relation links" -msgstr "" - -#, php-format msgid "%s not found in %s" msgstr "" @@ -4650,6 +4550,9 @@ msgid "fix BLOG_EMPTY_DEFAULT_PREFIX into BLOG_DEFAULT_EMPTY_PREFIX" msgstr "" +msgid "FIXED" +msgstr "" + msgid "fixed with" msgstr "" @@ -5817,6 +5720,12 @@ msgid "Edit this page" msgstr "Corrija esta página" +#~ msgid "fixed" +#~ msgstr "fijo" + +#~ msgid "version <em>%s</em>" +#~ msgstr "versión <em>%s</em>" + #~ msgid "GoodStyle" #~ msgstr "BuenEstilo" Modified: trunk/locale/po/fr.po =================================================================== --- trunk/locale/po/fr.po 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/locale/po/fr.po 2021-07-29 19:11:48 UTC (rev 10398) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-16 13:23+0200\n" +"POT-Creation-Date: 2021-07-29 21:10+0200\n" "PO-Revision-Date: 2004-06-22 21:10+0200\n" "Last-Translator: Pierrick Meignen <mei...@wa...>, Roland " "Trique <rol...@fr...>, Stéphane Gourichon <stephane.gourichon@lip6." @@ -2249,26 +2249,6 @@ msgid "Invalid color: %s" msgstr "Couleur non valide : %s" -msgid "Provide weather reports from the Internet." -msgstr "Météo importée d'internet." - -#, php-format -msgid "The ICAO “%s” wasn't recognized." -msgstr "L'ICAO « %s » n'a pas été reconnu." - -#, php-format -msgid "%s does not know about the language “%s”, using “en” instead." -msgstr "%s ne connaît pas la langue « %s », utilisation de « en » à la place." - -msgid "Submit country" -msgstr "Soumettre le pays" - -msgid "Change country" -msgstr "Changer le pays" - -msgid "Submit location" -msgstr "Soumettre la localisation" - msgid "Ploticus image creation." msgstr "Création de l'image Ploticus." @@ -4209,12 +4189,6 @@ msgid "PhpHighlightPlugin" msgstr "GreffonColorationPhp" -msgid "PhpWeather" -msgstr "MétéoPhp" - -msgid "PhpWeatherPlugin" -msgstr "GreffonMétéoPhp" - msgid "PhpWiki" msgstr "PhpWiki" @@ -4653,82 +4627,7 @@ msgid "CREATED" msgstr "CRÉÉ" -msgid "database" -msgstr "base de données" - -msgid "db version: we want " -msgstr "Version de la base de données : on veut " - -msgid "db version: we have " -msgstr "Version de la base de données : on a " - -msgid "Backend type: " -msgstr "Type de backend : " - #, php-format -msgid "Check for table %s" -msgstr "Vérifie la table %s" - -msgid "You need to upgrade to schema/psql-initialize.sql manually!" -msgstr "Vous devez mettre à jour schema/psql-initialize.sql à la main !" - -msgid "Check for new session.sess_ip column" -msgstr "Recherche une nouvelle colonne session.sess_ip" - -msgid "SKIP" -msgstr "SAUTÉ" - -msgid "ADDING" -msgstr "AJOUT" - -msgid "Check for mysql session.sess_id sanity" -msgstr "" - -msgid "fixed" -msgstr "" - -msgid "Check for mysql page.id auto_increment flag" -msgstr "" - -msgid "Check for mysql 4.1.x/5.0.0 binary search on Windows problem" -msgstr "" - -#, php-format -msgid "version <em>%s</em>" -msgstr "version <em>%s</em>" - -msgid "not affected" -msgstr "non affectée" - -msgid "FIXED" -msgstr "CORRIGÉ" - -msgid "Check for ACCESS_LOG_SQL passwords in POST requests" -msgstr "" - -msgid "Check for ACCESS_LOG_SQL remote_host varchar(50)" -msgstr "" - -msgid "FIXING" -msgstr "" - -msgid "db version: upgrade to " -msgstr "Version de la base de données : mise à niveau vers " - -msgid "Check for extra page.cached_html column" -msgstr "Recherche une colonne supplémentaire page.cached_html" - -msgid "CONVERTING" -msgstr "" - -msgid "Check for relation field in link table" -msgstr "Vérifie le champ relation dans la table des liens" - -msgid "Rebuild entire database to upgrade relation links" -msgstr "" -"Reconstruit toute la base de données pour mettre à jour les liens de relation" - -#, php-format msgid "%s not found in %s" msgstr "%s non trouvé dans %s" @@ -4753,6 +4652,9 @@ msgid "fix BLOG_EMPTY_DEFAULT_PREFIX into BLOG_DEFAULT_EMPTY_PREFIX" msgstr "" +msgid "FIXED" +msgstr "CORRIGÉ" + msgid "fixed with" msgstr "" @@ -5945,10 +5847,81 @@ msgid "Edit this page" msgstr "Modifier cette page" +#~ msgid "Provide weather reports from the Internet." +#~ msgstr "Météo importée d'internet." + +#~ msgid "The ICAO “%s” wasn't recognized." +#~ msgstr "L'ICAO « %s » n'a pas été reconnu." + +#~ msgid "%s does not know about the language “%s”, using “en” instead." +#~ msgstr "" +#~ "%s ne connaît pas la langue « %s », utilisation de « en » à la place." + +#~ msgid "Submit country" +#~ msgstr "Soumettre le pays" + +#~ msgid "Change country" +#~ msgstr "Changer le pays" + +#~ msgid "Submit location" +#~ msgstr "Soumettre la localisation" + +#~ msgid "PhpWeather" +#~ msgstr "MétéoPhp" + +#~ msgid "PhpWeatherPlugin" +#~ msgstr "GreffonMétéoPhp" + +#~ msgid "database" +#~ msgstr "base de données" + +#~ msgid "db version: we want " +#~ msgstr "Version de la base de données : on veut " + +#~ msgid "db version: we have " +#~ msgstr "Version de la base de données : on a " + +#~ msgid "Backend type: " +#~ msgstr "Type de backend : " + +#~ msgid "Check for table %s" +#~ msgstr "Vérifie la table %s" + +#~ msgid "You need to upgrade to schema/psql-initialize.sql manually!" +#~ msgstr "Vous devez mettre à jour schema/psql-initialize.sql à la main !" + +#~ msgid "Check for new session.sess_ip column" +#~ msgstr "Recherche une nouvelle colonne session.sess_ip" + +#~ msgid "SKIP" +#~ msgstr "SAUTÉ" + +#~ msgid "ADDING" +#~ msgstr "AJOUT" + +#~ msgid "version <em>%s</em>" +#~ msgstr "version <em>%s</em>" + +#~ msgid "not affected" +#~ msgstr "non affectée" + +#~ msgid "db version: upgrade to " +#~ msgstr "Version de la base de données : mise à niveau vers " + +#~ msgid "Check for extra page.cached_html column" +#~ msgstr "Recherche une colonne supplémentaire page.cached_html" + +#~ msgid "Check for relation field in link table" +#~ msgstr "Vérifie le champ relation dans la table des liens" + +#~ msgid "Rebuild entire database to upgrade relation links" +#~ msgstr "" +#~ "Reconstruit toute la base de données pour mettre à jour les liens de " +#~ "relation" + #~ msgid "CreatePage failed" #~ msgstr "La création de la page a échoué" -#, php-format #~ msgid "Do you really want to create the page “%s”?" #~ msgstr "Voulez-vous réellement créer la page « %s » ?" Modified: trunk/locale/po/it.po =================================================================== --- trunk/locale/po/it.po 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/locale/po/it.po 2021-07-29 19:11:48 UTC (rev 10398) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-16 13:23+0200\n" +"POT-Creation-Date: 2021-07-29 21:10+0200\n" "PO-Revision-Date: 2005-02-12 16:23+0100\n" "Last-Translator: Antonio Bonifati ant[(at)]monitor.deis.unical.it\n" "Language-Team: \n" @@ -2186,26 +2186,6 @@ msgid "Invalid color: %s" msgstr "" -msgid "Provide weather reports from the Internet." -msgstr "" - -#, php-format -msgid "The ICAO “%s” wasn't recognized." -msgstr "" - -#, php-format -msgid "%s does not know about the language “%s”, using “en” instead." -msgstr "" - -msgid "Submit country" -msgstr "" - -msgid "Change country" -msgstr "" - -msgid "Submit location" -msgstr "" - msgid "Ploticus image creation." msgstr "" @@ -4092,12 +4072,6 @@ msgid "PhpHighlightPlugin" msgstr "" -msgid "PhpWeather" -msgstr "" - -msgid "PhpWeatherPlugin" -msgstr "" - msgid "PhpWiki" msgstr "" @@ -4528,81 +4502,7 @@ msgid "CREATED" msgstr "" -msgid "database" -msgstr "" - -msgid "db version: we want " -msgstr "" - -msgid "db version: we have " -msgstr "" - -msgid "Backend type: " -msgstr "" - #, php-format -msgid "Check for table %s" -msgstr "" - -msgid "You need to upgrade to schema/psql-initialize.sql manually!" -msgstr "" - -msgid "Check for new session.sess_ip column" -msgstr "" - -msgid "SKIP" -msgstr "" - -msgid "ADDING" -msgstr "" - -msgid "Check for mysql session.sess_id sanity" -msgstr "" - -msgid "fixed" -msgstr "" - -msgid "Check for mysql page.id auto_increment flag" -msgstr "" - -msgid "Check for mysql 4.1.x/5.0.0 binary search on Windows problem" -msgstr "" - -#, php-format -msgid "version <em>%s</em>" -msgstr "versione <em>%s</em>" - -msgid "not affected" -msgstr "" - -msgid "FIXED" -msgstr "" - -msgid "Check for ACCESS_LOG_SQL passwords in POST requests" -msgstr "" - -msgid "Check for ACCESS_LOG_SQL remote_host varchar(50)" -msgstr "" - -msgid "FIXING" -msgstr "" - -msgid "db version: upgrade to " -msgstr "" - -msgid "Check for extra page.cached_html column" -msgstr "" - -msgid "CONVERTING" -msgstr "" - -msgid "Check for relation field in link table" -msgstr "" - -msgid "Rebuild entire database to upgrade relation links" -msgstr "" - -#, php-format msgid "%s not found in %s" msgstr "%s non trovato in %s" @@ -4627,6 +4527,9 @@ msgid "fix BLOG_EMPTY_DEFAULT_PREFIX into BLOG_DEFAULT_EMPTY_PREFIX" msgstr "" +msgid "FIXED" +msgstr "" + msgid "fixed with" msgstr "Modifica" @@ -5776,6 +5679,9 @@ msgid "Edit this page" msgstr "" +#~ msgid "version <em>%s</em>" +#~ msgstr "versione <em>%s</em>" + #~ msgid "GoodStyle" #~ msgstr "BuonStile" Modified: trunk/locale/po/ja.po =================================================================== --- trunk/locale/po/ja.po 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/locale/po/ja.po 2021-07-29 19:11:48 UTC (rev 10398) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-16 13:23+0200\n" +"POT-Creation-Date: 2021-07-29 21:10+0200\n" "PO-Revision-Date: 2003-06-07 09:01+0900\n" "Last-Translator: Tadashi Jokagi <web...@el...>\n" "Language-Team: LANGUAGE <LL...@li...>\n" @@ -2172,26 +2172,6 @@ msgid "Invalid color: %s" msgstr "" -msgid "Provide weather reports from the Internet." -msgstr "" - -#, php-format -msgid "The ICAO “%s” wasn't recognized." -msgstr "" - -#, php-format -msgid "%s does not know about the language “%s”, using “en” instead." -msgstr "" - -msgid "Submit country" -msgstr "国名送信" - -msgid "Change country" -msgstr "国名変更" - -msgid "Submit location" -msgstr "所在地変更" - msgid "Ploticus image creation." msgstr "" @@ -4078,12 +4058,6 @@ msgid "PhpHighlightPlugin" msgstr "PHPハイライトプラグイン" -msgid "PhpWeather" -msgstr "" - -msgid "PhpWeatherPlugin" -msgstr "" - msgid "PhpWiki" msgstr "" @@ -4514,81 +4488,7 @@ msgid "CREATED" msgstr "" -msgid "database" -msgstr "" - -msgid "db version: we want " -msgstr "" - -msgid "db version: we have " -msgstr "" - -msgid "Backend type: " -msgstr "" - #, php-format -msgid "Check for table %s" -msgstr "" - -msgid "You need to upgrade to schema/psql-initialize.sql manually!" -msgstr "" - -msgid "Check for new session.sess_ip column" -msgstr "" - -msgid "SKIP" -msgstr "" - -msgid "ADDING" -msgstr "" - -msgid "Check for mysql session.sess_id sanity" -msgstr "" - -msgid "fixed" -msgstr "" - -msgid "Check for mysql page.id auto_increment flag" -msgstr "" - -msgid "Check for mysql 4.1.x/5.0.0 binary search on Windows problem" -msgstr "" - -#, php-format -msgid "version <em>%s</em>" -msgstr "バージョン <em>%s</em>" - -msgid "not affected" -msgstr "" - -msgid "FIXED" -msgstr "" - -msgid "Check for ACCESS_LOG_SQL passwords in POST requests" -msgstr "" - -msgid "Check for ACCESS_LOG_SQL remote_host varchar(50)" -msgstr "" - -msgid "FIXING" -msgstr "" - -msgid "db version: upgrade to " -msgstr "" - -msgid "Check for extra page.cached_html column" -msgstr "" - -msgid "CONVERTING" -msgstr "" - -msgid "Check for relation field in link table" -msgstr "" - -msgid "Rebuild entire database to upgrade relation links" -msgstr "" - -#, php-format msgid "%s not found in %s" msgstr "" @@ -4613,6 +4513,9 @@ msgid "fix BLOG_EMPTY_DEFAULT_PREFIX into BLOG_DEFAULT_EMPTY_PREFIX" msgstr "" +msgid "FIXED" +msgstr "" + msgid "fixed with" msgstr "" @@ -5762,6 +5665,18 @@ msgid "Edit this page" msgstr "ページを編集しています" +#~ msgid "Submit country" +#~ msgstr "国名送信" + +#~ msgid "Change country" +#~ msgstr "国名変更" + +#~ msgid "Submit location" +#~ msgstr "所在地変更" + +#~ msgid "version <em>%s</em>" +#~ msgstr "バージョン <em>%s</em>" + #~ msgid "Page info" #~ msgstr "ページ情報" Modified: trunk/locale/po/nl.po =================================================================== --- trunk/locale/po/nl.po 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/locale/po/nl.po 2021-07-29 19:11:48 UTC (rev 10398) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-16 13:23+0200\n" +"POT-Creation-Date: 2021-07-29 21:10+0200\n" "PO-Revision-Date: 2000-09-30 02:23+0200\n" "Last-Translator: Jan Nieuwenhuizen <ja...@gn...>\n" "Language-Team: Dutch <nl...@li...>\n" @@ -2178,26 +2178,6 @@ msgid "Invalid color: %s" msgstr "" -msgid "Provide weather reports from the Internet." -msgstr "" - -#, php-format -msgid "The ICAO “%s” wasn't recognized." -msgstr "" - -#, php-format -msgid "%s does not know about the language “%s”, using “en” instead." -msgstr "" - -msgid "Submit country" -msgstr "" - -msgid "Change country" -msgstr "" - -msgid "Submit location" -msgstr "" - msgid "Ploticus image creation." msgstr "" @@ -4084,12 +4064,6 @@ msgid "PhpHighlightPlugin" msgstr "" -msgid "PhpWeather" -msgstr "" - -msgid "PhpWeatherPlugin" -msgstr "" - msgid "PhpWiki" msgstr "" @@ -4520,81 +4494,7 @@ msgid "CREATED" msgstr "" -msgid "database" -msgstr "" - -msgid "db version: we want " -msgstr "" - -msgid "db version: we have " -msgstr "" - -msgid "Backend type: " -msgstr "" - #, php-format -msgid "Check for table %s" -msgstr "" - -msgid "You need to upgrade to schema/psql-initialize.sql manually!" -msgstr "" - -msgid "Check for new session.sess_ip column" -msgstr "" - -msgid "SKIP" -msgstr "" - -msgid "ADDING" -msgstr "" - -msgid "Check for mysql session.sess_id sanity" -msgstr "" - -msgid "fixed" -msgstr "" - -msgid "Check for mysql page.id auto_increment flag" -msgstr "" - -msgid "Check for mysql 4.1.x/5.0.0 binary search on Windows problem" -msgstr "" - -#, php-format -msgid "version <em>%s</em>" -msgstr "versie <em>%s</em>" - -msgid "not affected" -msgstr "" - -msgid "FIXED" -msgstr "" - -msgid "Check for ACCESS_LOG_SQL passwords in POST requests" -msgstr "" - -msgid "Check for ACCESS_LOG_SQL remote_host varchar(50)" -msgstr "" - -msgid "FIXING" -msgstr "" - -msgid "db version: upgrade to " -msgstr "" - -msgid "Check for extra page.cached_html column" -msgstr "" - -msgid "CONVERTING" -msgstr "" - -msgid "Check for relation field in link table" -msgstr "" - -msgid "Rebuild entire database to upgrade relation links" -msgstr "" - -#, php-format msgid "%s not found in %s" msgstr "" @@ -4619,6 +4519,9 @@ msgid "fix BLOG_EMPTY_DEFAULT_PREFIX into BLOG_DEFAULT_EMPTY_PREFIX" msgstr "" +msgid "FIXED" +msgstr "" + msgid "fixed with" msgstr "" @@ -5768,6 +5671,9 @@ msgid "Edit this page" msgstr "" +#~ msgid "version <em>%s</em>" +#~ msgstr "versie <em>%s</em>" + #~ msgid "GoodStyle" #~ msgstr "GoedeStijl" Modified: trunk/locale/po/phpwiki.pot =================================================================== --- trunk/locale/po/phpwiki.pot 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/locale/po/phpwiki.pot 2021-07-29 19:11:48 UTC (rev 10398) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki-1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-16 13:23+0200\n" +"POT-Creation-Date: 2021-07-29 21:10+0200\n" "PO-Revision-Date: 2002-12-14 17:51-0500\n" "Last-Translator: Reini Urban <ru...@us...>\n" "Language-Team: LANGUAGE <LL...@li...>\n" @@ -2172,26 +2172,6 @@ msgid "Invalid color: %s" msgstr "" -msgid "Provide weather reports from the Internet." -msgstr "" - -#, php-format -msgid "The ICAO “%s” wasn't recognized." -msgstr "" - -#, php-format -msgid "%s does not know about the language “%s”, using “en” instead." -msgstr "" - -msgid "Submit country" -msgstr "" - -msgid "Change country" -msgstr "" - -msgid "Submit location" -msgstr "" - msgid "Ploticus image creation." msgstr "" @@ -4078,12 +4058,6 @@ msgid "PhpHighlightPlugin" msgstr "" -msgid "PhpWeather" -msgstr "" - -msgid "PhpWeatherPlugin" -msgstr "" - msgid "PhpWiki" msgstr "" @@ -4514,81 +4488,7 @@ msgid "CREATED" msgstr "" -msgid "database" -msgstr "" - -msgid "db version: we want " -msgstr "" - -msgid "db version: we have " -msgstr "" - -msgid "Backend type: " -msgstr "" - #, php-format -msgid "Check for table %s" -msgstr "" - -msgid "You need to upgrade to schema/psql-initialize.sql manually!" -msgstr "" - -msgid "Check for new session.sess_ip column" -msgstr "" - -msgid "SKIP" -msgstr "" - -msgid "ADDING" -msgstr "" - -msgid "Check for mysql session.sess_id sanity" -msgstr "" - -msgid "fixed" -msgstr "" - -msgid "Check for mysql page.id auto_increment flag" -msgstr "" - -msgid "Check for mysql 4.1.x/5.0.0 binary search on Windows problem" -msgstr "" - -#, php-format -msgid "version <em>%s</em>" -msgstr "" - -msgid "not affected" -msgstr "" - -msgid "FIXED" -msgstr "" - -msgid "Check for ACCESS_LOG_SQL passwords in POST requests" -msgstr "" - -msgid "Check for ACCESS_LOG_SQL remote_host varchar(50)" -msgstr "" - -msgid "FIXING" -msgstr "" - -msgid "db version: upgrade to " -msgstr "" - -msgid "Check for extra page.cached_html column" -msgstr "" - -msgid "CONVERTING" -msgstr "" - -msgid "Check for relation field in link table" -msgstr "" - -msgid "Rebuild entire database to upgrade relation links" -msgstr "" - -#, php-format msgid "%s not found in %s" msgstr "" @@ -4613,6 +4513,9 @@ msgid "fix BLOG_EMPTY_DEFAULT_PREFIX into BLOG_DEFAULT_EMPTY_PREFIX" msgstr "" +msgid "FIXED" +msgstr "" + msgid "fixed with" msgstr "" Modified: trunk/locale/po/sv.po =================================================================== --- trunk/locale/po/sv.po 2021-07-29 17:42:03 UTC (rev 10397) +++ trunk/locale/po/sv.po 2021-07-29 19:11:48 UTC (rev 10398) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-16 13:23+0200\n" +"POT-Creation-Date: 2021-07-29 21:10+0200\n" "PO-Revision-Date: 2001-01-27 01:58+0200\n" "Last-Translator: Jon Åslund <jo...@he...>\n" "Language-Team: \n" @@ -2173,26 +2173,6 @@ msgid "Invalid color: %s" msgstr "" -msgid "Provide weather reports from the Internet." -msgstr "" - -#, php-format -msgid "The ICAO “%s” wasn't recognized." -msgstr "" - -#, php-format -msgid "%s does not know about the language “%s”, using “en” instead." -msgstr "" - -msgid "Submit country" -msgstr "" - -msgid "Change country" -msgstr "" - -msgid "Submit location" -msgstr "" - msgid "Ploticus image creation." msgstr "" @@ -4079,12 +4059,6 @@ msgid "PhpHighlightPlugin" msgstr "" -msgid "PhpWeather" -msgstr "" - -msgid "PhpWeatherPlugin" -msgstr "" - msgid "PhpWiki" msgstr "" @@ -4515,81 +4489,7 @@ msgid "CREATED" msgstr "" -msgid "database" -msgstr "" - -msgid "db version: we want " -msgstr "" - -msgid "db version: we have " -msgstr "" - -msgid "Backend type: " -msgstr "" - #, php-format -msgid "Check for table %s" -msgstr ""... [truncated message content] |
From: <var...@us...> - 2021-07-30 13:12:16
|
Revision: 10405 http://sourceforge.net/p/phpwiki/code/10405 Author: vargenau Date: 2021-07-30 13:12:14 +0000 (Fri, 30 Jul 2021) Log Message: ----------- Remove %%TITLE%% and %%YEAR%%, not expanded Modified Paths: -------------- trunk/locale/de/pgsrc/Vorlage%2FBeispiel trunk/pgsrc/Template%2FExample Modified: trunk/locale/de/pgsrc/Vorlage%2FBeispiel =================================================================== --- trunk/locale/de/pgsrc/Vorlage%2FBeispiel 2021-07-30 10:57:49 UTC (rev 10404) +++ trunk/locale/de/pgsrc/Vorlage%2FBeispiel 2021-07-30 13:12:14 UTC (rev 10405) @@ -1,4 +1,4 @@ -Date: Fri, 12 Apr 2019 10:36:59 +0000 +Date: Fri, 30 Jul 2021 15:10:38 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=Vorlage%2FBeispiel; @@ -18,7 +18,6 @@ SERVER_URL, DATA_PATH, SCRIPT_NAME, PHPWIKI_BASE_URL and BASE_URL </noinclude> -Titel: %%TITLE%% Jahr: %%YEAR%% --- * Seitenname: %%PAGENAME%% * Autor: %%AUTHOR%% Modified: trunk/pgsrc/Template%2FExample =================================================================== --- trunk/pgsrc/Template%2FExample 2021-07-30 10:57:49 UTC (rev 10404) +++ trunk/pgsrc/Template%2FExample 2021-07-30 13:12:14 UTC (rev 10405) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:28 +0000 +Date: Fri, 30 Jul 2021 15:10:38 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=Template%2FExample; @@ -18,7 +18,6 @@ SERVER_URL, DATA_PATH, SCRIPT_NAME, PHPWIKI_BASE_URL and BASE_URL </noinclude> -Title: %%TITLE%% Year: %%YEAR%% --- * Pagename: %%PAGENAME%% * Author: %%AUTHOR%% This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-04 07:51:41
|
Revision: 10419 http://sourceforge.net/p/phpwiki/code/10419 Author: vargenau Date: 2021-08-04 07:51:39 +0000 (Wed, 04 Aug 2021) Log Message: ----------- Ensure Fusionforge pgsrc pages have a more recent date that main pgsrc Modified Paths: -------------- trunk/pgsrc/FindPage trunk/pgsrc/FullTextSearch trunk/pgsrc/SpecialPages trunk/pgsrc/TitleSearch trunk/pgsrc/UpLoad trunk/themes/fusionforge/pgsrc/FindPage trunk/themes/fusionforge/pgsrc/FullTextSearch trunk/themes/fusionforge/pgsrc/HomePage trunk/themes/fusionforge/pgsrc/PhpWikiAdministration trunk/themes/fusionforge/pgsrc/PhpWikiAdministration%2FSetAclSimple trunk/themes/fusionforge/pgsrc/SetGlobalAccessRightsSimple trunk/themes/fusionforge/pgsrc/SpecialPages trunk/themes/fusionforge/pgsrc/TitleSearch trunk/themes/fusionforge/pgsrc/UpLoad Modified: trunk/pgsrc/FindPage =================================================================== --- trunk/pgsrc/FindPage 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/pgsrc/FindPage 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,8 +1,8 @@ -Date: Thu, 25 Jul 2019 15:34:07 +0000 +Date: Wed, 3 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=FindPage; - flags=PAGE_LOCKED%2CEXTERNAL_PAGE; + flags=PAGE_LOCKED; charset=UTF-8 Content-Transfer-Encoding: binary @@ -20,7 +20,8 @@ editbox[] name=s text="" submit[] checkbox[] name=case_exact - pulldown[] name=regex value="auto,none,glob,posix,pcre,sql">> + pulldown[] name=regex value="auto,none,glob,posix,pcre,sql" +>> == Full Text Search == @@ -31,7 +32,8 @@ editbox[] name=s text="" submit[] checkbox[] name=case_exact - pulldown[] name=regex value="auto,none,glob,posix,pcre,sql">> + pulldown[] name=regex value="auto,none,glob,posix,pcre,sql" +>> == Fuzzy Search == @@ -41,10 +43,9 @@ <<WikiFormRich action=FuzzyPages method=GET nobr=1 class=wikiaction editbox[] name=s text="" submit[] - checkbox[] name=case_exact>> + checkbox[] name=case_exact +>> ------- - == Tips == * Separate words with a space. All words have to match as substrings. Modified: trunk/pgsrc/FullTextSearch =================================================================== --- trunk/pgsrc/FullTextSearch 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/pgsrc/FullTextSearch 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:28 +0000 +Date: Wed, 3 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=FullTextSearch; @@ -16,18 +16,21 @@ editbox[] name=s text="" submit[] checkbox[] name=case_exact - pulldown[] name=regex value="auto,none,glob,posix,pcre,sql">> + pulldown[] name=regex value="auto,none,glob,posix,pcre,sql" +>> <<WikiFormRich action=FullTextSearch method=GET nobr=1 class=wikiaction editbox[] name=s text="" submit[] checkbox[] name=case_exact - pulldown[] name=regex value="auto,none,glob,posix,pcre,sql">> + pulldown[] name=regex value="auto,none,glob,posix,pcre,sql" +>> <<WikiFormRich action=FuzzyPages method=GET nobr=1 class=wikiaction editbox[] name=s text="" submit[] - checkbox[] name=case_exact>> + checkbox[] name=case_exact +>> ---- Modified: trunk/pgsrc/SpecialPages =================================================================== --- trunk/pgsrc/SpecialPages 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/pgsrc/SpecialPages 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,8 +1,8 @@ -Date: Fri, 26 Apr 2019 16:12:18 +0000 +Date: Wed, 3 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=SpecialPages; - flags=EXTERNAL_PAGE; + flags=""; charset=UTF-8 Content-Transfer-Encoding: binary @@ -27,6 +27,8 @@ * [[LeastPopular]] * [[WantedPages]] * [[RandomPage]] +* [[RateIt]] +* [[MyRatings]] | style="padding-right: 10px" | == Users == * [[AllUsers]] Modified: trunk/pgsrc/TitleSearch =================================================================== --- trunk/pgsrc/TitleSearch 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/pgsrc/TitleSearch 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,8 +1,8 @@ -Date: Thu, 13 Oct 2016 15:09:28 +0000 +Date: Wed, 3 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=TitleSearch; - flags=PAGE_LOCKED%2CEXTERNAL_PAGE; + flags=PAGE_LOCKED; charset=UTF-8 Content-Transfer-Encoding: binary @@ -16,18 +16,21 @@ editbox[] name=s text="" submit[] checkbox[] name=case_exact - pulldown[] name=regex value="auto,none,glob,posix,pcre,sql">> + pulldown[] name=regex value="auto,none,glob,posix,pcre,sql" +>> <<WikiFormRich action=FullTextSearch method=GET nobr=1 class=wikiaction editbox[] name=s text="" submit[] checkbox[] name=case_exact - pulldown[] name=regex value="auto,none,glob,posix,pcre,sql">> + pulldown[] name=regex value="auto,none,glob,posix,pcre,sql" +>> <<WikiFormRich action=FuzzyPages method=GET nobr=1 class=wikiaction editbox[] name=s text="" submit[] - checkbox[] name=case_exact>> + checkbox[] name=case_exact +>> ---- Modified: trunk/pgsrc/UpLoad =================================================================== --- trunk/pgsrc/UpLoad 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/pgsrc/UpLoad 2021-08-04 07:51:39 UTC (rev 10419) @@ -2,7 +2,7 @@ Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=UpLoad; - flags=EXTERNAL_PAGE; + flags=""; charset=UTF-8 Content-Transfer-Encoding: binary Modified: trunk/themes/fusionforge/pgsrc/FindPage =================================================================== --- trunk/themes/fusionforge/pgsrc/FindPage 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/themes/fusionforge/pgsrc/FindPage 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,4 +1,4 @@ -Date: Tue, 9 Apr 2019 16:49:36 +0000 +Date: Wed, 4 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=FindPage; @@ -30,7 +30,10 @@ In a fuzzy pages search the titles of all pages are examined to find those which are similarly spelled or similar sounding (English). -<<WikiFormRich action=FuzzyPages method=GET nobr=1 class=wikiaction editbox[] name=s text="" submit[] >> +<<WikiFormRich action=FuzzyPages method=GET nobr=1 class=wikiaction + editbox[] name=s text="" + submit[] +>> == Tips == @@ -55,3 +58,6 @@ </verbatim> * Search can be done in any language. * You can search titles in “Title Search” section, and search wiki contents in “Full Text Search” section. + +---- +[[PhpWikiDocumentation]] Modified: trunk/themes/fusionforge/pgsrc/FullTextSearch =================================================================== --- trunk/themes/fusionforge/pgsrc/FullTextSearch 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/themes/fusionforge/pgsrc/FullTextSearch 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:36 +0000 +Date: Wed, 4 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=FullTextSearch; Modified: trunk/themes/fusionforge/pgsrc/HomePage =================================================================== --- trunk/themes/fusionforge/pgsrc/HomePage 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/themes/fusionforge/pgsrc/HomePage 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:36 +0000 +Date: Wed, 4 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=HomePage; Modified: trunk/themes/fusionforge/pgsrc/PhpWikiAdministration =================================================================== --- trunk/themes/fusionforge/pgsrc/PhpWikiAdministration 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/themes/fusionforge/pgsrc/PhpWikiAdministration 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:36 +0000 +Date: Wed, 4 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiAdministration; Modified: trunk/themes/fusionforge/pgsrc/PhpWikiAdministration%2FSetAclSimple =================================================================== --- trunk/themes/fusionforge/pgsrc/PhpWikiAdministration%2FSetAclSimple 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/themes/fusionforge/pgsrc/PhpWikiAdministration%2FSetAclSimple 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:36 +0000 +Date: Wed, 4 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiAdministration%2FSetAclSimple; Modified: trunk/themes/fusionforge/pgsrc/SetGlobalAccessRightsSimple =================================================================== --- trunk/themes/fusionforge/pgsrc/SetGlobalAccessRightsSimple 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/themes/fusionforge/pgsrc/SetGlobalAccessRightsSimple 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:36 +0000 +Date: Wed, 4 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=SetGlobalAccessRightsSimple; Modified: trunk/themes/fusionforge/pgsrc/SpecialPages =================================================================== --- trunk/themes/fusionforge/pgsrc/SpecialPages 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/themes/fusionforge/pgsrc/SpecialPages 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,4 +1,4 @@ -Date: Fri, 26 Apr 2019 16:12:18 +0000 +Date: Wed, 4 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=SpecialPages; Modified: trunk/themes/fusionforge/pgsrc/TitleSearch =================================================================== --- trunk/themes/fusionforge/pgsrc/TitleSearch 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/themes/fusionforge/pgsrc/TitleSearch 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:36 +0000 +Date: Wed, 4 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=TitleSearch; Modified: trunk/themes/fusionforge/pgsrc/UpLoad =================================================================== --- trunk/themes/fusionforge/pgsrc/UpLoad 2021-08-03 17:18:02 UTC (rev 10418) +++ trunk/themes/fusionforge/pgsrc/UpLoad 2021-08-04 07:51:39 UTC (rev 10419) @@ -1,7 +1,8 @@ -Date: Thu, 13 Oct 2016 15:09:36 +0000 +Date: Wed, 4 Aug 2021 09:27:34 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=UpLoad; + flags=EXTERNAL_PAGE; charset=UTF-8 Content-Transfer-Encoding: binary This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-04 08:34:17
|
Revision: 10421 http://sourceforge.net/p/phpwiki/code/10421 Author: vargenau Date: 2021-08-04 08:34:15 +0000 (Wed, 04 Aug 2021) Log Message: ----------- Update instructions, remove old stuff Modified Paths: -------------- trunk/INSTALL trunk/README trunk/TODO trunk/UPGRADING trunk/doc/INSTALL.MacOSX trunk/doc/INSTALL.flatfile Modified: trunk/INSTALL =================================================================== --- trunk/INSTALL 2021-08-04 07:55:38 UTC (rev 10420) +++ trunk/INSTALL 2021-08-04 08:34:15 UTC (rev 10421) @@ -1,11 +1,8 @@ REQUIREMENTS -PhpWiki 1.6.0 requires a web server with at least PHP version 5.3. -PhpWiki 1.6.0 is compatible with the PHP 7.0 series. +PhpWiki 1.6.0 requires a web server with at least PHP version 5.3.3. +PhpWiki 1.6.0 should work for all PHP releases from 5.3.3 to 8.0.9. -All users of PHP are strongly encouraged to upgrade to PHP 5.6 -or PHP 7.0. - Visit <http://www.php.net> and <http://php.net/downloads.php> for downloads and information. @@ -15,19 +12,6 @@ installation and configure options. <https://www.php.net/manual/en/installation.php> -Since version 1.3.0 PhpWiki uses the 'DB.php' from PEAR, a database -abstraction layer which is part of PHP. PhpWiki version 1.3.3 and later -includes the necessary PEAR libraries and will use it if your system -PEAR library can not be found. For more information about PEAR -see <http://pear.php.net/>. -PhpWiki version 1.3.7 and later includes the ADODB libraries and will -use it for DATABASE_TYPE=ADODB. ADODB has more features, can use yet -unsupported backends out of the box, and this is where SQL development -happens. ADODB improvements are then backported to the stable PEAR -backend (which often suffers from bad upstream PEAR libraries) and to -PDO for php5. - - QUICK START INSTRUCTIONS Copy 'config/config-dist.ini' to 'config/config.ini' and edit the @@ -112,7 +96,7 @@ CERT, malicious users can embed HTML in your pages that allow pure evil to happen: - <http://www.cert.org/advisories/CA-2000-02.html> + http://www.cert.org/advisories/CA-2000-02.html Set the ENABLE_RAW_HTML to true in 'config/config.ini' to allow embedded HTML, but you should NEVER do this if your Wiki is publicly @@ -128,12 +112,12 @@ 4. PATCHES Post patches to: - <http://sourceforge.net/tracker/?func=add&group_id=6121&atid=306121> + https://sourceforge.net/p/phpwiki/patches/ 5. BUGS Post bugs to: - <http://sourceforge.net/tracker/?func=add&group_id=6121&atid=106121> + https://sourceforge.net/p/phpwiki/bugs/ 6. SUPPORT @@ -141,6 +125,4 @@ <php...@li...> You can join this list at: - <http://lists.sourceforge.net/lists/listinfo/phpwiki-talk> - -FIN + http://lists.sourceforge.net/lists/listinfo/phpwiki-talk Modified: trunk/README =================================================================== --- trunk/README 2021-08-04 07:55:38 UTC (rev 10420) +++ trunk/README 2021-08-04 08:34:15 UTC (rev 10421) @@ -5,16 +5,6 @@ See ./INSTALL for installation notes. Read ./UPGRADING before upgrading from a previous version of PhpWiki. -Supported browsers: - -Phpwiki should work with the following browsers: -* Firefox >= 2 -* Safari >= 5 -* Opera >= 8 -* Chrome >= 6 -* Konqueror >= 3.5 -* Edge - Additional docs: doc/: @@ -33,8 +23,7 @@ CREDITS HISTORY -For a list of current bugs see: - https://sourceforge.net/bugs/?group_id=6121 +For a list of current bugs see: https://sourceforge.net/p/phpwiki/bugs/ The fastest and out-of-the-box version uses DATABASE_TYPE=dba, a dbm file in the /tmp directory; you may wish a more permanent @@ -44,4 +33,3 @@ implementations have the full set of features; DBM and mSQL are missing only a few, and the flat file implementation is solid and waiting for your improvement. All are suitable for production. - Modified: trunk/TODO =================================================================== --- trunk/TODO 2021-08-04 07:55:38 UTC (rev 10420) +++ trunk/TODO 2021-08-04 08:34:15 UTC (rev 10421) @@ -1,13 +1,5 @@ -== Blockers == -* can no longer save UserPreferences: Warning: "Attempt to assign property of non-object" - (partial revert to get in work again) -* WantedPages give too many pages (from interwiki map) - (to be tested in both Pear and ADODB) -* revert of Patch 3024787 by Sébastien Le Callonnec (caused an SQL syntax error) - ----- - short-term TODO: +* WantedPages gives too many pages (from interwiki map) * rename should check existing subpages and rename these also. * Sidebar: merge AVL theme (internal MonoBook derivate with customizable box states) with Sidebar Modified: trunk/UPGRADING =================================================================== --- trunk/UPGRADING 2021-08-04 07:55:38 UTC (rev 10420) +++ trunk/UPGRADING 2021-08-04 08:34:15 UTC (rev 10421) @@ -1,158 +1,9 @@ To migrate to a new phpwiki installation you might want to backup your old pages (best via a zip dump), configure your new installation, and restore the old pages in PhpWikiAdministration. -UPGRADING from 1.3.7 on requires just ?action=upgrade. -Can't unpack bad cached markup. Probably php_zlib extension not loaded. -======================================================================= -Sign in as ADMIN_USER, go to PhpWikiAdministration#Purge_Markup_Cache -and click on the [Purge Cache] button. - ?action=upgrade =============== -To upgrade default pages, the database and some config settings +To upgrade default pages and some config settings add "?action=upgrade" to your HomePage url and press "Enter", which will do most of the upgrades automatically. - -You might need to enter the DBADMIN_USER and DBADMIN_PASSWD in -config/config.ini for SQL databases and default permissions. - -The importer looks at the Date header of the page. In your current wikidb -against the creation date of the pgsrc, you want to import. -If you changed your pages after I changed the pgsrc pages, -they will not be upgraded. - -Or just upgrade your configuration as described below. - -UPGRADING since 1.3.11 -====================== -?action=upgrade should be enough. - -UPGRADING since 1.3.10 -====================== -?action=upgrade should be enough. - -UPGRADING from 1.3.9 -====================== -At first you have to manually create a config/config.ini based on -config-dist.ini and your previous index.php. We don't have a script, -to do that automatically. - -mysql: - ALTER TABLE page CHANGE id id INT NOT NULL AUTO_INCREMENT; -NOTE: ?action=upgrade does this also, if your mysql user has the -ALTER permissions or DBADMIN_USER and DBADMIN_PASSWD are set. - -UPGRADING from 1.3.7 -====================== -mysql + postgres: - ALTER TABLE session ADD sess_ip CHAR(15) NOT NULL; - CREATE INDEX sess_date ON session (sess_date); - -postgres: - New pref and session tables have been added for more - efficiency. - -user and themes: - -WikiUser and signin.tmpl changed from $user->getId() to -$user->getAuthenticatedId() -Authenticated reflects the level (confirmed by password), -Signed just the username (possibly by cookie only) - -pgsrc: - -To upgrade not-existing pages add "?action=upgrade" to -your HomePage url and press "Enter", which will -add all fresh pages from pgsrc to your pageset. -If you deleted some pages on purpose, you'll have to removed -them again with PhpWikiAdministration/Remove then. - -There's no smart "Merge Diffs" yet to upgrade existing docs, -this will come with the next release. Also upgrading the -database automatically. - -UPGRADING from 1.2.x -====================== -FIXME: WARNING WARNING: The schemas used by the new databases -are completely incompatible with schemas in any previous version -(i.e. before release 1.3.1 of PhpWiki). If you install this new -PhpWiki, you must start with a new empty database (currently -either mysql, postgres or dba). (It will be filled with the -usual default pages.) - -FIXME: add more. - -Here's an excerpt from a note I posted on phpwiki-talk with my -recommendation on how to move a wiki from and older version of -PhpWiki to a 1.3.x PhpWiki: - -From: Jeff Dairiki <da...@da...> -Cc: php...@li... -Date: Fri, 9 Nov 2001 11:33:18 -0800 - -> Now, say I want to migrate all my 1.2.1 pages. I need to do a zip dump -> (does the admin page let me do that?) and then.... what? - -It's still a bit of a messy process at this point. Here's my suggestion. - -1. Start 1.3.x with an empty database. Browse the FrontPage. This should -fill the wiki with the distributed default 1.3.x pgsrc. (You've probably -already gotten this far.) - -2. Make a zip dump of your 1.2 wiki. If the contents of -PhpWikiAdministration are correct there should be a links -(near the top) which will do that for you. You need to be -in admin mode, though. This means you must have set an -admin user and passwd in admin.php, and you should be browsing -through a URL like: - http://path.to.your/wiki/admin.php?PhpWikiAdministration -(If your PhpWikAdministration page is broken, then - http://path.to.your/wiki/admin.php?zip=all -should get you a zip dump.) - -WARNING! WARNING! WARNING! There is a bug in releases 1.2.0 -and 1.2.1 of PhpWiki which results in corrupt zip dumps if -you are using the DBA, DBM or flat-file backends. If you -are using one of those backends you should make sure to -fix that bug (see note below) before making the zip dump. - - -3. Now upload your zip dump to your new 1.3 wiki. (First you need to -have set the admin user/passwd in the new index.php.) You should -be able to use the "Upload File" form on the PhpWikiAdministration -page. - - -If that works, the pages from your 1.2 wiki have now overwritten -the 1.3 pages (though the 1.3 pages are still saved in the archive). -This will break a bunch of 1.3 functionality until you restore -the page contents. Of the top of my head, some pages for which -this will be an issue are: - MostPopular, RecentChanges, PhpWikiAdministration, - MagicPhpWikiURLs, and ReleaseNotes. - -To restore these pages to the original (1.3) contents: - -4a. Login as the administration user (using the SignIn button at the -bottom right corner of the page.) (You need to do this because -some of the pages which need fixing are locked.) - -4b. Browse to a page which needs restoring. Hit the "History" button -(at the bottom of the page). This should get you a list of all -archived versions of the page. - -4c. Browse to the archive 1.3 version of the page (probably version -number 1) by clicking on the version number of the desired version. - -4d. Click the "Edit old revision" button (bottom of page). This should -get you to the edit form. - -4e. Click the "Save" button. This should save the archived page contents -as the current contents. - -We really need to figure out a way to simplify this process, but, for now, -that's what you gotta do. - -An older note on the same subject can be found at: - http://sourceforge.net/forum/message.php?msg_id=107858 Modified: trunk/doc/INSTALL.MacOSX =================================================================== --- trunk/doc/INSTALL.MacOSX 2021-08-04 07:55:38 UTC (rev 10420) +++ trunk/doc/INSTALL.MacOSX 2021-08-04 08:34:15 UTC (rev 10421) @@ -97,20 +97,6 @@ <http://versiontracker.com/macosx/> <http://fink.sourceforge.net/> -PHP 4.1 and Mac OS X --------------------- - -The version of PHP 4.1 from Mark Liyanage's web site requires an -updated PEAR library. PhpWiki seems to work anyway but it will produce -warnings about a depreciated user function with each page load. - -1. Move the current contents of '/System/Library/PHP' into a backup - folder, such as '/System/Library/PHP/PEAR-4.0.6'. - -2. Take the contents of the 'pear' folder from the official PHP 4.1 - tarball (php-4.1.0.tar.gz) and move it into '/System/Library/PHP'. - - PhpWiki Configuration Notes --------------------------- Modified: trunk/doc/INSTALL.flatfile =================================================================== --- trunk/doc/INSTALL.flatfile 2021-08-04 07:55:38 UTC (rev 10420) +++ trunk/doc/INSTALL.flatfile 2021-08-04 08:34:15 UTC (rev 10421) @@ -7,7 +7,7 @@ You should read the main INSTALL file before this one (it's not long and complicated so go ahead and we'll wait for you right here). -INSTALLATION NOTES for 1.3 +INSTALLATION NOTES Set DATABASE_TYPE = file in config/config.ini, check DATABASE_DIRECTORY not to start with /tmp, @@ -15,14 +15,6 @@ The webserver will then start to create this directory with the correct permissions and populate the database. -INSTALLATION NOTES for 1.2 - -First, edit lib/config.php and set the database to "file": - - $WhichDatabase = 'file'; // use one of "dbm", "mysql", "pgsql", "msql", - // or "file" - - Now, the key thing is you need a directory that the web server can read and write to. This is where it will store current and archived pages. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-04 10:45:04
|
Revision: 10424 http://sourceforge.net/p/phpwiki/code/10424 Author: vargenau Date: 2021-08-04 10:45:01 +0000 (Wed, 04 Aug 2021) Log Message: ----------- Remove unused MAJOR_MIN_KEEP, MINOR_MIN_KEEP, MAJOR_MAX_AGE, MINOR_MAX_AGE, MAJOR_KEEP, MINOR_KEEP, AUTHOR_MAX_AGE, AUTHOR_MIN_AGE, AUTHOR_KEEP, AUTHOR_MAX_KEEP; we store all Modified Paths: -------------- trunk/config/config-default.ini trunk/config/config-dist.ini trunk/configurator.php Modified: trunk/config/config-default.ini =================================================================== --- trunk/config/config-default.ini 2021-08-04 09:47:22 UTC (rev 10423) +++ trunk/config/config-default.ini 2021-08-04 10:45:01 UTC (rev 10424) @@ -65,20 +65,6 @@ DATABASE_OPTIMISE_FREQUENCY = 50 DATABASE_PERSISTENT = false -; let all revisions be stored -MAJOR_MIN_KEEP = 2147483647 -MINOR_MIN_KEEP = 2147483647 -; older fine-tuned settings for low-storage systems. -; just comment the two lines above to enable it. -MAJOR_MAX_AGE = 32 -MAJOR_KEEP = 8 -MINOR_MAX_AGE = 7 -MINOR_KEEP = 4 -AUTHOR_MAX_AGE = 365 -AUTHOR_KEEP = 8 -AUTHOR_MIN_AGE = 7 -AUTHOR_MAX_KEEP = 20 - COOKIE_EXPIRATION_DAYS = 365 COOKIE_DOMAIN = "/" Modified: trunk/config/config-dist.ini =================================================================== --- trunk/config/config-dist.ini 2021-08-04 09:47:22 UTC (rev 10423) +++ trunk/config/config-dist.ini 2021-08-04 10:45:01 UTC (rev 10424) @@ -168,7 +168,6 @@ ; Default: false ;READONLY = true - ;========================================================================== ; Part One: Authentication and security settings. ; @@ -543,29 +542,7 @@ ; revision with the content after the merged minor edit, the rest of ; the page metadata for the preceding version (summary, mtime, ...) ; is not changed. -; -; Let all revisions be stored. Default since 1.3.11 -;MAJOR_MIN_KEEP = 2147483647 -;MINOR_MIN_KEEP = 2147483647 -; Keep up to 8 major edits, but keep them no longer than a month. -MAJOR_MAX_AGE = 32 -MAJOR_KEEP = 8 - -; Keep up to 4 minor edits, but keep them no longer than a week. -MINOR_MAX_AGE = 7 -MINOR_KEEP = 4 - -; Keep the latest contributions of the last 8 authors up to a year. -; Additionally, (in the case of a particularly active page) try to -; keep the latest contributions of all authors in the last week (even -; if there are more than eight of them,) but in no case keep more -; than twenty unique author revisions. -AUTHOR_MAX_AGE = 365 -AUTHOR_KEEP = 8 -AUTHOR_MIN_AGE = 7 -AUTHOR_MAX_KEEP = 20 - ;======================================================================== ; Part Three: User Authentication ;======================================================================== Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-08-04 09:47:22 UTC (rev 10423) +++ trunk/configurator.php 2021-08-04 10:45:01 UTC (rev 10424) @@ -793,102 +793,6 @@ $properties["USECACHE"] = new boolean_define_commented_optional('USECACHE'); -/////////////////// - -$properties["Page Revisions"] = - new unchangeable_variable('_parttworevisions', "", " - -Section 2a: Archive Cleanup -The next section controls how many old revisions of each page are kept in the database. - -There are two basic classes of revisions: major and minor. Which -class a revision belongs in is determined by whether the author -checked the \"this is a minor revision\" checkbox when they saved the -page. - -There is, additionally, a third class of revisions: author -revisions. The most recent non-mergable revision from each distinct -author is and author revision. - -The expiry parameters for each of those three classes of revisions -can be adjusted separately. For each class there are five -parameters (usually, only two or three of the five are actually -set) which control how long those revisions are kept in the -database. -<dl> - <dt>max_keep:</dt> <dd>If set, this specifies an absolute maximum for the - number of archived revisions of that class. This is - meant to be used as a safety cap when a non-zero - min_age is specified. It should be set relatively high, - and it's purpose is to prevent malicious or accidental - database overflow due to someone causing an - unreasonable number of edits in a short period of time.</dd> - - <dt>min_age:</dt> <dd>Revisions younger than this (based upon the supplanted - date) will be kept unless max_keep is exceeded. The age - should be specified in days. It should be a - non-negative, real number,</dd> - - <dt>min_keep:</dt> <dd>At least this many revisions will be kept.</dd> - - <dt>keep:</dt> <dd>No more than this many revisions will be kept.</dd> - - <dt>max_age:</dt> <dd>No revision older than this age will be kept.</dd> -</dl> -Supplanted date: Revisions are timestamped at the instant that they -cease being the current revision. Revision age is computed using -this timestamp, not the edit time of the page. - -Merging: When a minor revision is deleted, if the preceding -revision is by the same author, the minor revision is merged with -the preceding revision before it is deleted. Essentially: this -replaces the content (and supplanted timestamp) of the previous -revision with the content after the merged minor edit, the rest of -the page metadata for the preceding version (summary, mtime, ...) -is not changed. -"); - -// For now the expiration parameters are statically inserted as -// an unchangeable property. You'll have to edit the resulting -// config file if you really want to change these from the default. - -$properties["Major Edits: keep minimum days"] = - new numeric_define('MAJOR_MIN_KEEP', MAJOR_MIN_KEEP, " -Default: Keep for unlimited time. -Set to 0 to enable archive cleanup"); -$properties["Minor Edits: keep minumum days"] = - new numeric_define('MINOR_MIN_KEEP', MINOR_MIN_KEEP, " -Default: Keep for unlimited time. -Set to 0 to enable archive cleanup"); - -$properties["Major Edits: how many"] = - new numeric_define('MAJOR_KEEP', MAJOR_KEEP, " -Keep up to 8 major edits"); -$properties["Major Edits: how many days"] = - new numeric_define('MAJOR_MAX_AGE', MAJOR_MAX_AGE, " -keep them no longer than a month"); - -$properties["Minor Edits: how many"] = - new numeric_define("MINOR_KEEP", MINOR_KEEP, " -Keep up to 4 minor edits"); -$properties["Minor Edits: how many days"] = - new numeric_define("MINOR_MAX_AGE", "7", " -keep them no longer than a week"); - -$properties["per Author: how many"] = - new numeric_define("AUTHOR_KEEP", "8", " -Keep the latest contributions of the last 8 authors,"); -$properties["per Author: how many days"] = - new numeric_define("AUTHOR_MAX_AGE", "365", " -up to a year."); -$properties["per Author: keep minumum days"] = - new numeric_define("AUTHOR_MIN_AGE", "7", " -Additionally, (in the case of a particularly active page) try to -keep the latest contributions of all authors in the last week (even if there are more than eight of them,)"); -$properties["per Author: max revisions"] = - new numeric_define("AUTHOR_MAX_KEEP", "20", " -but in no case keep more than twenty unique author revisions."); - ///////////////////////////////////////////////////////////////////// $properties["Part Three"] = This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-05 08:41:23
|
Revision: 10439 http://sourceforge.net/p/phpwiki/code/10439 Author: vargenau Date: 2021-08-05 08:41:20 +0000 (Thu, 05 Aug 2021) Log Message: ----------- PhpWikiDebug: remove convert-cached-html action Modified Paths: -------------- trunk/lib/plugin/WikiAdminUtils.php trunk/locale/zh/pgsrc/PhpWikiDebug trunk/pgsrc/PhpWikiDebug Modified: trunk/lib/plugin/WikiAdminUtils.php =================================================================== --- trunk/lib/plugin/WikiAdminUtils.php 2021-08-04 17:26:05 UTC (rev 10438) +++ trunk/lib/plugin/WikiAdminUtils.php 2021-08-05 08:41:20 UTC (rev 10439) @@ -29,7 +29,6 @@ * purge-bad-pagenames * purge-empty-pages * email-verification - * convert-cached-html * db-check * db-rebuild */ @@ -122,7 +121,6 @@ 'purge-bad-pagenames' => _("Purge all Pages With Invalid Names"), 'purge-empty-pages' => _("Purge all empty, unreferenced Pages"), 'email-verification' => _("E-mail address confirmation"), - 'convert-cached-html' => _("Convert cached_html"), 'db-check' => _("DB Check"), 'db-rebuild' => _("Db Rebuild") ); @@ -206,23 +204,6 @@ : '')); } - private function _do_convert_cached_html($request, $args) - { - - require_once 'lib/upgrade.php'; - $dbh = $request->_dbi; - _upgrade_db_init($dbh); - - $count = _upgrade_cached_html($dbh, false); - - if (!$count) - return _("No old _cached_html pagedata found."); - else { - return HTML(fmt("Converted successfully %d pages", $count), - HTML::div(array('class' => 'align-left'), $list)); - } - } - private function _do_db_check($request, $args) { longer_timeout(180); Modified: trunk/locale/zh/pgsrc/PhpWikiDebug =================================================================== --- trunk/locale/zh/pgsrc/PhpWikiDebug 2021-08-04 17:26:05 UTC (rev 10438) +++ trunk/locale/zh/pgsrc/PhpWikiDebug 2021-08-05 08:41:20 UTC (rev 10439) @@ -1,4 +1,4 @@ -Date: Thu, 24 Dec 2020 18:13:17 +0000 +Date: Thu, 5 Aug 2021 09:59:14 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiDebug; @@ -25,7 +25,7 @@ <<WikiAdminUtils action=purge-cache label="Purge Markup Cache" >> -=== 清理 WikiDB 裡的非法檔案名稱 Clean WikiDB of Illegal Filenames == +=== 清理 WikiDB 裡的非法檔案名稱 Clean Wiki Database of Illegal Filenames == 頁面名稱以子頁面分隔子(通常是 ##/## )開始的,是不被允許的. 有時候是錯誤 的 plugin 或某些事情而導致. @@ -41,14 +41,6 @@ <<WikiAdminUtils action=purge-empty-pages label="Purge all empty unreferenced pages" >> -== Convert cached_html to new SQL column == - -This is only needed on SQL or ADODB if you didn't do action=upgrade, but created the -new page.cached_html field separately, and now you want to move this data from -page.pagedata over to page.cached_html. - -<<WikiAdminUtils action=convert-cached-html label="Convert cached_html" >> - == Check Wiki Database == This button will check the Wiki page database for consistency. This can last several minutes. Modified: trunk/pgsrc/PhpWikiDebug =================================================================== --- trunk/pgsrc/PhpWikiDebug 2021-08-04 17:26:05 UTC (rev 10438) +++ trunk/pgsrc/PhpWikiDebug 2021-08-05 08:41:20 UTC (rev 10439) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:28 +0000 +Date: Thu, 5 Aug 2021 09:59:14 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiDebug; @@ -45,14 +45,6 @@ <<WikiAdminUtils action=purge-empty-pages label="Purge all empty unreferenced pages" >> -== Convert cached_html to new SQL column == - -This is only needed on SQL or ADODB if you didn't do action=upgrade, but created the -new page.cached_html field separately, and now you want to move this data from -page.pagedata over to page.cached_html. - -<<WikiAdminUtils action=convert-cached-html label="Convert cached_html" >> - == Check Wiki Database == This button will check the Wiki page database for consistency. This can last several minutes. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-06 08:20:54
|
Revision: 10447 http://sourceforge.net/p/phpwiki/code/10447 Author: vargenau Date: 2021-08-06 08:20:47 +0000 (Fri, 06 Aug 2021) Log Message: ----------- Remove DISABLE_HTTP_REDIRECT Modified Paths: -------------- trunk/config/config-default.ini trunk/config/config-dist.ini trunk/configurator.php trunk/lib/IniConfig.php trunk/lib/Request.php Modified: trunk/config/config-default.ini =================================================================== --- trunk/config/config-default.ini 2021-08-06 08:01:30 UTC (rev 10446) +++ trunk/config/config-default.ini 2021-08-06 08:20:47 UTC (rev 10447) @@ -147,7 +147,6 @@ ; TEMP_DIR = /tmp ; ALLOWED_LOAD = /tmp -DISABLE_HTTP_REDIRECT = false DISABLE_GETIMAGESIZE = true ; FORTUNE_DIR = /usr/share/fortune ; GOOGLE_LICENSE_KEY = "..." Modified: trunk/config/config-dist.ini =================================================================== --- trunk/config/config-dist.ini 2021-08-06 08:01:30 UTC (rev 10446) +++ trunk/config/config-dist.ini 2021-08-06 08:20:47 UTC (rev 10447) @@ -1126,19 +1126,6 @@ ; Page name of RecentChanges page. Used for RSS Auto-discovery ;RECENT_CHANGES = RecentChange -; Disable HTTP redirects. -; (You probably don't need to touch this.) -; -; PhpWiki uses HTTP redirects for some of its functionality. -; (e.g. after saving changes, PhpWiki redirects your browser to -; view the page you just saved.) -; Some web service providers (notably free European Lycos) don't seem to -; allow these redirects. (On Lycos the result in an "Internal Server Error" -; report.) In that case you can set DISABLE_HTTP_REDIRECT to true. -; (In which case, PhpWiki will revert to sneakier tricks to try to -; redirect the browser...) -;DISABLE_HTTP_REDIRECT = true - ; If you get a crash at loading LinkIcons you might want to disable ; the getimagesize() function, which crashes on certain php versions and ; and some external images (png's, ..). Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-08-06 08:01:30 UTC (rev 10446) +++ trunk/configurator.php 2021-08-06 08:20:47 UTC (rev 10447) @@ -1441,9 +1441,6 @@ new _define_optional('RECENT_CHANGES', "RecentChanges"); -$properties["Disable HTTP Redirects"] = - new boolean_define_commented_optional('DISABLE_HTTP_REDIRECT'); - $properties["Disable GETIMAGESIZE"] = new boolean_define_commented_optional('DISABLE_GETIMAGESIZE'); Modified: trunk/lib/IniConfig.php =================================================================== --- trunk/lib/IniConfig.php 2021-08-06 08:01:30 UTC (rev 10446) +++ trunk/lib/IniConfig.php 2021-08-06 08:20:47 UTC (rev 10447) @@ -200,7 +200,6 @@ 'AUTH_USER_FILE_STORABLE', 'ALLOW_HTTP_AUTH_LOGIN', 'ALLOW_USER_LOGIN', 'ALLOW_LDAP_LOGIN', 'ALLOW_IMAP_LOGIN', 'WARN_NONPUBLIC_INTERWIKIMAP', 'USE_PATH_INFO', - 'DISABLE_HTTP_REDIRECT', 'PLUGIN_CACHED_USECACHE', 'PLUGIN_CACHED_FORCE_SYNCMAP', 'BLOG_DEFAULT_EMPTY_PREFIX', 'DATABASE_PERSISTENT', 'FUSIONFORGE', Modified: trunk/lib/Request.php =================================================================== --- trunk/lib/Request.php 2021-08-06 08:01:30 UTC (rev 10446) +++ trunk/lib/Request.php 2021-08-06 08:20:47 UTC (rev 10447) @@ -169,36 +169,32 @@ } /* Redirects after edit may fail if no theme signature image is defined. - * Set DISABLE_HTTP_REDIRECT = true then. */ function redirect($url, $noreturn = true) { - $bogus = defined('DISABLE_HTTP_REDIRECT') && DISABLE_HTTP_REDIRECT; - if (!$bogus) { - header("Location: $url"); - /* - * "302 Found" is not really meant to be sent in response - * to a POST. Worse still, according to (both HTTP 1.0 - * and 1.1) spec, the user, if it is sent, the user agent - * is supposed to use the same method to fetch the - * redirected URI as the original. - * - * That means if we redirect from a POST, the user-agent - * supposed to generate another POST. Not what we want. - * (We do this after a page save after all.) - * - * Fortunately, most/all browsers don't do that. - * - * "303 See Other" is what we really want. But it only - * exists in HTTP/1.1 - * - * FIXME: this is still not spec compliant for HTTP - * version < 1.1. - */ - $status = $this->httpVersion() >= 1.1 ? 303 : 302; - $this->setStatus($status); - } + header("Location: $url"); + /* + * "302 Found" is not really meant to be sent in response + * to a POST. Worse still, according to (both HTTP 1.0 + * and 1.1) spec, the user, if it is sent, the user agent + * is supposed to use the same method to fetch the + * redirected URI as the original. + * + * That means if we redirect from a POST, the user-agent + * supposed to generate another POST. Not what we want. + * (We do this after a page save after all.) + * + * Fortunately, most/all browsers don't do that. + * + * "303 See Other" is what we really want. But it only + * exists in HTTP/1.1 + * + * FIXME: this is still not spec compliant for HTTP + * version < 1.1. + */ + $status = $this->httpVersion() >= 1.1 ? 303 : 302; + $this->setStatus($status); if ($noreturn) { $this->discardOutput(); // This might print the gzip headers. Not good. @@ -208,20 +204,6 @@ $tmpl = new Template('redirect', $this, array('REDIRECT_URL' => $url)); $tmpl->printXML(); $this->finish(); - } elseif ($bogus) { - // Safari needs window.location.href = targeturl - return JavaScript(" - function redirect(url) { - if (typeof location.replace == 'function') - location.replace(url); - else if (typeof location.assign == 'function') - location.assign(url); - else if (self.location.href) - self.location.href = url; - else - window.location = url; - } - redirect('" . addslashes($url) . "')"); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-06 14:36:37
|
Revision: 10452 http://sourceforge.net/p/phpwiki/code/10452 Author: vargenau Date: 2021-08-06 14:36:35 +0000 (Fri, 06 Aug 2021) Log Message: ----------- Use default label for WikiAdminUtils; convert-cached-html no longer exists Modified Paths: -------------- trunk/locale/de/pgsrc/PhpWikiSystemverwalten trunk/locale/fr/pgsrc/AdministrationDePhpWiki trunk/locale/fr/pgsrc/D%C3%A9bogageDePhpWiki trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki trunk/locale/nl/pgsrc/PhpWikiBeheer trunk/locale/sv/pgsrc/PhpWikiAdministration trunk/locale/zh/pgsrc/PhpWikiAdministration trunk/locale/zh/pgsrc/PhpWikiDebug trunk/pgsrc/Help%2FWikiAdminUtilsPlugin trunk/pgsrc/PhpWikiAdministration trunk/pgsrc/PhpWikiDebug Modified: trunk/locale/de/pgsrc/PhpWikiSystemverwalten =================================================================== --- trunk/locale/de/pgsrc/PhpWikiSystemverwalten 2021-08-06 10:56:27 UTC (rev 10451) +++ trunk/locale/de/pgsrc/PhpWikiSystemverwalten 2021-08-06 14:36:35 UTC (rev 10452) @@ -1,4 +1,4 @@ -Date: Sat, 26 Dec 2020 12:40:06 +0000 +Date: Fri, 6 Aug 2021 16:19:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiSystemverwalten; @@ -42,7 +42,7 @@ Dieser Link zeigt eine Liste aller mit E-Mail registrierten Benutzer, und Checkboxes um die Verifizierung manuell zu ändern. -<<WikiAdminUtils action=email-verification label="E-Mail Verifizierung">> +<<WikiAdminUtils action=email-verification>> == Aufräumen == Modified: trunk/locale/fr/pgsrc/AdministrationDePhpWiki =================================================================== --- trunk/locale/fr/pgsrc/AdministrationDePhpWiki 2021-08-06 10:56:27 UTC (rev 10451) +++ trunk/locale/fr/pgsrc/AdministrationDePhpWiki 2021-08-06 14:36:35 UTC (rev 10452) @@ -1,4 +1,4 @@ -Date: Sat, 26 Dec 2020 13:01:53 +0000 +Date: Fri, 6 Aug 2021 16:19:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=AdministrationDePhpWiki; @@ -41,7 +41,7 @@ Ce bouton affichera la liste de tous les utilisateurs qui ont une adresse reconnue et les boutons pour effectuer une vérification manuelle. -<<WikiAdminUtils action=email-verification label="Vérification du courriel">> +<<WikiAdminUtils action=email-verification">> == Nettoyage == Modified: trunk/locale/fr/pgsrc/D%C3%A9bogageDePhpWiki =================================================================== --- trunk/locale/fr/pgsrc/D%C3%A9bogageDePhpWiki 2021-08-06 10:56:27 UTC (rev 10451) +++ trunk/locale/fr/pgsrc/D%C3%A9bogageDePhpWiki 2021-08-06 14:36:35 UTC (rev 10452) @@ -1,4 +1,4 @@ -Date: Thu, 26 Mar 2020 12:45:53 +0000 +Date: Fri, 6 Aug 2021 16:19:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=D%C3%A9bogageDePhpWiki; @@ -26,7 +26,7 @@ cache. (Le contenu de chaque page sera transformé et remis en cache la prochaine fois que quelqu'un la verra.) -<<WikiAdminUtils action=purge-cache label="Purge du cache" >> +<<WikiAdminUtils action=purge-cache>> === Suppression des pages au nom illégal dans la base de données du wiki === @@ -36,7 +36,7 @@ Ce bouton effacera toutes les pages dont le nom est illégal, sans possibilité de récupération. -<<WikiAdminUtils action=purge-bad-pagenames label="Nettoyage des pages mal nommées" >> +<<WikiAdminUtils action=purge-bad-pagenames>> === Suppression des pages vides et non référencées === @@ -43,21 +43,13 @@ **Attention !** en appuyant sur ce bouton toutes les pages vides et non référencées seront supprimées sans aucune possiblité de les restaurer. Ceci supprimera toute possibilité de retrouver les pages ainsi supprimées. -<<WikiAdminUtils action=purge-empty-pages label="Purger les pages vides et non référencées" >> +<<WikiAdminUtils action=purge-empty-pages>> -== Conversion de cached_html vers une nouvelle colonne SQL == - -Ceci n'est nécessaire pour SQL ou ADODB que si vous n'avez pas fait action=upgrade, mais avez créé -le champ cached_html de la nouvelle page séparément, et que vous voulez maintenant -déplacer page.pagedata vers page.cached_html. - -<<WikiAdminUtils action=convert-cached-html label="Convertir cached_html" >> - == Vérification de la base de données du wiki == Ce bouton vérifie la cohérence de la base de données des pages du wiki. Cela peut prendre plusieurs minutes. -<<WikiAdminUtils action=db-check label="Vérifier de la base de données du wiki" >> +<<WikiAdminUtils action=db-check>> == Reconstruction de la base de données du wiki == @@ -64,7 +56,7 @@ Ceci va retransformer toutes les pages et reconstruire la base de données du wiki en cas d'incohérences ou de mise à jour de l'analyseur syntaxique. Ceci peut durer plusieurs minutes, utiliser beaucoup de mémoire et éventuellement échouer ! -<<WikiAdminUtils action=db-rebuild label="Reconstruire de la base de données du wiki" >> +<<WikiAdminUtils action=db-rebuild>> ---- [[CatégoriePageDAction]] Modified: trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki =================================================================== --- trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki 2021-08-06 10:56:27 UTC (rev 10451) +++ trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki 2021-08-06 14:36:35 UTC (rev 10452) @@ -1,4 +1,4 @@ -Date: Tue, 9 Apr 2019 17:57:35 +0000 +Date: Fri, 6 Aug 2021 16:19:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=AmministrazioneDiPhpWiki; @@ -41,7 +41,7 @@ This button will show a list of all users with registered emails and buttons to set the verification status manually. -<<WikiAdminUtils action=email-verification label="Email Verification">> +<<WikiAdminUtils action=email-verification>> == Cleanup == Modified: trunk/locale/nl/pgsrc/PhpWikiBeheer =================================================================== --- trunk/locale/nl/pgsrc/PhpWikiBeheer 2021-08-06 10:56:27 UTC (rev 10451) +++ trunk/locale/nl/pgsrc/PhpWikiBeheer 2021-08-06 14:36:35 UTC (rev 10452) @@ -1,4 +1,4 @@ -Date: Thu, 24 Dec 2020 17:40:03 +0000 +Date: Fri, 6 Aug 2021 16:19:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiBeheer; @@ -41,7 +41,7 @@ This button will show a list of all users with registered emails and buttons to set the verification status manually. -<<WikiAdminUtils action=email-verification label="Email Verification">> +<<WikiAdminUtils action=email-verification>> == Cleanup == Modified: trunk/locale/sv/pgsrc/PhpWikiAdministration =================================================================== --- trunk/locale/sv/pgsrc/PhpWikiAdministration 2021-08-06 10:56:27 UTC (rev 10451) +++ trunk/locale/sv/pgsrc/PhpWikiAdministration 2021-08-06 14:36:35 UTC (rev 10452) @@ -1,4 +1,4 @@ -Date: Fri, 22 Dec 2020 10:36:59 +0000 +Date: Fri, 6 Aug 2021 16:19:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiAdministration; @@ -41,7 +41,7 @@ This button will show a list of all users with registered emails and buttons to set the verification status manually. -<<WikiAdminUtils action=email-verification label="Email Verification">> +<<WikiAdminUtils action=email-verification>> == Cleanup == Modified: trunk/locale/zh/pgsrc/PhpWikiAdministration =================================================================== --- trunk/locale/zh/pgsrc/PhpWikiAdministration 2021-08-06 10:56:27 UTC (rev 10451) +++ trunk/locale/zh/pgsrc/PhpWikiAdministration 2021-08-06 14:36:35 UTC (rev 10452) @@ -1,4 +1,4 @@ -Date: Thu, 24 Dec 2020 18:13:17 +0000 +Date: Fri, 6 Aug 2021 16:19:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiAdministration; @@ -41,7 +41,7 @@ This button will show a list of all users with registered emails and buttons to set the verification status manually. -<<WikiAdminUtils action=email-verification label="Email Verification">> +<<WikiAdminUtils action=email-verification>> == Cleanup == Modified: trunk/locale/zh/pgsrc/PhpWikiDebug =================================================================== --- trunk/locale/zh/pgsrc/PhpWikiDebug 2021-08-06 10:56:27 UTC (rev 10451) +++ trunk/locale/zh/pgsrc/PhpWikiDebug 2021-08-06 14:36:35 UTC (rev 10452) @@ -1,4 +1,4 @@ -Date: Thu, 5 Aug 2021 09:59:14 +0000 +Date: Fri, 6 Aug 2021 16:19:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiDebug; @@ -23,7 +23,7 @@ 點擊這個按鈕將會清除所有快取的轉換內容. (每個頁面內容在下次有人想看這些頁面時 進行轉換並重新放到快取裡面去.) -<<WikiAdminUtils action=purge-cache label="Purge Markup Cache" >> +<<WikiAdminUtils action=purge-cache>> === 清理 WikiDB 裡的非法檔案名稱 Clean Wiki Database of Illegal Filenames == @@ -32,7 +32,7 @@ 這個按鈕將會刪除任何有非法頁面名稱的頁面. -<<WikiAdminUtils action=purge-bad-pagenames label="Purge bad pagenames" >> +<<WikiAdminUtils action=purge-bad-pagenames>> == Clean Wiki Database of empty and unreferenced pages == @@ -39,13 +39,13 @@ **Warning!** This button will delete every empty and unreferenced page, without any possibility to restore them again. This will disable the possibility to revert or get back any deleted page. -<<WikiAdminUtils action=purge-empty-pages label="Purge all empty unreferenced pages" >> +<<WikiAdminUtils action=purge-empty-pages>> == Check Wiki Database == This button will check the Wiki page database for consistency. This can last several minutes. -<<WikiAdminUtils action=db-check label="Check Wiki Database" >> +<<WikiAdminUtils action=db-check>> == Rebuild Wiki Database == @@ -52,7 +52,7 @@ This will retransform all pages and rebuild the Wiki database on consistency errors or parser updates. This can last several minutes, eat a lot of memory and possibly times out!! -<<WikiAdminUtils action=db-rebuild label="Rebuild Wiki Database" >> +<<WikiAdminUtils action=db-rebuild>> ---- [[CategoryActionPage]] Modified: trunk/pgsrc/Help%2FWikiAdminUtilsPlugin =================================================================== --- trunk/pgsrc/Help%2FWikiAdminUtilsPlugin 2021-08-06 10:56:27 UTC (rev 10451) +++ trunk/pgsrc/Help%2FWikiAdminUtilsPlugin 2021-08-06 14:36:35 UTC (rev 10452) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:28 +0000 +Date: Fri, 6 Aug 2021 16:19:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=Help%2FWikiAdminUtilsPlugin; @@ -10,13 +10,12 @@ == Usage == {{{ -<<WikiAdminUtils action="purge-cache" >> -<<WikiAdminUtils action="purge-bad-pagenames" >> -<<WikiAdminUtils action="purge-empty-pages" >> -<<WikiAdminUtils action="email-verification" >> -<<WikiAdminUtils action="convert-cached-html" >> -<<WikiAdminUtils action="db-check" >> -<<WikiAdminUtils action="db-rebuild" >> +<<WikiAdminUtils action="purge-cache">> +<<WikiAdminUtils action="purge-bad-pagenames">> +<<WikiAdminUtils action="purge-empty-pages">> +<<WikiAdminUtils action="email-verification">> +<<WikiAdminUtils action="db-check">> +<<WikiAdminUtils action="db-rebuild">> }}} == Arguments == @@ -28,7 +27,7 @@ ! Default value |- | **action** -| Valid action are: "purge-cache", "purge-bad-pagenames", "purge-empty-pages", "email-verification", "convert-cached-html", "db-check" and "db-rebuild" +| Valid action are: "purge-cache", "purge-bad-pagenames", "purge-empty-pages", "email-verification", "db-check" and "db-rebuild" | //None// |- | **label** @@ -39,10 +38,10 @@ == Example == {{{ -<<WikiAdminUtils action="purge-cache" >> +<<WikiAdminUtils action="purge-cache">> }}} -<<WikiAdminUtils action="purge-cache" >> +<<WikiAdminUtils action="purge-cache">> == Authors == * [[Help:Jeff Dairiki|Jeff Dairiki]] Modified: trunk/pgsrc/PhpWikiAdministration =================================================================== --- trunk/pgsrc/PhpWikiAdministration 2021-08-06 10:56:27 UTC (rev 10451) +++ trunk/pgsrc/PhpWikiAdministration 2021-08-06 14:36:35 UTC (rev 10452) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:28 +0000 +Date: Fri, 6 Aug 2021 16:19:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiAdministration; @@ -34,14 +34,14 @@ <?plugin-form PasswordReset textinput=user method=post ?> -=== Email Verification === +=== E-mail Verification === This is currently non-strict, leaving some possible holes in not being able to connect to certain mail hosts, which can be overridden below. -This button will show a list of all users with registered emails and buttons to set the verification status manually. +This button will show a list of all users with registered e-mails and buttons to set the verification status manually. -<<WikiAdminUtils action=email-verification label="Email Verification">> +<<WikiAdminUtils action=email-verification>> == Cleanup == Modified: trunk/pgsrc/PhpWikiDebug =================================================================== --- trunk/pgsrc/PhpWikiDebug 2021-08-06 10:56:27 UTC (rev 10451) +++ trunk/pgsrc/PhpWikiDebug 2021-08-06 14:36:35 UTC (rev 10452) @@ -1,4 +1,4 @@ -Date: Thu, 5 Aug 2021 09:59:14 +0000 +Date: Fri, 6 Aug 2021 16:19:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiDebug; @@ -26,7 +26,7 @@ content. (Each pages content will be transformed and re-cached next time someone views it.) -<<WikiAdminUtils action=purge-cache label="Purge Markup Cache" >> +<<WikiAdminUtils action=purge-cache>> == Clean Wiki Database of Illegal Filenames == @@ -36,7 +36,7 @@ This button will delete any pages with illegal page names, without possibility to restore. -<<WikiAdminUtils action=purge-bad-pagenames label="Purge bad pagenames" >> +<<WikiAdminUtils action=purge-bad-pagenames>> == Clean Wiki Database of empty and unreferenced pages == @@ -43,13 +43,13 @@ **Warning!** This button will delete every empty and unreferenced page, without any possibility to restore them again. This will disable the possibility to revert or get back any deleted page. -<<WikiAdminUtils action=purge-empty-pages label="Purge all empty unreferenced pages" >> +<<WikiAdminUtils action=purge-empty-pages>> == Check Wiki Database == This button will check the Wiki page database for consistency. This can last several minutes. -<<WikiAdminUtils action=db-check label="Check Wiki Database" >> +<<WikiAdminUtils action=db-check>> == Rebuild Wiki Database == @@ -56,7 +56,7 @@ This will retransform all pages and rebuild the Wiki database on consistency errors or parser updates. This can last several minutes, eat a lot of memory and possibly times out!! -<<WikiAdminUtils action=db-rebuild label="Rebuild Wiki Database" >> +<<WikiAdminUtils action=db-rebuild>> ---- [[CategoryActionPage]] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-10 08:47:35
|
Revision: 10472 http://sourceforge.net/p/phpwiki/code/10472 Author: vargenau Date: 2021-08-10 08:47:28 +0000 (Tue, 10 Aug 2021) Log Message: ----------- pgsrc/Help%2FGoogleMapsPlugin: remove example, GOOGLE_LICENSE_KEY might not be set Modified Paths: -------------- trunk/INSTALL trunk/pgsrc/Help%2FGoogleMapsPlugin Modified: trunk/INSTALL =================================================================== --- trunk/INSTALL 2021-08-09 16:51:06 UTC (rev 10471) +++ trunk/INSTALL 2021-08-10 08:47:28 UTC (rev 10472) @@ -34,8 +34,13 @@ GraphViz plugin requires GraphViz to be installed. You might need to do: yum install graphviz or -yum install graphviz +apt install graphviz +GooglePlugin plugin requires PHP SoapClient class. You might need to do: +yum install php-soap +or +apt install php-soap + QUICK START INSTRUCTIONS Copy 'config/config-dist.ini' to 'config/config.ini' and edit the Modified: trunk/pgsrc/Help%2FGoogleMapsPlugin =================================================================== --- trunk/pgsrc/Help%2FGoogleMapsPlugin 2021-08-09 16:51:06 UTC (rev 10471) +++ trunk/pgsrc/Help%2FGoogleMapsPlugin 2021-08-10 08:47:28 UTC (rev 10472) @@ -1,4 +1,4 @@ -Date: Thu, 13 Oct 2016 15:09:28 +0000 +Date: Tue, 10 Aug 2021 10:45:37 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=Help%2FGoogleMapsPlugin; @@ -80,16 +80,6 @@ >> }}} -<<GoogleMaps - Latitude=53.053 - Longitude=7.803 - ZoomFactor=10 - Marker=true - MapType=Hybrid - width=500px - height=400px ->> - == Author == * [[Help:Reini Urban|Reini Urban]] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-10 16:29:12
|
Revision: 10480 http://sourceforge.net/p/phpwiki/code/10480 Author: vargenau Date: 2021-08-10 16:29:05 +0000 (Tue, 10 Aug 2021) Log Message: ----------- Upgrade no longer changes the database schema Modified Paths: -------------- trunk/locale/de/pgsrc/PhpWikiSystemverwalten trunk/locale/fr/pgsrc/AdministrationDePhpWiki trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki trunk/locale/nl/pgsrc/PhpWikiBeheer trunk/locale/sv/pgsrc/PhpWikiAdministration trunk/locale/zh/pgsrc/PhpWikiAdministration trunk/pgsrc/PhpWikiAdministration trunk/themes/fusionforge/pgsrc/PhpWikiAdministration Modified: trunk/locale/de/pgsrc/PhpWikiSystemverwalten =================================================================== --- trunk/locale/de/pgsrc/PhpWikiSystemverwalten 2021-08-10 16:04:18 UTC (rev 10479) +++ trunk/locale/de/pgsrc/PhpWikiSystemverwalten 2021-08-10 16:29:05 UTC (rev 10480) @@ -1,4 +1,4 @@ -Date: Fri, 6 Aug 2021 16:19:21 +0000 +Date: Tue, 10 Aug 2021 18:24:57 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiSystemverwalten; @@ -103,8 +103,7 @@ Führe einige Systemchecks aus und bringe geänderte Seiten auf den letzten Stand, nachdem Sie die PhpWiki Version auf den letzten Stand gebracht haben: -* Upgrade neue oder geänderte Seiten von pgsrc, -* Upgrade das Datenbank Schema (mysql //page.id auto_increment//, ADD //session.sess_ip//), +* Upgrade neue oder geänderte Seiten von pgsrc You can force overwrite or not: * **[[phpwiki:HomePage?action=upgrade|Upgrade]]** Modified: trunk/locale/fr/pgsrc/AdministrationDePhpWiki =================================================================== --- trunk/locale/fr/pgsrc/AdministrationDePhpWiki 2021-08-10 16:04:18 UTC (rev 10479) +++ trunk/locale/fr/pgsrc/AdministrationDePhpWiki 2021-08-10 16:29:05 UTC (rev 10480) @@ -1,4 +1,4 @@ -Date: Fri, 6 Aug 2021 16:19:21 +0000 +Date: Tue, 10 Aug 2021 18:24:57 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=AdministrationDePhpWiki; @@ -100,9 +100,8 @@ === Mise à jour === Fait quelques vérifications et mises à jours automatiquement après avoir installé -un nouveau moteur phpwiki de mise à jour -* Met à jour les nouvelles pages ou les pages révisées depuis pgsrc, -* Met à jour la base de données (mysql //page.id auto_increment//, ADD //session.sess_ip//), +un nouveau moteur phpwiki : +* Met à jour les nouvelles pages ou les pages révisées depuis pgsrc Vous pouvez forcer le remplacement ou non : * **[[phpwiki:HomePage?action=upgrade|Mettre à jour]]** Modified: trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki =================================================================== --- trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki 2021-08-10 16:04:18 UTC (rev 10479) +++ trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki 2021-08-10 16:29:05 UTC (rev 10480) @@ -1,4 +1,4 @@ -Date: Fri, 6 Aug 2021 17:30:51 +0000 +Date: Tue, 10 Aug 2021 18:24:57 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=AmministrazioneDiPhpWiki; @@ -101,8 +101,7 @@ Do some verification checks and upgrade changes automatically, after having installed a new phpwiki engine update: -* Upgrade new or changed page revisions from pgsrc, -* Upgrade the database schema (mysql //page.id auto_increment//, ADD //session.sess_ip//), +* Upgrade new or changed page revisions from pgsrc You can force overwrite or not: * **[[phpwiki:HomePage?action=upgrade|Upgrade]]** Modified: trunk/locale/nl/pgsrc/PhpWikiBeheer =================================================================== --- trunk/locale/nl/pgsrc/PhpWikiBeheer 2021-08-10 16:04:18 UTC (rev 10479) +++ trunk/locale/nl/pgsrc/PhpWikiBeheer 2021-08-10 16:29:05 UTC (rev 10480) @@ -1,4 +1,4 @@ -Date: Fri, 6 Aug 2021 16:19:21 +0000 +Date: Tue, 10 Aug 2021 18:24:57 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiBeheer; @@ -101,8 +101,7 @@ Do some verification checks and upgrade changes automatically, after having installed a new phpwiki engine update: -* Upgrade new or changed page revisions from pgsrc, -* Upgrade the database schema (mysql //page.id auto_increment//, ADD //session.sess_ip//), +* Upgrade new or changed page revisions from pgsrc You can force overwrite or not: * **[[phpwiki:HomePage?action=upgrade|Upgrade]]** Modified: trunk/locale/sv/pgsrc/PhpWikiAdministration =================================================================== --- trunk/locale/sv/pgsrc/PhpWikiAdministration 2021-08-10 16:04:18 UTC (rev 10479) +++ trunk/locale/sv/pgsrc/PhpWikiAdministration 2021-08-10 16:29:05 UTC (rev 10480) @@ -1,4 +1,4 @@ -Date: Fri, 6 Aug 2021 17:30:51 +0000 +Date: Tue, 10 Aug 2021 18:24:57 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiAdministration; @@ -100,8 +100,7 @@ Do some verification checks and upgrade changes automatically, after having installed a new phpwiki engine update: -* Upgrade new or changed page revisions from pgsrc, -* Upgrade the database schema (mysql //page.id auto_increment//, ADD //session.sess_ip//), +* Upgrade new or changed page revisions from pgsrc You can force overwrite or not: * **[[phpwiki:HomePage?action=upgrade|Upgrade]]** Modified: trunk/locale/zh/pgsrc/PhpWikiAdministration =================================================================== --- trunk/locale/zh/pgsrc/PhpWikiAdministration 2021-08-10 16:04:18 UTC (rev 10479) +++ trunk/locale/zh/pgsrc/PhpWikiAdministration 2021-08-10 16:29:05 UTC (rev 10480) @@ -1,4 +1,4 @@ -Date: Fri, 6 Aug 2021 17:30:51 +0000 +Date: Tue, 10 Aug 2021 18:24:57 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiAdministration; @@ -96,8 +96,7 @@ Do some verification checks and upgrade changes automatically, after having installed a new phpwiki engine update: -* Upgrade new or changed page revisions from pgsrc, -* Upgrade the database schema (mysql //page.id auto_increment//, ADD //session.sess_ip//), +* Upgrade new or changed page revisions from pgsrc You can force overwrite or not: * **[[phpwiki:HomePage?action=upgrade|Upgrade]]** Modified: trunk/pgsrc/PhpWikiAdministration =================================================================== --- trunk/pgsrc/PhpWikiAdministration 2021-08-10 16:04:18 UTC (rev 10479) +++ trunk/pgsrc/PhpWikiAdministration 2021-08-10 16:29:05 UTC (rev 10480) @@ -1,4 +1,4 @@ -Date: Fri, 6 Aug 2021 16:19:21 +0000 +Date: Mon, 9 Aug 2021 18:24:57 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiAdministration; @@ -101,8 +101,7 @@ Do some verification checks and upgrade changes automatically, after having installed a new phpwiki engine update: -* Upgrade new or changed page revisions from pgsrc, -* Upgrade the database schema (mysql //page.id auto_increment//, ADD //session.sess_ip//), +* Upgrade new or changed page revisions from pgsrc You can force overwrite or not: * **[[phpwiki:HomePage?action=upgrade|Upgrade]]** Modified: trunk/themes/fusionforge/pgsrc/PhpWikiAdministration =================================================================== --- trunk/themes/fusionforge/pgsrc/PhpWikiAdministration 2021-08-10 16:04:18 UTC (rev 10479) +++ trunk/themes/fusionforge/pgsrc/PhpWikiAdministration 2021-08-10 16:29:05 UTC (rev 10480) @@ -1,4 +1,4 @@ -Date: Wed, 4 Aug 2021 09:27:34 +0000 +Date: Tue, 10 Aug 2021 18:24:57 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=PhpWikiAdministration; @@ -86,8 +86,7 @@ Do some verification checks and upgrade changes automatically, after having installed a new phpwiki engine update: -* Upgrade new or changed page revisions from pgsrc, -* Upgrade the database schema (mysql //page.id auto_increment//, ADD //session.sess_ip//), +* Upgrade new or changed page revisions from pgsrc You can force overwrite or not: * **[[phpwiki:HomePage?action=upgrade|Upgrade]]** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-11 08:05:50
|
Revision: 10481 http://sourceforge.net/p/phpwiki/code/10481 Author: vargenau Date: 2021-08-11 08:05:47 +0000 (Wed, 11 Aug 2021) Log Message: ----------- We keep all revisions: remove ArchiveCleaner and $ExpireParams Modified Paths: -------------- trunk/lib/IniConfig.php trunk/lib/WikiDB.php trunk/lib/editpage.php trunk/lib/plugin/SystemInfo.php trunk/locale/Makefile trunk/locale/it/pgsrc/NoteDiRilascio trunk/pgsrc/ReleaseNotes Removed Paths: ------------- trunk/lib/ArchiveCleaner.php Deleted: trunk/lib/ArchiveCleaner.php =================================================================== --- trunk/lib/ArchiveCleaner.php 2021-08-10 16:29:05 UTC (rev 10480) +++ trunk/lib/ArchiveCleaner.php 2021-08-11 08:05:47 UTC (rev 10481) @@ -1,185 +0,0 @@ -<?php -/** - * Copyright © 2002 Geoffrey T. Dairiki <da...@da...> - * - * This file is part of PhpWiki. - * - * PhpWiki is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpWiki is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with PhpWiki; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - */ - -class ArchiveCleaner -{ - function __construct($expire_params) - { - $this->expire_params = $expire_params; - } - - /** - * @param WikiDB_PageRevision $revision - * @return bool - */ - private function isMergeable($revision) - { - if (!$revision->get('is_minor_edit')) - return false; - - $page = $revision->getPage(); - $author_id = $revision->get('author_id'); - - $previous = $page->getRevisionBefore($revision, false); - - return !empty($author_id) - && $author_id == $previous->get('author_id'); - } - - /** - * @param WikiDB_Page $page - */ - public function cleanPageRevisions($page) - { - $INFINITY = 0x7fffffff; - - $expire = &$this->expire_params; - $counter = array(); - $counter['major'] = new ArchiveCleaner_Counter($expire['major']); - $counter['minor'] = new ArchiveCleaner_Counter($expire['minor']); - $counter['author'] = new ArchiveCleaner_Counter($expire['author']); - // shortcut to keep all - if (($counter['minor']->min_keep == $INFINITY) - and ($counter['major']->min_keep == $INFINITY) - ) - return; - - $authors_seen = array(); - - $current = $page->getCurrentRevision(false); - - for ($revision = $page->getRevisionBefore($current, false); - $revision->getVersion() > 0; - $revision = $page->getRevisionBefore($revision, false)) { - - if ($revision->get('is_minor_edit')) - $keep = $counter['minor']->keep($revision); - else - $keep = $counter['major']->keep($revision); - - if ($this->isMergeable($revision)) { - if (!$keep) { - $page->mergeRevision($revision); - } - } else { - $author_id = $revision->get('author_id'); - if (empty($authors_seen[$author_id])) { - if ($counter['author']->keep($revision)) - $keep = true; - $authors_seen[$author_id] = true; - } - if (!$keep) { - $page->deleteRevision($revision); - } - } - } - } -} - -/** - * @access private - */ -class ArchiveCleaner_Counter -{ - function __construct($params) - { - - if (!empty($params)) - extract($params); - $INFINITY = 0x7fffffff; - - $this->max_keep = isset($max_keep) ? $max_keep : $INFINITY; - - $this->min_age = isset($min_age) ? $min_age : 0; - $this->min_keep = isset($min_keep) ? $min_keep : 0; - - $this->max_age = isset($max_age) ? $max_age : $INFINITY; - $this->keep = isset($keep) ? $keep : $INFINITY; - - if ($this->keep > $this->max_keep) - $this->keep = $this->max_keep; - if ($this->min_keep == $INFINITY) { // shortcut to keep all - $this->max_keep = $this->keep = $this->min_age = $this->max_age = $INFINITY; - } - if ($this->min_keep > $this->keep) - $this->min_keep = $this->keep; - - if ($this->min_age > $this->max_age) - $this->min_age = $this->max_age; - - $this->now = time(); - $this->count = 0; - $this->previous_supplanted = false; - - } - - /** - * @param WikiDB_PageRevision $revision - * @return float|int - */ - private function computeAge($revision) - { - $supplanted = $revision->get('_supplanted'); - - if (!$supplanted) { - // Every revision but the most recent should have a supplanted time. - // However, if it doesn't... - trigger_error(sprintf("Warning: Page “%s”, version '%d' has no '_supplanted' timestamp", - $revision->getPageName(), - $revision->getVersion()), - E_USER_NOTICE); - // Assuming revisions are chronologically ordered, the previous - // supplanted time is a good value to use... - if ($this->previous_supplanted > 0) - $supplanted = $this->previous_supplanted; - else { - // no supplanted timestamp. - // don't delete this revision based on age. - return 0; - } - } - - $this->previous_supplanted = $supplanted; - return ($this->now - $supplanted) / (24 * 3600); - } - - /** - * @param WikiDB_PageRevision $revision - * @return bool - */ - function keep($revision) - { - $INFINITY = 0x7fffffff; - if ($this->min_keep == $INFINITY) - return true; - $count = ++$this->count; - $age = $this->computeAge($revision); - - if ($count > $this->max_keep) - return false; - if ($age <= $this->min_age || $count <= $this->min_keep) - return true; - return $age <= $this->max_age && $count <= $this->keep; - } -} Modified: trunk/lib/IniConfig.php =================================================================== --- trunk/lib/IniConfig.php 2021-08-10 16:29:05 UTC (rev 10480) +++ trunk/lib/IniConfig.php 2021-08-11 08:05:47 UTC (rev 10481) @@ -343,27 +343,6 @@ unset($item); unset($k); - // Expiry stuff - global $ExpireParams; - foreach (array('major', 'minor', 'author') as $major) { - foreach (array('max_age', 'min_age', 'min_keep', 'keep', 'max_keep') as $max) { - $item = strtoupper($major) . '_' . strtoupper($max); - if (defined($item)) - $val = constant($item); - elseif (array_key_exists($item, $rs)) - $val = $rs[$item]; - elseif (array_key_exists($item, $rsdef)) - $val = $rsdef[$item]; - if (!isset($ExpireParams[$major])) - $ExpireParams[$major] = array(); - $ExpireParams[$major][$max] = $val; - unset($rs[$item]); - } - } - unset($item); - unset($major); - unset($max); - // User authentication if (!isset($GLOBALS['USER_AUTH_ORDER'])) { if (isset($rs['USER_AUTH_ORDER'])) Modified: trunk/lib/WikiDB.php =================================================================== --- trunk/lib/WikiDB.php 2021-08-10 16:29:05 UTC (rev 10480) +++ trunk/lib/WikiDB.php 2021-08-11 08:05:47 UTC (rev 10481) @@ -2310,9 +2310,6 @@ $readdata = false; if (USECACHE) { //temporary - for debugging assert(is_string($pagename) && $pagename != ''); - // There is a bug here somewhere which results in an assertion failure at line 105 - // of ArchiveCleaner.php It goes away if we use the next line. - //$need_content = true; $nc = $need_content ? '1' : '0'; $cache = &$this->_versiondata_cache; if (!isset($cache[$pagename][$version][$nc]) Modified: trunk/lib/editpage.php =================================================================== --- trunk/lib/editpage.php 2021-08-10 16:29:05 UTC (rev 10480) +++ trunk/lib/editpage.php 2021-08-11 08:05:47 UTC (rev 10481) @@ -356,11 +356,6 @@ // New contents successfully saved... $this->updateLock(); - // Clean out archived versions of this page. - require_once 'lib/ArchiveCleaner.php'; - $cleaner = new ArchiveCleaner($GLOBALS['ExpireParams']); - $cleaner->cleanPageRevisions($page); - /* generate notification emails done in WikiDB::save to catch all direct calls (admin plugins) */ Modified: trunk/lib/plugin/SystemInfo.php =================================================================== --- trunk/lib/plugin/SystemInfo.php 2021-08-10 16:29:05 UTC (rev 10480) +++ trunk/lib/plugin/SystemInfo.php 2021-08-11 08:05:47 UTC (rev 10481) @@ -151,24 +151,6 @@ return $s; } - function ExpireParams() - { - global $ExpireParams; - $s = sprintf(_("Keep up to %d major edits, but keep them no longer than %d days."), - $ExpireParams['major']['keep'], - $ExpireParams['major']['max_age']); - $s .= sprintf(_(" Keep up to %d minor edits, but keep them no longer than %d days."), - $ExpireParams['minor']['keep'], - $ExpireParams['minor']['max_age']); - $s .= sprintf(_(" Keep the latest contributions of the last %d authors up to %d days."), - $ExpireParams['author']['keep'], $ExpireParams['author']['max_age']); - $s .= sprintf(_(" Additionally, try to keep the latest contributions of all authors in the last %d days (even if there are more than %d of them,) but in no case keep more than %d unique author revisions."), - $ExpireParams['author']['min_age'], - $ExpireParams['author']['keep'], - $ExpireParams['author']['max_keep']); - return $s; - } - function pagestats() { global $request; @@ -555,7 +537,6 @@ //'accessstats' => _("Access statistics"), 'hitstats' => _("Hit statistics"), 'discspace' => _("Harddisc usage"), - 'expireparams' => _("Expiry parameters"), 'wikinameregexp' => _("Wikiname regexp"), 'allowedprotocols' => _("Allowed protocols"), 'inlineimages' => _("Inline images"), Modified: trunk/locale/Makefile =================================================================== --- trunk/locale/Makefile 2021-08-10 16:29:05 UTC (rev 10480) +++ trunk/locale/Makefile 2021-08-11 08:05:47 UTC (rev 10481) @@ -74,7 +74,6 @@ ${POT_FILE}: .././getimg.php ${POT_FILE}: .././ImageTile.php ${POT_FILE}: .././index.php -${POT_FILE}: .././lib/ArchiveCleaner.php ${POT_FILE}: .././lib/ASCIIMathPHP/ASCIIMathPHP.cfg.php ${POT_FILE}: .././lib/ASCIIMathPHP/ASCIIMathPHP.class.php ${POT_FILE}: .././lib/AtomParser.php Modified: trunk/locale/it/pgsrc/NoteDiRilascio =================================================================== --- trunk/locale/it/pgsrc/NoteDiRilascio 2021-08-10 16:29:05 UTC (rev 10480) +++ trunk/locale/it/pgsrc/NoteDiRilascio 2021-08-11 08:05:47 UTC (rev 10481) @@ -1,4 +1,4 @@ -Date: Thu, 29 Jul 2021 21:08:02 +0000 +Date: Wed, 11 Aug 2021 10:03:04 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=NoteDiRilascio; @@ -8,10 +8,10 @@ <<CreateToc with_toclink||=1 headers||=1,2,3 width=300px position=right>> -== 1.6.0 2020-12-XX Marc-Etienne Vargenau == +== 1.6.0 2021-08-XX Marc-Etienne Vargenau == Major release: -* PHP 7 compatible (works from PHP 5.3.3 to PHP 7) +* PHP 7 and 8 compatible (works from PHP 5.3.3 to PHP 8.0) * Full HTML 5: Add HTML 5 <main> <header> <footer> <nav> in all themes. Add ARIA roles. * Flash is dead * Internet Explorer is dead @@ -28,6 +28,7 @@ * Security fixes === Changes === +* All revisions are kept. * Add new button in Edit Toolbar: convert Tab Separated Values to Wikicreole table * Update jQuery to 2.2.4 * Pear: use ##mysqli## instead of ##mysql## Modified: trunk/pgsrc/ReleaseNotes =================================================================== --- trunk/pgsrc/ReleaseNotes 2021-08-10 16:29:05 UTC (rev 10480) +++ trunk/pgsrc/ReleaseNotes 2021-08-11 08:05:47 UTC (rev 10481) @@ -1,4 +1,4 @@ -Date: Fri, 30 Jul 2021 12:55:59 +0000 +Date: Wed, 11 Aug 2021 10:03:04 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=ReleaseNotes; @@ -11,7 +11,7 @@ == 1.6.0 2021-08-XX Marc-Etienne Vargenau == Major release: -* PHP 7 and 8 compatible (works from PHP 5.3.3 to PHP 8) +* PHP 7 and 8 compatible (works from PHP 5.3.3 to PHP 8.0) * Full HTML 5: Add HTML 5 <main> <header> <footer> <nav> in all themes. Add ARIA roles. * Flash is dead * Internet Explorer is dead @@ -28,6 +28,7 @@ * Security fixes === Changes === +* All revisions are kept. * Add new button in Edit Toolbar: convert Tab Separated Values to Wikicreole table * Update jQuery to 2.2.4 * Pear: use ##mysqli## instead of ##mysql## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-11 16:38:01
|
Revision: 10494 http://sourceforge.net/p/phpwiki/code/10494 Author: vargenau Date: 2021-08-11 16:37:58 +0000 (Wed, 11 Aug 2021) Log Message: ----------- Update translations Modified Paths: -------------- trunk/locale/de/LC_MESSAGES/phpwiki.mo trunk/locale/fr/LC_MESSAGES/phpwiki.mo trunk/locale/nl/LC_MESSAGES/phpwiki.mo trunk/locale/po/de.po trunk/locale/po/es.po trunk/locale/po/fr.po trunk/locale/po/it.po trunk/locale/po/ja.po trunk/locale/po/nl.po trunk/locale/po/phpwiki.pot trunk/locale/po/sv.po trunk/locale/po/zh.po trunk/locale/zh/LC_MESSAGES/phpwiki.mo trunk/themes/Crao/templates/head.tmpl trunk/themes/Crao/templates/htmldump.tmpl trunk/themes/Sidebar/templates/htmldump.tmpl trunk/themes/default/templates/head.tmpl trunk/themes/default/templates/htmldump.tmpl trunk/themes/wikilens/templates/head.tmpl Modified: trunk/locale/de/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/fr/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/nl/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/po/de.po =================================================================== --- trunk/locale/po/de.po 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/locale/po/de.po 2021-08-11 16:37:58 UTC (rev 10494) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-08-06 17:14+0200\n" +"POT-Creation-Date: 2021-08-11 18:36+0200\n" "PO-Revision-Date: 2000-10-31 02:23+0200\n" "Last-Translator: Reini Urban <ru...@x-...>, Carsten Klapp " "<car...@us...>, Helmer Pardun <pardunpress@t-online." @@ -2917,30 +2917,6 @@ msgstr "Versionendaten in den Cachespeicher aufgenommen:" #, php-format -msgid "Keep up to %d major edits, but keep them no longer than %d days." -msgstr "" -"Aufbewahrung größerer Änderungen für %d, aber nicht länger als %d Tage." - -#, php-format -msgid " Keep up to %d minor edits, but keep them no longer than %d days." -msgstr "" -"Aufbewahrung kleinerer Änderungen für %d, aber nicht länger als %d Tage." - -#, php-format -msgid " Keep the latest contributions of the last %d authors up to %d days." -msgstr "Aufbewahrung der neueren Beiträge der letzten %d Autoren für %d Tage." - -#, php-format -msgid "" -" Additionally, try to keep the latest contributions of all authors in the " -"last %d days (even if there are more than %d of them,) but in no case keep " -"more than %d unique author revisions." -msgstr "" -"Versuche zusätzlich die neuesten Beiträge aller Autoren der letzten %d Tage " -"aufzubewahren (auch wenn es mehr als %d sind), keinesfalls jedoch mehr als " -"%d einzelne Autoren Revisionen." - -#, php-format msgid "%d pages" msgstr "%d Seiten" @@ -3044,9 +3020,6 @@ msgid "Harddisc usage" msgstr "" -msgid "Expiry parameters" -msgstr "" - msgid "Wikiname regexp" msgstr "Wikiname regexp" @@ -3807,6 +3780,13 @@ msgid "Bad action requested: %s" msgstr "" +#, php-format +msgid "WikiAdminUtils %s returned:" +msgstr "WikiAdminUtils %s gibt zurück:" + +msgid "Back" +msgstr "Zurück" + msgid "Purge Markup Cache" msgstr "HTML-Cachedatei Säubern" @@ -5894,12 +5874,30 @@ msgstr "Diese Seite bearbeiten" #, php-format -#~ msgid "WikiAdminUtils %s returned:" -#~ msgstr "WikiAdminUtils %s gibt zurück:" +#~ msgid "Keep up to %d major edits, but keep them no longer than %d days." +#~ msgstr "" +#~ "Aufbewahrung größerer Änderungen für %d, aber nicht länger als %d Tage." -#~ msgid "Back" -#~ msgstr "Zurück" +#, php-format +#~ msgid " Keep up to %d minor edits, but keep them no longer than %d days." +#~ msgstr "" +#~ "Aufbewahrung kleinerer Änderungen für %d, aber nicht länger als %d Tage." +#, php-format +#~ msgid " Keep the latest contributions of the last %d authors up to %d days." +#~ msgstr "" +#~ "Aufbewahrung der neueren Beiträge der letzten %d Autoren für %d Tage." + +#, php-format +#~ msgid "" +#~ " Additionally, try to keep the latest contributions of all authors in the " +#~ "last %d days (even if there are more than %d of them,) but in no case " +#~ "keep more than %d unique author revisions." +#~ msgstr "" +#~ "Versuche zusätzlich die neuesten Beiträge aller Autoren der letzten %d " +#~ "Tage aufzubewahren (auch wenn es mehr als %d sind), keinesfalls jedoch " +#~ "mehr als %d einzelne Autoren Revisionen." + #~ msgid "fixed with" #~ msgstr "Geändert mit" Modified: trunk/locale/po/es.po =================================================================== --- trunk/locale/po/es.po 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/locale/po/es.po 2021-08-11 16:37:58 UTC (rev 10494) @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-08-06 17:14+0200\n" +"POT-Creation-Date: 2021-08-11 18:36+0200\n" "PO-Revision-Date: 2000-02-01 00:50-0500\n" "Last-Translator: Pablo Roca <pr...@cl...>\n" "Language-Team: \n" @@ -2839,25 +2839,6 @@ msgstr "" #, php-format -msgid "Keep up to %d major edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep up to %d minor edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep the latest contributions of the last %d authors up to %d days." -msgstr "" - -#, php-format -msgid "" -" Additionally, try to keep the latest contributions of all authors in the " -"last %d days (even if there are more than %d of them,) but in no case keep " -"more than %d unique author revisions." -msgstr "" - -#, php-format msgid "%d pages" msgstr "%d páginas" @@ -2960,9 +2941,6 @@ msgid "Harddisc usage" msgstr "" -msgid "Expiry parameters" -msgstr "" - msgid "Wikiname regexp" msgstr "" @@ -3697,6 +3675,13 @@ msgid "Bad action requested: %s" msgstr "" +#, php-format +msgid "WikiAdminUtils %s returned:" +msgstr "" + +msgid "Back" +msgstr "" + msgid "Purge Markup Cache" msgstr "" Modified: trunk/locale/po/fr.po =================================================================== --- trunk/locale/po/fr.po 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/locale/po/fr.po 2021-08-11 16:37:58 UTC (rev 10494) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-08-06 17:14+0200\n" +"POT-Creation-Date: 2021-08-11 18:36+0200\n" "PO-Revision-Date: 2004-06-22 21:10+0200\n" "Last-Translator: Pierrick Meignen <mei...@wa...>, Roland " "Trique <rol...@fr...>, Stéphane Gourichon <stephane.gourichon@lip6." @@ -2889,29 +2889,6 @@ msgstr "version bufferisée :" #, php-format -msgid "Keep up to %d major edits, but keep them no longer than %d days." -msgstr "Garder jusqu'à %d édition majeures, mais pas plus que %d jours." - -#, php-format -msgid " Keep up to %d minor edits, but keep them no longer than %d days." -msgstr "Garder jusqu'à %d édition mineures, mais pas plus que %d jours." - -#, php-format -msgid " Keep the latest contributions of the last %d authors up to %d days." -msgstr "" -"Garder les dernières contributions des derniers %d auteurs jusqu'à %d jours." - -#, php-format -msgid "" -" Additionally, try to keep the latest contributions of all authors in the " -"last %d days (even if there are more than %d of them,) but in no case keep " -"more than %d unique author revisions." -msgstr "" -"De plus, essayez de conserver les dernières contributions de tous les " -"auteurs depuis les %d derniers jours (même s'il y en a plus que %d), mais ne " -"conservez en aucun cas plus que %d versions par auteur." - -#, php-format msgid "%d pages" msgstr "%d pages" @@ -3014,9 +2991,6 @@ msgid "Harddisc usage" msgstr "Utilisation du disque" -msgid "Expiry parameters" -msgstr "Paramètres d'expiration" - msgid "Wikiname regexp" msgstr "Expression rationnelle du WikiNom" @@ -3788,6 +3762,13 @@ msgid "Bad action requested: %s" msgstr "" +#, php-format +msgid "WikiAdminUtils %s returned:" +msgstr "" + +msgid "Back" +msgstr "Retour" + msgid "Purge Markup Cache" msgstr "Purger le cache" @@ -5841,9 +5822,33 @@ msgid "Edit this page" msgstr "Modifier cette page" -#~ msgid "Back" -#~ msgstr "Retour" +#, php-format +#~ msgid "Keep up to %d major edits, but keep them no longer than %d days." +#~ msgstr "Garder jusqu'à %d édition majeures, mais pas plus que %d jours." +#, php-format +#~ msgid " Keep up to %d minor edits, but keep them no longer than %d days." +#~ msgstr "Garder jusqu'à %d édition mineures, mais pas plus que %d jours." + +#, php-format +#~ msgid " Keep the latest contributions of the last %d authors up to %d days." +#~ msgstr "" +#~ "Garder les dernières contributions des derniers %d auteurs jusqu'à %d " +#~ "jours." + +#, php-format +#~ msgid "" +#~ " Additionally, try to keep the latest contributions of all authors in the " +#~ "last %d days (even if there are more than %d of them,) but in no case " +#~ "keep more than %d unique author revisions." +#~ msgstr "" +#~ "De plus, essayez de conserver les dernières contributions de tous les " +#~ "auteurs depuis les %d derniers jours (même s'il y en a plus que %d), mais " +#~ "ne conservez en aucun cas plus que %d versions par auteur." + +#~ msgid "Expiry parameters" +#~ msgstr "Paramètres d'expiration" + #~ msgid "DB Check" #~ msgstr "Vérification de la base de données" Modified: trunk/locale/po/it.po =================================================================== --- trunk/locale/po/it.po 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/locale/po/it.po 2021-08-11 16:37:58 UTC (rev 10494) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-08-06 17:14+0200\n" +"POT-Creation-Date: 2021-08-11 18:36+0200\n" "PO-Revision-Date: 2005-02-12 16:23+0100\n" "Last-Translator: Antonio Bonifati ant[(at)]monitor.deis.unical.it\n" "Language-Team: \n" @@ -2816,25 +2816,6 @@ msgstr "" #, php-format -msgid "Keep up to %d major edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep up to %d minor edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep the latest contributions of the last %d authors up to %d days." -msgstr "" - -#, php-format -msgid "" -" Additionally, try to keep the latest contributions of all authors in the " -"last %d days (even if there are more than %d of them,) but in no case keep " -"more than %d unique author revisions." -msgstr "" - -#, php-format msgid "%d pages" msgstr "" @@ -2937,9 +2918,6 @@ msgid "Harddisc usage" msgstr "" -msgid "Expiry parameters" -msgstr "" - msgid "Wikiname regexp" msgstr "" @@ -3674,6 +3652,13 @@ msgid "Bad action requested: %s" msgstr "" +#, php-format +msgid "WikiAdminUtils %s returned:" +msgstr "" + +msgid "Back" +msgstr "" + msgid "Purge Markup Cache" msgstr "" Modified: trunk/locale/po/ja.po =================================================================== --- trunk/locale/po/ja.po 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/locale/po/ja.po 2021-08-11 16:37:58 UTC (rev 10494) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-08-06 17:14+0200\n" +"POT-Creation-Date: 2021-08-11 18:36+0200\n" "PO-Revision-Date: 2003-06-07 09:01+0900\n" "Last-Translator: Tadashi Jokagi <web...@el...>\n" "Language-Team: LANGUAGE <LL...@li...>\n" @@ -2802,25 +2802,6 @@ msgstr "バージョンデータをキャッシュ:" #, php-format -msgid "Keep up to %d major edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep up to %d minor edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep the latest contributions of the last %d authors up to %d days." -msgstr "" - -#, php-format -msgid "" -" Additionally, try to keep the latest contributions of all authors in the " -"last %d days (even if there are more than %d of them,) but in no case keep " -"more than %d unique author revisions." -msgstr "" - -#, php-format msgid "%d pages" msgstr "" @@ -2923,9 +2904,6 @@ msgid "Harddisc usage" msgstr "" -msgid "Expiry parameters" -msgstr "" - msgid "Wikiname regexp" msgstr "" @@ -3660,6 +3638,13 @@ msgid "Bad action requested: %s" msgstr "" +#, php-format +msgid "WikiAdminUtils %s returned:" +msgstr "" + +msgid "Back" +msgstr "" + msgid "Purge Markup Cache" msgstr "マークアップキャッシュの破棄" Modified: trunk/locale/po/nl.po =================================================================== --- trunk/locale/po/nl.po 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/locale/po/nl.po 2021-08-11 16:37:58 UTC (rev 10494) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-08-06 17:14+0200\n" +"POT-Creation-Date: 2021-08-11 18:36+0200\n" "PO-Revision-Date: 2000-09-30 02:23+0200\n" "Last-Translator: Jan Nieuwenhuizen <ja...@gn...>\n" "Language-Team: Dutch <nl...@li...>\n" @@ -2808,25 +2808,6 @@ msgstr "" #, php-format -msgid "Keep up to %d major edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep up to %d minor edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep the latest contributions of the last %d authors up to %d days." -msgstr "" - -#, php-format -msgid "" -" Additionally, try to keep the latest contributions of all authors in the " -"last %d days (even if there are more than %d of them,) but in no case keep " -"more than %d unique author revisions." -msgstr "" - -#, php-format msgid "%d pages" msgstr "" @@ -2929,9 +2910,6 @@ msgid "Harddisc usage" msgstr "" -msgid "Expiry parameters" -msgstr "" - msgid "Wikiname regexp" msgstr "" @@ -3666,6 +3644,13 @@ msgid "Bad action requested: %s" msgstr "" +#, php-format +msgid "WikiAdminUtils %s returned:" +msgstr "" + +msgid "Back" +msgstr "Terug" + msgid "Purge Markup Cache" msgstr "" @@ -5665,9 +5650,6 @@ msgid "Edit this page" msgstr "" -#~ msgid "Back" -#~ msgstr "Terug" - #~ msgid "version <em>%s</em>" #~ msgstr "versie <em>%s</em>" Modified: trunk/locale/po/phpwiki.pot =================================================================== --- trunk/locale/po/phpwiki.pot 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/locale/po/phpwiki.pot 2021-08-11 16:37:58 UTC (rev 10494) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki-1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-08-06 17:14+0200\n" +"POT-Creation-Date: 2021-08-11 18:36+0200\n" "PO-Revision-Date: 2002-12-14 17:51-0500\n" "Last-Translator: Reini Urban <ru...@us...>\n" "Language-Team: LANGUAGE <LL...@li...>\n" @@ -2802,25 +2802,6 @@ msgstr "" #, php-format -msgid "Keep up to %d major edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep up to %d minor edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep the latest contributions of the last %d authors up to %d days." -msgstr "" - -#, php-format -msgid "" -" Additionally, try to keep the latest contributions of all authors in the " -"last %d days (even if there are more than %d of them,) but in no case keep " -"more than %d unique author revisions." -msgstr "" - -#, php-format msgid "%d pages" msgstr "" @@ -2923,9 +2904,6 @@ msgid "Harddisc usage" msgstr "" -msgid "Expiry parameters" -msgstr "" - msgid "Wikiname regexp" msgstr "" @@ -3660,6 +3638,13 @@ msgid "Bad action requested: %s" msgstr "" +#, php-format +msgid "WikiAdminUtils %s returned:" +msgstr "" + +msgid "Back" +msgstr "" + msgid "Purge Markup Cache" msgstr "" Modified: trunk/locale/po/sv.po =================================================================== --- trunk/locale/po/sv.po 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/locale/po/sv.po 2021-08-11 16:37:58 UTC (rev 10494) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-08-06 17:14+0200\n" +"POT-Creation-Date: 2021-08-11 18:36+0200\n" "PO-Revision-Date: 2001-01-27 01:58+0200\n" "Last-Translator: Jon Åslund <jo...@he...>\n" "Language-Team: \n" @@ -2803,25 +2803,6 @@ msgstr "" #, php-format -msgid "Keep up to %d major edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep up to %d minor edits, but keep them no longer than %d days." -msgstr "" - -#, php-format -msgid " Keep the latest contributions of the last %d authors up to %d days." -msgstr "" - -#, php-format -msgid "" -" Additionally, try to keep the latest contributions of all authors in the " -"last %d days (even if there are more than %d of them,) but in no case keep " -"more than %d unique author revisions." -msgstr "" - -#, php-format msgid "%d pages" msgstr "" @@ -2924,9 +2905,6 @@ msgid "Harddisc usage" msgstr "" -msgid "Expiry parameters" -msgstr "" - msgid "Wikiname regexp" msgstr "" @@ -3661,6 +3639,13 @@ msgid "Bad action requested: %s" msgstr "" +#, php-format +msgid "WikiAdminUtils %s returned:" +msgstr "" + +msgid "Back" +msgstr "" + msgid "Purge Markup Cache" msgstr "" Modified: trunk/locale/po/zh.po =================================================================== --- trunk/locale/po/zh.po 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/locale/po/zh.po 2021-08-11 16:37:58 UTC (rev 10494) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-08-06 17:14+0200\n" +"POT-Creation-Date: 2021-08-11 18:36+0200\n" "PO-Revision-Date: 2004-04-21 10:08+0800\n" "Last-Translator: DruryL <dr...@us...>\n" "Language-Team: DruryL <dr...@us...>\n" @@ -2811,27 +2811,6 @@ msgstr "已快取的版本資料:" #, php-format -msgid "Keep up to %d major edits, but keep them no longer than %d days." -msgstr "保持 %d 份主要編輯,但不超過 %d 天." - -#, php-format -msgid " Keep up to %d minor edits, but keep them no longer than %d days." -msgstr "保持 %d 份次要編輯,但不超過 %d 天." - -#, php-format -msgid " Keep the latest contributions of the last %d authors up to %d days." -msgstr "保存最後 %d 位作者的最新貢獻直到 %d 天." - -#, php-format -msgid "" -" Additionally, try to keep the latest contributions of all authors in the " -"last %d days (even if there are more than %d of them,) but in no case keep " -"more than %d unique author revisions." -msgstr "" -" 除此之外, 試著保存最近 %d 天之內所有作者的最新貢獻 (即使超過他們的 %d ,) 但" -"是沒保存超過 %d 份單一作者修訂." - -#, php-format msgid "%d pages" msgstr "%d 個頁面" @@ -2934,9 +2913,6 @@ msgid "Harddisc usage" msgstr "" -msgid "Expiry parameters" -msgstr "過期參數" - msgid "Wikiname regexp" msgstr "" @@ -3673,6 +3649,13 @@ msgid "Bad action requested: %s" msgstr "" +#, php-format +msgid "WikiAdminUtils %s returned:" +msgstr "WikiAdminUtils %s 說:" + +msgid "Back" +msgstr "" + msgid "Purge Markup Cache" msgstr "清除標記快取" @@ -5690,9 +5673,29 @@ msgstr "編輯此頁面" #, php-format -#~ msgid "WikiAdminUtils %s returned:" -#~ msgstr "WikiAdminUtils %s 說:" +#~ msgid "Keep up to %d major edits, but keep them no longer than %d days." +#~ msgstr "保持 %d 份主要編輯,但不超過 %d 天." +#, php-format +#~ msgid " Keep up to %d minor edits, but keep them no longer than %d days." +#~ msgstr "保持 %d 份次要編輯,但不超過 %d 天." + +#, php-format +#~ msgid " Keep the latest contributions of the last %d authors up to %d days." +#~ msgstr "保存最後 %d 位作者的最新貢獻直到 %d 天." + +#, php-format +#~ msgid "" +#~ " Additionally, try to keep the latest contributions of all authors in the " +#~ "last %d days (even if there are more than %d of them,) but in no case " +#~ "keep more than %d unique author revisions." +#~ msgstr "" +#~ " 除此之外, 試著保存最近 %d 天之內所有作者的最新貢獻 (即使超過他們的 %d ,) " +#~ "但是沒保存超過 %d 份單一作者修訂." + +#~ msgid "Expiry parameters" +#~ msgstr "過期參數" + #~ msgid "Provide weather reports from the Internet." #~ msgstr "PhpWeather plugin 由網路取得資訊並提供天氣報告." Modified: trunk/locale/zh/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/themes/Crao/templates/head.tmpl =================================================================== --- trunk/themes/Crao/templates/head.tmpl 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/themes/Crao/templates/head.tmpl 2021-08-11 16:37:58 UTC (rev 10494) @@ -15,8 +15,8 @@ <?php /* The next few lines are wrapped in an odd manner to allow gettext string extraction: cd locale;make */ ?> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> <link rel="help" title="<?php echo -_("Help/HowToUseWiki")?>" href="<?php echo WikiURL( -_("Help/HowToUseWiki"))?>" /> +_("Help")."/"._("HowToUseWiki")?>" href="<?php echo WikiURL( +_("Help")."/"._("HowToUseWiki"))?>" /> <link rel="license" title="<?php echo COPYRIGHTPAGE_TITLE?>" href="<?php echo COPYRIGHTPAGE_URL?>" /> <link rel="author" title="<?php echo AUTHORPAGE_TITLE?>" href="<?php echo AUTHORPAGE_URL?>" /> <link rel="search" title="<?php echo Modified: trunk/themes/Crao/templates/htmldump.tmpl =================================================================== --- trunk/themes/Crao/templates/htmldump.tmpl 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/themes/Crao/templates/htmldump.tmpl 2021-08-11 16:37:58 UTC (rev 10494) @@ -9,7 +9,7 @@ <head> <meta charset="UTF-8" /> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> -<link rel="help" title="<?php echo _("Help/HowToUseWiki")?>" href="<?php echo WikiURL(_("Help/HowToUseWiki"))?>" /> +<link rel="help" title="<?php echo _("Help")."/"._("HowToUseWiki")?>" href="<?php echo WikiURL(_("Help")."/"._("HowToUseWiki"))?>" /> <link rel="license" title="<?php echo COPYRIGHTPAGE_TITLE?>" href="<?php echo COPYRIGHTPAGE_URL?>" /> <link rel="author" title="<?php echo AUTHORPAGE_TITLE?>" href="<?php echo AUTHORPAGE_URL?>" /> Modified: trunk/themes/Sidebar/templates/htmldump.tmpl =================================================================== --- trunk/themes/Sidebar/templates/htmldump.tmpl 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/themes/Sidebar/templates/htmldump.tmpl 2021-08-11 16:37:58 UTC (rev 10494) @@ -9,7 +9,7 @@ <head> <meta charset="UTF-8" /> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> -<link rel="help" title="<?php echo _("Help/HowToUseWiki")?>" href="<?php echo WikiURL(_("Help/HowToUseWiki"))?>" /> +<link rel="help" title="<?php echo _("Help")."/"._("HowToUseWiki")?>" href="<?php echo WikiURL(_("Help")."/"._("HowToUseWiki"))?>" /> <link rel="license" title="<?php echo COPYRIGHTPAGE_TITLE?>" href="<?php echo COPYRIGHTPAGE_URL?>" /> <link rel="author" title="<?php echo AUTHORPAGE_TITLE?>" href="<?php echo AUTHORPAGE_URL?>" /> <?php $ROBOTS_CONTENT = isset($ROBOTS_META) ? $ROBOTS_META : "noindex,nofollow"; ?> Modified: trunk/themes/default/templates/head.tmpl =================================================================== --- trunk/themes/default/templates/head.tmpl 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/themes/default/templates/head.tmpl 2021-08-11 16:37:58 UTC (rev 10494) @@ -19,8 +19,8 @@ <?php /* The next few lines are wrapped in an odd manner to allow gettext string extraction: cd locale;make */ ?> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> <link rel="help" title="<?php echo -_("Help/HowToUseWiki")?>" href="<?php echo WikiURL( -_("Help/HowToUseWiki"))?>" /> +_("Help")."/"._("HowToUseWiki")?>" href="<?php echo WikiURL( +_("Help")."/"._("HowToUseWiki"))?>" /> <link rel="license" title="<?php echo COPYRIGHTPAGE_TITLE?>" href="<?php echo COPYRIGHTPAGE_URL?>" /> <link rel="author" title="<?php echo AUTHORPAGE_TITLE?>" href="<?php echo AUTHORPAGE_URL?>" /> <link rel="search" title="<?php echo Modified: trunk/themes/default/templates/htmldump.tmpl =================================================================== --- trunk/themes/default/templates/htmldump.tmpl 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/themes/default/templates/htmldump.tmpl 2021-08-11 16:37:58 UTC (rev 10494) @@ -9,7 +9,7 @@ <head> <meta charset="UTF-8" /> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> -<link rel="help" title="<?php echo _("Help:HowToUseWiki")?>" href="<?php echo WikiURL(_("Help:HowToUseWiki"))?>" /> +<link rel="help" title="<?php echo _("Help").":"._("HowToUseWiki")?>" href="<?php echo WikiURL(_("Help").":"._("HowToUseWiki"))?>" /> <link rel="license" title="<?php echo COPYRIGHTPAGE_TITLE?>" href="<?php echo COPYRIGHTPAGE_URL?>" /> <link rel="author" title="<?php echo AUTHORPAGE_TITLE?>" href="<?php echo AUTHORPAGE_URL?>" /> <?php $ROBOTS_CONTENT = isset($ROBOTS_META) ? $ROBOTS_META : "noindex,nofollow"; ?> Modified: trunk/themes/wikilens/templates/head.tmpl =================================================================== --- trunk/themes/wikilens/templates/head.tmpl 2021-08-11 16:12:17 UTC (rev 10493) +++ trunk/themes/wikilens/templates/head.tmpl 2021-08-11 16:37:58 UTC (rev 10494) @@ -14,8 +14,8 @@ <link rel="stylesheet" type="text/css" href="<?php echo DATA_PATH ?>/themes/default/highlight.js/styles/github.css"/> <?php /* The next few lines are wrapped in an odd manner to allow gettext string extraction: cd locale;make */ ?> <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" /> -<link rel="help" title="<?php echo _("Help/HowToUseWiki")?>" href="<?php echo WikiURL( -_("Help/HowToUseWiki"))?>" /> +<link rel="help" title="<?php echo _("Help")."/"._("HowToUseWiki")?>" href="<?php echo WikiURL( +_("Help")."/"._("HowToUseWiki"))?>" /> <link rel="license" title="<?php echo COPYRIGHTPAGE_TITLE?>" href="<?php echo COPYRIGHTPAGE_URL?>" /> <link rel="author" title="<?php echo AUTHORPAGE_TITLE?>" href="<?php echo AUTHORPAGE_URL?>" /> <link rel="search" title="<?php echo _("FindPage")?>" href="<?php echo WikiURL( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-11 17:21:40
|
Revision: 10495 http://sourceforge.net/p/phpwiki/code/10495 Author: vargenau Date: 2021-08-11 17:21:38 +0000 (Wed, 11 Aug 2021) Log Message: ----------- Rename class XmlParser as PhpWikiXmlParser due to PHP 8 final class XMLParser Modified Paths: -------------- trunk/lib/AtomParser.php trunk/lib/HtmlParser.php trunk/lib/RssParser.php trunk/lib/XmlElement.php trunk/lib/plugin/FoafViewer.php trunk/lib/stdlib.php trunk/locale/Makefile Added Paths: ----------- trunk/lib/PhpWikiXmlParser.php Removed Paths: ------------- trunk/lib/XmlParser.php Modified: trunk/lib/AtomParser.php =================================================================== --- trunk/lib/AtomParser.php 2021-08-11 16:37:58 UTC (rev 10494) +++ trunk/lib/AtomParser.php 2021-08-11 17:21:38 UTC (rev 10495) @@ -28,10 +28,10 @@ * * @author: Sébastien Le Callonnec */ -require_once 'lib/XmlParser.php'; +require_once 'lib/PhpWikiXmlParser.php'; class AtomParser - extends XmlParser + extends PhpWikiXmlParser { // Feed public $feed = array(); Modified: trunk/lib/HtmlParser.php =================================================================== --- trunk/lib/HtmlParser.php 2021-08-11 16:37:58 UTC (rev 10494) +++ trunk/lib/HtmlParser.php 2021-08-11 17:21:38 UTC (rev 10495) @@ -24,7 +24,7 @@ /** * HtmlParser Class: Conversion HTML => wikimarkup - * Requires XmlParser, XmlElement and the expat (or now the libxml) library. This is all in core. + * Requires PhpWikiXmlParser, XmlElement and the expat (or now the libxml) library. This is all in core. */ /** @@ -40,10 +40,10 @@ */ // RssParser contains the XML (expat) and url-grabber methods -require_once 'lib/XmlParser.php'; +require_once 'lib/PhpWikiXmlParser.php'; class HtmlParser - extends XmlParser + extends PhpWikiXmlParser { public $dialect, $_handlers, $root; @@ -51,13 +51,13 @@ { $this->dialect = new HtmlParser_PhpWiki(); $this->_handlers =& $this->dialect->_handlers; - $this->XmlParser($encoding); + $this->PhpWikiXmlParser($encoding); xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($this->_parser, XML_OPTION_SKIP_WHITE, 1); } // The three callbacks, called on walking through the HTML tree. - // No extensions needed from XmlParser. + // No extensions needed from PhpWikiXmlParser. /* function tag_open($parser, $name, $attrs='') { } Copied: trunk/lib/PhpWikiXmlParser.php (from rev 10494, trunk/lib/XmlParser.php) =================================================================== --- trunk/lib/PhpWikiXmlParser.php (rev 0) +++ trunk/lib/PhpWikiXmlParser.php 2021-08-11 17:21:38 UTC (rev 10495) @@ -0,0 +1,181 @@ +<?php +/** + * This file is part of PhpWiki. + * + * PhpWiki is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PhpWiki is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with PhpWiki; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * SPDX-License-Identifier: GPL-2.0-or-later + * + */ + +/** + * Base PhpWikiXmlParser Class. + * Requires the expat.so/.dll, usually enabled by default. + * Used by HtmlParser and RssParser. + * + * @author: Reini Urban + * + * TODO: Convert more perl Html::Element style to our XmlElement style + * Needed additions to XmlElement: + * Html::Element::parent() <=> XmlElement::parent + * Html::Element::attr() <=> XmlElement::getAttr() + * Html::Element::tag <=> XmlElement::_tag + * Html::Element::content_list() <=> ->getContent() ??? or ->_children[] + * all_external_attr_names() <=> + * + * Problems: + * The HtmlParser object set by xml_parse() doesn't keep its parameters, + * esp. $this->root is lost. So we have to this into a global. + */ + +/** + * class PhpWikiXmlParser - Parse into a tree of XmlElement nodes. + * + * PHP Problems: + * inside the handlers no globals are transported, only class vars. + * when leaving the handler class all class vars are destroyed, so we + * have to copy the root to a global. + * + */ +class PhpWikiXmlParser +{ + public $_parser, $root, $current, $previous, $parent; + + function __construct($encoding = '') + { + if ($encoding) + $this->_parser = xml_parser_create($encoding); + else + $this->_parser = xml_parser_create(); + + xml_parser_set_option($this->_parser, XML_OPTION_TARGET_ENCODING, 'UTF-8'); + + //This unfortunately does not work + //xml_set_object($this->_parser, &$this); + + xml_set_element_handler($this->_parser, + array(&$this, 'tag_open'), + array(&$this, 'tag_close')); + xml_set_character_data_handler($this->_parser, + array(&$this, 'cdata')); + //xml_set_element_handler($this->_parser, "tag_open", "tag_close"); + //xml_set_character_data_handler($this->_parser, "cdata"); + + // Hack: workaround php OO bug + unset($GLOBALS['xml_parser_root']); + } + + function __destruct() + { + global $xml_parser_root, $xml_parser_current; + + if (!empty($this->_parser)) xml_parser_free($this->_parser); + unset($this->_parser); + + if (isset($xml_parser_root)) { + $xml_parser_root->_destruct(); + unset($xml_parser_root); // nested parsing forbidden! + } + unset($xml_parser_current); + } + + function tag_open($parser, $name, $attrs = '') + { + $this->_tag = strtolower($name); + $node = new XmlElement($this->_tag); + if (is_string($attrs) and !empty($attrs)) { + // lowercase attr names + foreach (explode(' ', $attrs) as $pair) { + if (strstr($pair, "=")) { + list($key, $val) = explode('=', $pair); + $key = strtolower(trim($key)); + $val = str_replace(array('"', "'"), '', trim($val)); + $node->_attr[$key] = $val; + } else { + $key = str_replace(array('"', "'"), '', strtolower(trim($pair))); + $node->_attr[$key] = $key; + } + } + } elseif (!empty($attrs) and is_array($attrs)) { + foreach ($attrs as $key => $val) { + $key = strtolower(trim($key)); + $val = str_replace(array('"', "'"), '', trim($val)); + $node->_attr[$key] = $val; + } + } + if (!is_null($this->current)) { + $this->current->_content[] =& $node; // copy or ref? + $node->previous =& $this->current; // ref to parallel prev + } + $this->current =& $node; // ref + if (empty($this->root)) { + $this->root =& $node; // ref for === test below + $GLOBALS['xml_parser_root'] =& $this->root; // copy + } + } + + function tag_close($parser, $name, $attrs = '') + { + $this->current->parent = $this->current; // copy! + $this->current =& $this->current->parent; // ref! + //unset($this->current); + } + + function cdata($parser, $data) + { + if (isset($this->current)) { + $this->current->_content[] = $data; + } else { + trigger_error(sprintf("unparsed content outside tags: %s", $data), E_USER_WARNING); + } + if ($this->current === $this->root) { // workaround php OO bug: ref => copy + $GLOBALS['xml_parser_root'] =& $this->root; // copy! + //$this->root = $this->current; // copy? + } + } + + function parse($content, $is_final = true) + { + xml_parse($this->_parser, $content, $is_final) or + trigger_error(sprintf("XML error: %s at line %d", + xml_error_string(xml_get_error_code($this->_parser)), + xml_get_current_line_number($this->_parser)), + E_USER_WARNING); + } + + function parse_url($file, $debug = false) + { + if (get_cfg_var('allow_url_fopen')) { + if (!($fp = fopen("$file", "r"))) { + trigger_error("Error parse url $file"); + return; + } + $content = ""; + while ($data = fread($fp, 4096)) { + $content .= $data; + } + fclose($fp); + $this->parse($content); + } else { + // other url_fopen workarounds: curl, socket (http 80 only) + $data = url_get_contents($file); + if (empty($data)) { + trigger_error("Error parse url $file"); + return; + } + $this->parse($data); + } + } +} Modified: trunk/lib/RssParser.php =================================================================== --- trunk/lib/RssParser.php 2021-08-11 16:37:58 UTC (rev 10494) +++ trunk/lib/RssParser.php 2021-08-11 17:21:38 UTC (rev 10495) @@ -25,7 +25,7 @@ * Based on Duncan Gough RSSParser class * Copyleft Arnaud Fontaine * Licence : GPL - * See lib/plugin/RssFeed.php and lib/XmlParser.php + * See lib/plugin/RssFeed.php and lib/PhpWikiXmlParser.php * * The myth of RSS compatibility: * http://diveintomark.org/archives/2004/02/04/incompatible-rss @@ -41,10 +41,10 @@ * http://ws.audioscrobbler.com/rdf/ for example */ -require_once 'lib/XmlParser.php'; +require_once 'lib/PhpWikiXmlParser.php'; class RSSParser - extends XmlParser + extends PhpWikiXmlParser { public $title = ""; Modified: trunk/lib/XmlElement.php =================================================================== --- trunk/lib/XmlElement.php 2021-08-11 16:37:58 UTC (rev 10494) +++ trunk/lib/XmlElement.php 2021-08-11 17:21:38 UTC (rev 10495) @@ -263,7 +263,7 @@ $this->setContent($args); } - /** Methods only needed for XmlParser, + /** Methods only needed for PhpWikiXmlParser, * to be fully compatible to perl Html::Element */ // doesn't yet work with php5 as __destruct() @@ -289,7 +289,7 @@ return !empty($this->_children); } - /* End XmlParser Methods + /* End PhpWikiXmlParser Methods */ function getTag() Deleted: trunk/lib/XmlParser.php =================================================================== --- trunk/lib/XmlParser.php 2021-08-11 16:37:58 UTC (rev 10494) +++ trunk/lib/XmlParser.php 2021-08-11 17:21:38 UTC (rev 10495) @@ -1,181 +0,0 @@ -<?php -/** - * This file is part of PhpWiki. - * - * PhpWiki is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpWiki is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with PhpWiki; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - */ - -/** - * Base XmlParser Class. - * Requires the expat.so/.dll, usually enabled by default. - * Used by HtmlParser and RssParser. - * - * @author: Reini Urban - * - * TODO: Convert more perl Html::Element style to our XmlElement style - * Needed additions to XmlElement: - * Html::Element::parent() <=> XmlElement::parent - * Html::Element::attr() <=> XmlElement::getAttr() - * Html::Element::tag <=> XmlElement::_tag - * Html::Element::content_list() <=> ->getContent() ??? or ->_children[] - * all_external_attr_names() <=> - * - * Problems: - * The HtmlParser object set by xml_parse() doesn't keep its parameters, - * esp. $this->root is lost. So we have to this into a global. - */ - -/** - * class XmlParser - Parse into a tree of XmlElement nodes. - * - * PHP Problems: - * inside the handlers no globals are transported, only class vars. - * when leaving the handler class all class vars are destroyed, so we - * have to copy the root to a global. - * - */ -class XmlParser -{ - public $_parser, $root, $current, $previous, $parent; - - function __construct($encoding = '') - { - if ($encoding) - $this->_parser = xml_parser_create($encoding); - else - $this->_parser = xml_parser_create(); - - xml_parser_set_option($this->_parser, XML_OPTION_TARGET_ENCODING, 'UTF-8'); - - //This unfortunately does not work - //xml_set_object($this->_parser, &$this); - - xml_set_element_handler($this->_parser, - array(&$this, 'tag_open'), - array(&$this, 'tag_close')); - xml_set_character_data_handler($this->_parser, - array(&$this, 'cdata')); - //xml_set_element_handler($this->_parser, "tag_open", "tag_close"); - //xml_set_character_data_handler($this->_parser, "cdata"); - - // Hack: workaround php OO bug - unset($GLOBALS['xml_parser_root']); - } - - function __destruct() - { - global $xml_parser_root, $xml_parser_current; - - if (!empty($this->_parser)) xml_parser_free($this->_parser); - unset($this->_parser); - - if (isset($xml_parser_root)) { - $xml_parser_root->_destruct(); - unset($xml_parser_root); // nested parsing forbidden! - } - unset($xml_parser_current); - } - - function tag_open($parser, $name, $attrs = '') - { - $this->_tag = strtolower($name); - $node = new XmlElement($this->_tag); - if (is_string($attrs) and !empty($attrs)) { - // lowercase attr names - foreach (explode(' ', $attrs) as $pair) { - if (strstr($pair, "=")) { - list($key, $val) = explode('=', $pair); - $key = strtolower(trim($key)); - $val = str_replace(array('"', "'"), '', trim($val)); - $node->_attr[$key] = $val; - } else { - $key = str_replace(array('"', "'"), '', strtolower(trim($pair))); - $node->_attr[$key] = $key; - } - } - } elseif (!empty($attrs) and is_array($attrs)) { - foreach ($attrs as $key => $val) { - $key = strtolower(trim($key)); - $val = str_replace(array('"', "'"), '', trim($val)); - $node->_attr[$key] = $val; - } - } - if (!is_null($this->current)) { - $this->current->_content[] =& $node; // copy or ref? - $node->previous =& $this->current; // ref to parallel prev - } - $this->current =& $node; // ref - if (empty($this->root)) { - $this->root =& $node; // ref for === test below - $GLOBALS['xml_parser_root'] =& $this->root; // copy - } - } - - function tag_close($parser, $name, $attrs = '') - { - $this->current->parent = $this->current; // copy! - $this->current =& $this->current->parent; // ref! - //unset($this->current); - } - - function cdata($parser, $data) - { - if (isset($this->current)) { - $this->current->_content[] = $data; - } else { - trigger_error(sprintf("unparsed content outside tags: %s", $data), E_USER_WARNING); - } - if ($this->current === $this->root) { // workaround php OO bug: ref => copy - $GLOBALS['xml_parser_root'] =& $this->root; // copy! - //$this->root = $this->current; // copy? - } - } - - function parse($content, $is_final = true) - { - xml_parse($this->_parser, $content, $is_final) or - trigger_error(sprintf("XML error: %s at line %d", - xml_error_string(xml_get_error_code($this->_parser)), - xml_get_current_line_number($this->_parser)), - E_USER_WARNING); - } - - function parse_url($file, $debug = false) - { - if (get_cfg_var('allow_url_fopen')) { - if (!($fp = fopen("$file", "r"))) { - trigger_error("Error parse url $file"); - return; - } - $content = ""; - while ($data = fread($fp, 4096)) { - $content .= $data; - } - fclose($fp); - $this->parse($content); - } else { - // other url_fopen workarounds: curl, socket (http 80 only) - $data = url_get_contents($file); - if (empty($data)) { - trigger_error("Error parse url $file"); - return; - } - $this->parse($data); - } - } -} Modified: trunk/lib/plugin/FoafViewer.php =================================================================== --- trunk/lib/plugin/FoafViewer.php 2021-08-11 16:37:58 UTC (rev 10494) +++ trunk/lib/plugin/FoafViewer.php 2021-08-11 17:21:38 UTC (rev 10495) @@ -52,7 +52,7 @@ * TODO: * - use a template. * - use the phpwiki internal user foaf data (stored by a UserPreferences extension) - * - fix the pear FOAF Parser or we'll write our own (based on our XmlParser) + * - fix the pear FOAF Parser or we'll write our own (based on our PhpWikiXmlParser) */ class WikiPlugin_FoafViewer extends WikiPlugin Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2021-08-11 16:37:58 UTC (rev 10494) +++ trunk/lib/stdlib.php 2021-08-11 17:21:38 UTC (rev 10495) @@ -1710,7 +1710,7 @@ /** * Workaround for allow_url_fopen, to get the content of an external URI. * It returns the contents in one slurp. Parsers might want to check for allow_url_fopen - * and use fopen, fread chunkwise. (see lib/XmlParser.php) + * and use fopen, fread chunkwise. (see lib/PhpWikiXmlParser.php) */ function url_get_contents($uri) { Modified: trunk/locale/Makefile =================================================================== --- trunk/locale/Makefile 2021-08-11 16:37:58 UTC (rev 10494) +++ trunk/locale/Makefile 2021-08-11 17:21:38 UTC (rev 10495) @@ -379,7 +379,7 @@ ${POT_FILE}: .././lib/WysiwygEdit/tinymce.php ${POT_FILE}: .././lib/WysiwygEdit/Wikiwyg.php ${POT_FILE}: .././lib/XmlElement.php -${POT_FILE}: .././lib/XmlParser.php +${POT_FILE}: .././lib/PhpWikiXmlParser.php ${POT_FILE}: .././lib/XmlRpcClient.php ${POT_FILE}: .././lib/XmlRpcServer.php ${POT_FILE}: .././lib/XMLRPC/utils.php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-11 17:32:10
|
Revision: 10497 http://sourceforge.net/p/phpwiki/code/10497 Author: vargenau Date: 2021-08-11 17:32:07 +0000 (Wed, 11 Aug 2021) Log Message: ----------- 1.6.0 2021-08-12 Modified Paths: -------------- trunk/locale/it/pgsrc/NoteDiRilascio trunk/pgsrc/ReleaseNotes Modified: trunk/locale/it/pgsrc/NoteDiRilascio =================================================================== --- trunk/locale/it/pgsrc/NoteDiRilascio 2021-08-11 17:22:25 UTC (rev 10496) +++ trunk/locale/it/pgsrc/NoteDiRilascio 2021-08-11 17:32:07 UTC (rev 10497) @@ -8,7 +8,7 @@ <<CreateToc with_toclink||=1 headers||=1,2,3 width=300px position=right>> -== 1.6.0 2021-08-XX Marc-Etienne Vargenau == +== 1.6.0 2021-08-12 Marc-Etienne Vargenau == Major release: * PHP 7 and 8 compatible (works from PHP 5.3.3 to PHP 8.0) @@ -35,7 +35,6 @@ * Update PEAR.php to release 1.10.12 * Update Pear DB library to 1.10.0 * Update Pear Cache library to 1.5.6 -* Replace ##ereg## functions * Update Adodb to version 5.20.19 * Update ASCIIMathPHP to version 2.1 (from Zefling/ASCIIMathPHP on github.com) * Update highlight.js to version 9.15.6 @@ -43,7 +42,7 @@ * Valid HTML5 and CSS3 logos (in debug mode) * Better is_localhost() function (allow IPv6, allow Windows IIS). Patch by Thierry Nabeth. * Remove Fusionforge-specific files (g view.php wikiadmin.php wikilist.php) -* Remove USE_SAFE_DBSESSION (always true) +* Remove USE_SAFE_DBSESSION (always true), DISABLE_HTTP_REDIRECT * PDO patch by Sébastien Le Callonnec * Updated pgsrc pages in all languages * Adding SPDX-License-Identifier in PHP source files Modified: trunk/pgsrc/ReleaseNotes =================================================================== --- trunk/pgsrc/ReleaseNotes 2021-08-11 17:22:25 UTC (rev 10496) +++ trunk/pgsrc/ReleaseNotes 2021-08-11 17:32:07 UTC (rev 10497) @@ -8,7 +8,7 @@ <<CreateToc with_toclink||=1 headers||=1,2,3 width=300px position=right>> -== 1.6.0 2021-08-XX Marc-Etienne Vargenau == +== 1.6.0 2021-08-12 Marc-Etienne Vargenau == Major release: * PHP 7 and 8 compatible (works from PHP 5.3.3 to PHP 8.0) @@ -35,7 +35,6 @@ * Update PEAR.php to release 1.10.12 * Update Pear DB library to 1.10.0 * Update Pear Cache library to 1.5.6 -* Replace ##ereg## functions * Update Adodb to version 5.20.19 * Update ASCIIMathPHP to version 2.1 (from Zefling/ASCIIMathPHP on github.com) * Update highlight.js to version 9.15.6 @@ -43,7 +42,7 @@ * Valid HTML5 and CSS3 logos (in debug mode) * Better is_localhost() function (allow IPv6, allow Windows IIS). Patch by Thierry Nabeth. * Remove Fusionforge-specific files (g view.php wikiadmin.php wikilist.php) -* Remove USE_SAFE_DBSESSION (always true) +* Remove USE_SAFE_DBSESSION (always true), DISABLE_HTTP_REDIRECT * PDO patch by Sébastien Le Callonnec * Updated pgsrc pages in all languages * Adding SPDX-License-Identifier in PHP source files This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-13 08:15:20
|
Revision: 10504 http://sourceforge.net/p/phpwiki/code/10504 Author: vargenau Date: 2021-08-13 08:15:18 +0000 (Fri, 13 Aug 2021) Log Message: ----------- DBADMIN_USER and DBADMIN_PASSWD are no longer needed for upgrade Modified Paths: -------------- trunk/config/config-default.ini trunk/config/config-dist.ini trunk/configurator.php trunk/doc/INSTALL.mysql trunk/lib/IniConfig.php Modified: trunk/config/config-default.ini =================================================================== --- trunk/config/config-default.ini 2021-08-12 12:53:41 UTC (rev 10503) +++ trunk/config/config-default.ini 2021-08-13 08:15:18 UTC (rev 10504) @@ -150,8 +150,6 @@ DISABLE_GETIMAGESIZE = true ; FORTUNE_DIR = /usr/share/fortune ; GOOGLE_LICENSE_KEY = "..." -; DBADMIN_USER = -; DBADMIN_PASSWD = BLOG_DEFAULT_EMPTY_PREFIX = true ; TOOLBAR_PAGELINK_PULLDOWN = * ; TOOLBAR_TEMPLATE_PULLDOWN = Template* Modified: trunk/config/config-dist.ini =================================================================== --- trunk/config/config-dist.ini 2021-08-12 12:53:41 UTC (rev 10503) +++ trunk/config/config-dist.ini 2021-08-13 08:15:18 UTC (rev 10504) @@ -473,15 +473,6 @@ ; to set this parameter to 0 (disabled). ;DATABASE_OPTIMISE_FREQUENCY = 50 -; Optional: Administrative SQL DB access (for action=upgrade) -; If action=upgrade detects (My)SQL problems, but has no ALTER permissions, -; give here a database username which has the necessary ALTER or CREATE permissions. -; Of course you can fix your database manually. See lib/upgrade.php for known issues. -;DBADMIN_USER = root - -; Optional: Administrative SQL DB access (for action=upgrade) -;DBADMIN_PASSWD = secret - ; Store DB query results (esp. for page lists) in memory to avoid duplicate queries. ; Disable only for old php's with low memory or memory_limit=8MB. ; Requires at least memory_limit=16MB Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-08-12 12:53:41 UTC (rev 10503) +++ trunk/configurator.php 2021-08-13 08:15:18 UTC (rev 10504) @@ -809,12 +809,6 @@ $properties["DATABASE_OPTIMISE_FREQUENCY"] = new numeric_define_optional('DATABASE_OPTIMISE_FREQUENCY', DATABASE_OPTIMISE_FREQUENCY); -$properties["DBADMIN_USER"] = - new _define_optional('DBADMIN_USER', DBADMIN_USER); - -$properties["DBADMIN_PASSWD"] = - new _define_password_optional('DBADMIN_PASSWD', DBADMIN_PASSWD); - $properties["USECACHE"] = new boolean_define_commented_optional('USECACHE'); Modified: trunk/doc/INSTALL.mysql =================================================================== --- trunk/doc/INSTALL.mysql 2021-08-12 12:53:41 UTC (rev 10503) +++ trunk/doc/INSTALL.mysql 2021-08-13 08:15:18 UTC (rev 10504) @@ -62,18 +62,4 @@ "mysql.php" gets included: if (!extension_loaded("mysql")) { dl("mysql.so"); } - -Upgrading a MySQL phpwiki -------------------------- - -If schemas/mysql-initialize.sql has changed for your old phpwiki -installation (or changed when compared to the old "mysql.sql" file), -you can either create missing tables manually and ALTER the changed -tables manually. -Or you can run ?action=upgrade (also from "Upgrade" -at PhpWikiAdministration), but then your database user needs the -necessary ALTER and CREATE permissions. -You might want to set DBADMIN_USER temporarily in your config.ini. -?action=upgrade also brings all changed pgsrc files up-to-date. - /Reini Urban and Arno aho...@ma... Modified: trunk/lib/IniConfig.php =================================================================== --- trunk/lib/IniConfig.php 2021-08-12 12:53:41 UTC (rev 10503) +++ trunk/lib/IniConfig.php 2021-08-13 08:15:18 UTC (rev 10504) @@ -180,7 +180,7 @@ 'IMAP_AUTH_HOST', 'POP3_AUTH_HOST', 'AUTH_USER_FILE', 'AUTH_GROUP_FILE', 'AUTH_SESS_USER', 'AUTH_SESS_LEVEL', 'GOOGLE_LICENSE_KEY', 'FORTUNE_DIR', - 'DISABLE_GETIMAGESIZE', 'DBADMIN_USER', 'DBADMIN_PASSWD', + 'DISABLE_GETIMAGESIZE', 'SESSION_SAVE_PATH', 'TOOLBAR_PAGELINK_PULLDOWN', 'TOOLBAR_TEMPLATE_PULLDOWN', 'TOOLBAR_IMAGE_PULLDOWN', 'EXTERNAL_LINK_TARGET', 'ACCESS_LOG_SQL', 'USE_EXTERNAL_HTML2PDF', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-13 08:32:22
|
Revision: 10505 http://sourceforge.net/p/phpwiki/code/10505 Author: vargenau Date: 2021-08-13 08:32:19 +0000 (Fri, 13 Aug 2021) Log Message: ----------- RECENT_CHANGES is not used Modified Paths: -------------- trunk/config/config-dist.ini trunk/configurator.php Modified: trunk/config/config-dist.ini =================================================================== --- trunk/config/config-dist.ini 2021-08-13 08:15:18 UTC (rev 10504) +++ trunk/config/config-dist.ini 2021-08-13 08:32:19 UTC (rev 10505) @@ -1064,9 +1064,6 @@ ; The default, 604800, is one week (7 days): 7 * 24 * 3600 MINOR_EDIT_TIMEOUT = 604800 -; Page name of RecentChanges page. Used for RSS Auto-discovery -;RECENT_CHANGES = RecentChange - ; If you get a crash at loading LinkIcons you might want to disable ; the getimagesize() function, which crashes on certain php versions and ; and some external images (png's, ..). Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-08-13 08:15:18 UTC (rev 10504) +++ trunk/configurator.php 2021-08-13 08:32:19 UTC (rev 10505) @@ -1455,10 +1455,6 @@ $properties["HTML Dump Filename Suffix"] = new _define_optional('HTML_DUMP_SUFFIX'); -$properties["Pagename of Recent Changes"] = - new _define_optional('RECENT_CHANGES', - "RecentChanges"); - $properties["Disable GETIMAGESIZE"] = new boolean_define_commented_optional('DISABLE_GETIMAGESIZE'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-09-03 07:12:27
|
Revision: 10530 http://sourceforge.net/p/phpwiki/code/10530 Author: vargenau Date: 2021-09-03 07:12:24 +0000 (Fri, 03 Sep 2021) Log Message: ----------- Make list of pages work with PDO (~AllPages, ~MostPopular...) Modified Paths: -------------- trunk/lib/WikiDB/backend/PDO.php trunk/pgsrc/ReleaseNotes Modified: trunk/lib/WikiDB/backend/PDO.php =================================================================== --- trunk/lib/WikiDB/backend/PDO.php 2021-09-03 06:52:13 UTC (rev 10529) +++ trunk/lib/WikiDB/backend/PDO.php 2021-09-03 07:12:24 UTC (rev 10530) @@ -810,8 +810,7 @@ . $limit); $sth->bindParam(1, $pagename, PDO::PARAM_STR, 100); $sth->execute(); - $result = $sth->fetch(PDO::FETCH_BOTH); - return new WikiDB_backend_PDO_iter($this, $result, $this->page_tbl_field_list); + return new WikiDB_backend_PDO_iter($this, $sth, $this->page_tbl_field_list); } /* @@ -890,8 +889,7 @@ } $sth = $dbh->prepare($sql . $limit); $sth->execute(); - $result = $sth->fetch(PDO::FETCH_BOTH); - return new WikiDB_backend_PDO_iter($this, $result, $this->page_tbl_field_list); + return new WikiDB_backend_PDO_iter($this, $sth, $this->page_tbl_field_list); } /* @@ -935,8 +933,7 @@ . $orderby . $limit); $sth->execute(); - $result = $sth->fetch(PDO::FETCH_NUM); - $iter = new WikiDB_backend_PDO_iter($this, $result, $field_list); + $iter = new WikiDB_backend_PDO_iter($this, $sth, $field_list); $iter->stoplisted = $searchobj->stoplisted; return $iter; } @@ -990,8 +987,7 @@ $sth = $dbh->prepare($sql); } $sth->execute(); - $result = $sth->fetch(PDO::FETCH_NUM); - return new WikiDB_backend_PDO_iter($this, $result, $this->page_tbl_field_list); + return new WikiDB_backend_PDO_iter($this, $sth, $this->page_tbl_field_list); } /* @@ -1063,8 +1059,7 @@ $sth = $dbh->prepare($sql); } $sth->execute(); - $result = $sth->fetch(PDO::FETCH_NUM); - return new WikiDB_backend_PDO_iter($this, $result, + return new WikiDB_backend_PDO_iter($this, $sth, array_merge($this->page_tbl_field_list, $this->version_tbl_field_list)); } @@ -1108,8 +1103,7 @@ $sth = $dbh->prepare($sql); } $sth->execute(); - $result = $sth->fetch(PDO::FETCH_NUM); - return new WikiDB_backend_PDO_iter($this, $result, array('pagename', 'wantedfrom')); + return new WikiDB_backend_PDO_iter($this, $sth, array('pagename', 'wantedfrom')); } /** Modified: trunk/pgsrc/ReleaseNotes =================================================================== --- trunk/pgsrc/ReleaseNotes 2021-09-03 06:52:13 UTC (rev 10529) +++ trunk/pgsrc/ReleaseNotes 2021-09-03 07:12:24 UTC (rev 10530) @@ -1,4 +1,4 @@ -Date: Wed, 11 Aug 2021 10:03:04 +0000 +Date: Fri, 3 Sep 2021 09:09:27 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=ReleaseNotes; @@ -8,6 +8,11 @@ <<CreateToc with_toclink||=1 headers||=1,2,3 width=300px position=right>> +== 1.6.1 2021-XX-XX Marc-Etienne Vargenau == + +=== Fixes === +* Make list of pages work with PDO (~AllPages, ~MostPopular...) + == 1.6.0 2021-08-12 Marc-Etienne Vargenau == Major release: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-09-03 13:24:44
|
Revision: 10536 http://sourceforge.net/p/phpwiki/code/10536 Author: vargenau Date: 2021-09-03 13:24:39 +0000 (Fri, 03 Sep 2021) Log Message: ----------- Remove ADODB DATABASE_TYPE. Use SQL (Pear) or PDO. Modified Paths: -------------- trunk/config/config-default.ini trunk/config/config-dist.ini trunk/configurator.php trunk/doc/INSTALL.mysql trunk/doc/INSTALL.sqlite trunk/doc/README.phpwiki-auth trunk/lib/DbSession/PDO.php trunk/lib/DbSession.php trunk/lib/IniConfig.php trunk/lib/PageList.php trunk/lib/Request.php trunk/lib/WikiDB/SQL.php trunk/lib/WikiDB/backend/PDO.php trunk/lib/WikiDB/backend/file.php trunk/lib/WikiDB/backend.php trunk/lib/WikiDB.php trunk/lib/WikiGroup.php trunk/lib/WikiUser/Db.php trunk/lib/WikiUser.php trunk/lib/main.php trunk/lib/plugin/SqlResult.php trunk/lib/plugin/SystemInfo.php trunk/lib/plugin/WhoIsOnline.php trunk/lib/prepend.php trunk/lib/wikilens/RatingsDb.php trunk/locale/Makefile trunk/locale/de/LC_MESSAGES/phpwiki.mo trunk/locale/es/LC_MESSAGES/phpwiki.mo trunk/locale/fr/LC_MESSAGES/phpwiki.mo trunk/locale/it/LC_MESSAGES/phpwiki.mo trunk/locale/ja/LC_MESSAGES/phpwiki.mo trunk/locale/nl/LC_MESSAGES/phpwiki.mo trunk/locale/po/de.po trunk/locale/po/es.po trunk/locale/po/fr.po trunk/locale/po/it.po trunk/locale/po/ja.po trunk/locale/po/nl.po trunk/locale/po/phpwiki.pot trunk/locale/po/sv.po trunk/locale/po/zh.po trunk/locale/sv/LC_MESSAGES/phpwiki.mo trunk/locale/update-makefile.sh trunk/locale/zh/LC_MESSAGES/phpwiki.mo trunk/pgsrc/Help%2FPluginManagerPlugin trunk/pgsrc/ReleaseNotes trunk/tests/unit/lib/SetupWiki.php trunk/tests/unit/readme.html trunk/tests/unit/runme_all trunk/tests/unit/test.php trunk/tests/xmlrpc/xmlrpc-servers.php Removed Paths: ------------- trunk/doc/INSTALL.mssqlnative trunk/lib/DbSession/ADODB.php trunk/lib/WikiDB/ADODB.php trunk/lib/WikiDB/adodb/ trunk/lib/WikiDB/backend/ADODB.php trunk/lib/WikiDB/backend/ADODB_mssql.php trunk/lib/WikiDB/backend/ADODB_mssqlnative.php trunk/lib/WikiDB/backend/ADODB_mysql.php trunk/lib/WikiDB/backend/ADODB_oci8po.php trunk/lib/WikiDB/backend/ADODB_postgres7.php trunk/lib/WikiDB/backend/ADODB_sqlite.php trunk/lib/WikiUser/AdoDb.php trunk/locale/.exclude Modified: trunk/config/config-default.ini =================================================================== --- trunk/config/config-default.ini 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/config/config-default.ini 2021-09-03 13:24:39 UTC (rev 10536) @@ -51,7 +51,7 @@ INSECURE_ACTIONS_LOCALHOST_ONLY = true ENABLE_MODERATEDPAGE_ALL = false ACCESS_LOG = "" -; ACCESS_LOG_SQL: on SQL or ADODB 2, else 0 +; ACCESS_LOG_SQL: on SQL 2, else 0 ; ACCESS_LOG_SQL = 0 ; COMPRESS_OUTPUT = true CACHE_CONTROL = LOOSE Modified: trunk/config/config-dist.ini =================================================================== --- trunk/config/config-dist.ini 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/config/config-dist.ini 2021-09-03 13:24:39 UTC (rev 10536) @@ -284,7 +284,7 @@ ; ; If defined (e.g. 1) read-access is done via SQL. ; If flag 2 is set, phpwiki also writes. Default on SQL database. -; This must use DATABASE_TYPE = SQL or ADODB or PDO. +; This must use DATABASE_TYPE = SQL or PDO. ; ACCESS_LOG_SQL = 0 ; disable SQL access logging ; ACCESS_LOG_SQL = 1 ; phpwiki reads, apache mod_log_sql writes ;ACCESS_LOG_SQL = 2 ; read + write @@ -392,8 +392,7 @@ ; Select the database backend type: ; ; SQL: access one of several SQL databases using the PEAR DB library. -; ADODB: uses the ADODB library for data access. (most general) -; PDO: The new PHP5 dataobkject library. (experimental, no paging yet) +; PDO: The new PHP5 library. ; dba: use one of the standard UNIX dbm libraries. Use BerkeleyDB (db3,4) (fastest) ; file: use a serialized file database. (easiest) ; flatfile: use a flat file database. (experimental, readable, slow) @@ -519,8 +518,7 @@ ; BogoLogin: WikiWord username, with no *actual* password checking, ; although the user will still have to enter one. ; PersonalPage: Store passwords in the users homepage metadata (simple) -; Db: Use DBAUTH_AUTH_* (see below) with PearDB or -; ADODB only. +; Db: Use DBAUTH_AUTH_* (see below) with PearDB ; LDAP: Authenticate against LDAP_AUTH_HOST with LDAP_BASE_DN ; IMAP: Authenticate against IMAP_AUTH_HOST (email account) ; POP3: Authenticate against POP3_AUTH_HOST (email account) Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/configurator.php 2021-09-03 13:24:39 UTC (rev 10536) @@ -674,15 +674,14 @@ new _define_selection("DATABASE_TYPE", array('dba' => "dba", 'SQL' => "SQL PEAR", - 'ADODB' => "SQL ADODB", 'PDO' => "PDO", 'file' => "flatfile")/*, " Select the database backend type: Choose dba (default) to use one of the standard UNIX dba libraries. This is the fastest. -Choose ADODB or SQL to use an SQL database with ADODB or PEAR. -Choose PDO to use an SQL database. (experimental, no paging yet) +Choose SQL to use an SQL database with PEAR. +Choose PDO to use an SQL database. flatfile is simple and slow. -Recommended is dba or SQL: PEAR or ADODB."*/); +Recommended is dba or SQL: PEAR."*/); $properties["SQL DSN Setup"] = new unchangeable_variable('_sqldsnstuff', "", " @@ -705,7 +704,7 @@ DATABASE_DSN = pgsql://localhost/user_phpwiki </pre>"); -// Choose ADODB or SQL to use an SQL database with ADODB or PEAR. +// Choose SQL to use an SQL database with PEAR. // Choose dba to use one of the standard UNIX dbm libraries. $properties["SQL Type"] = @@ -715,9 +714,9 @@ 'mssql' => "Microsoft SQL Server", 'mssqlnative' => "Microsoft SQL Server (native)", 'oci8' => "Oracle 8", - 'mysqli' => "mysqli (only ADODB)", - 'mysqlt' => "mysqlt (only ADODB)", - 'ODBC' => "ODBC (only ADODB or PDO)", + 'mysqli' => "mysqli", + 'mysqlt' => "mysqlt)", + 'ODBC' => "ODBC (only PDO)", 'firebird' => "Firebird (only PDO)", 'oracle' => "Oracle (only PDO)", ), " @@ -858,7 +857,7 @@ <dt>PersonalPage</dt> <dd>Store passwords in the users homepage metadata (simple)</dd> <dt>Db</dt> - <dd>Use DBAUTH_AUTH_* (see below) with PearDB or ADODB only.</dd> + <dd>Use DBAUTH_AUTH_* (see below) with PearDB only.</dd> <dt>LDAP</dt> <dd>Authenticate against LDAP_AUTH_HOST with LDAP_BASE_DN.</dd> <dt>IMAP</dt> Deleted: trunk/doc/INSTALL.mssqlnative =================================================================== --- trunk/doc/INSTALL.mssqlnative 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/doc/INSTALL.mssqlnative 2021-09-03 13:24:39 UTC (rev 10536) @@ -1,49 +0,0 @@ -Installing phpwiki with MS SQL Server Native Driver for ADOdb ------------------------------------------------------------ - -Microsoft has been working hard to get support for their products -into Open Source projects. The MS SQL Server 2005 Driver for ADOdb -is one step in that direction. The following is instructions on how -to get and install the new mssql php driver for ADOdb as well as -how to get the new driver to work with phpWiki. - -As of the writing of this walkthrough, the latest version of the PHP -driver for SQL Server 2005 is the May 2008 Community Technical Preview. -If you don't already have a copy of the SQL Server 2005 for PHP -driver installed on your server, you can get a copy at: -http://www.microsoft.com/sql/technologies/php/default.mspx - -This assumes that you have PHP 5 installed as well as a working copy of -any edition of SQL Server 2005 or SQL Server 2000 (including Express -Edition). If you do not have a copy of the free SQL Server 2005 Express -Edition you can download it from: -http://go.microsoft.com/fwlink/?LinkId=64064 - -1. If you do not have a database created already, create one using - the SQL Server Management tool. You can get the free Express version at: - http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1- - 4E3D-94B8-5A0F62BF7796&displaylang=en - -2. If necessary create a user for that database which has the rights - to select, insert, update, delete. For more information on how to use - SQL Server 2005 you can download SQL Server 2005 Books Online at: - http://www.microsoft.com/downloads/details.aspx?FamilyId=BE6A2C5D-00DF- - 4220-B133-29C1E0B6585F&displaylang=en - -3. Create the tables and functions inside your database by running the SQL - file included with the phpWiki project located at: - schemas/sqlsrv-initialize.sql - -4. Edit the DATABASE settings in config/config.ini to reflect your settings. - - a) DATABASE_TYPE should be set to 'ADODB' (case sensitive) - b) DATABASE_DSN should be set to something like: - 'mssqlnative://username:password@pathtosqlserver/databasename' - c) Note that if you set DATABASE_PREFIX to a non-empty string, you will - have to edit schemas/sqlsrv-initialize.sql before you perform step - three (above). You might also edit schemas/sqlsrv-destroy.sql at the - same time, so you don't forget. - - Note: DATABASE_DIRECTORY and DATABASE_DBA_HANDLER are ignored for mssql. - -That's it. phpWiki should work now. Modified: trunk/doc/INSTALL.mysql =================================================================== --- trunk/doc/INSTALL.mysql 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/doc/INSTALL.mysql 2021-09-03 13:24:39 UTC (rev 10536) @@ -40,7 +40,7 @@ 4. Edit the DATABASE settings in config/config.ini to reflect your settings. - a) DATABASE_TYPE should be set to 'SQL' or 'ADODB'. + a) DATABASE_TYPE should be set to 'SQL'. b) DATABASE_DSN should be set to something like 'mysql://guest@unix(/var/lib/mysql/mysql.sock)/phpwiki". (where 'phpwiki' is the mysql database name.) Modified: trunk/doc/INSTALL.sqlite =================================================================== --- trunk/doc/INSTALL.sqlite 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/doc/INSTALL.sqlite 2021-09-03 13:24:39 UTC (rev 10536) @@ -20,7 +20,6 @@ Edit the DATABASE settings in config/config.ini to reflect your settings. a) DATABASE_TYPE must be set to 'SQL'. - ADODB not yet. This is planned for the 1.4.0 release. b) DATABASE_DSN should be set to something like DATABASE_DSN = "sqlite:////tmp/phpwiki-sqlite.db?mode=0664&persistent=1" Modified: trunk/doc/README.phpwiki-auth =================================================================== --- trunk/doc/README.phpwiki-auth 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/doc/README.phpwiki-auth 2021-09-03 13:24:39 UTC (rev 10536) @@ -126,8 +126,8 @@ * __~BogoLogin__: This will eventually replace the old ALLOW_BOGO_LOGIN constant, but it will require PASSWORD_LENGTH_MINIMUM. So non-empty passwords can be disabled. * __~PersonalPage__: Store passwords in the users homepage metadata (simple) -* __Db__: Use $DBAuthParams~[~] (see below) with PearDB or ADODB only. - If 'auth_dsn' is undefined, and wiki pages are stored via SQL or ADODB, +* __Db__: Use $DBAuthParams~[~] (see below) with PearDB only. + If 'auth_dsn' is undefined, and wiki pages are stored via SQL, it uses the same database. (fastest) * __LDAP__: Authenticate against LDAP_AUTH_HOST with the LDAP_AUTH_SEARCH settings * __IMAP__: Authenticate against IMAP_AUTH_HOST (e.g. an existing email account) @@ -170,9 +170,7 @@ The database can be external like radius, phpnuke, courier authmysql, apache auth_mysql or just a simple user table within phpwiki. The most likely auth_dsn option is the same dsn as the wikipages, in -fact if it's empty $DBParams~['dsn'~] is used. If -$DBParams~['db_type'~] is not ADODB, the Pear DB library is used -(db_type = SQL). +fact if it's empty $DBParams~['dsn'~] is used. This is the list of the available options and some examples. For the statements we use the following symbolic variables: $user_id : loginname @@ -181,9 +179,6 @@ $groupname : groupname Note: The symbolic variables (like "$password", ...) must be enclosed in double quotes! -ADODB Warning: With ADODB we must currently define the correct alias names: SELECT db_column as name -This requirement will go away when we switch to FETCH_ROW instead of the slower FETCH_ASSOC -(scheduled for 1.4.0) ;auth_dsn: 'mysql://user@password:localhost/phpwiki' Deleted: trunk/lib/DbSession/ADODB.php =================================================================== --- trunk/lib/DbSession/ADODB.php 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/lib/DbSession/ADODB.php 2021-09-03 13:24:39 UTC (rev 10536) @@ -1,256 +0,0 @@ -<?php -/** - * Copyright © 2005 $ThePhpWikiProgrammingTeam - * - * This file is part of PhpWiki. - * - * PhpWiki is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpWiki is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with PhpWiki; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - */ - -/** - * ADODB db sessions, based on pear DB Sessions. - * - * @author: Reini Urban - */ - -class DbSession_ADODB - extends DbSession -{ - public $_backend_type = "ADODB"; - - function __construct($dbh, $table) - { - $this->_dbh = $dbh; - $this->_table = $table; - - session_set_save_handler(array(&$this, 'open'), - array(&$this, 'close'), - array(&$this, 'read'), - array(&$this, 'write'), - array(&$this, 'destroy'), - array(&$this, 'gc')); - } - - function & _connect() - { - global $request; - static $parsed = false; - $dbh = &$this->_dbh; - if (!$dbh or !is_resource($dbh->_connectionID)) { - if (!$parsed) $parsed = parseDSN($request->_dbi->getParam('dsn')); - $this->_dbh = ADONewConnection($parsed['phptype']); // Probably only MySql works just now - $this->_dbh->Connect($parsed['hostspec'], $parsed['username'], - $parsed['password'], $parsed['database']); - $dbh = &$this->_dbh; - } - return $dbh; - } - - function query($sql) - { - return $this->_dbh->Execute($sql); - } - - // adds surrounding quotes - function quote($string) - { - return $this->_dbh->qstr($string); - } - - function _disconnect() - { - if (0 and $this->_dbh) - $this->_dbh->close(); - } - - /** - * Opens a session. - * - * Actually this function is a fake for session_set_save_handle. - * @param string $save_path a path to stored files - * @param string $session_name a name of the concrete file - * @return boolean true just a variable to notify PHP that everything - * is good. - */ - public function open($save_path, $session_name) - { - //$this->log("_open($save_path, $session_name)"); - return true; - } - - /** - * Closes a session. - * - * This function is called just after <i>write</i> call. - * - * @return boolean true just a variable to notify PHP that everything - * is good. - */ - public function close() - { - //$this->log("_close()"); - return true; - } - - /** - * Reads the session data from DB. - * - * @param string $id an id of current session - * @return string - */ - public function read($id) - { - //$this->log("_read($id)"); - $dbh = $this->_connect(); - $table = $this->_table; - $qid = $dbh->qstr($id); - $res = ''; - $row = $dbh->GetRow("SELECT sess_data FROM $table WHERE sess_id=$qid"); - if ($row) - $res = $row[0]; - $this->_disconnect(); - if (!empty($res) and preg_match('|^[a-zA-Z0-9/+=]+$|', $res)) - $res = base64_decode($res); - if (strlen($res) > 4000) { - // trigger_error("Overlarge session data! ".strlen($res). " gt. 4000", E_USER_WARNING); - $res = preg_replace('/s:6:"_cache";O:12:"WikiDB_cache".+}$/', "", $res); - $res = preg_replace('/s:12:"_cached_html";s:.+",s:4:"hits"/', 's:4:"hits"', $res); - if (strlen($res) > 4000) { - $res = ''; - } - } - return $res; - } - - /** - * Saves the session data into DB. - * - * Just a comment: The "write" handler is not - * executed until after the output stream is closed. Thus, - * output from debugging statements in the "write" handler - * will never be seen in the browser. If debugging output - * is necessary, it is suggested that the debug output be - * written to a file instead. - * - * @param string $id - * @param string $sess_data - * @return boolean true if data saved successfully and false - * otherwise. - */ - public function write($id, $sess_data) - { - /** - * @var WikiRequest $request - */ - global $request; - - if (defined("WIKI_XMLRPC") or defined("WIKI_SOAP")) return false; - - $dbh = $this->_connect(); - $table = $this->_table; - $qid = $dbh->qstr($id); - $qip = $dbh->qstr($request->get('REMOTE_ADDR')); - $time = $dbh->qstr(time()); - - // postgres can't handle binary data in a TEXT field. - if (is_a($dbh, 'ADODB_postgres64')) - $sess_data = base64_encode($sess_data); - $qdata = $dbh->qstr($sess_data); - - $dbh->execute("DELETE FROM $table WHERE sess_id=$qid"); - $rs = $dbh->execute("INSERT INTO $table" - . " (sess_id, sess_data, sess_date, sess_ip)" - . " VALUES ($qid, $qdata, $time, $qip)"); - $result = !$rs->EOF; - if ($result) $rs->free(); - $this->_disconnect(); - return $result; - } - - /** - * Destroys a session. - * - * Removes a session from the table. - * - * @param string $id - * @return boolean true - */ - public function destroy($id) - { - $dbh = $this->_connect(); - $table = $this->_table; - $qid = $dbh->qstr($id); - - $dbh->Execute("DELETE FROM $table WHERE sess_id=$qid"); - - $this->_disconnect(); - return true; - } - - /** - * Cleans out all expired sessions. - * - * @param int $maxlifetime session's time to live. - * @return boolean true - */ - public function gc($maxlifetime) - { - $dbh = $this->_connect(); - $table = $this->_table; - $threshold = time() - $maxlifetime; - - $dbh->Execute("DELETE FROM $table WHERE sess_date < $threshold"); - - $this->_disconnect(); - return true; - } - - // WhoIsOnline support - // TODO: ip-accesstime dynamic blocking API - function currentSessions() - { - $sessions = array(); - $dbh = $this->_connect(); - $table = $this->_table; - $rs = $dbh->Execute("SELECT sess_data,sess_date,sess_ip FROM $table ORDER BY sess_date DESC"); - if ($rs->EOF) { - $rs->free(); - return $sessions; - } - while (!$rs->EOF) { - $row = $rs->fetchRow(); - $data = $row[0]; - $date = $row[1]; - $ip = $row[2]; - if (preg_match('|^[a-zA-Z0-9/+=]+$|', $data)) - $data = base64_decode($data); - if ($date < 908437560 or $date > 1588437560) - $date = 0; - // session_data contains the <variable name> + "|" + <packed string> - // we need just the wiki_user object (might be array as well) - $user = strstr($data, "wiki_user|"); - $sessions[] = array('wiki_user' => substr($user, 10), // from "O:" onwards - 'date' => $date, - 'ip' => $ip); - $rs->MoveNext(); - } - $rs->free(); - $this->_disconnect(); - return $sessions; - } -} Modified: trunk/lib/DbSession/PDO.php =================================================================== --- trunk/lib/DbSession/PDO.php 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/lib/DbSession/PDO.php 2021-09-03 13:24:39 UTC (rev 10536) @@ -120,9 +120,6 @@ $res = ''; } $this->_disconnect(); - if (!empty($res) and is_a($dbh, 'ADODB_postgres64')) { - $res = base64_decode($res); - } if (strlen($res) > 4000) { // trigger_error("Overlarge session data! ".strlen($res). " gt. 4000", E_USER_WARNING); $res = preg_replace('/s:6:"_cache";O:12:"WikiDB_cache".+}$/', "", $res); @@ -163,10 +160,6 @@ $time = time(); $remote_addr = $request->get('REMOTE_ADDR'); - // postgres can't handle binary data in a TEXT field. - if (is_a($dbh, 'ADODB_postgres64')) - $sess_data = base64_encode($sess_data); - $this->_backend->beginTransaction(); $delete = $dbh->prepare("DELETE FROM $table WHERE sess_id=?"); $delete->bindParam(1, $id, PDO::PARAM_STR, 32); Modified: trunk/lib/DbSession.php =================================================================== --- trunk/lib/DbSession.php 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/lib/DbSession.php 2021-09-03 13:24:39 UTC (rev 10536) @@ -24,7 +24,7 @@ */ /** - * Store sessions data in Pear DB / ADODB / dba / PDO, .... + * Store sessions data in Pear DB / dba / PDO, .... * * History * @@ -31,7 +31,7 @@ * Originally by Stanislav Shramko <st...@mo...> * Minor rewrite by Reini Urban <ru...@x-...> for Phpwiki. * Quasi-major rewrite/decruft/fix by Jeff Dairiki <da...@da...>. - * ADODB, dba and PDO classes by Reini Urban. + * dba and PDO classes by Reini Urban. * */ class DbSession Modified: trunk/lib/IniConfig.php =================================================================== --- trunk/lib/IniConfig.php 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/lib/IniConfig.php 2021-09-03 13:24:39 UTC (rev 10536) @@ -320,7 +320,7 @@ unset($rsdef[$item]); } } - $valid_database_types = array('SQL', 'ADODB', 'PDO', 'dba', 'file', 'flatfile'); + $valid_database_types = array('SQL', 'PDO', 'dba', 'file', 'flatfile'); if (!in_array(DATABASE_TYPE, $valid_database_types)) trigger_error(sprintf("Invalid DATABASE_TYPE=%s. Choose one of %s", DATABASE_TYPE, join(",", $valid_database_types)), @@ -333,7 +333,7 @@ // USE_DB_SESSION default logic: if (!defined('USE_DB_SESSION')) { if ($DBParams['db_session_table'] - and in_array($DBParams['dbtype'], array('SQL', 'ADODB', 'PDO', 'dba')) + and in_array($DBParams['dbtype'], array('SQL', 'PDO', 'dba')) ) { define('USE_DB_SESSION', true); } else { @@ -391,7 +391,7 @@ if (!defined('ACCESS_LOG_SQL')) { if (array_key_exists('ACCESS_LOG_SQL', $rs)) { // WikiDB_backend::isSql() not yet loaded - if (!in_array(DATABASE_TYPE, array('SQL', 'ADODB', 'PDO'))) { + if (!in_array(DATABASE_TYPE, array('SQL', 'PDO'))) { // override false config setting on no SQL WikiDB database. define('ACCESS_LOG_SQL', 0); } @@ -398,7 +398,7 @@ // SQL defaults to ACCESS_LOG_SQL = 2 } else { define('ACCESS_LOG_SQL', - in_array(DATABASE_TYPE, array('SQL', 'ADODB', 'PDO')) ? 2 : 0); + in_array(DATABASE_TYPE, array('SQL', 'PDO')) ? 2 : 0); } } Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/lib/PageList.php 2021-09-03 13:24:39 UTC (rev 10536) @@ -985,10 +985,6 @@ $res = $dbi->_backend->_dbh->getOne("SELECT max(length(pagename)) FROM $page_tbl"); if (DB::isError($res) || empty($res)) return false; else return $res; - } elseif (is_a($dbi, 'WikiDB_ADODB')) { - extract($dbi->_backend->_table_names); - $row = $dbi->_backend->_dbh->getRow("SELECT max(length(pagename)) FROM $page_tbl"); - return $row ? $row[0] : false; } else return false; } Modified: trunk/lib/Request.php =================================================================== --- trunk/lib/Request.php 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/lib/Request.php 2021-09-03 13:24:39 UTC (rev 10536) @@ -821,8 +821,8 @@ if ($do_sql) { global $DBParams; - if (!in_array($DBParams['dbtype'], array('SQL', 'ADODB', 'PDO'))) { - trigger_error(_("Unsupported database backend for ACCESS_LOG_SQL. Need DATABASE_TYPE=SQL or ADODB or PDO.")); + if (!in_array($DBParams['dbtype'], array('SQL', 'PDO'))) { + trigger_error(_("Unsupported database backend for ACCESS_LOG_SQL. Need DATABASE_TYPE=SQL or PDO.")); } else { $this->logtable = (!empty($DBParams['prefix']) ? $DBParams['prefix'] : '') . "accesslog"; } Deleted: trunk/lib/WikiDB/ADODB.php =================================================================== --- trunk/lib/WikiDB/ADODB.php 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/lib/WikiDB/ADODB.php 2021-09-03 13:24:39 UTC (rev 10536) @@ -1,140 +0,0 @@ -<?php -/** - * Copyright © 2001,2003 Jeff Dairiki - * Copyright © 2001-2002 Carsten Klapp - * Copyright © 2004-2010 Reini Urban - * - * This file is part of PhpWiki. - * - * PhpWiki is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpWiki is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with PhpWiki; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - */ - -require_once 'lib/WikiDB.php'; - -/** - * WikiDB layer for ADODB, which does nothing more than calling the - * mysql-specific ADODB backend. - * Support for a newer adodb library, the adodb extension library - * and more databases will come with PhpWiki v1.3.10 - * - * @author: Lawrence Akka, Reini Urban - */ - -class WikiDB_ADODB extends WikiDB -{ - function __construct($dbparams) - { - $backend = 'ADODB'; - if (is_array($dbparams['dsn'])) - $backend = $dbparams['dsn']['phptype']; - elseif (preg_match('/^(\w+):/', $dbparams['dsn'], $m)) - $backend = $m[1]; - // Do we have a override? (currently: mysql, sqlite, oracle, mssql, oci8po, postgres7) - // TODO: mysqlt (innodb or bdb) - if ($backend == 'pgsql') { // PearDB DSN cross-compatibility hack (for unit testing) - $backend = 'postgres7'; - if (is_string($dbparams['dsn'])) - $dbparams['dsn'] = $backend . ':' . substr($dbparams['dsn'], 6); - } - if (findFile("lib/WikiDB/backend/ADODB_" . $backend . ".php", true)) { - $backend = 'ADODB_' . $backend; - } else { - $backend = 'ADODB'; - } - include_once 'lib/WikiDB/backend/' . $backend . '.php'; - $backend_class = "WikiDB_backend_" . $backend; - $backend = new $backend_class($dbparams); - if (!$backend->_dbh->_connectionID) return; - parent::__construct($backend, $dbparams); - } - - /* - * Determine whether page exists (in non-default form). - * @see WikiDB::isWikiPage for the slow generic version - */ - public function isWikiPage($pagename) - { - $pagename = (string)$pagename; - if ($pagename === '') { - return false; - } - if (!array_key_exists($pagename, $this->_cache->_id_cache)) { - $this->_cache->_id_cache[$pagename] = $this->_backend->is_wiki_page($pagename); - } - return $this->_cache->_id_cache[$pagename]; - } - - // add surrounding quotes '' if string - public function quote($s) - { - if (is_int($s) || is_double($s)) { - return $s; - } elseif (is_bool($s)) { - return $s ? 1 : 0; - } elseif (is_null($s)) { - return 'NULL'; - } else { - return $this->_backend->_dbh->qstr($s); - } - } - - // ADODB handles everything as string - // Don't add surrounding quotes '', same as in PearDB - public function qstr($in) - { - return $this->_backend->_dbh->addq($in); - } - - public function isOpen() - { - /** - * @var WikiRequest $request - */ - global $request; - - if (!$request->_dbi) { - return false; - } - return is_resource($this->_backend->connection()); - } - - // SQL result: for simple select or create/update queries - // returns the database specific resource type - public function genericSqlQuery($sql, $args = array()) - { - if ($args) - $result = $this->_backend->_dbh->Execute($sql, $args); - else - $result = $this->_backend->_dbh->Execute($sql); - if (!$result) { - trigger_error("SQL Error: " . $this->_backend->_dbh->ErrorMsg(), E_USER_WARNING); - return false; - } else { - return $result; - } - } - - // SQL iter: for simple select or create/update queries - // returns the generic iterator object (count, next) - public function genericSqlIter($sql, $field_list = NULL) - { - $result = $this->genericSqlQuery($sql); - return new WikiDB_backend_ADODB_generic_iter($this->_backend, $result, $field_list); - } - -} Modified: trunk/lib/WikiDB/SQL.php =================================================================== --- trunk/lib/WikiDB/SQL.php 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/lib/WikiDB/SQL.php 2021-09-03 13:24:39 UTC (rev 10536) @@ -34,7 +34,7 @@ $backend = $dbparams['dsn']['phptype']; elseif (preg_match('/^(\w+):/', $dbparams['dsn'], $m)) $backend = $m[1]; - if ($backend == 'postgres7') { // ADODB cross-compatibility hack (for unit testing) + if ($backend == 'postgres7') { $backend = 'pgsql'; if (is_string($dbparams['dsn'])) $dbparams['dsn'] = $backend . ':' . substr($dbparams['dsn'], 10); Deleted: trunk/lib/WikiDB/backend/ADODB.php =================================================================== --- trunk/lib/WikiDB/backend/ADODB.php 2021-09-03 11:30:25 UTC (rev 10535) +++ trunk/lib/WikiDB/backend/ADODB.php 2021-09-03 13:24:39 UTC (rev 10536) @@ -1,1492 +0,0 @@ -<?php -/** - * Copyright © 2002,2004,2005,2006 $ThePhpWikiProgrammingTeam - * - * This file is part of PhpWiki. - * - * PhpWiki is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpWiki is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with PhpWiki; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - */ - -/** - * Based on PearDB.php. - * @author: Lawrence Akka, Reini Urban - * - * Now (since phpwiki-1.3.10) with adodb-4.22, by Reini Urban: - * 1) Extended to use all available database backends, not only mysql. - * 2) It uses the ultra-fast binary adodb extension if loaded. - * 3) We use FETCH_NUM instead of FETCH_ASSOC (faster and more generic) - * 4) To support generic iterators which return ASSOC fields, and to support queries with - * variable columns, some trickery was needed to use recordset specific fetchMode. - * The first Execute uses the global fetchMode (ASSOC), then it's resetted back to NUM - * and the recordset fetchmode is set to ASSOC. - * 5) Transaction support, and locking as fallback. - * 6) 2004-12-10 added extra page.cached_html - * - * phpwiki-1.3.11, by Philippe Vanhaesendonck - * - pass column list to iterators so we can FETCH_NUM in all cases - * phpwiki-1.3.12: get rid of ISNULL - * phpwiki-1.3.13: tsearch2 and stored procedures - * - * ADODB basic differences to PearDB: It pre-fetches the first row into fields, - * is dirtier in style, layout and more low-level ("worse is better"). - * It has less needed basic features (modifyQuery, locks, ...), but some more - * unneeded features included: paging, monitoring and sessions, and much more drivers. - * No locking (which PearDB supports in some backends), and sequences are very - * bad compared to PearDB. - * Old Comments, by Lawrence Akka: - * 1) ADODB's GetRow() is slightly different from that in PEAR. It does not - * accept a fetchmode parameter - * That doesn't matter too much here, since we only ever use FETCHMODE_ASSOC - * 2) No need for ''s around strings in sprintf arguments - qstr puts them - * there automatically - * 3) ADODB has a version of GetOne, but it is difficult to use it when - * FETCH_ASSOC is in effect. - * Instead, use $rs = Execute($query); $value = $rs->fields["$colname"] - * 4) No error handling yet - could use ADOConnection->raiseErrorFn - * 5) It used to be faster then PEAR/DB at the beginning of 2002. - * Now at August 2002 PEAR/DB with our own page cache added, - * performance is comparable. - */ - -require_once 'lib/WikiDB/backend.php'; -// Error handling - calls trigger_error. NB - does not close the connection. Does it need to? -include_once 'lib/WikiDB/adodb/adodb-errorhandler.inc.php'; -// include the main adodb file -require_once 'lib/WikiDB/adodb/adodb.inc.php'; - -class WikiDB_backend_ADODB - extends WikiDB_backend -{ - - function __construct($dbparams) - { - $parsed = parseDSN($dbparams['dsn']); - $this->_dbparams = $dbparams; - $this->_parsedDSN =& $parsed; - $this->_dbh = ADONewConnection($parsed['phptype']); - if (DEBUG & _DEBUG_SQL) { - $this->_dbh->debug = true; - $GLOBALS['ADODB_OUTP'] = '_sql_debuglog'; - } - $this->_dsn = $parsed; - // persistent is defined as DSN option, or with a config value. - // phptype://username:password@hostspec/database?persistent=false - - //FIXME: how to catch connection errors for dbamin_user? - if (!empty($parsed['persistent']) or DATABASE_PERSISTENT) - $conn = $this->_dbh->PConnect($parsed['hostspec'], $parsed['username'], - $parsed['password'], $parsed['database']); - else - $conn = $this->_dbh->Connect($parsed['hostspec'], $parsed['username'], - $parsed['password'], $parsed['database']); - if (!$conn) return; - - // Since 1.3.10 we use the faster ADODB_FETCH_NUM, - // with some ASSOC based recordsets. - $GLOBALS['ADODB_FETCH_MODE'] = ADODB_FETCH_NUM; - $this->_dbh->SetFetchMode(ADODB_FETCH_NUM); - $GLOBALS['ADODB_COUNTRECS'] = false; - - $prefix = isset($dbparams['prefix']) ? $dbparams['prefix'] : ''; - $this->_table_names - = array('page_tbl' => $prefix . 'page', - 'version_tbl' => $prefix . 'version', - 'link_tbl' => $prefix . 'link', - 'recent_tbl' => $prefix . 'recent', - 'nonempty_tbl' => $prefix . 'nonempty'); - $page_tbl = $this->_table_names['page_tbl']; - $version_tbl = $this->_table_names['version_tbl']; - $this->page_tbl_fields = "$page_tbl.id AS id, $page_tbl.pagename AS pagename, " - . "$page_tbl.hits AS hits"; - $this->links_field_list = array('id', 'pagename'); - $this->page_tbl_field_list = array('id', 'pagename', 'hits'); - $this->version_tbl_fields = "$version_tbl.version AS version, " - . "$version_tbl.mtime AS mtime, " - . "$version_tbl.minor_edit AS minor_edit, $version_tbl.content AS content, " - . "$version_tbl.versiondata AS versiondata"; - $this->version_tbl_field_list = array('version', 'mtime', 'minor_edit', 'content', - 'versiondata'); - - $this->_expressions - = array('maxmajor' => "MAX(CASE WHEN minor_edit=0 THEN version END)", - 'maxminor' => "MAX(CASE WHEN minor_edit<>0 THEN version END)", - 'maxversion' => "MAX(version)", - 'notempty' => "<>''", - 'iscontent' => "$version_tbl.content<>''"); - $this->_lock_count = 0; - } - - /** - * Close database connection. - */ - function close() - { - if (!$this->_dbh) { - return; - } - if ($this->_lock_count) { - trigger_error("WARNING: database still locked " . - '(lock_count = $this->_lock_count)' . "\n<br />", - E_USER_WARNING); - } - $this->unlock(array(), 'force'); - - $this->_dbh->close(); - $this->_dbh = false; - } - - /* - * Fast test for wikipage. - */ - function is_wiki_page($pagename) - { - $dbh = &$this->_dbh; - extract($this->_table_names); - $row = $dbh->GetRow(sprintf("SELECT $page_tbl.id AS id" - . " FROM $nonempty_tbl, $page_tbl" - . " WHERE $nonempty_tbl.id=$page_tbl.id" - . " AND pagename=%s", - $dbh->qstr($pagename))); - return $row ? $row[0] : false; - } - - function get_all_pagenames() - { - $dbh = &$this->_dbh; - extract($this->_table_names); - $result = $dbh->Execute("SELECT pagename" - . " FROM $nonempty_tbl, $page_tbl" - . " WHERE $nonempty_tbl.id=$page_tbl.id"); - return $result->GetArray(); - } - - /* - * filter (nonempty pages) currently ignored - */ - function numPages($filter = false, $exclude = '') - { - $dbh = &$this->_dbh; - extract($this->_table_names); - $result = $dbh->getRow("SELECT count(*)" - . " FROM $nonempty_tbl, $page_tbl" - . " WHERE $nonempty_tbl.id=$page_tbl.id"); - return $result[0]; - } - - function increaseHitCount($pagename) - { - $dbh = &$this->_dbh; - // Hits is the only thing we can update in a fast manner. - // Note that this will fail silently if the page does not - // have a record in the page table. Since it's just the - // hit count, who cares? - $dbh->Execute(sprintf("UPDATE %s SET hits=hits+1 WHERE pagename=%s", - $this->_table_names['page_tbl'], - $dbh->qstr($pagename))); - return; - } - - /* - * Read page information from database. - */ - function get_pagedata($pagename) - { - $dbh = &$this->_dbh; - $row = $dbh->GetRow(sprintf("SELECT id,pagename,hits,pagedata FROM %s WHERE pagename=%s", - $this->_table_names['page_tbl'], - $dbh->qstr($pagename))); - return $row ? $this->_extract_page_data($row[3], $row[2]) : false; - } - - public function _extract_page_data($data, $hits) - { - if (empty($data)) { - return array('hits' => $hits); - } else { - return array_merge(array('hits' => $hits), $this->_unserialize($data)); - } - } - - function update_pagedata($pagename, $newdata) - { - $dbh = &$this->_dbh; - $page_tbl = $this->_table_names['page_tbl']; - - // Hits is the only thing we can update in a fast manner. - if (count($newdata) == 1 && isset($newdata['hits'])) { - // Note that this will fail silently if the page does not - // have a record in the page table. Since it's just the - // hit count, who cares? - $dbh->Execute(sprintf("UPDATE $page_tbl SET hits=%d WHERE pagename=%s", - $newdata['hits'], $dbh->qstr($pagename))); - return true; - } - $where = sprintf("pagename=%s", $dbh->qstr($pagename)); - $dbh->BeginTrans(); - $dbh->RowLock($page_tbl, $where); - - $data = $this->get_pagedata($pagename); - if (!$data) { - $data = array(); - $this->_get_pageid($pagename, true); // Creates page record - } - - $hits = (empty($data['hits'])) ? 0 : (int)$data['hits']; - unset($data['hits']); - - foreach ($newdata as $key => $val) { - if ($key == 'hits') - $hits = (int)$val; - else if (empty($val)) - unset($data[$key]); - else - $data[$key] = $val; - } - if ($dbh->Execute("UPDATE $page_tbl" - . " SET hits=?, pagedata=?" - . " WHERE pagename=?", - array($hits, $this->_serialize($data), $pagename)) - ) { - $dbh->CommitTrans(); - return true; - } else { - $dbh->RollbackTrans(); - return false; - } - } - - function get_cached_html($pagename) - { - $dbh = &$this->_dbh; - $page_tbl = $this->_table_names['page_tbl']; - $row = $dbh->GetRow(sprintf("SELECT cached_html FROM $page_tbl WHERE pagename=%s", - $dbh->qstr($pagename))); - return $row ? $row[0] : false; - } - - function set_cached_html($pagename, $data) - { - $dbh = &$this->_dbh; - $page_tbl = $this->_table_names['page_tbl']; - if (empty($data)) $data = ''; - $dbh->Execute("UPDATE $page_tbl" - . " SET cached_html=?" - . " WHERE pagename=?", - array($data, $pagename)); - } - - function _get_pageid($pagename, $create_if_missing = false) - { - // check id_cache - global $request; - $cache =& $request->_dbi->_cache->_id_cache; - if (isset($cache[$pagename])) { - if ($cache[$pagename] or !$create_if_missing) { - return $cache[$pagename]; - } - } - - // attributes play this game. - if ($pagename === '') return 0; - - $dbh = &$this->_dbh; - $page_tbl = $this->_table_names['page_tbl']; - $query = sprintf("SELECT id FROM $page_tbl WHERE pagename=%s", - $dbh->qstr($pagename)); - if (!$create_if_missing) { - $row = $dbh->GetRow($query); - return $row ? $row[0] : false; - } - $row = $dbh->GetRow($query); - if (!$row) { - //TODO: Does the DBM has subselects? Then we can do it with select max(id)+1 - // $this->lock(array('page')); - $dbh->BeginTrans(); - $dbh->CommitLock($page_tbl); - if (0 and $dbh->hasGenID) { - // requires create permissions - $id = $dbh->GenID($page_tbl . "_id"); - } else { - // Better generic version than with adodb::genID - $row = $dbh->GetRow("SELECT MAX(id) FROM $page_tbl"); - $id = $row[0] + 1; - } - $rs = $dbh->Execute(sprintf("INSERT INTO $page_tbl" - . " (id,pagename,hits)" - . " VALUES (%d,%s,0)", - $id, $dbh->qstr($pagename))); - if ($rs) $dbh->CommitTrans(); - else $dbh->RollbackTrans(); - // $this->unlock(array('page')); - } else { - $id = $row[0]; - } - assert($id); - return $id; - } - - function get_latest_version($pagename) - { - $dbh = &$this->_dbh; - extract($this->_table_names); - $row = $dbh->GetRow(sprintf("SELECT latestversion" - . " FROM $page_tbl, $recent_tbl" - . " WHERE $page_tbl.id=$recent_tbl.id" - . " AND pagename=%s", - $dbh->qstr($pagename))); - return $row ? (int)$row[0] : false; - } - - function get_previous_version($pagename, $version) - { - $dbh = &$this->_dbh; - extract($this->_table_names); - // Use SELECTLIMIT for maximum portability - $rs = $dbh->SelectLimit(sprintf("SELECT version" - . " FROM $version_tbl, $page_tbl" - . " WHERE $version_tbl.id=$page_tbl.id" - . " AND pagename=%s" - . " AND version < %d" - . " ORDER BY version DESC", - $dbh->qstr($pagename), - $version), - 1); - return $rs->fields ? (int)$rs->fields[0] : false; - } - - /** - * Get version data. - * - * @param string $pagename Name of the page - * @param int $version Which version to get - * @param bool $want_content Do we need content? - * - * @return array|false The version data, or false if specified version does not exist. - */ - function get_versiondata($pagename, $version, $want_content = false) - { - $dbh = &$this->_dbh; - extract($this->_table_names); - extract($this->_expressions); - - assert(is_string($pagename) and $pagename != ''); - assert($version > 0); - - // FIXME: optimization: sometimes don't get page data? - if ($want_content) { - $fields = $this->page_tbl_fields - . ",$page_tbl.pagedata AS pagedata," - . $this->version_tbl_fields; - } else { - $fields = $this->page_tbl_fields . ", '' AS pagedata" - . ", $version_tbl.version AS version, $version_tbl.mtime AS mtime, " - . "$version_tbl.minor_edit AS minor_edit, $iscontent AS have_content, " - . "$version_tbl.versiondata as versiondata"; - } - $row = $dbh->GetRow(sprintf("SELECT $fields" - . " FROM $page_tbl, $version_tbl" - . " WHERE $page_tbl.id=$version_tbl.id" - . " AND pagename=%s" - . " AND version=%d", - $dbh->qstr($pagename), $version)); - return $row ? $this->_extract_version_data_num($row, $want_content) : false; - } - - private function _extract_version_data_num($row, $want_content) - { - if (!$row) - return false; - - //$id &= $row[0]; - //$pagename &= $row[1]; - $data = empty($row[8]) ? array() : $this->_unserialize($row[8]); - $data['mtime'] = $row[5]; - $data['is_minor_edit'] = !empty($row[6]); - if ($want_content) { - $data['%content'] = $row[7]; - } else { - $data['%content'] = !empty($row[7]); - } - if (!empty($row[3])) { - $data['%pagedata'] = $this->_extract_page_data($row[3], $row[2]); - } - return $data; - } - - function _extract_version_data_assoc($row) - { - if (!$row) - return false; - - extract($row); - $data = empty($versiondata) ? array() : $this->_unserialize($versiondata); - $data['mtime'] = $mtime; - $data['is_minor_edit'] = !empty($minor_edit); - if (isset($content)) - $data['%content'] = $content; - elseif ($have_content) - $data['%content'] = true; else - $data['%content'] = ''; - if (!empty($pagedata)) { - // hmm, $pagedata = is already extracted by WikiDB_backend_ADODB_iter - //$data['%pagedata'] = $this->_extract_page_data($pagedata, $hits); - $data['%pagedata'] = $pagedata; - } - return $data; - } - - /* - * Create a new revision of a page. - */ - function set_versiondata($pagename, $version, $data) - { - $dbh = &$this->_dbh; - $version_tbl = $this->_table_names['version_tbl']; - - $minor_edit = (int)!empty($data['is_minor_edit']); - unset($data['is_minor_edit']); - - $mtime = (int)$data['mtime']; - unset($data['mtime']); - assert(!empty($mtime)); - - $content = isset($data['%content']) ? (string)$data['%content'] : ''; - unset($data['%content']); - unset($data['%pagedata']); - - $this->lock(array('page', 'recent', 'version', 'nonempty')); - $dbh->BeginTrans(); - $dbh->CommitLock($version_tbl); - $id = $this->_get_pageid($pagename, true); - $dbh->Execute(sprintf("DELETE FROM $version_tbl" - . " WHERE id=%d AND version=%d", - $id, $version)); - $rs = $dbh->Execute("INSERT INTO $version_tbl" - . " (id,version,mtime,minor_edit,content,versiondata)" - . " VALUES(?,?,?,?,?,?)", - array($id, $version, $mtime, $minor_edit, - $content, $this->_serialize($data))); - $this->_update_recent_table($id); - $this->_update_nonempty_table($id); - if ($rs) { - $dbh->CommitTrans(); - } else { - $dbh->RollbackTrans(); - } - $this->unlock(array('page', 'recent', 'version', 'nonempty')); - } - - /* - * Delete an old revision of a page. - */ - function delete_versiondata($pagename, $version) - { - $dbh = &$this->_dbh; - extract($this->_table_names); - - $this->lock(array('version')); - if (($id = $this->_get_pageid($pagename))) { - $dbh->Execute("DELETE FROM $version_tbl" - . " WHERE id=$id AND version=$version"); - $this->_update_recent_table($id); - // This shouldn't be needed (as long as the latestversion - // never gets deleted.) But, let's be safe. - $this->_update_nonempty_table($id); - } - $this->unlock(array('version')); - } - - /* - * Delete page from the database with backup possibility. - * i.e save_page('') and DELETE nonempty id - * - * deletePage increments latestversion in recent to a non-existent version, - * and removes the nonempty row, - * so that get_latest_version returns id+1 and get_previous_version returns prev id - * and page->exists returns false. - */ - function delete_page($pagename) - { - /** - * @var WikiRequest $request - */ - global $request; - - $dbh = &$this->_dbh; - extract($this->_table_names); - - $dbh->BeginTrans(); - $dbh->CommitLock($recent_tbl); - if (($id = $this->_get_pageid($pagename)) === false) { - $dbh->RollbackTrans(); - return false; - } - $mtime = time(); - $user =& $request->_user; - $meta = array('author' => $user->getId(), - 'author_id' => $user->getAuthenticatedId(), - 'mtime' => $mtime); - $this->lock(array('version', 'recent', 'nonempty', 'page', 'link')); - $version = $this->get_latest_version($pagename); - if ($dbh->Execute("UPDATE $recent_tbl SET latestversion=latestversion+1," - . "latestmajor=latestversion+1,latestminor=NULL WHERE id=$id") - and $dbh->Execute("INSERT INTO $version_tbl" - . " (id,version,mtime,minor_edit,content,versiondata)" - . " VALUES(?,?,?,?,?,?)", - array($id, $version + 1, $mtime, 0, - '', $this->_serialize($meta))) - and $dbh->Execute("DELETE FROM $nonempty_tbl WHERE id=$id") - // need to keep perms and LOCKED, otherwise you can reset the perm - // by action=remove and re-create it with default perms - // keep hits but delete meta-data - //and $dbh->Execute("UPDATE $page_tbl SET pagedata='' WHERE id=$id") - ) { - $this->set_links($pagename, array()); - $this->unlock(array('version', 'recent', 'nonempty', 'page', 'link')); - $dbh->CommitTrans(); - return true; - } else { - $this->unlock(array('version', 'recent', 'nonempty', 'page', 'link')); - $dbh->RollbackTrans(); - return false; - } - } - - /* - * Delete page completely from the database. - */ - function purge_page($pagename) - { - $dbh = &$this->_dbh; - extract($this->_table_names); - - $this->lock(array('version', 'recent', 'nonempty', 'page', 'link')); - if (($id = $this->_get_pageid($pagename))) { - $dbh->Execute("DELETE FROM $nonempty_tbl WHERE id=$id"); - $dbh->Execute("DELETE FROM $recent_tbl WHERE id=$id"); - $dbh->Execute("DELETE FROM $version_tbl WHERE id=$id"); - $this->set_links($pagename, array()); - $row = $dbh->GetRow("SELECT COUNT(*) FROM $link_tbl WHERE linkto=$id"); - if ($row and $row[0]) { - // We're still in the link table (dangling link) so we can't delete this - // altogether. - $dbh->Execute("UPDATE $page_tbl SET hits=0, pagedata='' WHERE id=$id"); - $result = 0; - } else { - $dbh->Execute("DELETE FROM $page_tbl WHERE id=$id"); - $result = 1; - } - } else { - $result = -1; // already purged or not existing - } - $this->unlock(array('version', 'recent', 'nonempty', 'page', 'link')); - return $result; - } - - /** - * Set links for page. - * - * @param string $pagename Page name - * @param array $links List of page(names) which page links to. - */ - function set_links($pagename, $links) - { - // Update link table. - // FIXME: optimize: mysql can do this all in one big INSERT/REPLACE. - - $dbh = &$this->_dbh; - extract($this->_table_names); - - $this->lock(array('link')); - $pageid = $this->_get_pageid($pagename, true); - - $oldlinks = $dbh->getAssoc("SELECT $link_tbl.linkto as id, page.pagename FROM $link_tbl" - . " JOIN page ON ($link_tbl.linkto = page.id)" - . " WHERE linkfrom=$pageid"); - // Delete current links, - $dbh->Execute("DELETE FROM $link_tbl WHERE linkfrom=$pageid"); - // and insert new links. Faster than checking for all single links - if ($links) { - foreach ($links as $link) { - $linkto = $link['linkto']; - if ($linkto === "") { // ignore attributes - continue; - } - if (isset($link['relation'])) - $relation = $this->_get_pageid($link['relation'], true); - else - $relation = 0; - // avoid duplicates - if (isset($linkseen[$linkto]) and !$relation) { - continue; - } - if (!$relation) { - $linkseen[$linkto] = true; - } - $linkid = $this->_get_pageid($linkto, true); - assert($linkid); - if ($relation) { - $dbh->Execute("INSERT INTO $link_tbl (linkfrom, linkto, relation)" - . " VALUES ($pageid, $linkid, $relation)"); - } else { - $dbh->Execute("INSERT INTO $link_tbl (linkfrom, linkto)" - . " VALUES ($pageid, $linkid)"); - } - if ($oldlinks and array_key_exists($linkid, $oldlinks)) { - // This was also in the previous page - unset($oldlinks[$linkid]); - } - } - } - $this->unlock(array('link')); - } - - /** - * Find pages which link to or are linked from a page. - * - * @param string $pagename Page name - * @param bool $reversed True to get backlinks - * @param bool $include_empty True to get empty pages - * @param string $sortby - * @param string $limit - * @param string $exclude Pages to exclude - * @param bool $want_relations - * - * FIXME: array or iterator? - * @return object A WikiDB_backend_iterator. - * - * Optimization: save request->_dbi->_iwpcache[] to avoid further iswikipage checks - * (linkExistingWikiWord or linkUnknownWikiWord) - * This is called on every page header GleanDescription, so we can store all the - * existing links. - * - * relations: $backend->get_links is responsible to add the relation to the pagehash - * as 'linkrelation' key as pagename. See WikiDB_PageIterator::next - * if (isset($next['linkrelation'])) - */ - function get_links($pagename, $reversed = true, $include_empty = false, - $sortby = '', $limit = '', $exclude = '', - $want_relations = false) - { - $dbh = &$this->_dbh; - extract($this->_table_names); - - if ($reversed) - list($have, $want) = array('linkee', 'linker'); - else - list($have, $want) = array('linker', 'linkee'); - $orderby = $this->sortby($sortby, 'db', array('pagename')); - if ($orderby) $orderby = " ORDER BY $want." . $orderby; - if ($exclude) // array of pagenames - $exclude = " AND $want.pagename NOT IN " . $this->_sql_set($exclude); - else - $exclude = ''; - - $qpagename = $dbh->qstr($pagename); - // removed ref to FETCH_MODE in next line - $sql = "SELECT $want.id AS id, $want.pagename AS pagename, " - . ($want_relations ? " related.pagename as linkrelation" : " $want.hits AS hits") - . " FROM " - . (!$include_empty ? "$nonempty_tbl, " : '') - . " $page_tbl linkee, $page_tbl linker, $link_tbl " - . ($want_relations ? " JOIN $page_tbl related ON ($link_tbl.relation=related.id)" : '') - . " WHERE linkfrom=linker.id AND linkto=linkee.id" - . " AND $have.pagename=$qpagename" - . (!$include_empty ? " AND $nonempty_tbl.id=$want.id" : "") - //. " GROUP BY $want.id" - . $exclude - . $orderby; - if ($limit) { - // extract from,count from limit - list($offset, $count) = $this->limit($limit); - $result = $dbh->SelectLimit($sql, $count, $offset); - } else { - $result = $dbh->Execute($sql); - } - $fields = $this->links_field_list; - if ($want_relations) // instead of hits - $fields[2] = 'linkrelation'; - return new WikiDB_backend_ADODB_iter($this, $result, $fields); - } - - /* - * Find if a page links to another page - */ - function exists_link($pagename, $link, $reversed = false) - { - $dbh = &$this->_dbh; - extract($this->_table_names); - ... [truncated message content] |
From: <var...@us...> - 2021-09-03 17:07:18
|
Revision: 10538 http://sourceforge.net/p/phpwiki/code/10538 Author: vargenau Date: 2021-09-03 17:07:16 +0000 (Fri, 03 Sep 2021) Log Message: ----------- Add "Rename" tab in Sidebar theme Modified Paths: -------------- trunk/locale/de/LC_MESSAGES/phpwiki.mo trunk/locale/es/LC_MESSAGES/phpwiki.mo trunk/locale/fr/LC_MESSAGES/phpwiki.mo trunk/locale/it/LC_MESSAGES/phpwiki.mo trunk/locale/ja/LC_MESSAGES/phpwiki.mo trunk/locale/nl/LC_MESSAGES/phpwiki.mo trunk/locale/po/de.po trunk/locale/po/es.po trunk/locale/po/fr.po trunk/locale/po/it.po trunk/locale/po/ja.po trunk/locale/po/nl.po trunk/locale/po/phpwiki.pot trunk/locale/po/sv.po trunk/locale/po/zh.po trunk/locale/sv/LC_MESSAGES/phpwiki.mo trunk/locale/zh/LC_MESSAGES/phpwiki.mo trunk/pgsrc/ReleaseNotes trunk/themes/Sidebar/templates/actionbar.tmpl Modified: trunk/locale/de/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/es/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/fr/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/it/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/ja/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/nl/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/po/de.po =================================================================== --- trunk/locale/po/de.po 2021-09-03 16:29:57 UTC (rev 10537) +++ trunk/locale/po/de.po 2021-09-03 17:07:16 UTC (rev 10538) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-03 15:22+0200\n" +"POT-Creation-Date: 2021-09-03 19:05+0200\n" "PO-Revision-Date: 2000-10-31 02:23+0200\n" "Last-Translator: Reini Urban <ru...@x-...>, Carsten Klapp " "<car...@us...>, Helmer Pardun <pardunpress@t-online." @@ -5827,6 +5827,9 @@ msgid "Past versions of this page." msgstr "Älteren Versionen dieser Seite." +msgid "Rename this page" +msgstr "Diese Seite umbenennen" + msgid "Add/Remove this to/from the list of pages you're monitoring for changes" msgstr "" Modified: trunk/locale/po/es.po =================================================================== --- trunk/locale/po/es.po 2021-09-03 16:29:57 UTC (rev 10537) +++ trunk/locale/po/es.po 2021-09-03 17:07:16 UTC (rev 10538) @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-03 15:22+0200\n" +"POT-Creation-Date: 2021-09-03 19:05+0200\n" "PO-Revision-Date: 2000-02-01 00:50-0500\n" "Last-Translator: Pablo Roca <pr...@cl...>\n" "Language-Team: \n" @@ -3495,7 +3495,7 @@ #, php-format msgid "Renamed page from “%s” to “%s”." -msgstr "retitulado de “%s” para “%s”." +msgstr "Retitulado de “%s” para “%s”." #, php-format msgid "Renaming created redirect page from “%s” to “%s”" @@ -5659,6 +5659,9 @@ msgid "Past versions of this page." msgstr "Versión anterior de esta página." +msgid "Rename this page" +msgstr "Retitule esta página" + msgid "Add/Remove this to/from the list of pages you're monitoring for changes" msgstr "" Modified: trunk/locale/po/fr.po =================================================================== --- trunk/locale/po/fr.po 2021-09-03 16:29:57 UTC (rev 10537) +++ trunk/locale/po/fr.po 2021-09-03 17:07:16 UTC (rev 10538) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-03 15:22+0200\n" +"POT-Creation-Date: 2021-09-03 19:05+0200\n" "PO-Revision-Date: 2004-06-22 21:10+0200\n" "Last-Translator: Pierrick Meignen <mei...@wa...>, Roland " "Trique <rol...@fr...>, Stéphane Gourichon <stephane.gourichon@lip6." @@ -5782,6 +5782,9 @@ msgid "Past versions of this page." msgstr "Versions précédentes de cette page." +msgid "Rename this page" +msgstr "Renommer cette page" + msgid "Add/Remove this to/from the list of pages you're monitoring for changes" msgstr "Ajouter ou supprimer de la liste de pages que vous surveillez" Modified: trunk/locale/po/it.po =================================================================== --- trunk/locale/po/it.po 2021-09-03 16:29:57 UTC (rev 10537) +++ trunk/locale/po/it.po 2021-09-03 17:07:16 UTC (rev 10538) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-03 15:22+0200\n" +"POT-Creation-Date: 2021-09-03 19:05+0200\n" "PO-Revision-Date: 2005-02-12 16:23+0100\n" "Last-Translator: Antonio Bonifati ant[(at)]monitor.deis.unical.it\n" "Language-Team: \n" @@ -5618,6 +5618,9 @@ msgid "Past versions of this page." msgstr "" +msgid "Rename this page" +msgstr "Rinominare questa pagina" + msgid "Add/Remove this to/from the list of pages you're monitoring for changes" msgstr "" Modified: trunk/locale/po/ja.po =================================================================== --- trunk/locale/po/ja.po 2021-09-03 16:29:57 UTC (rev 10537) +++ trunk/locale/po/ja.po 2021-09-03 17:07:16 UTC (rev 10538) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-03 15:22+0200\n" +"POT-Creation-Date: 2021-09-03 19:05+0200\n" "PO-Revision-Date: 2003-06-07 09:01+0900\n" "Last-Translator: Tadashi Jokagi <web...@el...>\n" "Language-Team: LANGUAGE <LL...@li...>\n" @@ -5604,6 +5604,9 @@ msgid "Past versions of this page." msgstr "" +msgid "Rename this page" +msgstr "" + msgid "Add/Remove this to/from the list of pages you're monitoring for changes" msgstr "" Modified: trunk/locale/po/nl.po =================================================================== --- trunk/locale/po/nl.po 2021-09-03 16:29:57 UTC (rev 10537) +++ trunk/locale/po/nl.po 2021-09-03 17:07:16 UTC (rev 10538) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-03 15:22+0200\n" +"POT-Creation-Date: 2021-09-03 19:05+0200\n" "PO-Revision-Date: 2000-09-30 02:23+0200\n" "Last-Translator: Jan Nieuwenhuizen <ja...@gn...>\n" "Language-Team: Dutch <nl...@li...>\n" @@ -5610,6 +5610,9 @@ msgid "Past versions of this page." msgstr "" +msgid "Rename this page" +msgstr "" + msgid "Add/Remove this to/from the list of pages you're monitoring for changes" msgstr "" Modified: trunk/locale/po/phpwiki.pot =================================================================== --- trunk/locale/po/phpwiki.pot 2021-09-03 16:29:57 UTC (rev 10537) +++ trunk/locale/po/phpwiki.pot 2021-09-03 17:07:16 UTC (rev 10538) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki-1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-03 15:22+0200\n" +"POT-Creation-Date: 2021-09-03 19:05+0200\n" "PO-Revision-Date: 2002-12-14 17:51-0500\n" "Last-Translator: Reini Urban <ru...@us...>\n" "Language-Team: LANGUAGE <LL...@li...>\n" @@ -5604,6 +5604,9 @@ msgid "Past versions of this page." msgstr "" +msgid "Rename this page" +msgstr "" + msgid "Add/Remove this to/from the list of pages you're monitoring for changes" msgstr "" Modified: trunk/locale/po/sv.po =================================================================== --- trunk/locale/po/sv.po 2021-09-03 16:29:57 UTC (rev 10537) +++ trunk/locale/po/sv.po 2021-09-03 17:07:16 UTC (rev 10538) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-03 15:22+0200\n" +"POT-Creation-Date: 2021-09-03 19:05+0200\n" "PO-Revision-Date: 2001-01-27 01:58+0200\n" "Last-Translator: Jon Åslund <jo...@he...>\n" "Language-Team: \n" @@ -5605,6 +5605,9 @@ msgid "Past versions of this page." msgstr "" +msgid "Rename this page" +msgstr "" + msgid "Add/Remove this to/from the list of pages you're monitoring for changes" msgstr "" Modified: trunk/locale/po/zh.po =================================================================== --- trunk/locale/po/zh.po 2021-09-03 16:29:57 UTC (rev 10537) +++ trunk/locale/po/zh.po 2021-09-03 17:07:16 UTC (rev 10538) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-03 15:22+0200\n" +"POT-Creation-Date: 2021-09-03 19:05+0200\n" "PO-Revision-Date: 2004-04-21 10:08+0800\n" "Last-Translator: DruryL <dr...@us...>\n" "Language-Team: DruryL <dr...@us...>\n" @@ -5632,6 +5632,9 @@ msgid "Past versions of this page." msgstr "" +msgid "Rename this page" +msgstr "" + msgid "Add/Remove this to/from the list of pages you're monitoring for changes" msgstr "" Modified: trunk/locale/sv/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/zh/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/pgsrc/ReleaseNotes =================================================================== --- trunk/pgsrc/ReleaseNotes 2021-09-03 16:29:57 UTC (rev 10537) +++ trunk/pgsrc/ReleaseNotes 2021-09-03 17:07:16 UTC (rev 10538) @@ -1,4 +1,4 @@ -Date: Fri, 3 Sep 2021 15:21:18 +0000 +Date: Fri, 3 Sep 2021 18:58:14 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=ReleaseNotes; @@ -15,6 +15,7 @@ === Changes === * Remove ADODB DATABASE_TYPE. Use SQL (Pear) or PDO. +* Add "Rename" tab in Sidebar theme. == 1.6.0 2021-08-12 Marc-Etienne Vargenau == Modified: trunk/themes/Sidebar/templates/actionbar.tmpl =================================================================== --- trunk/themes/Sidebar/templates/actionbar.tmpl 2021-09-03 16:29:57 UTC (rev 10537) +++ trunk/themes/Sidebar/templates/actionbar.tmpl 2021-09-03 17:07:16 UTC (rev 10538) @@ -26,6 +26,8 @@ <?php echo ActionButton(__("PageHistory"), _("History"), false, array('title'=>_("Past versions of this page."))) ?> <?php echo ActionButton("diff") ?> <?php if ($user->isSignedIn()) { ?> + <?php echo ActionButton(__("rename"), _("Rename"), false, + array('title'=>_("Rename this page"))) ?> <?php echo ActionButton(__("WatchPage"), _("Watch"), false, array('title'=>_("Add/Remove this to/from the list of pages you're monitoring for changes"))) ?> <?php } ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |