You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(43) |
Nov
(73) |
Dec
(10) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(34) |
Feb
(110) |
Mar
(24) |
Apr
(44) |
May
(37) |
Jun
(22) |
Jul
(20) |
Aug
(28) |
Sep
(50) |
Oct
(11) |
Nov
(132) |
Dec
(595) |
2002 |
Jan
(1099) |
Feb
(579) |
Mar
(63) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(125) |
Sep
(101) |
Oct
(25) |
Nov
(34) |
Dec
(47) |
2003 |
Jan
(82) |
Feb
(182) |
Mar
(71) |
Apr
(3) |
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
(14) |
Oct
(6) |
Nov
(124) |
Dec
(68) |
2004 |
Jan
(64) |
Feb
(191) |
Mar
(199) |
Apr
(298) |
May
(252) |
Jun
(426) |
Jul
(134) |
Aug
(13) |
Sep
(96) |
Oct
(75) |
Nov
(232) |
Dec
(171) |
2005 |
Jan
(205) |
Feb
(165) |
Mar
(8) |
Apr
(74) |
May
(21) |
Jun
(19) |
Jul
(37) |
Aug
(69) |
Sep
(141) |
Oct
(118) |
Nov
(31) |
Dec
(7) |
2006 |
Jan
(5) |
Feb
(10) |
Mar
(35) |
Apr
(24) |
May
(34) |
Jun
(29) |
Jul
(5) |
Aug
(38) |
Sep
(30) |
Oct
(37) |
Nov
(30) |
Dec
(86) |
2007 |
Jan
(414) |
Feb
(40) |
Mar
(18) |
Apr
(10) |
May
(66) |
Jun
(60) |
Jul
(105) |
Aug
(55) |
Sep
(64) |
Oct
(7) |
Nov
(11) |
Dec
(5) |
2008 |
Jan
(26) |
Feb
(28) |
Mar
(79) |
Apr
(34) |
May
(61) |
Jun
(24) |
Jul
(29) |
Aug
(160) |
Sep
(62) |
Oct
(70) |
Nov
(32) |
Dec
(14) |
2009 |
Jan
(140) |
Feb
(135) |
Mar
(153) |
Apr
(53) |
May
(24) |
Jun
(138) |
Jul
(90) |
Aug
(46) |
Sep
(72) |
Oct
(84) |
Nov
(32) |
Dec
(4) |
2010 |
Jan
(13) |
Feb
(7) |
Mar
(14) |
Apr
(55) |
May
(89) |
Jun
(131) |
Jul
(41) |
Aug
(38) |
Sep
(42) |
Oct
(11) |
Nov
(27) |
Dec
(54) |
2011 |
Jan
(127) |
Feb
(16) |
Mar
(71) |
Apr
(52) |
May
(32) |
Jun
(31) |
Jul
(4) |
Aug
|
Sep
(45) |
Oct
(26) |
Nov
(36) |
Dec
(10) |
2012 |
Jan
(23) |
Feb
(6) |
Mar
(13) |
Apr
(18) |
May
(1) |
Jun
(4) |
Jul
(3) |
Aug
(12) |
Sep
(57) |
Oct
(96) |
Nov
(163) |
Dec
(124) |
2013 |
Jan
(11) |
Feb
(17) |
Mar
(7) |
Apr
(48) |
May
(15) |
Jun
(29) |
Jul
(12) |
Aug
|
Sep
(9) |
Oct
|
Nov
|
Dec
(3) |
2014 |
Jan
(4) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(8) |
Jun
(90) |
Jul
(104) |
Aug
(12) |
Sep
(81) |
Oct
(139) |
Nov
(111) |
Dec
(64) |
2015 |
Jan
(46) |
Feb
(74) |
Mar
(56) |
Apr
(61) |
May
(3) |
Jun
(7) |
Jul
(11) |
Aug
(5) |
Sep
(15) |
Oct
(1) |
Nov
(1) |
Dec
(15) |
2016 |
Jan
(25) |
Feb
(33) |
Mar
(24) |
Apr
(4) |
May
(24) |
Jun
(3) |
Jul
(75) |
Aug
|
Sep
(2) |
Oct
(38) |
Nov
(4) |
Dec
(18) |
2017 |
Jan
(8) |
Feb
(1) |
Mar
(1) |
Apr
|
May
(14) |
Jun
|
Jul
(5) |
Aug
(9) |
Sep
|
Oct
(23) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(9) |
Apr
(60) |
May
(1) |
Jun
|
Jul
(13) |
Aug
|
Sep
(11) |
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
(15) |
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(47) |
2021 |
Jan
(24) |
Feb
(33) |
Mar
(1) |
Apr
|
May
(1) |
Jun
(64) |
Jul
(71) |
Aug
(114) |
Sep
(82) |
Oct
(32) |
Nov
(76) |
Dec
(86) |
2022 |
Jan
(162) |
Feb
(41) |
Mar
(11) |
Apr
(9) |
May
|
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(7) |
2023 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(25) |
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
2024 |
Jan
(7) |
Feb
(3) |
Mar
(3) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
|
Feb
(90) |
Mar
(19) |
Apr
|
May
(6) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <var...@us...> - 2009-10-17 15:45:30
|
Revision: 7217 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7217&view=rev Author: vargenau Date: 2009-10-17 15:45:24 +0000 (Sat, 17 Oct 2009) Log Message: ----------- Remove unused xml plugin syntax (better use Wikicreole plugin syntax) Modified Paths: -------------- trunk/TODO trunk/config/config-default.ini trunk/config/config-dist.ini trunk/lib/IniConfig.php trunk/lib/InlineParser.php Modified: trunk/TODO =================================================================== --- trunk/TODO 2009-10-17 15:19:39 UTC (rev 7216) +++ trunk/TODO 2009-10-17 15:45:24 UTC (rev 7217) @@ -27,10 +27,6 @@ TODO for 1.4.0: architecture: * Optimization: try template_lite or try simple regex replacements as before. -* Evaluate some xml syntax for plugins (as in MediaWiki): - <IncludePages pages=<plugin-list BackLinks/> /> - <BackLink include_self=false /> - And/or fix PLUGIN_MARKUP_MAP aliases which break the InlineParser. * Fix postgresql stored procedures. * Move serialized data from page_data / version_data to seperate SQL columns. * WikiDB hooks. (?) Modified: trunk/config/config-default.ini =================================================================== --- trunk/config/config-default.ini 2009-10-17 15:19:39 UTC (rev 7216) +++ trunk/config/config-default.ini 2009-10-17 15:45:24 UTC (rev 7217) @@ -154,7 +154,6 @@ ENABLE_MARKUP_COLOR = true DISABLE_MARKUP_WIKIWORD = false ENABLE_MARKUP_DIVSPAN = false -PLUGIN_MARKUP_MAP = "" ; these not: ; DBAUTH_AUTH_DSN = Modified: trunk/config/config-dist.ini =================================================================== --- trunk/config/config-dist.ini 2009-10-17 15:19:39 UTC (rev 7216) +++ trunk/config/config-dist.ini 2009-10-17 15:45:24 UTC (rev 7217) @@ -1047,11 +1047,6 @@ ; Enable <div> and <span> HTML blocks and attributes. Experimental. Not yet working. ;ENABLE_MARKUP_DIVSPAN = true -; Plugin shortcuts: Enable <xml> syntax mapped to a plugin invocation. (as in mediawiki) -; <name arg=value>body</name> or <name /> => <?plugin pluginname arg=value body ?> -; This breaks the InlineParser. -;PLUGIN_MARKUP_MAP = "html:RawHtml dot:GraphViz toc:CreateToc amath:AsciiMath richtable:RichTable include:IncludePage tex:TexToPng" - ;========================================================================== ; Part Six: URL options. ;========================================================================== Modified: trunk/lib/IniConfig.php =================================================================== --- trunk/lib/IniConfig.php 2009-10-17 15:19:39 UTC (rev 7216) +++ trunk/lib/IniConfig.php 2009-10-17 15:45:24 UTC (rev 7217) @@ -155,7 +155,7 @@ 'PLUGIN_CACHED_DATABASE', 'PLUGIN_CACHED_FILENAME_PREFIX', 'PLUGIN_CACHED_HIGHWATER', 'PLUGIN_CACHED_LOWWATER', 'PLUGIN_CACHED_MAXLIFETIME', 'PLUGIN_CACHED_MAXARGLEN', 'PLUGIN_CACHED_IMGTYPES', - 'WYSIWYG_BACKEND', 'PLUGIN_MARKUP_MAP', + 'WYSIWYG_BACKEND', // extra logic: 'SERVER_NAME','SERVER_PORT','SCRIPT_NAME', 'DATA_PATH', 'PHPWIKI_DIR', 'VIRTUAL_PATH', 'EXTERNAL_HTML2PDF_PAGELIST', 'PLUGIN_CACHED_CACHE_DIR' @@ -423,18 +423,6 @@ in_array(DATABASE_TYPE, array('SQL','ADODB','PDO')) ? 2 : 0); } - global $PLUGIN_MARKUP_MAP; - $PLUGIN_MARKUP_MAP = array(); - if (defined('PLUGIN_MARKUP_MAP') and trim(PLUGIN_MARKUP_MAP) != "") { - $_map = preg_split('/\s+/', PLUGIN_MARKUP_MAP); - foreach ($_map as $v) { - list($xml,$plugin) = split(':', $v); - if (!empty($xml) and !empty($plugin)) - $PLUGIN_MARKUP_MAP[$xml] = $plugin; - } - unset($_map); unset($xml); unset($plugin); unset($v); - } - if (empty($rs['TEMP_DIR'])) { $rs['TEMP_DIR'] = "/tmp"; if (getenv("TEMP")) Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2009-10-17 15:19:39 UTC (rev 7216) +++ trunk/lib/InlineParser.php 2009-10-17 15:45:24 UTC (rev 7217) @@ -937,43 +937,6 @@ } } -// Special version for plugins in xml syntax -// <name arg=value>body</name> or <name /> => < ? plugin pluginname arg=value body ? > -// PLUGIN_MARKUP_MAP = "html:RawHtml dot:GraphViz toc:CreateToc amath:AsciiMath richtable:RichTable include:IncludePage tex:TexToPng" -class Markup_xml_plugin extends BalancedMarkup -{ - //var $_start_regexp = "<(?: ".join('|',PLUGIN_MARKUP_MAP)." )(?: \s[^>]*)>"; - - function getStartRegexp () { - global $PLUGIN_MARKUP_MAP; - static $_start_regexp; - if ($_start_regexp) return $_start_regexp; - if (empty($PLUGIN_MARKUP_MAP)) - return ''; - //"<(?: html|dot|toc|amath|richtable|include|tex )(?: \s[^>]*)>" - $_start_regexp = "<(?: ".join('|',array_keys($PLUGIN_MARKUP_MAP))." )(?: \s[^>]* | / )>"; - return $_start_regexp; - } - function getEndRegexp ($match) { - return "<\\/" . $match . '>'; - } - function markup ($match, $body) { - global $PLUGIN_MARKUP_MAP; - $name = substr($match,2,-2); - $vars = ''; - if (preg_match('/^(\S+)\|(.*)$/', $name, $_m)) { - $name = $_m[1]; - $vars = $_m[2]; //str_replace(' ', '&', $_m[2]); - } - if (!isset($PLUGIN_MARKUP_MAP[$name])) { - trigger_error("No plugin for $name $vars defined.", E_USER_WARNING); - return ""; - } - $plugin = $PLUGIN_MARKUP_MAP[$name]; - return new Cached_PluginInvocation("<"."?plugin $plugin $vars $body ?".">"); - } -} - /** * Mediawiki <nowiki> * <nowiki>...</nowiki> @@ -1198,9 +1161,6 @@ // Markup_wikicreole_preformatted must be before Markup_template_plugin $this->_addMarkup(new Markup_wikicreole_preformatted); $this->_addMarkup(new Markup_template_plugin); - // This does not work yet - if (0 and PLUGIN_MARKUP_MAP and !$non_default) - $this->_addMarkup(new Markup_xml_plugin); } function _addMarkup ($markup) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-17 15:19:47
|
Revision: 7216 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7216&view=rev Author: vargenau Date: 2009-10-17 15:19:39 +0000 (Sat, 17 Oct 2009) Log Message: ----------- ENABLE_MARKUP_TEMPLATE removed, it had to be true so that Wikicreole syntax for images work Modified Paths: -------------- trunk/lib/InlineParser.php Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2009-10-17 15:14:00 UTC (rev 7215) +++ trunk/lib/InlineParser.php 2009-10-17 15:19:39 UTC (rev 7216) @@ -1197,8 +1197,7 @@ $this->_addMarkup(new Markup_color); // Markup_wikicreole_preformatted must be before Markup_template_plugin $this->_addMarkup(new Markup_wikicreole_preformatted); - if (ENABLE_MARKUP_TEMPLATE and !$non_default) - $this->_addMarkup(new Markup_template_plugin); + $this->_addMarkup(new Markup_template_plugin); // This does not work yet if (0 and PLUGIN_MARKUP_MAP and !$non_default) $this->_addMarkup(new Markup_xml_plugin); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-17 15:14:11
|
Revision: 7215 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7215&view=rev Author: vargenau Date: 2009-10-17 15:14:00 +0000 (Sat, 17 Oct 2009) Log Message: ----------- ENABLE_MARKUP_TEMPLATE removed, it had to be true so that Wikicreole syntax for images work Modified Paths: -------------- trunk/config/config-default.ini trunk/config/config-dist.ini trunk/configurator.php trunk/g trunk/lib/BlockParser.php trunk/lib/IniConfig.php trunk/lib/InlineParser.php trunk/lib/plugin/Template.php trunk/locale/de/pgsrc/Hilfe%2FVorlagePlugin trunk/themes/MonoBook/themeinfo.php Modified: trunk/config/config-default.ini =================================================================== --- trunk/config/config-default.ini 2009-10-17 14:53:36 UTC (rev 7214) +++ trunk/config/config-default.ini 2009-10-17 15:14:00 UTC (rev 7215) @@ -152,7 +152,6 @@ TOC_FULL_SYNTAX = true ENABLE_MARKUP_COLOR = true -ENABLE_MARKUP_TEMPLATE = false DISABLE_MARKUP_WIKIWORD = false ENABLE_MARKUP_DIVSPAN = false PLUGIN_MARKUP_MAP = "" Modified: trunk/config/config-dist.ini =================================================================== --- trunk/config/config-dist.ini 2009-10-17 14:53:36 UTC (rev 7214) +++ trunk/config/config-dist.ini 2009-10-17 15:14:00 UTC (rev 7215) @@ -1039,10 +1039,6 @@ ; Default: true ;ENABLE_MARKUP_COLOR = false -; Enable Mediawiki-style {{TemplatePage|vars=value|...}} syntax. -; Default: undefined. Enabled automatically on the MonoBook theme if undefined. -;ENABLE_MARKUP_TEMPLATE = true - ; Disable automatic linking of camelcase (wiki-)words to pages. ; Internal page links must be forced with [ pagename ] then. ; Default: false Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2009-10-17 14:53:36 UTC (rev 7214) +++ trunk/configurator.php 2009-10-17 15:14:00 UTC (rev 7215) @@ -1432,9 +1432,6 @@ $properties["ENABLE_MARKUP_COLOR"] = new boolean_define_optional('ENABLE_MARKUP_COLOR'); -$properties["ENABLE_MARKUP_TEMPLATE"] = -new boolean_define_optional('ENABLE_MARKUP_TEMPLATE'); - $properties["DISABLE_MARKUP_WIKIWORD"] = new boolean_define_optional('DISABLE_MARKUP_WIKIWORD'); Modified: trunk/g =================================================================== --- trunk/g 2009-10-17 14:53:36 UTC (rev 7214) +++ trunk/g 2009-10-17 15:14:00 UTC (rev 7215) @@ -107,9 +107,6 @@ // Allow ".jpeg" as extension define('INLINE_IMAGES', 'png|jpg|jpeg|gif'); - // Allow template with MediaWiki syntax - define('ENABLE_MARKUP_TEMPLATE', true); - // Allow parsing of headers for CreateToc define('TOC_FULL_SYNTAX', true); Modified: trunk/lib/BlockParser.php =================================================================== --- trunk/lib/BlockParser.php 2009-10-17 14:53:36 UTC (rev 7214) +++ trunk/lib/BlockParser.php 2009-10-17 15:14:00 UTC (rev 7215) @@ -1115,6 +1115,17 @@ } } +/** + * Template syntax similar to Mediawiki + * {{template}} + * => < ? plugin Template page=template ? > + * {{template|var1=value1|var2=value|...}} + * => < ? plugin Template page=template var=value ... ? > + * + * The {{...}} syntax is also used for: + * - Wikicreole images + * - videos + */ class Block_template_plugin extends Block_pre { var $_re = '{{'; Modified: trunk/lib/IniConfig.php =================================================================== --- trunk/lib/IniConfig.php 2009-10-17 14:53:36 UTC (rev 7214) +++ trunk/lib/IniConfig.php 2009-10-17 15:14:00 UTC (rev 7215) @@ -197,7 +197,7 @@ 'BLOG_DEFAULT_EMPTY_PREFIX', 'DATABASE_PERSISTENT', 'ENABLE_DISCUSSION_LINK', 'ENABLE_CAPTCHA', 'ENABLE_WYSIWYG', 'WYSIWYG_DEFAULT_PAGETYPE_HTML', - 'DISABLE_MARKUP_WIKIWORD', 'ENABLE_MARKUP_COLOR', 'ENABLE_MARKUP_TEMPLATE', + 'DISABLE_MARKUP_WIKIWORD', 'ENABLE_MARKUP_COLOR', 'ENABLE_MARKUP_DIVSPAN', 'USE_BYTEA', 'UPLOAD_USERDIR', 'DISABLE_UNITS', 'ENABLE_SEARCHHIGHLIGHT', 'DISABLE_UPLOAD_ONLY_ALLOWED_EXTENSIONS', 'ENABLE_AUTH_OPENID', 'INSECURE_ACTIONS_LOCALHOST_ONLY', Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2009-10-17 14:53:36 UTC (rev 7214) +++ trunk/lib/InlineParser.php 2009-10-17 15:14:00 UTC (rev 7215) @@ -1003,12 +1003,17 @@ } } -/** ENABLE_MARKUP_TEMPLATE +/** * Template syntax similar to Mediawiki * {{template}} * => < ? plugin Template page=template ? > * {{template|var1=value1|var2=value|...}} * => < ? plugin Template page=template var=value ... ? > + * + * The {{...}} syntax is also used for: + * - Wikicreole images + * - videos + * - predefined icons */ class Markup_template_plugin extends SimpleMarkup { Modified: trunk/lib/plugin/Template.php =================================================================== --- trunk/lib/plugin/Template.php 2009-10-17 14:53:36 UTC (rev 7214) +++ trunk/lib/plugin/Template.php 2009-10-17 15:14:00 UTC (rev 7215) @@ -2,6 +2,7 @@ rcs_id('$Id$'); /* Copyright 2005,2007 $ThePhpWikiProgrammingTeam + Copyright 2008-2009 Marc-Etienne Vargenau, Alcatel-Lucent This file is part of PhpWiki. @@ -47,9 +48,7 @@ * <includeonly> .. </includeonly> is only expanded in pages using the template, * not in the template itself. * - * See also: - * - ENABLE_MARKUP_TEMPLATE = true: (lib/InlineParser.php) - * Support a mediawiki-style syntax extension which maps + * We support a mediawiki-style syntax extension which maps * {{TemplateFilm|title=Some Good Film|year=1999}} * to * <?plugin Template page=TemplateFilm vars="title=Some Good Film&year=1999" ?> Modified: trunk/locale/de/pgsrc/Hilfe%2FVorlagePlugin =================================================================== --- trunk/locale/de/pgsrc/Hilfe%2FVorlagePlugin 2009-10-17 14:53:36 UTC (rev 7214) +++ trunk/locale/de/pgsrc/Hilfe%2FVorlagePlugin 2009-10-17 15:14:00 UTC (rev 7215) @@ -1,4 +1,4 @@ -Date: Sun, 5 Jul 2009 21:04:20 +0000 +Date: Sat, 17 Oct 2009 17:03:32 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.3.13) X-Rcs-Id: $Id$ Content-Type: application/x-phpwiki; @@ -60,7 +60,6 @@ <noinclude> .. </noinclude> is stripped ==== In work: -* ENABLE_MARKUP_TEMPLATE = true: (lib/InlineParser.php) Support a mediawiki-style syntax extension which maps {{{ {{Template/Film|title=Some Good Film|year=1999}} Modified: trunk/themes/MonoBook/themeinfo.php =================================================================== --- trunk/themes/MonoBook/themeinfo.php 2009-10-17 14:53:36 UTC (rev 7214) +++ trunk/themes/MonoBook/themeinfo.php 2009-10-17 15:14:00 UTC (rev 7215) @@ -18,8 +18,6 @@ */ require_once('lib/WikiTheme.php'); require_once('themes/wikilens/themeinfo.php'); -if (!defined("ENABLE_MARKUP_TEMPLATE")) - define("ENABLE_MARKUP_TEMPLATE", true); function ActionButton ($action, $label = false, $page_or_rev = false, $options = false) { global $WikiTheme; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-17 14:53:45
|
Revision: 7214 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7214&view=rev Author: vargenau Date: 2009-10-17 14:53:36 +0000 (Sat, 17 Oct 2009) Log Message: ----------- ENABLE_MARKUP_MEDIAWIKI_TABLE unused Modified Paths: -------------- trunk/config/config-dist.ini trunk/configurator.php trunk/g trunk/lib/BlockParser.php trunk/lib/IniConfig.php trunk/themes/MonoBook/themeinfo.php Modified: trunk/config/config-dist.ini =================================================================== --- trunk/config/config-dist.ini 2009-10-17 11:42:25 UTC (rev 7213) +++ trunk/config/config-dist.ini 2009-10-17 14:53:36 UTC (rev 7214) @@ -1043,10 +1043,6 @@ ; Default: undefined. Enabled automatically on the MonoBook theme if undefined. ;ENABLE_MARKUP_TEMPLATE = true -; Enable Mediawiki-style table syntax. -; Default: undefined. Enabled automatically on the MonoBook theme if undefined. -;ENABLE_MARKUP_MEDIAWIKI_TABLE = true - ; Disable automatic linking of camelcase (wiki-)words to pages. ; Internal page links must be forced with [ pagename ] then. ; Default: false Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2009-10-17 11:42:25 UTC (rev 7213) +++ trunk/configurator.php 2009-10-17 14:53:36 UTC (rev 7214) @@ -1435,9 +1435,6 @@ $properties["ENABLE_MARKUP_TEMPLATE"] = new boolean_define_optional('ENABLE_MARKUP_TEMPLATE'); -$properties["ENABLE_MARKUP_MEDIAWIKI_TABLE"] = -new boolean_define_optional('ENABLE_MARKUP_MEDIAWIKI_TABLE'); - $properties["DISABLE_MARKUP_WIKIWORD"] = new boolean_define_optional('DISABLE_MARKUP_WIKIWORD'); Modified: trunk/g =================================================================== --- trunk/g 2009-10-17 11:42:25 UTC (rev 7213) +++ trunk/g 2009-10-17 14:53:36 UTC (rev 7214) @@ -110,9 +110,6 @@ // Allow template with MediaWiki syntax define('ENABLE_MARKUP_TEMPLATE', true); - // Allow tables with MediaWiki syntax - define('ENABLE_MARKUP_MEDIAWIKI_TABLE', true); - // Allow parsing of headers for CreateToc define('TOC_FULL_SYNTAX', true); Modified: trunk/lib/BlockParser.php =================================================================== --- trunk/lib/BlockParser.php 2009-10-17 11:42:25 UTC (rev 7213) +++ trunk/lib/BlockParser.php 2009-10-17 14:53:36 UTC (rev 7214) @@ -1085,7 +1085,7 @@ } } -/** ENABLE_MARKUP_MEDIAWIKI_TABLE +/** * Table syntax similar to Mediawiki * {| * => <?plugin MediawikiTable Modified: trunk/lib/IniConfig.php =================================================================== --- trunk/lib/IniConfig.php 2009-10-17 11:42:25 UTC (rev 7213) +++ trunk/lib/IniConfig.php 2009-10-17 14:53:36 UTC (rev 7214) @@ -198,7 +198,6 @@ 'ENABLE_DISCUSSION_LINK', 'ENABLE_CAPTCHA', 'ENABLE_WYSIWYG', 'WYSIWYG_DEFAULT_PAGETYPE_HTML', 'DISABLE_MARKUP_WIKIWORD', 'ENABLE_MARKUP_COLOR', 'ENABLE_MARKUP_TEMPLATE', - 'ENABLE_MARKUP_MEDIAWIKI_TABLE', 'ENABLE_MARKUP_DIVSPAN', 'USE_BYTEA', 'UPLOAD_USERDIR', 'DISABLE_UNITS', 'ENABLE_SEARCHHIGHLIGHT', 'DISABLE_UPLOAD_ONLY_ALLOWED_EXTENSIONS', 'ENABLE_AUTH_OPENID', 'INSECURE_ACTIONS_LOCALHOST_ONLY', Modified: trunk/themes/MonoBook/themeinfo.php =================================================================== --- trunk/themes/MonoBook/themeinfo.php 2009-10-17 11:42:25 UTC (rev 7213) +++ trunk/themes/MonoBook/themeinfo.php 2009-10-17 14:53:36 UTC (rev 7214) @@ -20,8 +20,6 @@ require_once('themes/wikilens/themeinfo.php'); if (!defined("ENABLE_MARKUP_TEMPLATE")) define("ENABLE_MARKUP_TEMPLATE", true); -if (!defined("ENABLE_MARKUP_MEDIAWIKI_TABLE")) - define("ENABLE_MARKUP_MEDIAWIKI_TABLE", true); function ActionButton ($action, $label = false, $page_or_rev = false, $options = false) { global $WikiTheme; @@ -211,4 +209,4 @@ // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-17 11:42:35
|
Revision: 7213 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7213&view=rev Author: vargenau Date: 2009-10-17 11:42:25 +0000 (Sat, 17 Oct 2009) Log Message: ----------- Hack to get valid XHTML code in Monobook (but the result is still missing the menus) Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2009-10-13 16:29:32 UTC (rev 7212) +++ trunk/lib/loadsave.php 2009-10-17 11:42:25 UTC (rev 7213) @@ -120,6 +120,12 @@ echo "</td></tr>\n"; echo "</table>\n"; } + if (isa($WikiTheme, 'WikiTheme_MonoBook')) { + echo "</div>\n"; + echo "</div>\n"; + echo "</div>\n"; + echo "</div>\n"; + } echo "</body></html>\n"; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-13 16:29:46
|
Revision: 7212 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7212&view=rev Author: vargenau Date: 2009-10-13 16:29:32 +0000 (Tue, 13 Oct 2009) Log Message: ----------- Image button now allows also video files Modified Paths: -------------- trunk/lib/EditToolbar.php Modified: trunk/lib/EditToolbar.php =================================================================== --- trunk/lib/EditToolbar.php 2009-10-13 11:46:08 UTC (rev 7211) +++ trunk/lib/EditToolbar.php 2009-10-13 16:29:32 UTC (rev 7212) @@ -416,8 +416,8 @@ if (!empty($images)) { $image_js = ''; foreach ($images as $image) { - // Select only files ending in ".png", ".gif", ".jpg", ".jpeg" - if (is_image($image)) { + // Select only image and video files + if (is_image($image) or is_video($image)) { $image_js .= ",['$image','{{".$image."}}']"; } } @@ -425,10 +425,10 @@ $more_buttons = HTML::img(array('class'=>"toolbar", 'id' => 'tb-images', 'src' => $WikiTheme->getImageURL("ed_image.png"), - 'title'=>_("AddImage"), - 'alt'=>_("AddImage"), + 'title'=>_("Add Image or Video"), + 'alt'=>_("Add Image or Video"), 'onclick'=>"showPulldown('". - _("Insert Image (double-click)") + _("Insert Image or Video (double-click)") ."',[".$image_js."],'" ._("Insert")."','" ._("Close")."','tb-images')")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-13 11:46:18
|
Revision: 7211 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7211&view=rev Author: vargenau Date: 2009-10-13 11:46:08 +0000 (Tue, 13 Oct 2009) Log Message: ----------- Fix syntax error Modified Paths: -------------- trunk/lib/plugin/Video.php Modified: trunk/lib/plugin/Video.php =================================================================== --- trunk/lib/plugin/Video.php 2009-10-13 08:32:12 UTC (rev 7210) +++ trunk/lib/plugin/Video.php 2009-10-13 11:46:08 UTC (rev 7211) @@ -64,8 +64,8 @@ 'height' => 320, 'url' => '', 'file' => '', - 'autoplay' => 'false' - 'image' => '', + 'autoplay' => 'false', + 'image' => '' ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-13 08:32:24
|
Revision: 7210 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7210&view=rev Author: vargenau Date: 2009-10-13 08:32:12 +0000 (Tue, 13 Oct 2009) Log Message: ----------- Repair UTF-8 characters that were broken by r7208 Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2009-10-13 07:46:22 UTC (rev 7209) +++ trunk/lib/stdlib.php 2009-10-13 08:32:12 UTC (rev 7210) @@ -1265,7 +1265,7 @@ $RE[] = "/(?<= |${sep}|^)([AI])([[:upper:]][[:lower:]])/"; break; case 'fr': - $RE[] = "/(?<= |${sep}|^)([\xC3])([[:upper:]][[:lower:]])/"; + $RE[] = "/(?<= |${sep}|^)([À])([[:upper:]][[:lower:]])/"; break; } // Split at underscore @@ -2652,7 +2652,7 @@ function strip_accents($text) { $res = utf8_decode($text); $res = strtr($res, - utf8_decode('\xC3áâãäçèéêëìíîïñòóôõöùúûüýÿ\xC3\xC3?ÂÃÄÇÈÉÊËÌ\xC3?Î\xC3?ÑÒÓÔÕÖÙÚÛÜ\xC3?'), + utf8_decode('àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ'), 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY'); return utf8_encode($res); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-10-13 07:46:31
|
Revision: 7209 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7209&view=rev Author: rurban Date: 2009-10-13 07:46:22 +0000 (Tue, 13 Oct 2009) Log Message: ----------- Revert r7194 Properly fix "limit" database injection. limit mostly has a "," It is encoded as [offset,]count Modified Paths: -------------- trunk/lib/PageList.php trunk/lib/WikiDB/backend.php trunk/lib/plugin/AllPages.php trunk/lib/plugin/AllUsers.php trunk/lib/plugin/BackLinks.php trunk/lib/plugin/FullTextSearch.php trunk/lib/plugin/LikePages.php trunk/lib/plugin/LinkDatabase.php trunk/lib/plugin/LinkSearch.php trunk/lib/plugin/ListPages.php trunk/lib/plugin/ListRelations.php trunk/lib/plugin/ListSubpages.php trunk/lib/plugin/MostPopular.php trunk/lib/plugin/RandomPage.php trunk/lib/plugin/RecentReferrers.php trunk/lib/plugin/SemanticSearch.php trunk/lib/plugin/SemanticSearchAdvanced.php trunk/lib/plugin/TitleSearch.php trunk/lib/plugin/UnfoldSubpages.php trunk/lib/plugin/WantedPages.php trunk/lib/plugin/WikiAdminSelect.php Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/PageList.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -1359,11 +1359,26 @@ } function limit($limit) { - if (is_array($limit)) return $limit; - if (strstr($limit, ',')) - return split(',', $limit); - else + if (is_array($limit)) { + list($from, $count) = $limit; + if ((!empty($from) && !is_numeric($from)) or (!empty($count) && !is_numeric($count))) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + return $limit; + } + if (strstr($limit, ',')) { + list($from, $limit) = split(',', $limit); + if ((!empty($from) && !is_numeric($from)) or (!empty($limit) && !is_numeric($limit))) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + return array($from, $limit); + } + else { + if (!empty($limit) && !is_numeric($limit)) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } return array(0, $limit); + } } function pagingTokens($numrows = false, $ncolumns = false, $limit = false) { Modified: trunk/lib/WikiDB/backend.php =================================================================== --- trunk/lib/WikiDB/backend.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/WikiDB/backend.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -524,10 +524,19 @@ * list($offset,$count) = $this->limit($args['limit']); */ function limit($limit) { - if (strstr($limit, ',')) - return split(',', $limit); - else + if (strstr($limit, ',')) { + list($from, $limit) = split(',', $limit); + if ((!empty($from) && !is_numeric($from)) or (!empty($limit) && !is_numeric($limit))) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + return array($from, $limit); + } + else { + if (!empty($limit) && !is_numeric($limit)) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } return array(0, $limit); + } } /** Modified: trunk/lib/plugin/AllPages.php =================================================================== --- trunk/lib/plugin/AllPages.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/AllPages.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -66,10 +66,6 @@ function run($dbi, $argstr, $request, $basepage) { $args = $this->getArgs($argstr, $request); - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - $pages = false; // Todo: extend given _GET args if (defined('DEBUG') && DEBUG && $args['debug']) { Modified: trunk/lib/plugin/AllUsers.php =================================================================== --- trunk/lib/plugin/AllUsers.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/AllUsers.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -67,10 +67,6 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - extract($args); if (defined('DEBUG') && DEBUG && $debug) { $timer = new DebugTimer; Modified: trunk/lib/plugin/BackLinks.php =================================================================== --- trunk/lib/plugin/BackLinks.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/BackLinks.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -60,10 +60,6 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - extract($args); if (empty($page) and $page != '0') return ''; Modified: trunk/lib/plugin/FullTextSearch.php =================================================================== --- trunk/lib/plugin/FullTextSearch.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/FullTextSearch.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -73,10 +73,6 @@ $args = $this->getArgs($argstr, $request); - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - if (empty($args['s'])) { return HTML(); } Modified: trunk/lib/plugin/LikePages.php =================================================================== --- trunk/lib/plugin/LikePages.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/LikePages.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -59,10 +59,6 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - extract($args); if (empty($page) && empty($prefix) && empty($suffix)) return ''; Modified: trunk/lib/plugin/LinkDatabase.php =================================================================== --- trunk/lib/plugin/LinkDatabase.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/LinkDatabase.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -76,10 +76,6 @@ global $WikiTheme; $args = $this->getArgs($argstr, $request); - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - $caption = _("All pages with all links in this wiki (%d total):"); if ( !empty($args['owner']) ) { Modified: trunk/lib/plugin/LinkSearch.php =================================================================== --- trunk/lib/plugin/LinkSearch.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/LinkSearch.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -130,10 +130,6 @@ global $WikiTheme; $args = $this->getArgs($argstr, $request); - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - if (empty($args['page'])) $args['page'] = "*"; $form = $this->showForm($dbi, $request, $args); Modified: trunk/lib/plugin/ListPages.php =================================================================== --- trunk/lib/plugin/ListPages.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/ListPages.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -68,10 +68,6 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - extract($args); // If the ratings table does not exist, or on dba it will break otherwise. // Check if WikiTheme isa 'wikilens' Modified: trunk/lib/plugin/ListRelations.php =================================================================== --- trunk/lib/plugin/ListRelations.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/ListRelations.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -50,11 +50,6 @@ } function run ($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); - - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - extract($args); $pagelist = new PageList($info, $exclude, $args); // should attributes be listed as pagename here? Modified: trunk/lib/plugin/ListSubpages.php =================================================================== --- trunk/lib/plugin/ListSubpages.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/ListSubpages.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -61,11 +61,6 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); - - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - if ($args['basepage']) $pagename = $args['basepage']; else Modified: trunk/lib/plugin/MostPopular.php =================================================================== --- trunk/lib/plugin/MostPopular.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/MostPopular.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -60,11 +60,6 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); - - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - extract($args); if (strstr($sortby,'mtime')) { trigger_error(_("sortby=mtime not supported with MostPopular"), Modified: trunk/lib/plugin/RandomPage.php =================================================================== --- trunk/lib/plugin/RandomPage.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/RandomPage.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -56,11 +56,6 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); - - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - extract($args); // fix deprecated arg Modified: trunk/lib/plugin/RecentReferrers.php =================================================================== --- trunk/lib/plugin/RecentReferrers.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/RecentReferrers.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -38,11 +38,6 @@ return HTML::div(array('class' => "error"), "Error: no ACCESS_LOG"); } $args = $this->getArgs($argstr, $request); - - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - $table = HTML::table(array('cellpadding' => 1, 'cellspacing' => 2, 'border' => 0, Modified: trunk/lib/plugin/SemanticSearch.php =================================================================== --- trunk/lib/plugin/SemanticSearch.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/SemanticSearch.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -276,11 +276,6 @@ $this->_supported_operators = array(':=','<','<=','>','>=','!=','==','=~'); $this->_text_operators = array(':=','==','=~','!='); $args = $this->getArgs($argstr, $request); - - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - if (empty($args['page'])) $args['page'] = "*"; if (!isset($args['s'])) // it might be (integer) 0 Modified: trunk/lib/plugin/SemanticSearchAdvanced.php =================================================================== --- trunk/lib/plugin/SemanticSearchAdvanced.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/SemanticSearchAdvanced.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -133,11 +133,6 @@ $this->_supported_operators = array(':=','<','<=','>','>=','!=','==','=~'); $args = $this->getArgs($argstr, $request); - - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - $posted = $request->getArg('semsearch'); $request->setArg('semsearch', false); if ($request->isPost() and isset($posted['help'])) { Modified: trunk/lib/plugin/TitleSearch.php =================================================================== --- trunk/lib/plugin/TitleSearch.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/TitleSearch.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -73,11 +73,6 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); - - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - if (empty($args['s'])) { return HTML(); } Modified: trunk/lib/plugin/UnfoldSubpages.php =================================================================== --- trunk/lib/plugin/UnfoldSubpages.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/UnfoldSubpages.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -82,11 +82,6 @@ if (!$included_pages) $included_pages = array($basepage); $args = $this->getArgs($argstr, $request); - - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - extract($args); $query = new TextSearchQuery($pagename . SUBPAGE_SEPARATOR . '*', true, 'glob'); $subpages = $dbi->titleSearch($query, $sortby, $limit, $exclude); Modified: trunk/lib/plugin/WantedPages.php =================================================================== --- trunk/lib/plugin/WantedPages.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/WantedPages.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -62,11 +62,6 @@ // exclude arg allows multiple pagenames exclude=HomePage,RecentChanges function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); - - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - if (!empty($args['exclude_from'])) $args['exclude_from'] = is_string($args['exclude_from']) ? explodePageList($args['exclude_from']) Modified: trunk/lib/plugin/WikiAdminSelect.php =================================================================== --- trunk/lib/plugin/WikiAdminSelect.php 2009-10-13 06:58:34 UTC (rev 7208) +++ trunk/lib/plugin/WikiAdminSelect.php 2009-10-13 07:46:22 UTC (rev 7209) @@ -120,11 +120,6 @@ //if ($request->getArg('action') != 'browse') // return $this->disabled("(action != 'browse')"); $args = $this->getArgs($argstr, $request); - - if (!empty($args['limit']) && !is_numeric($args['limit'])) { - return $this->error(_("Illegal 'limit' argument: must be numeric")); - } - $this->_args = $args; extract($args); $this->preSelectS($args, $request); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-10-13 06:58:45
|
Revision: 7208 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7208&view=rev Author: rurban Date: 2009-10-13 06:58:34 +0000 (Tue, 13 Oct 2009) Log Message: ----------- Standardize Video plugin to use ImgObject() for embedded objects. Check arguments. Support hash as ImgObject argument not to split sensitive (support spaces in args). Modified Paths: -------------- trunk/lib/plugin/Video.php trunk/lib/stdlib.php Modified: trunk/lib/plugin/Video.php =================================================================== --- trunk/lib/plugin/Video.php 2009-10-13 06:15:17 UTC (rev 7207) +++ trunk/lib/plugin/Video.php 2009-10-13 06:58:34 UTC (rev 7208) @@ -2,6 +2,7 @@ rcs_id('$Id$'); /* * Copyright 2009 Roger Guignard and Marc-Etienne Vargenau, Alcatel-Lucent + * Copyright 2009 Reini Urban * * This file is part of PhpWiki. * @@ -59,11 +60,12 @@ } function getDefaultArguments() { - return array('width' => 460, - 'height' => 320, - 'url' => '', - 'file' => '', + return array('width' => 460, + 'height' => 320, + 'url' => '', + 'file' => '', 'autoplay' => 'false' + 'image' => '', ); } @@ -76,74 +78,35 @@ if (! $url && ! $file) { return $this->error(_("Both 'url' or 'file' parameters missing.")); } elseif ($url && $file) { - return $this->error(_("Choose only one of 'url' or 'page' parameters.")); + return $this->error(_("Choose only one of 'url' or 'file' parameters.")); } elseif ($file) { - // $url = SERVER_URL . getUploadDataPath() . '/' . $file; - $url = getUploadDataPath() . '/' . $file; + $url = getUploadDataPath() . $file; } + // TODO: Check HTML5 browser capabilities if (string_ends_with($url, ".ogg")) { return HTML::video(array('autoplay' => 'true', 'controls' => 'true', 'src' => $url), _("Your browser does not understand the HTML 5 video tag.")); } + if (!$image) $image = $url; + if ($autoplay != 'true' and $autoplay != 'false') + return $this->error(fmt("Invalid argument %s", "autoplay")); + if (!is_numeric($width)) + return $this->error(fmt("Invalid argument %s", "width")); + if (!is_numeric($height)) + return $this->error(fmt("Invalid argument %s", "height")); + if (preg_match("/'/", $url)) + return $this->error(fmt("Invalid argument %s", "url")); - $html = HTML(); - - if (isBrowserIE()) { - $object = HTML::object(array('id' => 'flowplayer', - 'classid' => 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000', - 'width' => $width, - 'height' => $height)); - - $param = HTML::param(array('name' => 'movie', - 'value' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'))); - $object->pushContent($param); - - $param = HTML::param(array('name' => "allowfullscreen", - 'value' => "true")); - $object->pushContent($param); - - $param = HTML::param(array('name' => "allowscriptaccess", - 'value' => "false")); - $object->pushContent($param); - - $flashvars = "config={'clip':{'url':'" . $url . "','autoPlay':" . $autoplay . "}}"; - - $param = HTML::param(array('name' => 'flashvars', - 'value' => $flashvars)); - $object->pushContent($param); - - $embed = HTML::embed(array('type' => 'application/x-shockwave-flash', - 'width' => $width, - 'height' => $height, - 'src' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'), - 'flashvars' => $flashvars)); - $object->pushContent($embed); - - $html->pushContent($object); - - } else { - $object = HTML::object(array('data' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'), - 'type' => "application/x-shockwave-flash", - 'width' => $width, - 'height' => $height)); - - $param = HTML::param(array('name' => "allowfullscreen", - 'value' => "true")); - $object->pushContent($param); - - $param = HTML::param(array('name' => "allowscriptaccess", - 'value' => "false")); - $object->pushContent($param); - - $value = "config={'clip':{'url':'" . $url . "','autoPlay':" . $autoplay . "}}"; - $param = HTML::param(array('name' => "flashvars", - 'value' => $value)); - $object->pushContent($param); - - $html->pushContent($object); - } - return $html; + $params = array("data" => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'), + "type" => "application/x-shockwave-flash", + "width" => $width, + "height" => $height, + "allowfullscreen" => "true", + "allowscriptaccess" => "false", + "flashvars"=> + "config={'clip':{'url':'" . $url . "','autoPlay':" . $autoplay . "}}'"); + return ImgObject(HTML::img(array('src' => $image)), $params); } }; Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2009-10-13 06:15:17 UTC (rev 7207) +++ trunk/lib/stdlib.php 2009-10-13 06:58:34 UTC (rev 7208) @@ -601,29 +601,58 @@ */ function ImgObject($img, $url) { // get the url args: data="sample.svgz" type="image/svg+xml" width="400" height="300" - $args = split(' ', $url); - $params = array(); - if (count($args) >= 1) { - $url = array_shift($args); - $found = array(); - foreach ($args as $attr) { - foreach (explode(",","data,classid,archive,codebase,name,usemap,type,". - "codetype,standby,tabindex,declare") as $param) - { + $params = explode(",","data,classid,archive,codebase,name,usemap,type,". + "codetype,standby,tabindex,declare"); + if (is_array($url)) { + $args = $url; + $found = array(); + foreach ($args as $attr => $value) { + foreach ($params as $param) { + if ($param == $attr) { + $img->setAttr($param, $value); + if (isset($found[$param])) $found[$param]++; + else $found[$param] = 1; + break; + } + } + } + // now all remaining args are added as <param> to the object + $params = array(); + foreach ($args as $attr => $value) { + if (!isset($found[$attr])) { + $params[] = HTML::param(array('name' => $attr, + 'value' => $value)); + } + } + $url = $img->getAttr('src'); + $force_img = "png|jpg|gif|jpeg|bmp"; + if (!preg_match("/\.(".$force_img.")/i", $url)) { + $img->setAttr('src', false); + } + } else { + $args = split(' ', $url); + if (count($args) >= 1) { + $url = array_shift($args); + $found = array(); + foreach ($args as $attr) { + foreach ($params as $param) { if (preg_match("/^$param=(\S+)$/i",$attr,$m)) { $img->setAttr($param, $m[1]); - $found[$attr]++; + if (isset($found[$param])) $found[$param]++; + else $found[$param] = 1; break; } } } - // now all remaing args are added as <param> to the object + // now all remaining args are added as <param> to the object + $params = array(); foreach ($args as $attr) { - if (!$found[$attr] and preg_match("/^(\S+)=(\S+)$/i",$attr,$m)) { + if (!isset($found[$attr]) and preg_match("/^(\S+)=(\S+)$/i",$attr,$m)) { $params[] = HTML::param(array('name' => $m[1], 'value' => $m[2])); } } + } } $type = $img->getAttr('type'); if (!$type) { @@ -631,13 +660,14 @@ if (function_exists('mime_content_type')) $type = mime_content_type($url); } - $object = HTML::object(array_merge($img->_attr, array('src' => $url, 'type' => $type)), + $object = HTML::object(array_merge($img->_attr, + array('type' => $type)), //'src' => $url $img->_content); $object->setAttr('class', 'inlineobject'); if ($params) { foreach ($params as $param) $object->pushContent($param); } - if (isBrowserSafari()) { + if (isBrowserSafari() and !isBrowserSafari(532)) { // recent chrome can do OBJECT return HTML::embed($object->_attr, $object->_content); } $object->pushContent(HTML::embed($object->_attr)); @@ -1235,7 +1265,7 @@ $RE[] = "/(?<= |${sep}|^)([AI])([[:upper:]][[:lower:]])/"; break; case 'fr': - $RE[] = "/(?<= |${sep}|^)([À])([[:upper:]][[:lower:]])/"; + $RE[] = "/(?<= |${sep}|^)([\xC3])([[:upper:]][[:lower:]])/"; break; } // Split at underscore @@ -2622,7 +2652,7 @@ function strip_accents($text) { $res = utf8_decode($text); $res = strtr($res, - utf8_decode('àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ'), + utf8_decode('\xC3áâãäçèéêëìíîïñòóôõöùúûüýÿ\xC3\xC3?ÂÃÄÇÈÉÊËÌ\xC3?Î\xC3?ÑÒÓÔÕÖÙÚÛÜ\xC3?'), 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY'); return utf8_encode($res); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-10-13 06:15:24
|
Revision: 7207 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7207&view=rev Author: rurban Date: 2009-10-13 06:15:17 +0000 (Tue, 13 Oct 2009) Log Message: ----------- detect AppleWebKit (Safari+Chrome) version Modified Paths: -------------- trunk/lib/config.php Modified: trunk/lib/config.php =================================================================== --- trunk/lib/config.php 2009-10-12 14:28:59 UTC (rev 7206) +++ trunk/lib/config.php 2009-10-13 06:15:17 UTC (rev 7207) @@ -77,11 +77,13 @@ function browserVersion() { $agent = browserAgent(); if (strstr($agent, "Mozilla/4.0 (compatible; MSIE")) - return (float) substr($agent, 30); + return (float)substr($agent, 30); elseif (strstr($agent, "Mozilla/5.0 (compatible; Konqueror/")) - return (float) substr($agent, 36); + return (float)substr($agent, 36); + elseif (strstr($agent, "AppleWebKit/")) + return (float)substr($agent, strpos($agent, "AppleWebKit/") + 12); else - return (float) substr($agent, 8); + return (float)substr($agent, 8); } function isBrowserIE() { return (browserDetect('Mozilla/') and This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-12 14:29:08
|
Revision: 7206 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7206&view=rev Author: vargenau Date: 2009-10-12 14:28:59 +0000 (Mon, 12 Oct 2009) Log Message: ----------- Protect <title> with .htmlspecialchars Modified Paths: -------------- trunk/themes/gforge/themeinfo.php Modified: trunk/themes/gforge/themeinfo.php =================================================================== --- trunk/themes/gforge/themeinfo.php 2009-10-12 13:04:08 UTC (rev 7205) +++ trunk/themes/gforge/themeinfo.php 2009-10-12 14:28:59 UTC (rev 7206) @@ -24,7 +24,7 @@ session_require(array('group'=>'1')); } - $HTML->header(array('title'=> $group_public_name.': '.$pagename , + $HTML->header(array('title'=> $group_public_name.': '.htmlspecialchars($pagename) , 'pagename'=> $pagename, 'group' => $group_id, 'toptab' => 'wiki', 'css' => 'gforge.css" />'."\n".' <base href="'.PHPWIKI_BASE_URL, 'submenu' => $submenu->asXML())); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-10-12 13:04:15
|
Revision: 7205 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7205&view=rev Author: rurban Date: 2009-10-12 13:04:08 +0000 (Mon, 12 Oct 2009) Log Message: ----------- Fix link to folderArrowPath, onle one image set needed. Modified Paths: -------------- trunk/themes/default/wikicommon.js Modified: trunk/themes/default/wikicommon.js =================================================================== --- trunk/themes/default/wikicommon.js 2009-10-12 11:59:34 UTC (rev 7204) +++ trunk/themes/default/wikicommon.js 2009-10-12 13:04:08 UTC (rev 7205) @@ -2,10 +2,12 @@ // $Id$ /* Globals: -var data_path = '/phpwiki-cvs'; +var data_path = '/phpwiki'; var pagename = 'HomePage'; -var script_url= '/wikicvs'; +var script_url= '/wiki'; var stylepath = data_path+'/themes/MonoBook/'; +var folderArrowPath = data_path+'/themes/default/images'; +var use_path_info = true; */ function WikiURL(page) { @@ -77,11 +79,11 @@ //todo: invalidate cache header if ( div.style.display == 'none' ) { div.style.display = 'block'; - img.src = stylepath + 'images/folderArrowOpen.png'; + img.src = folderArrowPath + '/folderArrowOpen.png'; document.cookie = "folder_"+id+"=Open;"+suffix; } else { div.style.display = 'none'; - img.src = stylepath + 'images/folderArrowClosed.png'; + img.src = folderArrowPath + '/folderArrowClosed.png'; document.cookie = "folder_"+id+"=Closed;"+suffix; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-12 11:59:46
|
Revision: 7204 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7204&view=rev Author: vargenau Date: 2009-10-12 11:59:34 +0000 (Mon, 12 Oct 2009) Log Message: ----------- Specific code for Internet Explorer Modified Paths: -------------- trunk/lib/plugin/Video.php Modified: trunk/lib/plugin/Video.php =================================================================== --- trunk/lib/plugin/Video.php 2009-10-12 10:41:27 UTC (rev 7203) +++ trunk/lib/plugin/Video.php 2009-10-12 11:59:34 UTC (rev 7204) @@ -89,26 +89,60 @@ $html = HTML(); - $object = HTML::object(array('data' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'), - 'type' => "application/x-shockwave-flash", - 'width' => $width, - 'height' => $height)); - - $param = HTML::param(array('name' => "allowfullscreen", - 'value' => "true")); - $object->pushContent($param); - - $param = HTML::param(array('name' => "allowscriptaccess", - 'value' => "false")); - $object->pushContent($param); - - $value = "config={'clip':{'url':'" . $url . "','autoPlay':" . $autoplay . "}}"; - $param = HTML::param(array('name' => "flashvars", - 'value' => $value)); - $object->pushContent($param); + if (isBrowserIE()) { + $object = HTML::object(array('id' => 'flowplayer', + 'classid' => 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000', + 'width' => $width, + 'height' => $height)); - $html->pushContent($object); + $param = HTML::param(array('name' => 'movie', + 'value' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'))); + $object->pushContent($param); + $param = HTML::param(array('name' => "allowfullscreen", + 'value' => "true")); + $object->pushContent($param); + + $param = HTML::param(array('name' => "allowscriptaccess", + 'value' => "false")); + $object->pushContent($param); + + $flashvars = "config={'clip':{'url':'" . $url . "','autoPlay':" . $autoplay . "}}"; + + $param = HTML::param(array('name' => 'flashvars', + 'value' => $flashvars)); + $object->pushContent($param); + + $embed = HTML::embed(array('type' => 'application/x-shockwave-flash', + 'width' => $width, + 'height' => $height, + 'src' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'), + 'flashvars' => $flashvars)); + $object->pushContent($embed); + + $html->pushContent($object); + + } else { + $object = HTML::object(array('data' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'), + 'type' => "application/x-shockwave-flash", + 'width' => $width, + 'height' => $height)); + + $param = HTML::param(array('name' => "allowfullscreen", + 'value' => "true")); + $object->pushContent($param); + + $param = HTML::param(array('name' => "allowscriptaccess", + 'value' => "false")); + $object->pushContent($param); + + $value = "config={'clip':{'url':'" . $url . "','autoPlay':" . $autoplay . "}}"; + $param = HTML::param(array('name' => "flashvars", + 'value' => $value)); + $object->pushContent($param); + + $html->pushContent($object); + } return $html; } }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-10-12 10:41:36
|
Revision: 7203 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7203&view=rev Author: rurban Date: 2009-10-12 10:41:27 +0000 (Mon, 12 Oct 2009) Log Message: ----------- Prioritize search regex "not*" over keyword "not", ditto for "and" and "or". Search for "not*" will now find "*Note" and "*Notes" Modified Paths: -------------- trunk/lib/TextSearchQuery.php Modified: trunk/lib/TextSearchQuery.php =================================================================== --- trunk/lib/TextSearchQuery.php 2009-10-11 14:18:08 UTC (rev 7202) +++ trunk/lib/TextSearchQuery.php 2009-10-12 10:41:27 UTC (rev 7203) @@ -1104,19 +1104,10 @@ $tokens = array(); $buf = $case_exact ? ltrim($string) : strtolower(ltrim($string)); while (!empty($buf)) { - if (preg_match('/^(and|or)\b\s*/i', $buf, $m)) { - $val = strtolower($m[1]); - $type = TSQ_TOK_BINOP; - } - elseif (preg_match('/^(-|not\b)\s*/i', $buf, $m)) { - $val = strtolower($m[1]); - $type = TSQ_TOK_NOT; - } - elseif (preg_match('/^([()])\s*/', $buf, $m)) { + if (preg_match('/^([()])\s*/', $buf, $m)) { $val = $m[1]; $type = $m[1] == '(' ? TSQ_TOK_LPAREN : TSQ_TOK_RPAREN; } - // * => ALL elseif ($regex & (TSQ_REGEX_AUTO|TSQ_REGEX_POSIX|TSQ_REGEX_GLOB) and preg_match('/^\*\s*/', $buf, $m)) { @@ -1166,6 +1157,14 @@ $val = $m[1]; $type = TSQ_TOK_EXACT; } + elseif (preg_match('/^(and|or)\b\s*/i', $buf, $m)) { + $val = strtolower($m[1]); + $type = TSQ_TOK_BINOP; + } + elseif (preg_match('/^(-|not\b)\s*/i', $buf, $m)) { + $val = strtolower($m[1]); + $type = TSQ_TOK_NOT; + } // "words " elseif (preg_match('/^ " ( (?: [^"]+ | "" )* ) " \s*/x', $buf, $m)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-11 14:18:24
|
Revision: 7202 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7202&view=rev Author: vargenau Date: 2009-10-11 14:18:08 +0000 (Sun, 11 Oct 2009) Log Message: ----------- Allow OGG in Video plugin with HTML 5 <video> tag Modified Paths: -------------- trunk/lib/HtmlElement.php trunk/lib/plugin/UpLoad.php trunk/lib/plugin/Video.php trunk/lib/stdlib.php Modified: trunk/lib/HtmlElement.php =================================================================== --- trunk/lib/HtmlElement.php 2009-10-09 17:17:10 UTC (rev 7201) +++ trunk/lib/HtmlElement.php 2009-10-11 14:18:08 UTC (rev 7202) @@ -437,6 +437,12 @@ $el = new HtmlElement('legend'); return $el->_init2(func_get_args()); } + + /****************************************/ + function video (/*...*/) { + $el = new HtmlElement('video'); + return $el->_init2(func_get_args()); + } } define('HTMLTAG_EMPTY', 1); @@ -460,7 +466,7 @@ . 'div fieldset frameset' // other with inline content - . 'caption dt label legend ' + . 'caption dt label legend video ' // other with either inline or block . 'dd del ins li td th colgroup'); Modified: trunk/lib/plugin/UpLoad.php =================================================================== --- trunk/lib/plugin/UpLoad.php 2009-10-09 17:17:10 UTC (rev 7201) +++ trunk/lib/plugin/UpLoad.php 2009-10-11 14:18:08 UTC (rev 7202) @@ -88,6 +88,7 @@ odp ods odt +ogg patch pdf png Modified: trunk/lib/plugin/Video.php =================================================================== --- trunk/lib/plugin/Video.php 2009-10-09 17:17:10 UTC (rev 7201) +++ trunk/lib/plugin/Video.php 2009-10-11 14:18:08 UTC (rev 7202) @@ -73,6 +73,20 @@ $args = $this->getArgs($argstr, $request); extract($args); + if (! $url && ! $file) { + return $this->error(_("Both 'url' or 'file' parameters missing.")); + } elseif ($url && $file) { + return $this->error(_("Choose only one of 'url' or 'page' parameters.")); + } elseif ($file) { + // $url = SERVER_URL . getUploadDataPath() . '/' . $file; + $url = getUploadDataPath() . '/' . $file; + } + + if (string_ends_with($url, ".ogg")) { + return HTML::video(array('autoplay' => 'true', 'controls' => 'true', 'src' => $url), + _("Your browser does not understand the HTML 5 video tag.")); + } + $html = HTML(); $object = HTML::object(array('data' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'), @@ -88,15 +102,6 @@ 'value' => "false")); $object->pushContent($param); - if (! $url && ! $file) { - return $this->error(_("Both 'url' or 'file' parameters missing.")); - } - elseif ($url && $file) { - return $this->error(_("Choose only one of 'url' or 'page' parameters.")); - } - elseif ($file) { - $url = SERVER_URL . getUploadDataPath() . '/' . $file; - } $value = "config={'clip':{'url':'" . $url . "','autoPlay':" . $autoplay . "}}"; $param = HTML::param(array('name' => "flashvars", 'value' => $value)); Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2009-10-09 17:17:10 UTC (rev 7201) +++ trunk/lib/stdlib.php 2009-10-11 14:18:08 UTC (rev 7202) @@ -2463,7 +2463,8 @@ */ function is_video ($filename) { - return string_ends_with(strtolower($filename), ".flv"); + return string_ends_with(strtolower($filename), ".flv") + or string_ends_with(strtolower($filename), ".ogg"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-09 17:17:20
|
Revision: 7201 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7201&view=rev Author: vargenau Date: 2009-10-09 17:17:10 +0000 (Fri, 09 Oct 2009) Log Message: ----------- Align Phpwiki "errors" class with "error" class from Gforge Modified Paths: -------------- trunk/themes/gforge/gforge.css Modified: trunk/themes/gforge/gforge.css =================================================================== --- trunk/themes/gforge/gforge.css 2009-10-09 17:00:54 UTC (rev 7200) +++ trunk/themes/gforge/gforge.css 2009-10-09 17:17:10 UTC (rev 7201) @@ -136,12 +136,6 @@ } /** - * Other - */ -/* PHP Warnings */ -div.errors { font-size: smaller } - -/** * General */ img { border: 0ex; } @@ -651,25 +645,15 @@ font-style: oblique; } -/* PHP Warnings */ div.errors { - color: black; - background: #eee; - margin-top: 1em; - margin-bottom: 1em; - padding-left: 0.8em; - padding-right: 0.8em; - padding-top: 0.8ex; - padding-bottom: 0; - border: medium solid red; - clear: both; + font-weight: bold; + border-width: 2px; + border-style: solid; + background-color: #ffc0cb; /* pink */ + border-color: red; + padding: 0.5em; } -h4.errors { - color: red; - margin: 0; - padding: 0; - text-decoration: underline; -} + div.warning { color: black; background: #eee; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-09 17:01:03
|
Revision: 7200 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7200&view=rev Author: vargenau Date: 2009-10-09 17:00:54 +0000 (Fri, 09 Oct 2009) Log Message: ----------- Use pg_escape_string in escapeSimple Modified Paths: -------------- trunk/lib/pear/DB/pgsql.php Modified: trunk/lib/pear/DB/pgsql.php =================================================================== --- trunk/lib/pear/DB/pgsql.php 2009-10-09 16:55:08 UTC (rev 7199) +++ trunk/lib/pear/DB/pgsql.php 2009-10-09 17:00:54 UTC (rev 7200) @@ -378,22 +378,35 @@ // {{{ escapeSimple() /** - * Escape a string according to the current DBMS's standards + * Escapes a string according to the current DBMS's standards * - * PostgreSQL treats a backslash as an escape character, so they are - * removed. + * {@internal PostgreSQL treats a backslash as an escape character, + * so they are escaped as well. * - * Not using pg_escape_string() yet because it requires PostgreSQL - * to be at version 7.2 or greater. - * * @param string $str the string to be escaped * * @return string the escaped string * - * @internal + * @see DB_common::quoteSmart() + * @since Method available since Release 1.6.0 */ - function escapeSimple($str) { - return str_replace("'", "''", str_replace('\\', '\\\\', $str)); + function escapeSimple($str) + { + if (function_exists('pg_escape_string')) { + /* This fixes an undocumented BC break in PHP 5.2.0 which changed + * the prototype of pg_escape_string. I'm not thrilled about having + * to sniff the PHP version, quite frankly, but it's the only way + * to deal with the problem. Revision 1.331.2.13.2.10 on + * php-src/ext/pgsql/pgsql.c (PHP_5_2 branch) is to blame, for the + * record. */ + if (version_compare(PHP_VERSION, '5.2.0', '>=')) { + return pg_escape_string($this->connection, $str); + } else { + return pg_escape_string($str); + } + } else { + return str_replace("'", "''", str_replace('\\', '\\\\', $str)); + } } // }}} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-09 16:55:24
|
Revision: 7199 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7199&view=rev Author: vargenau Date: 2009-10-09 16:55:08 +0000 (Fri, 09 Oct 2009) Log Message: ----------- Do not display "01 January 1970 1:00" for nonexistent pages Modified Paths: -------------- trunk/lib/WikiTheme.php Modified: trunk/lib/WikiTheme.php =================================================================== --- trunk/lib/WikiTheme.php 2009-10-09 16:54:30 UTC (rev 7198) +++ trunk/lib/WikiTheme.php 2009-10-09 16:55:08 UTC (rev 7199) @@ -388,7 +388,12 @@ * @return string The date and time. */ function formatDateTime ($time_t) { - return $this->formatDate($time_t) . ' ' . $this->formatTime($time_t); + if ($time_t == 0) { + // Do not display "01 January 1970 1:00" for nonexistent pages + return ""; + } else { + return $this->formatDate($time_t) . ' ' . $this->formatTime($time_t); + } } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-09 16:54:40
|
Revision: 7198 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7198&view=rev Author: vargenau Date: 2009-10-09 16:54:30 +0000 (Fri, 09 Oct 2009) Log Message: ----------- Do not display table when no matches Modified Paths: -------------- trunk/lib/plugin/FuzzyPages.php Modified: trunk/lib/plugin/FuzzyPages.php =================================================================== --- trunk/lib/plugin/FuzzyPages.php 2009-10-09 16:52:50 UTC (rev 7197) +++ trunk/lib/plugin/FuzzyPages.php 2009-10-09 16:54:30 UTC (rev 7198) @@ -137,6 +137,9 @@ function formatTable(&$list, &$dbi) { + if (empty($list)) { + return HTML::p(fmt("No fuzzy matches with '%s'", $this->_searchterm)); + } $table = HTML::table(array('cellpadding' => 2, 'cellspacing' => 1, 'border' => 0, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-09 16:52:59
|
Revision: 7197 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7197&view=rev Author: vargenau Date: 2009-10-09 16:52:50 +0000 (Fri, 09 Oct 2009) Log Message: ----------- Silence on empty s argument. s= is a common case. Modified Paths: -------------- trunk/lib/plugin/FuzzyPages.php Modified: trunk/lib/plugin/FuzzyPages.php =================================================================== --- trunk/lib/plugin/FuzzyPages.php 2009-10-09 16:50:13 UTC (rev 7196) +++ trunk/lib/plugin/FuzzyPages.php 2009-10-09 16:52:50 UTC (rev 7197) @@ -152,7 +152,7 @@ $args = $this->getArgs($argstr, $request); extract($args); if (empty($s)) { - return HTML::div(array('class' => "error"), "Please provide 's' argument to the plugin."); + return HTML(); } if (defined('DEBUG') && DEBUG) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-09 16:50:23
|
Revision: 7196 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7196&view=rev Author: vargenau Date: 2009-10-09 16:50:13 +0000 (Fri, 09 Oct 2009) Log Message: ----------- Valid XHTML code Modified Paths: -------------- trunk/themes/default/templates/savepage.tmpl Modified: trunk/themes/default/templates/savepage.tmpl =================================================================== --- trunk/themes/default/templates/savepage.tmpl 2009-10-06 17:34:17 UTC (rev 7195) +++ trunk/themes/default/templates/savepage.tmpl 2009-10-09 16:50:13 UTC (rev 7196) @@ -7,7 +7,7 @@ <?=_("Your careful attention to detail is much appreciated.")?></p> <?php if (!empty($WARNINGS)) { ?> - <p><?= $WARNINGS ?></p> + <?= $WARNINGS ?> <?php } ?> <?php if ($signatureURL) { ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-06 17:34:25
|
Revision: 7195 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7195&view=rev Author: vargenau Date: 2009-10-06 17:34:17 +0000 (Tue, 06 Oct 2009) Log Message: ----------- Remove HTML comments Modified Paths: -------------- trunk/themes/gforge/templates/editpage.tmpl trunk/themes/gforge/templates/info.tmpl Modified: trunk/themes/gforge/templates/editpage.tmpl =================================================================== --- trunk/themes/gforge/templates/editpage.tmpl 2009-10-06 17:19:52 UTC (rev 7194) +++ trunk/themes/gforge/templates/editpage.tmpl 2009-10-06 17:34:17 UTC (rev 7195) @@ -3,9 +3,6 @@ ?> <?php if (isset($PREVIEW_CONTENT)) { ?> <p><strong><?=_("Preview only! Changes not saved.")?></strong> -<!-- FIXME: it would be nice to put a link to the #editarea anchor below, - but it does not work currently with the <base> declared in top.tmpl. - I think we need to do away with using <base> altogether... --> <?= fmt("Please continue editing. (You'll find your %s at the bottom of the page.)", /* HTML::a(array("href" => "#editarea"), */ _("edit area") /*) */) ?> </p> Modified: trunk/themes/gforge/templates/info.tmpl =================================================================== --- trunk/themes/gforge/templates/info.tmpl 2009-10-06 17:19:52 UTC (rev 7194) +++ trunk/themes/gforge/templates/info.tmpl 2009-10-06 17:34:17 UTC (rev 7195) @@ -12,7 +12,6 @@ <?=$SEP?><?= Button(array('action'=>'diff','previous' => 'author'),_("Diff previous Author"),$page->getName()) ?> <?=$SEP?><?= Button("PageDump", _("PageDump")) ?> <?php if ((defined('DEBUG') && DEBUG) || $user->isAdmin()) { ?> - <!-- Buttons really only for debugging --> <?=$SEP?><?= Button("DebugInfo", _("DebugInfo")) ?> <?php $PurgeCache = Button(array('nocache' => 'purge'), @@ -21,6 +20,5 @@ ?> <?=$SEP?><?= $PurgeCache ?> </p> - <!-- End debugging buttons --> <?php } ?> </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-06 17:20:01
|
Revision: 7194 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7194&view=rev Author: vargenau Date: 2009-10-06 17:19:52 +0000 (Tue, 06 Oct 2009) Log Message: ----------- Test 'limit' argument is numeric to avoid SQL injection Modified Paths: -------------- trunk/lib/plugin/AllPages.php trunk/lib/plugin/AllUsers.php trunk/lib/plugin/BackLinks.php trunk/lib/plugin/FullTextSearch.php trunk/lib/plugin/LikePages.php trunk/lib/plugin/LinkDatabase.php trunk/lib/plugin/LinkSearch.php trunk/lib/plugin/ListPages.php trunk/lib/plugin/ListRelations.php trunk/lib/plugin/ListSubpages.php trunk/lib/plugin/MostPopular.php trunk/lib/plugin/RandomPage.php trunk/lib/plugin/RecentReferrers.php trunk/lib/plugin/SemanticSearch.php trunk/lib/plugin/SemanticSearchAdvanced.php trunk/lib/plugin/TitleSearch.php trunk/lib/plugin/UnfoldSubpages.php trunk/lib/plugin/WantedPages.php trunk/lib/plugin/WikiAdminSelect.php Modified: trunk/lib/plugin/AllPages.php =================================================================== --- trunk/lib/plugin/AllPages.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/AllPages.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -65,6 +65,11 @@ // 2004-07-08 22:05:35 rurban: turned off &$request to prevent from strange bug below function run($dbi, $argstr, $request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + $pages = false; // Todo: extend given _GET args if (defined('DEBUG') && DEBUG && $args['debug']) { Modified: trunk/lib/plugin/AllUsers.php =================================================================== --- trunk/lib/plugin/AllUsers.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/AllUsers.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -66,6 +66,11 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + extract($args); if (defined('DEBUG') && DEBUG && $debug) { $timer = new DebugTimer; Modified: trunk/lib/plugin/BackLinks.php =================================================================== --- trunk/lib/plugin/BackLinks.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/BackLinks.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -59,6 +59,11 @@ // page=foo,bar : backlinks to both pages function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + extract($args); if (empty($page) and $page != '0') return ''; Modified: trunk/lib/plugin/FullTextSearch.php =================================================================== --- trunk/lib/plugin/FullTextSearch.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/FullTextSearch.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -72,6 +72,11 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + if (empty($args['s'])) { return HTML(); } Modified: trunk/lib/plugin/LikePages.php =================================================================== --- trunk/lib/plugin/LikePages.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/LikePages.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -58,6 +58,11 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + extract($args); if (empty($page) && empty($prefix) && empty($suffix)) return ''; Modified: trunk/lib/plugin/LinkDatabase.php =================================================================== --- trunk/lib/plugin/LinkDatabase.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/LinkDatabase.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -75,6 +75,11 @@ function run($dbi, $argstr, $request, $basepage) { global $WikiTheme; $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + $caption = _("All pages with all links in this wiki (%d total):"); if ( !empty($args['owner']) ) { Modified: trunk/lib/plugin/LinkSearch.php =================================================================== --- trunk/lib/plugin/LinkSearch.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/LinkSearch.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -129,6 +129,11 @@ function run ($dbi, $argstr, &$request, $basepage) { global $WikiTheme; $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + if (empty($args['page'])) $args['page'] = "*"; $form = $this->showForm($dbi, $request, $args); Modified: trunk/lib/plugin/ListPages.php =================================================================== --- trunk/lib/plugin/ListPages.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/ListPages.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -67,6 +67,11 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + extract($args); // If the ratings table does not exist, or on dba it will break otherwise. // Check if WikiTheme isa 'wikilens' Modified: trunk/lib/plugin/ListRelations.php =================================================================== --- trunk/lib/plugin/ListRelations.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/ListRelations.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -50,6 +50,11 @@ } function run ($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + extract($args); $pagelist = new PageList($info, $exclude, $args); // should attributes be listed as pagename here? Modified: trunk/lib/plugin/ListSubpages.php =================================================================== --- trunk/lib/plugin/ListSubpages.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/ListSubpages.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -61,6 +61,11 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + if ($args['basepage']) $pagename = $args['basepage']; else Modified: trunk/lib/plugin/MostPopular.php =================================================================== --- trunk/lib/plugin/MostPopular.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/MostPopular.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -60,6 +60,11 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + extract($args); if (strstr($sortby,'mtime')) { trigger_error(_("sortby=mtime not supported with MostPopular"), Modified: trunk/lib/plugin/RandomPage.php =================================================================== --- trunk/lib/plugin/RandomPage.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/RandomPage.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -56,6 +56,11 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + extract($args); // fix deprecated arg Modified: trunk/lib/plugin/RecentReferrers.php =================================================================== --- trunk/lib/plugin/RecentReferrers.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/RecentReferrers.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -38,6 +38,11 @@ return HTML::div(array('class' => "error"), "Error: no ACCESS_LOG"); } $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + $table = HTML::table(array('cellpadding' => 1, 'cellspacing' => 2, 'border' => 0, Modified: trunk/lib/plugin/SemanticSearch.php =================================================================== --- trunk/lib/plugin/SemanticSearch.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/SemanticSearch.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -276,6 +276,11 @@ $this->_supported_operators = array(':=','<','<=','>','>=','!=','==','=~'); $this->_text_operators = array(':=','==','=~','!='); $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + if (empty($args['page'])) $args['page'] = "*"; if (!isset($args['s'])) // it might be (integer) 0 Modified: trunk/lib/plugin/SemanticSearchAdvanced.php =================================================================== --- trunk/lib/plugin/SemanticSearchAdvanced.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/SemanticSearchAdvanced.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -133,6 +133,11 @@ $this->_supported_operators = array(':=','<','<=','>','>=','!=','==','=~'); $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + $posted = $request->getArg('semsearch'); $request->setArg('semsearch', false); if ($request->isPost() and isset($posted['help'])) { Modified: trunk/lib/plugin/TitleSearch.php =================================================================== --- trunk/lib/plugin/TitleSearch.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/TitleSearch.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -73,6 +73,11 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + if (empty($args['s'])) { return HTML(); } Modified: trunk/lib/plugin/UnfoldSubpages.php =================================================================== --- trunk/lib/plugin/UnfoldSubpages.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/UnfoldSubpages.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -82,6 +82,11 @@ if (!$included_pages) $included_pages = array($basepage); $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + extract($args); $query = new TextSearchQuery($pagename . SUBPAGE_SEPARATOR . '*', true, 'glob'); $subpages = $dbi->titleSearch($query, $sortby, $limit, $exclude); Modified: trunk/lib/plugin/WantedPages.php =================================================================== --- trunk/lib/plugin/WantedPages.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/WantedPages.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -62,6 +62,11 @@ // exclude arg allows multiple pagenames exclude=HomePage,RecentChanges function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + if (!empty($args['exclude_from'])) $args['exclude_from'] = is_string($args['exclude_from']) ? explodePageList($args['exclude_from']) Modified: trunk/lib/plugin/WikiAdminSelect.php =================================================================== --- trunk/lib/plugin/WikiAdminSelect.php 2009-10-06 17:12:20 UTC (rev 7193) +++ trunk/lib/plugin/WikiAdminSelect.php 2009-10-06 17:19:52 UTC (rev 7194) @@ -120,6 +120,11 @@ //if ($request->getArg('action') != 'browse') // return $this->disabled("(action != 'browse')"); $args = $this->getArgs($argstr, $request); + + if (!empty($args['limit']) && !is_numeric($args['limit'])) { + return $this->error(_("Illegal 'limit' argument: must be numeric")); + } + $this->_args = $args; extract($args); $this->preSelectS($args, $request); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-06 17:12:29
|
Revision: 7193 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7193&view=rev Author: vargenau Date: 2009-10-06 17:12:20 +0000 (Tue, 06 Oct 2009) Log Message: ----------- Gforge-specific bottom.tmpl and debug.tmpl Added Paths: ----------- trunk/themes/gforge/templates/bottom.tmpl trunk/themes/gforge/templates/debug.tmpl Added: trunk/themes/gforge/templates/bottom.tmpl =================================================================== --- trunk/themes/gforge/templates/bottom.tmpl (rev 0) +++ trunk/themes/gforge/templates/bottom.tmpl 2009-10-06 17:12:20 UTC (rev 7193) @@ -0,0 +1,10 @@ +<?php // -*-php-*- +rcs_id('$Id$'); +?> +<?php if (!$WikiTheme->DUMP_MODE) { ?> +<?php if (defined('DEBUG') and DEBUG) { ?> +<?= empty($WARNINGS) ? '' : $WARNINGS ?> +<?= $GLOBALS['ErrorManager']->getPostponedErrorsAsHTML() ?> +<?= Template('debug') ?> +<?php } ?> +<?php } ?> Property changes on: trunk/themes/gforge/templates/bottom.tmpl ___________________________________________________________________ Added: svn:keywords + Id Added: trunk/themes/gforge/templates/debug.tmpl =================================================================== --- trunk/themes/gforge/templates/debug.tmpl (rev 0) +++ trunk/themes/gforge/templates/debug.tmpl 2009-10-06 17:12:20 UTC (rev 7193) @@ -0,0 +1,13 @@ +<?php // -*-php-*- +rcs_id('$Id$'); +?> +<?php global $RUNTIMER; ?> +<table width="100%" border="0" cellpadding="0" cellspacing="0"> +<tr><td> +<span class="debug"><?= fmt("Page Execution took %s seconds", $RUNTIMER->getStats()) ?> +<?php $mem = @getMemoryUsage(); if ($mem) { ?> + <?= fmt(", Memory: %s", $mem) ?> +<?php } ?> +</span> +</td></tr></table> +<br clear="all" class="clear-floats" /> Property changes on: trunk/themes/gforge/templates/debug.tmpl ___________________________________________________________________ Added: svn:keywords + Id This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |