SourceForge logo
SourceForge logo
Menu

phpwiki-checkins — Automatic notification of CVS checkins on PhpWiki.

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
S M T W T F S

1
2
(6)
3
4
5
6
7
8
(4)
9
(1)
10
(2)
11
12
13
14
15
(1)
16
(14)
17
(6)
18
(3)
19
(1)
20
(1)
21
22
23
24
25
26
(9)
27
28
29
30




Showing results of 43

1 2 > >> (Page 1 of 2)
From: <var...@us...> - 2013年04月26日 14:41:27
Revision: 8778
 http://sourceforge.net/p/phpwiki/code/8778
Author: vargenau
Date: 2013年04月26日 14:41:24 +0000 (2013年4月26日)
Log Message:
-----------
public $_pi;
Modified Paths:
--------------
 trunk/lib/WikiPlugin.php
Modified: trunk/lib/WikiPlugin.php
===================================================================
--- trunk/lib/WikiPlugin.php	2013年04月26日 14:16:50 UTC (rev 8777)
+++ trunk/lib/WikiPlugin.php	2013年04月26日 14:41:24 UTC (rev 8778)
@@ -2,7 +2,7 @@
 
 class WikiPlugin
 {
- protected $_pi;
+ public $_pi;
 
 function getDefaultArguments()
 {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8777
 http://sourceforge.net/p/phpwiki/code/8777
Author: vargenau
Date: 2013年04月26日 14:16:50 +0000 (2013年4月26日)
Log Message:
-----------
Remove stri_replace
Modified Paths:
--------------
 trunk/lib/plugin/WikiAdminSearchReplace.php
Modified: trunk/lib/plugin/WikiAdminSearchReplace.php
===================================================================
--- trunk/lib/plugin/WikiAdminSearchReplace.php	2013年04月26日 14:10:54 UTC (rev 8776)
+++ trunk/lib/plugin/WikiAdminSearchReplace.php	2013年04月26日 14:16:50 UTC (rev 8777)
@@ -66,12 +66,7 @@
 if ($case_exact) {
 $newtext = str_replace($from, $to, $text);
 } else {
- //not all PHP have this enabled. use a workaround
- if (function_exists('str_ireplace'))
- $newtext = str_ireplace($from, $to, $text);
- else { // see eof
- $newtext = stri_replace($from, $to, $text);
- }
+ $newtext = str_ireplace($from, $to, $text);
 }
 }
 if ($text != $newtext) {
@@ -254,34 +249,6 @@
 }
 }
 
-function stri_replace($find, $replace, $string)
-{
- if (!is_array($find)) $find = array($find);
- if (!is_array($replace)) {
- if (!is_array($find))
- $replace = array($replace);
- else {
- // this will duplicate the string into an array the size of $find
- $c = count($find);
- $rString = $replace;
- unset($replace);
- for ($i = 0; $i < $c; $i++) {
- $replace[$i] = $rString;
- }
- }
- }
- foreach ($find as $fKey => $fItem) {
- $between = explode(strtolower($fItem), strtolower($string));
- $pos = 0;
- foreach ($between as $bKey => $bItem) {
- $between[$bKey] = substr($string, $pos, strlen($bItem));
- $pos += strlen($bItem) + strlen($fItem);
- }
- $string = implode($replace[$fKey], $between);
- }
- return $string;
-}
-
 // Local Variables:
 // mode: php
 // tab-width: 8
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月26日 14:10:59
Revision: 8776
 http://sourceforge.net/p/phpwiki/code/8776
Author: vargenau
Date: 2013年04月26日 14:10:54 +0000 (2013年4月26日)
Log Message:
-----------
private
Modified Paths:
--------------
 trunk/lib/plugin/WikiAdminRename.php
 trunk/lib/plugin/WikiAdminSearchReplace.php
 trunk/lib/plugin/WikiPoll.php
 trunk/lib/plugin/YouTube.php
Modified: trunk/lib/plugin/WikiAdminRename.php
===================================================================
--- trunk/lib/plugin/WikiAdminRename.php	2013年04月26日 13:53:49 UTC (rev 8775)
+++ trunk/lib/plugin/WikiAdminRename.php	2013年04月26日 14:10:54 UTC (rev 8776)
@@ -55,7 +55,7 @@
 ));
 }
 
- function renameHelper($name, $from, $to, $options = false)
+ private function renameHelper($name, $from, $to, $options = false)
 {
 if (isset($options['regex'])) {
 return preg_replace('/' . $from . '/' . (isset($options['icase']) ? 'i' : ''), $to, $name);
@@ -66,7 +66,7 @@
 }
 }
 
- function renamePages(&$dbi, &$request, $pages, $from, $to, $updatelinks = false,
+ private function renamePages(&$dbi, &$request, $pages, $from, $to, $updatelinks = false,
 $createredirect = false)
 {
 $result = HTML::div();
@@ -259,7 +259,7 @@
 => WIKIAUTH_ADMIN))));
 }
 
- function checkBox(&$post_args, $name, $msg)
+ private function checkBox(&$post_args, $name, $msg)
 {
 $id = 'admin_rename-' . $name;
 $checkbox = HTML::input(array('type' => 'checkbox',
@@ -271,7 +271,7 @@
 return HTML::div($checkbox, ' ', HTML::label(array('for' => $id), $msg));
 }
 
- function renameForm(&$header, $post_args, $singlepage)
+ private function renameForm(&$header, $post_args, $singlepage)
 {
 $table = HTML::table();
 $this->tablePush($table, _("Rename") . " " . _("from") . _(": "),
Modified: trunk/lib/plugin/WikiAdminSearchReplace.php
===================================================================
--- trunk/lib/plugin/WikiAdminSearchReplace.php	2013年04月26日 13:53:49 UTC (rev 8775)
+++ trunk/lib/plugin/WikiAdminSearchReplace.php	2013年04月26日 14:10:54 UTC (rev 8776)
@@ -53,7 +53,7 @@
 ));
 }
 
- function replaceHelper(&$dbi, &$request, $pagename, $from, $to, $case_exact = true, $regex = false)
+ private function replaceHelper(&$dbi, &$request, $pagename, $from, $to, $case_exact = true, $regex = false)
 {
 $page = $dbi->getPage($pagename);
 if ($page->exists()) { // don't replace default contents
@@ -86,7 +86,7 @@
 return false;
 }
 
- function searchReplacePages(&$dbi, &$request, $pages, $from, $to)
+ private function searchReplacePages(&$dbi, &$request, $pages, $from, $to)
 {
 if (empty($from)) return HTML::p(HTML::strong(fmt("Error: Empty search string.")));
 $result = HTML::div();
@@ -221,7 +221,7 @@
 : HiddenInputs(array('require_authority_for_post' => WIKIAUTH_ADMIN)));
 }
 
- function checkBox(&$post_args, $name, $msg)
+ private function checkBox(&$post_args, $name, $msg)
 {
 $id = 'admin_replace-' . $name;
 $checkbox = HTML::input(array('type' => 'checkbox',
@@ -233,7 +233,7 @@
 return HTML::div($checkbox, ' ', HTML::label(array('for' => $id), $msg));
 }
 
- function replaceForm(&$header, $post_args)
+ private function replaceForm(&$header, $post_args)
 {
 $header->pushContent(HTML::div(array('class' => 'hint'),
 _("Replace all occurences of the given string in the content of all pages.")),
Modified: trunk/lib/plugin/WikiPoll.php
===================================================================
--- trunk/lib/plugin/WikiPoll.php	2013年04月26日 13:53:49 UTC (rev 8775)
+++ trunk/lib/plugin/WikiPoll.php	2013年04月26日 14:10:54 UTC (rev 8776)
@@ -124,7 +124,7 @@
 return;
 }
 
- function str2array($var, $obarray = false)
+ private function str2array($var, $obarray = false)
 {
 if (!$obarray) $obarray = $GLOBALS;
 $i = 0;
@@ -235,7 +235,7 @@
 return $html;
 }
 
- function bar($percent)
+ private function bar($percent)
 {
 global $WikiTheme;
 return HTML(HTML::img(array('src' => $WikiTheme->getImageUrl('leftbar'),
@@ -248,7 +248,7 @@
 'alt' => '>')));
 }
 
- function doPoll($page, $request, $answers, $readonly = false)
+ private function doPoll($page, $request, $answers, $readonly = false)
 {
 $question = $this->_args['question'];
 $answer = $this->_args['answer'];
@@ -312,7 +312,7 @@
 
 }
 
- function getResult($page, $i, $j)
+ private function getResult($page, $i, $j)
 {
 $poll = $page->get("poll");
 @$count = $poll['data']['count'][$i][$j];
@@ -321,7 +321,7 @@
 return array($percent, $count, $all);
 }
 
- function storeResult($page, $i, $j)
+ private function storeResult($page, $i, $j)
 {
 $poll = $page->get("poll");
 if (!$poll) {
Modified: trunk/lib/plugin/YouTube.php
===================================================================
--- trunk/lib/plugin/YouTube.php	2013年04月26日 13:53:49 UTC (rev 8775)
+++ trunk/lib/plugin/YouTube.php	2013年04月26日 14:10:54 UTC (rev 8776)
@@ -190,7 +190,7 @@
 return $object;
 }
 
- function Daily_pick()
+ private function Daily_pick()
 {
 if ($xml = url_get_contents("http://www.youtube.com/categories")) {
 if (preg_match('/<div class="heading"><b>Pick of The Day<\/b><\/div>.*?<a href="\/watch\?v=(\w+)">/s', $xml, $m))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月26日 13:53:52
Revision: 8775
 http://sourceforge.net/p/phpwiki/code/8775
Author: vargenau
Date: 2013年04月26日 13:53:49 +0000 (2013年4月26日)
Log Message:
-----------
Add () for new WikiPluginLoader
Modified Paths:
--------------
 trunk/SOAP.php
 trunk/lib/CachedMarkup.php
 trunk/lib/EditToolbar.php
 trunk/lib/Template.php
 trunk/lib/WikiDB.php
 trunk/lib/WikiPluginCached.php
 trunk/lib/XmlRpcServer.php
 trunk/lib/display.php
 trunk/lib/plugin/InterWikiSearch.php
 trunk/lib/plugin/PluginManager.php
 trunk/lib/plugin/RecentChangesCached.php
 trunk/lib/plugin/SystemInfo.php
 trunk/lib/plugin/WikiFormRich.php
Modified: trunk/SOAP.php
===================================================================
--- trunk/SOAP.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/SOAP.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -275,7 +275,7 @@
 $RetArray = array();
 if (!empty($plugins)) {
 require_once 'lib/WikiPlugin.php';
- $w = new WikiPluginLoader;
+ $w = new WikiPluginLoader();
 foreach ($plugins as $plugin) {
 $pluginName = str_replace(".php", "", $plugin);
 $p = $w->getPlugin($pluginName, false); // second arg?
@@ -293,7 +293,7 @@
 global $server;
 checkCredentials($server, $credentials, 'change', "Help/" . $pluginname . "Plugin");
 require_once 'lib/WikiPlugin.php';
- $w = new WikiPluginLoader;
+ $w = new WikiPluginLoader();
 $synopsis = '';
 $p = $w->getPlugin($pluginName, false); // second arg?
 // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only
@@ -319,7 +319,7 @@
 $basepage = '';
 ;
 require_once 'lib/WikiPlugin.php';
- $w = new WikiPluginLoader;
+ $w = new WikiPluginLoader();
 $p = $w->getPlugin($pluginName, false); // second arg?
 $pagelist = $p->run($dbi, $pluginargs, $request, $basepage);
 $pages = array();
Modified: trunk/lib/CachedMarkup.php
===================================================================
--- trunk/lib/CachedMarkup.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/CachedMarkup.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -863,7 +863,7 @@
 
 if (!$loader) {
 include_once 'lib/WikiPlugin.php';
- $loader = new WikiPluginLoader;
+ $loader = new WikiPluginLoader();
 }
 return $loader;
 }
Modified: trunk/lib/EditToolbar.php
===================================================================
--- trunk/lib/EditToolbar.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/EditToolbar.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -346,7 +346,7 @@
 if (!empty($plugins)) {
 $plugin_js = '';
 require_once 'lib/WikiPlugin.php';
- $w = new WikiPluginLoader;
+ $w = new WikiPluginLoader();
 foreach ($plugins as $plugin) {
 $pluginName = str_replace(".php", "", $plugin);
 if (in_array($pluginName, $AllAllowedPlugins)) {
Modified: trunk/lib/Template.php
===================================================================
--- trunk/lib/Template.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/Template.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -84,7 +84,7 @@
 static $loader;
 
 if (empty($loader))
- $loader = new WikiPluginLoader;
+ $loader = new WikiPluginLoader();
 
 $this->_print($loader->expandPI($pi, $this->_request, $this, $this->_basepage));
 }
Modified: trunk/lib/WikiDB.php
===================================================================
--- trunk/lib/WikiDB.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/WikiDB.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -1089,7 +1089,7 @@
 array('loadfile', 'upgrade'))
 ) {
 require_once 'lib/WikiPlugin.php';
- $w = new WikiPluginLoader;
+ $w = new WikiPluginLoader();
 $p = $w->getPlugin("RecentChangesCached", false);
 $p->box_update(false, $GLOBALS['request'], $this->_pagename);
 }
Modified: trunk/lib/WikiPluginCached.php
===================================================================
--- trunk/lib/WikiPluginCached.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/WikiPluginCached.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -861,7 +861,7 @@
 $pluginname = $plugincall['pluginname'];
 $argarray = $plugincall['arguments'];
 
- $loader = new WikiPluginLoader;
+ $loader = new WikiPluginLoader();
 $plugin = $loader->getPlugin($pluginname);
 
 // cache empty, but image maps have to be created _inline_
Modified: trunk/lib/XmlRpcServer.php
===================================================================
--- trunk/lib/XmlRpcServer.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/XmlRpcServer.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -709,7 +709,7 @@
 $RetArray = array();
 if (!empty($plugins)) {
 require_once 'lib/WikiPlugin.php';
- $w = new WikiPluginLoader;
+ $w = new WikiPluginLoader();
 foreach ($plugins as $plugin) {
 $pluginName = str_replace(".php", "", $plugin);
 $p = $w->getPlugin($pluginName, false); // second arg?
@@ -741,7 +741,7 @@
 $pluginName = short_string_decode($ParamPlugin->scalarval());
 
 require_once 'lib/WikiPlugin.php';
- $w = new WikiPluginLoader;
+ $w = new WikiPluginLoader();
 $synopsis = '';
 $p = $w->getPlugin($pluginName, false); // second arg?
 // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only
@@ -784,7 +784,7 @@
 
 $basepage = ''; //$pluginName;
 require_once 'lib/WikiPlugin.php';
- $w = new WikiPluginLoader;
+ $w = new WikiPluginLoader();
 $p = $w->getPlugin($pluginName, false); // second arg?
 $pagelist = $p->run($dbi, $plugin_args, $request, $basepage);
 $list = array();
Modified: trunk/lib/display.php
===================================================================
--- trunk/lib/display.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/display.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -129,7 +129,7 @@
 // Need the pagelist from the first plugin
 foreach ($transformedContent->_content as $cached_element) {
 if (is_a($cached_element, "Cached_PluginInvocation")) {
- $loader = new WikiPluginLoader;
+ $loader = new WikiPluginLoader();
 $markup = null;
 // return the first found pagelist
 $pagelist = $loader->expandPI($cached_element->_pi, $request,
Modified: trunk/lib/plugin/InterWikiSearch.php
===================================================================
--- trunk/lib/plugin/InterWikiSearch.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/plugin/InterWikiSearch.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -106,7 +106,7 @@
 ? WikiLink($moniker)
 : $moniker);
 
- $w = new WikiPluginLoader;
+ $w = new WikiPluginLoader();
 $p = $w->getPlugin('ExternalSearch');
 $argstr = sprintf('url="%s"', addslashes($interurl));
 $searchtd = HTML::td($p->run($dbi, $argstr, $request, $basepage));
Modified: trunk/lib/plugin/PluginManager.php
===================================================================
--- trunk/lib/plugin/PluginManager.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/plugin/PluginManager.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -97,7 +97,7 @@
 $tbody = HTML::tbody();
 $row_no = 0;
 
- $w = new WikiPluginLoader;
+ $w = new WikiPluginLoader();
 foreach ($plugins as $pluginName) {
 
 $pluginName = str_replace(".php", "", $pluginName);
Modified: trunk/lib/plugin/RecentChangesCached.php
===================================================================
--- trunk/lib/plugin/RecentChangesCached.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/plugin/RecentChangesCached.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -67,7 +67,7 @@
 $changes = $plugin->getChanges($dbi, $args);
 return $plugin->format($changes, $args);
 /*
- $loader = new WikiPluginLoader;
+ $loader = new WikiPluginLoader();
 return $loader->expandPI('<?plugin RecentChanges '
 . WikiPluginCached::glueArgs($argarray)
 . ' ?>', $request, $this, $basepage);
Modified: trunk/lib/plugin/SystemInfo.php
===================================================================
--- trunk/lib/plugin/SystemInfo.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/plugin/SystemInfo.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -78,7 +78,7 @@
 
 function getHtml($dbi, $argarray, $request, $basepage)
 {
- $loader = new WikiPluginLoader;
+ $loader = new WikiPluginLoader();
 return $loader->expandPI('<<SystemInfo '
 . WikiPluginCached::glueArgs($argarray) // all
 . ' ?>', $request, $this, $basepage);
Modified: trunk/lib/plugin/WikiFormRich.php
===================================================================
--- trunk/lib/plugin/WikiFormRich.php	2013年04月26日 13:41:37 UTC (rev 8774)
+++ trunk/lib/plugin/WikiFormRich.php	2013年04月26日 13:53:49 UTC (rev 8775)
@@ -358,7 +358,7 @@
 $pluginName = substr($input['method'], 7);
 $basepage = '';
 require_once 'lib/WikiPlugin.php';
- $w = new WikiPluginLoader;
+ $w = new WikiPluginLoader();
 $p = $w->getPlugin($pluginName, false); // second arg?
 if (!is_object($p))
 trigger_error("invalid input['method'] " . $input['method'], E_USER_WARNING);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月26日 13:41:40
Revision: 8774
 http://sourceforge.net/p/phpwiki/code/8774
Author: vargenau
Date: 2013年04月26日 13:41:37 +0000 (2013年4月26日)
Log Message:
-----------
Initialize variables
Modified Paths:
--------------
 trunk/lib/WikiPlugin.php
Modified: trunk/lib/WikiPlugin.php
===================================================================
--- trunk/lib/WikiPlugin.php	2013年04月26日 13:32:26 UTC (rev 8773)
+++ trunk/lib/WikiPlugin.php	2013年04月26日 13:41:37 UTC (rev 8774)
@@ -2,6 +2,8 @@
 
 class WikiPlugin
 {
+ protected $_pi;
+
 function getDefaultArguments()
 {
 return array('description' => $this->getDescription());
@@ -186,7 +188,12 @@
 }
 }
 while (preg_match("/^$opt_ws $argspec_p $opt_ws/x", $argstr, $m)) {
- //@ list(,$arg,$op,$qq_val,$q_val,$gt_val,$word_val) = $m;
+ $qq_val = '';
+ $q_val = '';
+ $gt_val = '';
+ $word_val = '';
+ $op = '';
+ $arg = '';
 $count = count($m);
 if ($count >= 7) {
 list(, $arg, $op, $qq_val, $q_val, $gt_val, $word_val) = $m;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月26日 13:32:29
Revision: 8773
 http://sourceforge.net/p/phpwiki/code/8773
Author: vargenau
Date: 2013年04月26日 13:32:26 +0000 (2013年4月26日)
Log Message:
-----------
Fix warnings
Modified Paths:
--------------
 trunk/lib/WikiPlugin.php
Modified: trunk/lib/WikiPlugin.php
===================================================================
--- trunk/lib/WikiPlugin.php	2013年04月26日 13:12:45 UTC (rev 8772)
+++ trunk/lib/WikiPlugin.php	2013年04月26日 13:32:26 UTC (rev 8773)
@@ -33,8 +33,8 @@
 // FIXME: args?
 function run($dbi, $argstr, &$request, $basepage)
 {
- trigger_error("WikiPlugin::run: pure virtual function",
- E_USER_ERROR);
+ trigger_error("WikiPlugin::run: pure virtual function", E_USER_ERROR);
+ return false;
 }
 
 /** Get wiki-pages linked to by plugin invocation.
@@ -88,9 +88,9 @@
 return $this->getName();
 }
 
- function getArgs($argstr, $request = false, $defaults = false)
+ function getArgs($argstr, $request = false, $defaults = array())
 {
- if ($defaults === false) {
+ if (empty($defaults)) {
 $defaults = $this->getDefaultArguments();
 }
 //Fixme: on POST argstr is empty
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月26日 13:12:48
Revision: 8772
 http://sourceforge.net/p/phpwiki/code/8772
Author: vargenau
Date: 2013年04月26日 13:12:45 +0000 (2013年4月26日)
Log Message:
-----------
Add missing return
Modified Paths:
--------------
 trunk/lib/plugin/FileInfo.php
 trunk/lib/plugin/WikiAdminUtils.php
Modified: trunk/lib/plugin/FileInfo.php
===================================================================
--- trunk/lib/plugin/FileInfo.php	2013年04月26日 13:06:20 UTC (rev 8771)
+++ trunk/lib/plugin/FileInfo.php	2013年04月26日 13:12:45 UTC (rev 8772)
@@ -295,6 +295,7 @@
 $pValue->dwFileVersionLS & 0xFFFF);
 }
 }
+ return '';
 }
 
 // Read "RT_VERSION/VERSIONINFO" exe/dll resource info for MSWin32 binaries
Modified: trunk/lib/plugin/WikiAdminUtils.php
===================================================================
--- trunk/lib/plugin/WikiAdminUtils.php	2013年04月26日 13:06:20 UTC (rev 8771)
+++ trunk/lib/plugin/WikiAdminUtils.php	2013年04月26日 13:12:45 UTC (rev 8772)
@@ -300,6 +300,7 @@
 Button('cancel', _("Cancel")))
 );
 }
+ return HTML::raw();
 }
 }
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月26日 13:06:23
Revision: 8771
 http://sourceforge.net/p/phpwiki/code/8771
Author: vargenau
Date: 2013年04月26日 13:06:20 +0000 (2013年4月26日)
Log Message:
-----------
Add missing return
Modified Paths:
--------------
 trunk/lib/plugin/FileInfo.php
 trunk/lib/plugin/FoafViewer.php
 trunk/lib/plugin/FrameInclude.php
 trunk/lib/plugin/LinkDatabase.php
 trunk/lib/plugin/ModeratedPage.php
 trunk/lib/plugin/PhotoAlbum.php
 trunk/lib/plugin/RateIt.php
 trunk/lib/plugin/WatchPage.php
 trunk/lib/plugin/WikiAdminSelect.php
 trunk/lib/plugin/WikiAdminUtils.php
Modified: trunk/lib/plugin/FileInfo.php
===================================================================
--- trunk/lib/plugin/FileInfo.php	2013年04月26日 12:48:14 UTC (rev 8770)
+++ trunk/lib/plugin/FileInfo.php	2013年04月26日 13:06:20 UTC (rev 8771)
@@ -204,6 +204,7 @@
 $n -= floor($factor * $b);
 return number_format($b, $n ? 3 : 0) . $suffix;
 }
+ return '';
 }
 
 function phonysize($a)
Modified: trunk/lib/plugin/FoafViewer.php
===================================================================
--- trunk/lib/plugin/FoafViewer.php	2013年04月26日 12:48:14 UTC (rev 8770)
+++ trunk/lib/plugin/FoafViewer.php	2013年04月26日 13:06:20 UTC (rev 8771)
@@ -187,6 +187,7 @@
 return $html;
 }
 }
+ return '';
 }
 
 /**
Modified: trunk/lib/plugin/FrameInclude.php
===================================================================
--- trunk/lib/plugin/FrameInclude.php	2013年04月26日 12:48:14 UTC (rev 8770)
+++ trunk/lib/plugin/FrameInclude.php	2013年04月26日 13:06:20 UTC (rev 8771)
@@ -145,6 +145,7 @@
 $request->discardOutput();
 displayPage($request, new Template('frameset', $request, $tokens));
 $request->finish(); //noreturn
+ return '';
 }
 }
 
Modified: trunk/lib/plugin/LinkDatabase.php
===================================================================
--- trunk/lib/plugin/LinkDatabase.php	2013年04月26日 12:48:14 UTC (rev 8770)
+++ trunk/lib/plugin/LinkDatabase.php	2013年04月26日 13:06:20 UTC (rev 8771)
@@ -183,6 +183,7 @@
 } else {
 return $this->error(fmt("Unsupported format argument %s", $args['format']));
 }
+ return '';
 }
 }
 
Modified: trunk/lib/plugin/ModeratedPage.php
===================================================================
--- trunk/lib/plugin/ModeratedPage.php	2013年04月26日 12:48:14 UTC (rev 8770)
+++ trunk/lib/plugin/ModeratedPage.php	2013年04月26日 13:06:20 UTC (rev 8771)
@@ -323,6 +323,7 @@
 } else {
 return $this->approval_form($request, $args, $moderation, 'approve');
 }
+ return '';
 }
 
 /**
@@ -337,6 +338,7 @@
 } else {
 return $this->approval_form($request, $args, $moderation, 'reject');
 }
+ return '';
 }
 
 function cleanup_and_notify(&$request, $args, &$moderation)
Modified: trunk/lib/plugin/PhotoAlbum.php
===================================================================
--- trunk/lib/plugin/PhotoAlbum.php	2013年04月26日 12:48:14 UTC (rev 8770)
+++ trunk/lib/plugin/PhotoAlbum.php	2013年04月26日 13:06:20 UTC (rev 8771)
@@ -549,6 +549,7 @@
 }
 $photos[] = array("name" => $src, //album_location."/$src".album_default_extension,
 "desc" => "");
+ return '';
 }
 
 /**
@@ -668,6 +669,7 @@
 "name_tile" => dirname($src) . "/" . trim($data[0]));
 }
 }
+ return '';
 }
 }
 
Modified: trunk/lib/plugin/RateIt.php
===================================================================
--- trunk/lib/plugin/RateIt.php	2013年04月26日 12:48:14 UTC (rev 8770)
+++ trunk/lib/plugin/RateIt.php	2013年04月26日 13:06:20 UTC (rev 8771)
@@ -288,6 +288,7 @@
 }
 return $html;
 }
+ return HTML::raw();
 }
 
 // box is used to display a fixed-width, narrow version with common header
Modified: trunk/lib/plugin/WatchPage.php
===================================================================
--- trunk/lib/plugin/WatchPage.php	2013年04月26日 12:48:14 UTC (rev 8770)
+++ trunk/lib/plugin/WatchPage.php	2013年04月26日 13:06:20 UTC (rev 8771)
@@ -169,6 +169,7 @@
 }
 }
 }
+ return '';
 }
 }
 
Modified: trunk/lib/plugin/WikiAdminSelect.php
===================================================================
--- trunk/lib/plugin/WikiAdminSelect.php	2013年04月26日 12:48:14 UTC (rev 8770)
+++ trunk/lib/plugin/WikiAdminSelect.php	2013年04月26日 13:06:20 UTC (rev 8771)
@@ -232,6 +232,7 @@
 } else {
 ; //return $action_result;
 }
+ return '';
 }
 
 protected function tablePush(&$table, $first, $second)
Modified: trunk/lib/plugin/WikiAdminUtils.php
===================================================================
--- trunk/lib/plugin/WikiAdminUtils.php	2013年04月26日 12:48:14 UTC (rev 8770)
+++ trunk/lib/plugin/WikiAdminUtils.php	2013年04月26日 13:06:20 UTC (rev 8771)
@@ -108,6 +108,7 @@
 $message,
 array(_("Back") => $args['return_url']));
 $alert->show(); // noreturn
+ return '';
 }
 
 private function _getLabel($action)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月26日 12:48:17
Revision: 8770
 http://sourceforge.net/p/phpwiki/code/8770
Author: vargenau
Date: 2013年04月26日 12:48:14 +0000 (2013年4月26日)
Log Message:
-----------
Add return argument
Modified Paths:
--------------
 trunk/lib/plugin/PhotoAlbum.php
 trunk/lib/plugin/RateIt.php
 trunk/lib/plugin/WatchPage.php
Modified: trunk/lib/plugin/PhotoAlbum.php
===================================================================
--- trunk/lib/plugin/PhotoAlbum.php	2013年04月18日 09:36:18 UTC (rev 8769)
+++ trunk/lib/plugin/PhotoAlbum.php	2013年04月26日 12:48:14 UTC (rev 8770)
@@ -185,7 +185,9 @@
 if ($align != 'left' && $align != 'center' && $align != 'right') {
 $align = 'center';
 }
- if (count($photos) == 0) return;
+ if (count($photos) == 0) {
+ return HTML::raw();
+ }
 
 if (in_array("sort", $attributes))
 sort($photos);
@@ -605,7 +607,7 @@
 "src" => $src . "/$file",
 "desc" => "");
 }
- return;
+ return '';
 }
 // check if $src is an image
 foreach (array('jpeg', 'jpg', 'png', 'gif') as $ext) {
@@ -618,7 +620,7 @@
 "name_tile" => $src,
 "src" => $src,
 "desc" => "");
- return;
+ return '';
 }
 if (!file_exists($src))
 return $this->error(fmt("Unable to find src="%s"", $src));
@@ -627,7 +629,7 @@
 "name_tile" => $src,
 "src" => $src,
 "desc" => "");
- return;
+ return '';
 }
 }
 if ($web_location == 0) {
Modified: trunk/lib/plugin/RateIt.php
===================================================================
--- trunk/lib/plugin/RateIt.php	2013年04月18日 09:36:18 UTC (rev 8769)
+++ trunk/lib/plugin/RateIt.php	2013年04月26日 12:48:14 UTC (rev 8770)
@@ -294,7 +294,9 @@
 function box($args = false, $request = false, $basepage = false)
 {
 if (!$request) $request =& $GLOBALS['request'];
- if (!$request->_user->isSignedIn()) return;
+ if (!$request->_user->isSignedIn()) {
+ return HTML::raw();
+ }
 if (!isset($args)) $args = array();
 $args['small'] = 1;
 $argstr = '';
Modified: trunk/lib/plugin/WatchPage.php
===================================================================
--- trunk/lib/plugin/WatchPage.php	2013年04月18日 09:36:18 UTC (rev 8769)
+++ trunk/lib/plugin/WatchPage.php	2013年04月26日 12:48:14 UTC (rev 8770)
@@ -145,12 +145,12 @@
 array('warningmsg' => _('WatchPage cancelled')),
 'absolute_url'));
 // noreturn
- return;
+ return '';
 }
 if ($request->getArg('edit')) {
 $request->redirect(WikiURL(_("UserPreferences"),
 false, 'absolute_url')); // noreturn
- return;
+ return '';
 }
 $add = $request->getArg('add');
 if ($add and !$request->getArg('verify')) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月18日 09:36:21
Revision: 8769
 http://sourceforge.net/p/phpwiki/code/8769
Author: vargenau
Date: 2013年04月18日 09:36:18 +0000 (2013年4月18日)
Log Message:
-----------
tablePush is protected
Modified Paths:
--------------
 trunk/lib/plugin/WikiAdminRename.php
 trunk/lib/plugin/WikiAdminSearchReplace.php
 trunk/lib/plugin/WikiAdminSelect.php
Modified: trunk/lib/plugin/WikiAdminRename.php
===================================================================
--- trunk/lib/plugin/WikiAdminRename.php	2013年04月18日 09:34:48 UTC (rev 8768)
+++ trunk/lib/plugin/WikiAdminRename.php	2013年04月18日 09:36:18 UTC (rev 8769)
@@ -274,28 +274,28 @@
 function renameForm(&$header, $post_args, $singlepage)
 {
 $table = HTML::table();
- $this->_tablePush($table, _("Rename") . " " . _("from") . _(": "),
+ $this->tablePush($table, _("Rename") . " " . _("from") . _(": "),
 HTML::input(array('name' => 'admin_rename[from]',
 'size' => MAX_PAGENAME_LENGTH,
 'maxlength' => MAX_PAGENAME_LENGTH,
 'readonly' => 'readonly',
 'value' => $post_args['from'])));
- $this->_tablePush($table, _("to") . _(": "),
+ $this->tablePush($table, _("to") . _(": "),
 HTML::input(array('name' => 'admin_rename[to]',
 'size' => MAX_PAGENAME_LENGTH,
 'maxlength' => MAX_PAGENAME_LENGTH,
 'value' => $post_args['to'])));
 if ($singlepage === false) {
- $this->_tablePush($table, '',
+ $this->tablePush($table, '',
 $this->checkBox($post_args, 'regex', _("Regex?")));
- $this->_tablePush($table, '',
+ $this->tablePush($table, '',
 $this->checkBox($post_args, 'icase', _("Case insensitive?")));
 }
 if (defined('EXPERIMENTAL') and EXPERIMENTAL) // not yet stable
- $this->_tablePush($table, '',
+ $this->tablePush($table, '',
 $this->checkBox($post_args, 'updatelinks',
 _("Change pagename in all linked pages also?")));
- $this->_tablePush($table, '',
+ $this->tablePush($table, '',
 $this->checkBox($post_args, 'createredirect',
 _("Create redirect from old to new name?")));
 $header->pushContent($table);
Modified: trunk/lib/plugin/WikiAdminSearchReplace.php
===================================================================
--- trunk/lib/plugin/WikiAdminSearchReplace.php	2013年04月18日 09:34:48 UTC (rev 8768)
+++ trunk/lib/plugin/WikiAdminSearchReplace.php	2013年04月18日 09:36:18 UTC (rev 8769)
@@ -239,16 +239,16 @@
 _("Replace all occurences of the given string in the content of all pages.")),
 HTML::br());
 $table = HTML::table();
- $this->_tablePush($table, _("Replace") . _(": "),
+ $this->tablePush($table, _("Replace") . _(": "),
 HTML::input(array('name' => 'admin_replace[from]',
 'size' => 90,
 'value' => $post_args['from'])));
- $this->_tablePush($table, _("by") . _(": "),
+ $this->tablePush($table, _("by") . _(": "),
 HTML::input(array('name' => 'admin_replace[to]',
 'size' => 90,
 'value' => $post_args['to'])));
- $this->_tablePush($table, '', $this->checkBox($post_args, 'case_exact', _("Case exact?")));
- $this->_tablePush($table, '', $this->checkBox($post_args, 'regex', _("Regex?")));
+ $this->tablePush($table, '', $this->checkBox($post_args, 'case_exact', _("Case exact?")));
+ $this->tablePush($table, '', $this->checkBox($post_args, 'regex', _("Regex?")));
 $header->pushContent($table);
 return $header;
 }
Modified: trunk/lib/plugin/WikiAdminSelect.php
===================================================================
--- trunk/lib/plugin/WikiAdminSelect.php	2013年04月18日 09:34:48 UTC (rev 8768)
+++ trunk/lib/plugin/WikiAdminSelect.php	2013年04月18日 09:36:18 UTC (rev 8769)
@@ -234,7 +234,7 @@
 }
 }
 
- private function _tablePush(&$table, $first, $second)
+ protected function tablePush(&$table, $first, $second)
 {
 $table->pushContent(
 HTML::tr(
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月18日 09:34:50
Revision: 8768
 http://sourceforge.net/p/phpwiki/code/8768
Author: vargenau
Date: 2013年04月18日 09:34:48 +0000 (2013年4月18日)
Log Message:
-----------
_PageHistory_PageRevisionIter is not private
Modified Paths:
--------------
 trunk/lib/plugin/PageHistory.php
Modified: trunk/lib/plugin/PageHistory.php
===================================================================
--- trunk/lib/plugin/PageHistory.php	2013年04月18日 09:24:36 UTC (rev 8767)
+++ trunk/lib/plugin/PageHistory.php	2013年04月18日 09:34:48 UTC (rev 8768)
@@ -25,7 +25,7 @@
 class _PageHistory_PageRevisionIter
 extends WikiDB_PageRevisionIterator
 {
- private function _PageHistory_PageRevisionIter($rev_iter, $params)
+ function _PageHistory_PageRevisionIter($rev_iter, $params)
 {
 
 $this->_iter = $rev_iter;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月18日 09:24:39
Revision: 8767
 http://sourceforge.net/p/phpwiki/code/8767
Author: vargenau
Date: 2013年04月18日 09:24:36 +0000 (2013年4月18日)
Log Message:
-----------
var $_dbi
Modified Paths:
--------------
 trunk/lib/main.php
Modified: trunk/lib/main.php
===================================================================
--- trunk/lib/main.php	2013年04月17日 13:15:30 UTC (rev 8766)
+++ trunk/lib/main.php	2013年04月18日 09:24:36 UTC (rev 8767)
@@ -50,7 +50,7 @@
 
 class WikiRequest extends Request
 {
- // var $_dbi;
+ var $_dbi;
 
 function WikiRequest()
 {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月17日 13:15:33
Revision: 8766
 http://sourceforge.net/p/phpwiki/code/8766
Author: vargenau
Date: 2013年04月17日 13:15:30 +0000 (2013年4月17日)
Log Message:
-----------
protected function extractParts
Modified Paths:
--------------
 trunk/lib/plugin/IncludePage.php
Modified: trunk/lib/plugin/IncludePage.php
===================================================================
--- trunk/lib/plugin/IncludePage.php	2013年04月17日 10:36:49 UTC (rev 8765)
+++ trunk/lib/plugin/IncludePage.php	2013年04月17日 13:15:30 UTC (rev 8766)
@@ -179,7 +179,7 @@
 * handles the arguments: section, sectionhead, lines, words, bytes,
 * for UnfoldSubpages, IncludePage, ...
 */
- function extractParts($c, $pagename, $args)
+ protected function extractParts($c, $pagename, $args)
 {
 extract($args);
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月17日 10:36:53
Revision: 8765
 http://sourceforge.net/p/phpwiki/code/8765
Author: vargenau
Date: 2013年04月17日 10:36:49 +0000 (2013年4月17日)
Log Message:
-----------
HTML::Raw --> HTML::raw
Modified Paths:
--------------
 trunk/lib/plugin/AppendText.php
 trunk/lib/plugin/PasswordReset.php
 trunk/lib/plugin/RateIt.php
 trunk/lib/plugin/UserPreferences.php
 trunk/lib/plugin/WatchPage.php
 trunk/lib/plugin/WhoIsOnline.php
 trunk/lib/plugin/WikiFormRich.php
Modified: trunk/lib/plugin/AppendText.php
===================================================================
--- trunk/lib/plugin/AppendText.php	2013年04月17日 10:34:01 UTC (rev 8764)
+++ trunk/lib/plugin/AppendText.php	2013年04月17日 10:36:49 UTC (rev 8765)
@@ -146,7 +146,7 @@
 
 } else {
 $link = HTML::em(WikiLink($pagename));
- $message->pushContent(HTML::Raw(sprintf(_("Go to %s."), $link->asXml())));
+ $message->pushContent(HTML::raw(sprintf(_("Go to %s."), $link->asXml())));
 }
 
 return $message;
Modified: trunk/lib/plugin/PasswordReset.php
===================================================================
--- trunk/lib/plugin/PasswordReset.php	2013年04月17日 10:34:01 UTC (rev 8764)
+++ trunk/lib/plugin/PasswordReset.php	2013年04月17日 10:36:49 UTC (rev 8765)
@@ -96,7 +96,7 @@
 {
 if (!$header) {
 $header = HTML::p(_("Reset password of user: "),
- HTML::Raw('&nbsp;'),
+ HTML::raw('&nbsp;'),
 HTML::input(array('type' => 'text',
 'name' => "user",
 'value' => $userid))
@@ -107,7 +107,7 @@
 $footer = HTML::p(Button('submit:admin_reset[reset]',
 $isadmin ? _("Yes") : _("Send e-mail"),
 $isadmin ? 'wikiadmin' : 'button'),
- HTML::Raw('&nbsp;'),
+ HTML::raw('&nbsp;'),
 Button('submit:admin_reset[cancel]', _("Cancel"), 'button'));
 }
 return HTML::form(array('action' => $request->getPostURL(),
@@ -153,7 +153,7 @@
 $buttons = HTML::p(Button('submit:admin_reset[reset]',
 $isadmin ? _("Yes") : _("Send e-mail"),
 $isadmin ? 'wikiadmin' : 'button'),
- HTML::Raw('&nbsp;'),
+ HTML::raw('&nbsp;'),
 Button('submit:admin_reset[cancel]', _("Cancel"), 'button'));
 $header = HTML::strong("Verify");
 if (!$user->isAdmin()) {
Modified: trunk/lib/plugin/RateIt.php
===================================================================
--- trunk/lib/plugin/RateIt.php	2013年04月17日 10:34:01 UTC (rev 8764)
+++ trunk/lib/plugin/RateIt.php	2013年04月17日 10:36:49 UTC (rev 8765)
@@ -392,7 +392,7 @@
 //This adds a space between the rating smilies:
 //if (($i%2) == 0) $html->pushContent("\n");
 }
- $html->pushContent(HTML::Raw("&nbsp;"));
+ $html->pushContent(HTML::raw("&nbsp;"));
 
 $a0 = HTML::a(array('href' => "javascript:clickRating('$reImgPrefix','$rePagename','$version',"
 . "'$reImgId','$dimension','X')"));
Modified: trunk/lib/plugin/UserPreferences.php
===================================================================
--- trunk/lib/plugin/UserPreferences.php	2013年04月17日 10:34:01 UTC (rev 8764)
+++ trunk/lib/plugin/UserPreferences.php	2013年04月17日 10:36:49 UTC (rev 8765)
@@ -117,7 +117,7 @@
 HiddenInputs($request->getArgs()),
 HTML::p(_("Do you really want to reset all your UserPreferences?")),
 HTML::p(Button('submit:delete', _("Yes"), 'delete'),
- HTML::Raw('&nbsp;'),
+ HTML::raw('&nbsp;'),
 Button('cancel', _("Cancel")))
 ));
 } elseif ($rp = $request->getArg('pref')) {
Modified: trunk/lib/plugin/WatchPage.php
===================================================================
--- trunk/lib/plugin/WatchPage.php	2013年04月17日 10:34:01 UTC (rev 8764)
+++ trunk/lib/plugin/WatchPage.php	2013年04月17日 10:36:49 UTC (rev 8765)
@@ -88,12 +88,12 @@
 HTML::p(sprintf(_("Do you %s want to add this page \"%s\" to your WatchList?"),
 ($verified ? _("really") : ""), $page)),
 HTML::p(Button('submit:add', _("Yes")),
- HTML::Raw('&nbsp;'),
+ HTML::raw('&nbsp;'),
 Button('submit:cancel', _("Cancel"))));
 } else {
 $form->pushContent(HTML::p(fmt("The page %s is already watched!", $page)),
 HTML::p(Button('submit:edit', _("Edit")),
- HTML::Raw('&nbsp;'),
+ HTML::raw('&nbsp;'),
 Button('submit:cancel', _("Cancel"))));
 }
 $fieldset = HTML::fieldset(HTML::legend(_("Watch Page")), $form);
Modified: trunk/lib/plugin/WhoIsOnline.php
===================================================================
--- trunk/lib/plugin/WhoIsOnline.php	2013年04月17日 10:34:01 UTC (rev 8764)
+++ trunk/lib/plugin/WhoIsOnline.php	2013年04月17日 10:36:49 UTC (rev 8765)
@@ -78,7 +78,7 @@
 if (!$request) $request =& $GLOBALS['request'];
 $stats = $this->getStats($request->_dbi, $request, 'summary');
 return $this->makeBox(_("Who is Online"),
- HTML(HTML::Raw('&middot; '),
+ HTML(HTML::raw('&middot; '),
 WikiLink(_("WhoIsOnline"), 'auto',
 fmt("%d online users", $stats['NUM_USERS']))));
 }
Modified: trunk/lib/plugin/WikiFormRich.php
===================================================================
--- trunk/lib/plugin/WikiFormRich.php	2013年04月17日 10:34:01 UTC (rev 8764)
+++ trunk/lib/plugin/WikiFormRich.php	2013年04月17日 10:36:49 UTC (rev 8765)
@@ -183,7 +183,7 @@
 'class' => 'wikiformrich',
 'accept-charset' => 'UTF-8'),
 HiddenInputs(array('action' => $action)));
- $nbsp = HTML::Raw('&nbsp;');
+ $nbsp = HTML::raw('&nbsp;');
 $already_submit = 0;
 foreach ($this->inputbox as $inputbox) {
 foreach ($inputbox as $inputtype => $input) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月17日 10:34:05
Revision: 8764
 http://sourceforge.net/p/phpwiki/code/8764
Author: vargenau
Date: 2013年04月17日 10:34:01 +0000 (2013年4月17日)
Log Message:
-----------
return
Modified Paths:
--------------
 trunk/lib/plugin/TeX2png.php
 trunk/lib/plugin/text2png.php
Modified: trunk/lib/plugin/TeX2png.php
===================================================================
--- trunk/lib/plugin/TeX2png.php	2013年04月17日 10:06:40 UTC (rev 8763)
+++ trunk/lib/plugin/TeX2png.php	2013年04月17日 10:34:01 UTC (rev 8764)
@@ -232,7 +232,7 @@
 $link = "http://www.php.net/manual/pl/ref.image.php";
 $error_html .= sprintf(_("See %s"), $link) . ".";
 trigger_error($error_html, E_USER_NOTICE);
- return;
+ return HTML::p($error_html);
 }
 }
 }
Modified: trunk/lib/plugin/text2png.php
===================================================================
--- trunk/lib/plugin/text2png.php	2013年04月17日 10:06:40 UTC (rev 8763)
+++ trunk/lib/plugin/text2png.php	2013年04月17日 10:34:01 UTC (rev 8764)
@@ -83,7 +83,7 @@
 $link = "http://www.php.net/manual/pl/ref.image.php";
 $error_html .= sprintf(_("See %s"), $link) . ".";
 trigger_error($error_html, E_USER_NOTICE);
- return;
+ return HTML::p($error_html);
 }
 }
 
@@ -170,7 +170,7 @@
 $link = "http://www.php.net/manual/en/function.imagecreate.php";
 $error_html .= sprintf(_("See %s"), $link) . ".";
 trigger_error($error_html, E_USER_NOTICE);
- return;
+ return HTML::p($error_html);
 }
 $rgb = $this->hexcolor($backcolor, array(255, 255, 255));
 $bg_color = ImageColorAllocate($im, $rgb[0], $rgb[1], $rgb[2]);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月17日 10:06:43
Revision: 8763
 http://sourceforge.net/p/phpwiki/code/8763
Author: vargenau
Date: 2013年04月17日 10:06:40 +0000 (2013年4月17日)
Log Message:
-----------
No underscore for private function
Modified Paths:
--------------
 trunk/lib/plugin/AppendText.php
 trunk/lib/plugin/ExternalSearch.php
 trunk/lib/plugin/FoafViewer.php
 trunk/lib/plugin/FuzzyPages.php
 trunk/lib/plugin/GraphViz.php
 trunk/lib/plugin/HtmlConverter.php
 trunk/lib/plugin/ModeratedPage.php
 trunk/lib/plugin/OldStyleTable.php
 trunk/lib/plugin/SystemInfo.php
 trunk/lib/plugin/WantedPagesOld.php
 trunk/lib/plugin/_AuthInfo.php
 trunk/lib/plugin/_Retransform.php
Modified: trunk/lib/plugin/AppendText.php
===================================================================
--- trunk/lib/plugin/AppendText.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/AppendText.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -54,7 +54,7 @@
 );
 }
 
- private function _fallback($addtext, $oldtext, $notfound, &$message)
+ private function fallback($addtext, $oldtext, $notfound, &$message)
 {
 $message->pushContent(sprintf(_("%s not found"), $notfound) . ". " .
 _("Appending at the end.") . "\n");
@@ -66,19 +66,19 @@
 
 $args = $this->getArgs($argstr, $request);
 if (!$args['pages'] or !$request->isPost()) {
- return $this->_work($args['page'], $args, $dbi, $request);
+ return $this->work($args['page'], $args, $dbi, $request);
 } else {
 $html = HTML();
 if ($args['page'] != $basepage)
 $html->pushContent("pages argument overrides page argument. ignored.", HTML::br());
 foreach ($args['pages'] as $pagename) {
- $html->pushContent($this->_work($pagename, $args, $dbi, $request));
+ $html->pushContent($this->work($pagename, $args, $dbi, $request));
 }
 return $html;
 }
 }
 
- private function _work($pagename, $args, $dbi, &$request)
+ private function work($pagename, $args, $dbi, &$request)
 {
 if (empty($args['s'])) {
 if ($request->isPost()) {
@@ -109,7 +109,7 @@
 ? preg_replace("/(\n${before})/",
 "\n" . preg_quote($text, "/") . "\1円",
 $oldtext)
- : $this->_fallback($text, $oldtext, $args['before'], $message);
+ : $this->fallback($text, $oldtext, $args['before'], $message);
 } elseif (!empty($args['after'])) {
 // Insert after
 $after = preg_quote($args['after'], "/");
@@ -117,7 +117,7 @@
 ? preg_replace("/(\n${after})/",
 "\1円\n" . preg_quote($text, "/"),
 $oldtext)
- : $this->_fallback($text, $oldtext, $args['after'], $message);
+ : $this->fallback($text, $oldtext, $args['after'], $message);
 } else {
 // Append at the end
 $newtext = $oldtext .
Modified: trunk/lib/plugin/ExternalSearch.php
===================================================================
--- trunk/lib/plugin/ExternalSearch.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/ExternalSearch.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -47,7 +47,7 @@
 //fixme: better description
 }
 
- private function _getInterWikiUrl(&$request)
+ private function getInterWikiUrl(&$request)
 {
 $intermap = getInterwikiMap();
 $map = $intermap->_map;
@@ -88,7 +88,7 @@
 if (in_array('url', array_keys($posted))) {
 $s = $posted['s'];
 $this->_url = $posted['url'];
- $this->_getInterWikiUrl($request);
+ $this->getInterWikiUrl($request);
 if (strstr($this->_url, '%s')) {
 $this->_url = sprintf($this->_url, $s);
 } else
@@ -104,7 +104,7 @@
 if ($formsize < 1)
 $formsize = 30;
 $this->_url = $url;
- $this->_getInterWikiUrl($request);
+ $this->getInterWikiUrl($request);
 $form = HTML::form(array('action' => $request->getPostURL(),
 'method' => 'post',
 //'class' => 'class', //fixme
Modified: trunk/lib/plugin/FoafViewer.php
===================================================================
--- trunk/lib/plugin/FoafViewer.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/FoafViewer.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -57,7 +57,7 @@
 {
 // The handler is handled okay. The only problem is that it still
 // throws a fatal.
- private function _error_handler($error)
+ private function error_handler($error)
 {
 if (strstr($error->errstr, "Failed opening required 'XML/FOAF/Parser.php'"))
 return true;
@@ -90,7 +90,7 @@
 /* ignore fatal on loading */
 /*
 global $ErrorManager;
- $ErrorManager->pushErrorHandler(new WikiMethodCb($this,'_error_handler'));
+ $ErrorManager->pushErrorHandler(new WikiMethodCb($this,'error_handler'));
 */
 // Require the XML_FOAF_Parser class. This is a PEAR library not included with phpwiki.
 // see doc/README.foaf
Modified: trunk/lib/plugin/FuzzyPages.php
===================================================================
--- trunk/lib/plugin/FuzzyPages.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/FuzzyPages.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -111,7 +111,7 @@
 $row = HTML::tr(HTML::th(_("Name")), HTML::th(_("Score")));
 
 if (defined('DEBUG') && DEBUG && $this->debug) {
- $this->_pushDebugHeadingTDinto($row);
+ $this->pushDebugHeadingTDinto($row);
 }
 
 $table->pushContent(HTML::thead($row));
@@ -132,7 +132,7 @@
 round($score)));
 
 if (defined('DEBUG') && DEBUG && $this->debug) {
- $this->_pushDebugTDinto($row, $found_pagename);
+ $this->pushDebugTDinto($row, $found_pagename);
 }
 
 $tbody->pushContent($row);
@@ -173,14 +173,14 @@
 return $this->formatTable($this->_list, $dbi);
 }
 
- private function _pushDebugHeadingTDinto(&$row)
+ private function pushDebugHeadingTDinto(&$row)
 {
 $row->pushContent(HTML::td(_("Spelling Score")),
 HTML::td(_("Sound Score")),
 HTML::td('Metaphones'));
 }
 
- private function _pushDebugTDinto(&$row, $pagename)
+ private function pushDebugTDinto(&$row, $pagename)
 {
 // This actually calculates everything a second time for each pagename
 // so the individual scores can be displayed separately for debugging.
Modified: trunk/lib/plugin/GraphViz.php
===================================================================
--- trunk/lib/plugin/GraphViz.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/GraphViz.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -73,7 +73,7 @@
 extends WikiPluginCached
 {
 
- private function _mapTypes()
+ private function mapTypes()
 {
 return array("imap", "cmapx", "ismap", "cmap");
 }
@@ -89,7 +89,7 @@
 if ($type == $this->_args['imgtype'])
 return PLUGIN_CACHED_IMG_INLINE;
 $device = strtolower($this->_args['imgtype']);
- if (in_array($device, $this->_mapTypes()))
+ if (in_array($device, $this->mapTypes()))
 return PLUGIN_CACHED_MAP;
 if (in_array($device, array('svg', 'swf', 'svgz', 'eps', 'ps'))) {
 switch ($this->_args['imgtype']) {
@@ -185,7 +185,7 @@
 //$other_imgtypes = $GLOBALS['PLUGIN_CACHED_IMGTYPES'];
 //unset ($other_imgtypes[$def['imgtype']]);
 $imgtypes = $GLOBALS['PLUGIN_CACHED_IMGTYPES'];
- $imgtypes = array_merge($imgtypes, array("svg", "svgz", "ps"), $this->_mapTypes());
+ $imgtypes = array_merge($imgtypes, array("svg", "svgz", "ps"), $this->mapTypes());
 $helparr = array(
 '<<GraphViz ' .
 'imgtype' => ' = "' . $def['imgtype'] . "(default)|" . join('|', $imgtypes) . '"',
Modified: trunk/lib/plugin/HtmlConverter.php
===================================================================
--- trunk/lib/plugin/HtmlConverter.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/HtmlConverter.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -83,7 +83,7 @@
 } else {
 $message->pushContent(_("Processed $userfile_name"), HTML::br(), HTML::br());
 $message->pushContent(_("Copy the output below and paste it into your Wiki page."), HTML::br());
- $message->pushContent($this->_process($userfile_tmpname));
+ $message->pushContent($this->process($userfile_tmpname));
 }
 } else {
 $message->pushContent(HTML::br(), HTML::br());
@@ -95,7 +95,7 @@
 return $result;
 }
 
- private function _processA(&$file)
+ private function processA(&$file)
 {
 
 $file = eregi_replace(
@@ -104,7 +104,7 @@
 $file = eregi_replace("{{([-/a-zA-Z0-9._~#@%$?&=:200円-377円\(\)[:space:]]+)}}([^<]+)</a>", "[ \2円 | \1円 ]", $file);
 }
 
- private function _processIMG(&$file)
+ private function processIMG(&$file)
 {
 
 $img_regexp = "_<img\s+src\s*=\s*\"([-/.a-zA-Z0-9\_~#@%$?&=:200円-377円\(\)\s]+)\"[^>]*>_";
@@ -112,7 +112,7 @@
 $file = preg_replace($img_regexp, "\n\n[Upload:\1円]", $file);
 }
 
- private function _processUL(&$file)
+ private function processUL(&$file)
 {
 
 // put any <li>-Tag in a new line to indent correctly and strip trailing white space (including new-lines)
@@ -132,15 +132,15 @@
 }
 }
 
- private function _process($file_name)
+ private function process($file_name)
 {
 $result = HTML();
 $file = file_get_contents($file_name);
 $file = html_entity_decode($file);
 
- $this->_processA($file);
- $this->_processIMG($file);
- $this->_processUL($file);
+ $this->processA($file);
+ $this->processIMG($file);
+ $this->processUL($file);
 
 $file = str_replace("\r\n", "\n", $file);
 
Modified: trunk/lib/plugin/ModeratedPage.php
===================================================================
--- trunk/lib/plugin/ModeratedPage.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/ModeratedPage.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -321,7 +321,7 @@
 // timestamp,user(obj)+userid
 // handle $moderated['data'][$id]['args']['action']
 } else {
- return $this->_approval_form($request, $args, $moderation, 'approve');
+ return $this->approval_form($request, $args, $moderation, 'approve');
 }
 }
 
@@ -335,7 +335,7 @@
 // clean up and notify the requestor. Mabye: store and revert to have a diff later on?
 $this->cleanup_and_notify($request, $args, $moderation);
 } else {
- return $this->_approval_form($request, $args, $moderation, 'reject');
+ return $this->approval_form($request, $args, $moderation, 'reject');
 }
 }
 
@@ -371,7 +371,7 @@
 }
 }
 
- private function _approval_form(&$request, $args, $moderation, $pass = 'approve')
+ private function approval_form(&$request, $args, $moderation, $pass = 'approve')
 {
 $header = HTML::h3(_("Please approve or reject this request:"));
 
Modified: trunk/lib/plugin/OldStyleTable.php
===================================================================
--- trunk/lib/plugin/OldStyleTable.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/OldStyleTable.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -111,17 +111,17 @@
 // bogus error if argument
 trigger_error(sprintf(_("Line %s does not begin with a '|'."), $line), E_USER_WARNING);
 } else {
- $table->pushContent($this->_parse_row($line, $basepage));
+ $table->pushContent($this->parse_row($line, $basepage));
 }
 }
 
 return $table;
 }
 
- private function _parse_row($line, $basepage)
+ private function parse_row($line, $basepage)
 {
- $brkt_link = "\\[ .*? [^]\s] .*? \\]";
- $cell_content = "(?: [^[] | " . ESCAPE_CHAR . "\\[ | $brkt_link )*?";
+ $bracket_link = "\\[ .*? [^]\s] .*? \\]";
+ $cell_content = "(?: [^[] | " . ESCAPE_CHAR . "\\[ | $bracket_link )*?";
 
 preg_match_all("/(\\|+) (v*) ([<>^]?) \s* ($cell_content) \s* (?=\\||\$)/x",
 $line, $matches, PREG_SET_ORDER);
Modified: trunk/lib/plugin/SystemInfo.php
===================================================================
--- trunk/lib/plugin/SystemInfo.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/SystemInfo.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -211,7 +211,7 @@
 }
 
 // numeric array
- private function _stats($hits, $treshold = 10.0)
+ private function get_stats($hits, $treshold = 10.0)
 {
 sort($hits);
 reset($hits);
@@ -268,7 +268,7 @@
 }
 }
 $treshold = 10.0;
- $stats = $this->_stats($hits, $treshold);
+ $stats = $this->get_stats($hits, $treshold);
 
 $s = sprintf(_("total hits: %d"), $stats['sum']);
 $s .= ", " . sprintf(_("max: %d"), $stats['max']);
@@ -353,8 +353,8 @@
 $stats['sum']['major'], $stats['sum']['major_perc'],
 $stats['sum']['minor'], $stats['sum']['minor_perc'], $stats['sum']['all']);
 
- $stats['perpage'] = $this->_stats($stats['perpage']);
- $stats['perpage_major'] = $this->_stats($stats['perpage_major']);
+ $stats['perpage'] = $this->get_stats($stats['perpage']);
+ $stats['perpage_major'] = $this->get_stats($stats['perpage_major']);
 $stats['perpage']['major_perc'] = $stats['perpage_major']['sum'] * 100.0 / $stats['perpage']['sum'];
 $stats['perpage']['minor_perc'] = 100 - $stats['perpage']['major_perc'];
 $stats['perpage_minor']['sum'] = $stats['perpage']['sum'] - $stats['perpage_major']['sum'];
Modified: trunk/lib/plugin/WantedPagesOld.php
===================================================================
--- trunk/lib/plugin/WantedPagesOld.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/WantedPagesOld.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -76,12 +76,12 @@
 $name = $page_handle->getName();
 if ($name == __("InterWikiMap")) continue;
 if (!in_array($name, $exclude))
- $this->_iterateLinks($page_handle, $dbi);
+ $this->iterateLinks($page_handle, $dbi);
 }
 } elseif ($page && $pageisWikiPage = $dbi->isWikiPage($page)) {
 //only get WantedPages links for one page
 $page_handle = $dbi->getPage($page);
- $this->_iterateLinks($page_handle, $dbi);
+ $this->iterateLinks($page_handle, $dbi);
 if (!$request->getArg('count')) {
 $args['count'] = count($this->pagelist);
 } else {
@@ -111,7 +111,7 @@
 $caption = fmt("Wanted Pages for %s (%d total):",
 $pagelink, $c);
 }
- return $this->_generateList($caption);
+ return $this->generateList($caption);
 
 } else {
 $spacer = new RawXml("&nbsp;&nbsp;&nbsp;&nbsp;");
@@ -146,13 +146,13 @@
 $c);
 $this->_columns = array(_("Count"), _("Page Name"));
 if ($c > 0)
- return $this->_generateTable($caption);
+ return $this->generateTable($caption);
 else
 return HTML(HTML::p($caption), HTML::p($this->_messageIfEmpty));
 }
 }
 
- private function _generateTable($caption)
+ private function generateTable($caption)
 {
 
 if (count($this->pagelist) > 0) {
@@ -187,7 +187,7 @@
 return $table;
 }
 
- private function _generateList($caption)
+ private function generateList($caption)
 {
 $list = HTML();
 $c = count($this->pagelist);
@@ -202,7 +202,7 @@
 return $list;
 }
 
- private function _iterateLinks($page_handle, $dbi)
+ private function iterateLinks($page_handle, $dbi)
 {
 $links_iter = $page_handle->getLinks($reversed = false);
 while ($link_handle = $links_iter->next()) {
Modified: trunk/lib/plugin/_AuthInfo.php
===================================================================
--- trunk/lib/plugin/_AuthInfo.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/_AuthInfo.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -65,36 +65,36 @@
 $table = HTML::table(array('border' => 1,
 'cellpadding' => 2,
 'cellspacing' => 0));
- $table->pushContent($this->_showhash("AUTH DEFINES",
- $this->_buildConstHash(
+ $table->pushContent($this->show_hash("AUTH DEFINES",
+ $this->buildConstHash(
 array("ENABLE_USER_NEW", "ALLOW_ANON_USER",
 "ALLOW_ANON_EDIT", "ALLOW_BOGO_LOGIN",
 "REQUIRE_SIGNIN_BEFORE_EDIT", "ALLOW_USER_PASSWORDS",
 "PASSWORD_LENGTH_MINIMUM", "USE_DB_SESSION"))));
 if ((defined('ALLOW_LDAP_LOGIN') && ALLOW_LDAP_LOGIN) or in_array("LDAP", $GLOBALS['USER_AUTH_ORDER']))
- $table->pushContent($this->_showhash("LDAP DEFINES",
- $this->_buildConstHash(array("LDAP_AUTH_HOST", "LDAP_BASE_DN"))));
+ $table->pushContent($this->show_hash("LDAP DEFINES",
+ $this->buildConstHash(array("LDAP_AUTH_HOST", "LDAP_BASE_DN"))));
 if ((defined('ALLOW_IMAP_LOGIN') && ALLOW_IMAP_LOGIN) or in_array("IMAP", $GLOBALS['USER_AUTH_ORDER']))
- $table->pushContent($this->_showhash("IMAP DEFINES", array("IMAP_AUTH_HOST" => IMAP_AUTH_HOST)));
+ $table->pushContent($this->show_hash("IMAP DEFINES", array("IMAP_AUTH_HOST" => IMAP_AUTH_HOST)));
 if (defined('AUTH_USER_FILE') or in_array("File", $GLOBALS['USER_AUTH_ORDER']))
- $table->pushContent($this->_showhash("AUTH_USER_FILE",
- $this->_buildConstHash(array("AUTH_USER_FILE",
+ $table->pushContent($this->show_hash("AUTH_USER_FILE",
+ $this->buildConstHash(array("AUTH_USER_FILE",
 "AUTH_USER_FILE_STORABLE"))));
 if (defined('GROUP_METHOD'))
- $table->pushContent($this->_showhash("GROUP_METHOD",
- $this->_buildConstHash(array("GROUP_METHOD", "AUTH_GROUP_FILE", "GROUP_LDAP_QUERY"))));
- $table->pushContent($this->_showhash("\$USER_AUTH_ORDER[]", $GLOBALS['USER_AUTH_ORDER']));
- $table->pushContent($this->_showhash("USER_AUTH_POLICY", array("USER_AUTH_POLICY" => USER_AUTH_POLICY)));
+ $table->pushContent($this->show_hash("GROUP_METHOD",
+ $this->buildConstHash(array("GROUP_METHOD", "AUTH_GROUP_FILE", "GROUP_LDAP_QUERY"))));
+ $table->pushContent($this->show_hash("\$USER_AUTH_ORDER[]", $GLOBALS['USER_AUTH_ORDER']));
+ $table->pushContent($this->show_hash("USER_AUTH_POLICY", array("USER_AUTH_POLICY" => USER_AUTH_POLICY)));
 $DBParams = $GLOBALS['DBParams'];
 $DBParams['dsn'] = class_exists('WikiDB_SQL') ? WikiDB_SQL::view_dsn($DBParams['dsn']) : '';
- $table->pushContent($this->_showhash("\$DBParams[]", $DBParams));
+ $table->pushContent($this->show_hash("\$DBParams[]", $DBParams));
 $DBAuthParams = $GLOBALS['DBAuthParams'];
 if (isset($DBAuthParams['auth_dsn']) and class_exists('WikiDB_SQL'))
 $DBAuthParams['auth_dsn'] = WikiDB_SQL::view_dsn($DBAuthParams['auth_dsn']);
 else
 $DBAuthParams['auth_dsn'] = '';
 unset($DBAuthParams['dummy']);
- $table->pushContent($this->_showhash("\$DBAuthParams[]", $DBAuthParams));
+ $table->pushContent($this->show_hash("\$DBAuthParams[]", $DBAuthParams));
 $html->pushContent($table);
 $html->pushContent(HTML(HTML::h3(fmt("Personal Auth Settings for "%s"", $userid))));
 if (!$user) {
@@ -110,33 +110,33 @@
 $userdata['_file']->users[$u] = "<hidden>";
 }
 }
- $table->pushContent($this->_showhash("User: Object of " . get_class($user), $userdata));
+ $table->pushContent($this->show_hash("User: Object of " . get_class($user), $userdata));
 if (ENABLE_USER_NEW) {
 $group = &$request->getGroup();
 $groups = $group->getAllGroupsIn();
 $groupdata = obj2hash($group, array('_dbi', '_request', 'password', 'passwd'));
 unset($groupdata['request']);
- $table->pushContent($this->_showhash("Group: Object of " . get_class($group), $groupdata));
+ $table->pushContent($this->show_hash("Group: Object of " . get_class($group), $groupdata));
 $groups = $group->getAllGroupsIn();
 $groupdata = array('getAllGroupsIn' => $groups);
 foreach ($groups as $g) {
 $groupdata["getMembersOf($g)"] = $group->getMembersOf($g);
 $groupdata["isMember($g)"] = $group->isMember($g);
 }
- $table->pushContent($this->_showhash("Group Methods: ", $groupdata));
+ $table->pushContent($this->show_hash("Group Methods: ", $groupdata));
 }
 $html->pushContent($table);
 }
 return $html;
 }
 
- private function _showhash($heading, $hash, $depth = 0)
+ private function show_hash($heading, $hash, $depth = 0)
 {
 static $seen = array();
- static $maxdepth = 0;
+ static $max_depth = 0;
 $rows = array();
- $maxdepth++;
- if ($maxdepth > 35) return $heading;
+ $max_depth++;
+ if ($max_depth > 35) return $heading;
 
 if ($heading)
 $rows[] = HTML::tr(array('bgcolor' => '#ffcccc',
@@ -157,7 +157,7 @@
 $val = HTML::table(array('border' => 1,
 'cellpadding' => 2,
 'cellspacing' => 0),
- $this->_showhash($heading, obj2hash($val), $depth + 1));
+ $this->show_hash($heading, obj2hash($val), $depth + 1));
 } else {
 $val = $heading;
 }
@@ -169,7 +169,7 @@
 $val = HTML::table(array('border' => 1,
 'cellpadding' => 2,
 'cellspacing' => 0),
- $this->_showhash($heading, $val, $depth + 1));
+ $this->show_hash($heading, $val, $depth + 1));
 } else {
 $val = $heading;
 }
@@ -189,7 +189,7 @@
 return $rows;
 }
 
- private function _buildConstHash($constants)
+ private function buildConstHash($constants)
 {
 $hash = array();
 foreach ($constants as $c) {
Modified: trunk/lib/plugin/_Retransform.php
===================================================================
--- trunk/lib/plugin/_Retransform.php	2013年04月17日 09:39:53 UTC (rev 8762)
+++ trunk/lib/plugin/_Retransform.php	2013年04月17日 10:06:40 UTC (rev 8763)
@@ -38,8 +38,7 @@
 
 function getDefaultArguments()
 {
- return array('page' => '[pagename]',
- );
+ return array('page' => '[pagename]');
 }
 
 function run($dbi, $argstr, &$request, $basepage)
@@ -49,8 +48,7 @@
 if (empty($page))
 return '';
 
- $html = HTML(HTML::h3(fmt("Retransform page "%s"",
- $page)));
+ $html = HTML(HTML::h3(fmt("Retransform page "%s"", $page)));
 
 // bypass WikiDB and cache, go directly through the backend.
 $backend = &$dbi->_backend;
@@ -61,16 +59,16 @@
 include_once 'lib/PageType.php';
 $formatted = new TransformedText($dbi->getPage($page), $vdata['%content'], $vdata);
 $content =& $formatted->_content;
- $html->pushContent($this->_DebugPrintArray($content));
+ $html->pushContent($this->DebugPrintArray($content));
 $links = $formatted->getWikiPageLinks();
 if (count($links) > 0) {
 $html->pushContent(HTML::h3("Links"));
- $html->pushContent($this->_DebugPrintArray($links));
+ $html->pushContent($this->DebugPrintArray($links));
 }
 return $html;
 }
 
- private function _DebugPrintArray(&$array)
+ private function DebugPrintArray(&$array)
 {
 $html = HTML();
 foreach ($array as $line) {
@@ -82,7 +80,6 @@
 }
 return $html;
 }
-
 }
 
 // Local Variables:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8762
 http://sourceforge.net/p/phpwiki/code/8762
Author: vargenau
Date: 2013年04月17日 09:39:53 +0000 (2013年4月17日)
Log Message:
-----------
Remove semicolon
Modified Paths:
--------------
 trunk/lib/plugin/InterWikiSearch.php
Modified: trunk/lib/plugin/InterWikiSearch.php
===================================================================
--- trunk/lib/plugin/InterWikiSearch.php	2013年04月16日 16:02:49 UTC (rev 8761)
+++ trunk/lib/plugin/InterWikiSearch.php	2013年04月17日 09:39:53 UTC (rev 8762)
@@ -122,8 +122,6 @@
 return $table;
 }
 }
-
- ;
 }
 
 // Local Variables:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月16日 16:02:53
Revision: 8761
 http://sourceforge.net/p/phpwiki/code/8761
Author: vargenau
Date: 2013年04月16日 16:02:49 +0000 (2013年4月16日)
Log Message:
-----------
Add highlight.js
Modified Paths:
--------------
 trunk/themes/fusionforge/templates/bottom.tmpl
Added Paths:
-----------
 trunk/highlight.js/
 trunk/highlight.js/LICENSE
 trunk/highlight.js/README.md
 trunk/highlight.js/README.ru.md
 trunk/highlight.js/classref.txt
 trunk/highlight.js/highlight.pack.js
 trunk/highlight.js/styles/
 trunk/highlight.js/styles/arta.css
 trunk/highlight.js/styles/ascetic.css
 trunk/highlight.js/styles/brown_paper.css
 trunk/highlight.js/styles/brown_papersq.png
 trunk/highlight.js/styles/dark.css
 trunk/highlight.js/styles/default.css
 trunk/highlight.js/styles/far.css
 trunk/highlight.js/styles/github.css
 trunk/highlight.js/styles/googlecode.css
 trunk/highlight.js/styles/idea.css
 trunk/highlight.js/styles/ir_black.css
 trunk/highlight.js/styles/magula.css
 trunk/highlight.js/styles/monokai.css
 trunk/highlight.js/styles/pojoaque.css
 trunk/highlight.js/styles/pojoaque.jpg
 trunk/highlight.js/styles/rainbow.css
 trunk/highlight.js/styles/school_book.css
 trunk/highlight.js/styles/school_book.png
 trunk/highlight.js/styles/solarized_dark.css
 trunk/highlight.js/styles/solarized_light.css
 trunk/highlight.js/styles/sunburst.css
 trunk/highlight.js/styles/tomorrow-night-blue.css
 trunk/highlight.js/styles/tomorrow-night-bright.css
 trunk/highlight.js/styles/tomorrow-night-eighties.css
 trunk/highlight.js/styles/tomorrow-night.css
 trunk/highlight.js/styles/tomorrow.css
 trunk/highlight.js/styles/vs.css
 trunk/highlight.js/styles/xcode.css
 trunk/highlight.js/styles/zenburn.css
Added: trunk/highlight.js/LICENSE
===================================================================
--- trunk/highlight.js/LICENSE	 (rev 0)
+++ trunk/highlight.js/LICENSE	2013年04月16日 16:02:49 UTC (rev 8761)
@@ -0,0 +1,24 @@
+Copyright (c) 2006, Ivan Sagalaev
+All rights reserved.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of highlight.js nor the names of its contributors 
+ may be used to endorse or promote products derived from this software 
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS 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, 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 THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Added: trunk/highlight.js/README.md
===================================================================
--- trunk/highlight.js/README.md	 (rev 0)
+++ trunk/highlight.js/README.md	2013年04月16日 16:02:49 UTC (rev 8761)
@@ -0,0 +1,143 @@
+# Highlight.js
+
+Highlight.js highlights syntax in code examples on blogs, forums and,
+in fact, on any web page. It's very easy to use because it works
+automatically: finds blocks of code, detects a language, highlights it.
+
+Autodetection can be fine tuned when it fails by itself (see "Heuristics").
+
+
+## Basic usage
+
+Link the library and a stylesheet from your page and hook highlighting to
+the page load event:
+
+```html
+<link rel="stylesheet" href="styles/default.css">
+<script src="highlight.pack.js"></script>
+<script>hljs.initHighlightingOnLoad();</script>
+```
+
+This will highlight all code on the page marked up as `<pre><code> .. </code></pre>`.
+If you use different markup or need to apply highlighting dynamically, read
+"Custom initialization" below.
+
+- You can download your own customized version of "highlight.pack.js" or
+ use the hosted one as described on the download page:
+ <http://softwaremaniacs.org/soft/highlight/en/download/>
+
+- Style themes are available in the download package or as hosted files.
+ To create a custom style for your site see the class reference in the file
+ [classref.txt][cr] from the downloaded package.
+
+[cr]: http://github.com/isagalaev/highlight.js/blob/master/classref.txt
+
+
+## node.js
+
+Highlight.js can be used under node.js. The package with all supported languages is
+installable from NPM:
+
+ npm install highlight.js
+
+Alternatively, you can build it from the source with only languages you need:
+
+ python tools/build.py -tnode lang1 lang2 ..
+
+Using the library:
+
+```javascript
+var hljs = require('highlight.js');
+
+// If you know the language
+hljs.highlight(lang, code).value;
+
+// Automatic language detection
+hljs.highlightAuto(code).value;
+```
+
+## Tab replacement
+
+You can replace TAB ('\x09') characters used for indentation in your code
+with some fixed number of spaces or with a `<span>` to give them special
+styling:
+
+```html
+<script type="text/javascript">
+ hljs.tabReplace = ' '; // 4 spaces
+ // ... or
+ hljs.tabReplace = '<span class="indent">\t</span>';
+
+ hljs.initHighlightingOnLoad();
+</script>
+```
+
+## Custom initialization
+
+If you use different markup for code blocks you can initialize them manually
+with `highlightBlock(code, tabReplace, useBR)` function. It takes a DOM element
+containing the code to highlight and optionally a string with which to replace
+TAB characters.
+
+Initialization using, for example, jQuery might look like this:
+
+```javascript
+$(document).ready(function() {
+ $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
+});
+```
+
+You can use `highlightBlock` to highlight blocks dynamically inserted into
+the page. Just make sure you don't do it twice for already highlighted
+blocks.
+
+If your code container relies on `<br>` tags instead of line breaks (i.e. if
+it's not `<pre>`) pass `true` into the third parameter of `highlightBlock`
+to make highlight.js use `<br>` in the output:
+
+```javascript
+$('div.code').each(function(i, e) {hljs.highlightBlock(e, null, true)});
+```
+
+
+## Heuristics
+
+Autodetection of a code's language is done using a simple heuristic:
+the program tries to highlight a fragment with all available languages and
+counts all syntactic structures that it finds along the way. The language
+with greatest count wins.
+
+This means that in short fragments the probability of an error is high
+(and it really happens sometimes). In this cases you can set the fragment's
+language explicitly by assigning a class to the `<code>` element:
+
+```html
+<pre><code class="html">...</code></pre>
+```
+
+You can use class names recommended in HTML5: "language-html",
+"language-php". Classes also can be assigned to the `<pre>` element.
+
+To disable highlighting of a fragment altogether use "no-highlight" class:
+
+```html
+<pre><code class="no-highlight">...</code></pre>
+```
+
+
+## Export
+
+File export.html contains a little program that allows you to paste in a code
+snippet and then copy and paste the resulting HTML code generated by the
+highlighter. This is useful in situations when you can't use the script itself
+on a site.
+
+
+## Meta
+
+- Version: 7.3
+- URL: http://softwaremaniacs.org/soft/highlight/en/
+- Author: Ivan Sagalaev (<ma...@so...>)
+
+For the license terms see LICENSE files.
+For the list of contributors see AUTHORS.en.txt file.
Added: trunk/highlight.js/README.ru.md
===================================================================
--- trunk/highlight.js/README.ru.md	 (rev 0)
+++ trunk/highlight.js/README.ru.md	2013年04月16日 16:02:49 UTC (rev 8761)
@@ -0,0 +1,149 @@
+# Highlight.js
+
+Highlight.js нужен для подсветки синтаксиса в примерах кода в блогах,
+форумах и вообще на любых веб-страницах. Пользоваться им очень просто,
+потому что работает он автоматически: сам находит блоки кода, сам
+определяет язык, сам подсвечивает.
+
+Автоопределением языка можно управлять, когда оно не справляется само (см.
+дальше "Эвристика").
+
+
+## Простое использование
+
+Подключите библиотеку и стиль на страницу и повесть вызов подсветки на
+загрузку страницы:
+
+```html
+<link rel="stylesheet" href="styles/default.css">
+<script src="highlight.pack.js"></script>
+<script>hljs.initHighlightingOnLoad();</script>
+```
+
+Весь код на странице, обрамлённый в теги `<pre><code> .. </code></pre>`
+будет автоматически подсвечен. Если вы используете другие теги или хотите
+подсвечивать блоки кода динамически, читайте "Инициализацию вручную" ниже.
+
+- Вы можете скачать собственную версию "highlight.pack.js" или сослаться
+ на захостенный файл, как описано на странице загрузки:
+ <http://softwaremaniacs.org/soft/highlight/download/>
+
+- Стилевые темы можно найти в загруженном архиве или также использовать
+ захостенные. Чтобы сделать собственный стиль для своего сайта, вам
+ будет полезен справочник классов в файле [classref.txt][cr], который тоже
+ есть в архиве.
+
+[cr]: http://github.com/isagalaev/highlight.js/blob/master/classref.txt
+
+
+## node.js
+
+Highlight.js можно использовать в node.js. Библиотеку со всеми возможными языками можно
+установить с NPM:
+
+ npm install highlight.js
+
+Также её можно собрать из исходников с только теми языками, которые нужны:
+
+ python tools/build.py -tnode lang1 lang2 ..
+
+Использование библиотеки:
+
+```javascript
+var hljs = require('highlight.js');
+
+// Если вы знаете язык
+hljs.highlight(lang, code).value;
+
+// Автоопределение языка
+hljs.highlightAuto(code).value;
+```
+
+
+## Замена TABов
+
+Также вы можете заменить символы TAB ('\x09'), используемые для отступов, на
+фиксированное количество пробелов или на отдельный `<span>`, чтобы задать ему
+какой-нибудь специальный стиль:
+
+```html
+<script type="text/javascript">
+ hljs.tabReplace = ' '; // 4 spaces
+ // ... or
+ hljs.tabReplace = '<span class="indent">\t</span>';
+
+ hljs.initHighlightingOnLoad();
+</script>
+```
+
+
+## Инициализация вручную
+
+Если вы используете другие теги для блоков кода, вы можете инициализировать их
+явно с помощью функции `highlightBlock(code, tabReplace, useBR)`. Она принимает
+DOM-элемент с текстом расцвечиваемого кода и опционально - строчку для замены
+символов TAB.
+
+Например с использованием jQuery код инициализации может выглядеть так:
+
+```javascript
+$(document).ready(function() {
+ $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
+});
+```
+
+`highlightBlock` можно также использовать, чтобы подсветить блоки кода,
+добавленные на страницу динамически. Только убедитесь, что вы не делаете этого
+повторно для уже раскрашенных блоков.
+
+Если ваш блок кода использует `<br>` вместо переводов строки (т.е. если это не
+`<pre>`), передайте `true` третьим параметром в `highlightBlock`:
+
+```javascript
+$('div.code').each(function(i, e) {hljs.highlightBlock(e, null, true)});
+```
+
+
+## Эвристика
+
+Определение языка, на котором написан фрагмент, делается с помощью
+довольно простой эвристики: программа пытается расцветить фрагмент всеми
+языками подряд, и для каждого языка считает количество подошедших
+синтаксически конструкций и ключевых слов. Для какого языка нашлось больше,
+тот и выбирается.
+
+Это означает, что в коротких фрагментах высока вероятность ошибки, что
+периодически и случается. Чтобы указать язык фрагмента явно, надо написать
+его название в виде класса к элементу `<code>`:
+
+```html
+<pre><code class="html">...</code></pre>
+```
+
+Можно использовать рекомендованные в HTML5 названия классов:
+"language-html", "language-php". Также можно назначать классы на элемент
+`<pre>`.
+
+Чтобы запретить расцветку фрагмента вообще, используется класс "no-highlight":
+
+```html
+<pre><code class="no-highlight">...</code></pre>
+```
+
+
+## Экспорт
+
+В файле export.html находится небольшая программка, которая показывает и дает
+скопировать непосредственно HTML-код подсветки для любого заданного фрагмента кода.
+Это может понадобится например на сайте, на котором нельзя подключить сам скрипт
+highlight.js.
+
+
+## Координаты
+
+- Версия: 7.3
+- URL: http://softwaremaniacs.org/soft/highlight/
+- Автор: Иван Сагалаев (<ma...@so...>)
+
+Лицензионное соглашение читайте в файле LICENSE.
+Список соавторов читайте в файле AUTHORS.ru.txt
Added: trunk/highlight.js/classref.txt
===================================================================
--- trunk/highlight.js/classref.txt	 (rev 0)
+++ trunk/highlight.js/classref.txt	2013年04月16日 16:02:49 UTC (rev 8761)
@@ -0,0 +1,568 @@
+This is a full list of available classes corresponding to languages'
+syntactic structures. The parentheses after language name contain identifiers
+used as class names in `<code>` element.
+
+Python ("python"):
+
+ keyword keyword
+ built_in built-in objects (None, False, True and Ellipsis)
+ number number
+ string string (of any type)
+ comment comment
+ decorator @-decorator for functions
+ function function header "def some_name(...):"
+ class class header "class SomeName(...):"
+ title name of a function or a class inside a header
+ params everything inside parentheses in a function's or class' header
+
+Python profiler results ("profile"):
+
+ number number
+ string string
+ builtin builtin function entry
+ filename filename in an entry
+ summary profiling summary
+ header header of table of results
+ keyword column header
+ function function name in an entry (including parentheses)
+ title actual name of a function in an entry (excluding parentheses)
+ prompt interpreter prompt (>>> or ...)
+
+Ruby ("ruby"):
+
+ keyword keyword
+ string string
+ subst in-string substitution (#{...})
+ comment comment
+ yardoctag YARD tag
+ function function header "def some_name(...):"
+ class class header "class SomeName(...):"
+ title name of a function or a class inside a header
+ parent name of a parent class
+ symbol symbol
+
+Perl ("perl"):
+
+ keyword keyword
+ comment comment
+ number number
+ string string
+ regexp regular expression
+ sub subroutine header (from "sub" till "{")
+ variable variable starting with "$", "%", "@"
+ operator operator
+ pod plain old doc
+
+PHP ("php"):
+
+ keyword keyword
+ number number
+ string string (of any type)
+ comment comment
+ phpdoc phpdoc params in comments
+ variable variable starting with "$"
+ preprocessor preprocessor marks: "<?php" and "?>"
+
+Scala ("scala"):
+
+ keyword keyword
+ number number
+ string string
+ comment comment
+ annotation annotation
+ javadoc javadoc comment
+ javadoctag @-tag in javadoc
+ class class header
+ title class name inside a header
+ params everything in parentheses inside a class header
+ inheritance keywords "extends" and "with" inside class header
+
+Go language ("go"):
+ comment comment
+ string string constant
+ number number
+ keyword language keywords
+ constant true false nil iota
+ typename built-in plain types (int, string etc.)
+ built_in built-in functions
+
+HTML, XML ("xml"):
+
+ tag any tag from "<" till ">"
+ attribute tag's attribute with or without value
+ value attribute's value
+ comment comment
+ pi processing instruction (<? ... ?>)
+ doctype <!DOCTYPE ... > declaration
+ cdata CDATA section
+
+CSS ("css"):
+
+ tag tag in selectors
+ id #some_name in selectors
+ class .some_name in selectors
+ at_rule @-rule till first "{" or ";"
+ attr_selector attribute selector (square brackets in a[href^=http://])
+ pseudo pseudo classes and elemens (:after, ::after etc.)
+ comment comment
+ rules everything from "{" till "}"
+ attribute property name inside a rule
+ value property value inside a rule, from ":" till ";" or
+ till the end of rule block
+ number number within a value
+ string string within a value
+ hexcolor hex color (#FFFFFF) within a value
+ function CSS function within a value
+ important "!important" symbol
+
+Markdown ("markdown"):
+
+ header header
+ bullet list bullet
+ emphasis emphasis
+ strong strong emphasis
+ blockquote blockquote
+ code code
+ horizontal_rule horizontal rule
+ link_label link label
+ link_url link url
+
+Django ("django"):
+
+ keyword HTML tag in HTML, default tags and default filters in templates
+ tag any tag from "<" till ">"
+ comment comment
+ doctype <!DOCTYPE ... > declaration
+ attribute tag's attribute with or withou value
+ value attribute's value
+ template_tag template tag {% .. %}
+ variable template variable {{ .. }}
+ template_comment template comment, both {# .. #} and {% comment %}
+ filter filter from "|" till the next filter or the end of tag
+ argument filter argument
+
+JSON ("json"):
+
+ number number
+ literal "true", "false" and "null"
+ string string value
+ attribute name of an object property
+ value value of an object property
+
+JavaScript ("javascript"):
+
+ keyword keyword
+ comment comment
+ number number
+ literal special literal: "true", "false" and "null"
+ string string
+ regexp regular expression
+ function header of a function
+ title name of a function inside a header
+ params parentheses and everything inside them in a function's header
+
+CoffeeScript ("coffeescript"):
+
+ keyword keyword
+ comment comment
+ number number
+ literal special literal: "true", "false" and "null"
+ string string
+ regexp regular expression
+ function header of a function
+ class header of a class
+ title name of a function variable inside a header
+ params parentheses and everything inside them in a function's header
+ property @-property within class and functions
+
+ActionScript ("actionscript"):
+
+ comment comment
+ string string
+ number number
+ keyword keywords
+ literal literal
+ reserved reserved keyword
+ title name of declaration (package, class or function)
+ preprocessor preprocessor directive (import, include)
+ type type of returned value (for functions)
+ package package (named or not)
+ class class/interface
+ function function
+ param params of function
+ rest_arg rest argument of function
+
+VBScript ("vbscript"):
+
+ keyword keyword
+ number number
+ string string
+ comment comment
+ built_in built-in function
+
+HTTP ("http"):
+
+ request first line of a request
+ status first line of a response
+ attribute header name
+ string header value or query string in a request line
+ number status code
+
+Lua ("lua"):
+
+ keyword keyword
+ number number
+ string string
+ comment comment
+ built_in built-in operator
+ function header of a function
+ title name of a function inside a header
+ params everything inside parentheses in a function's header
+ long_brackets multiline string in [=[ .. ]=]
+
+Delphi ("delphi"):
+
+ keyword keyword
+ comment comment (of any type)
+ number number
+ string string
+ function header of a function, procedure, constructor and destructor
+ title name of a function, procedure, constructor or destructor
+ inside a header
+ params everything inside parentheses in a function's header
+ class class' body from "= class" till "end;"
+
+Java ("java"):
+
+ keyword keyword
+ number number
+ string string
+ comment commment
+ annotaion annotation
+ javadoc javadoc comment
+ class class header from "class" till "{"
+ title class name inside a header
+ params everything in parentheses inside a class header
+ inheritance keywords "extends" and "implements" inside class header
+
+C++ ("cpp"):
+
+ keyword keyword
+ number number
+ string string and character
+ comment comment
+ preprocessor preprocessor directive
+ stl_container instantiation of STL containers ("vector<...>")
+
+Objective C ("objectivec"):
+ keyword keyword
+ built_in Cocoa/Cocoa Touch constants and classes
+ number number
+ string string
+ comment comment
+ preprocessor preprocessor directive
+ class interface/implementation, protocol and forward class declaration
+ variable properties and struct accesors
+
+Vala ("vala"):
+
+ keyword keyword
+ number number
+ string string
+ comment comment
+ class class definitions
+ title in class definition
+ constant ALL_UPPER_CASE
+
+C# ("cs"):
+
+ keyword keyword
+ number number
+ string string
+ comment commment
+ xmlDocTag xmldoc tag ("///", "<!--", "-->", "<..>")
+
+D language ("d"):
+
+ comment comment
+ string string constant
+ number number
+ keyword language keywords (including @attributes)
+ constant true false null
+ built_in built-in plain types (int, string etc.)
+
+RenderMan RSL ("rsl"):
+
+ keyword keyword
+ number number
+ string string (including @"..")
+ comment comment
+ preprocessor preprocessor directive
+ shader sahder keywords
+ shading shading keywords
+ built_in built-in function
+
+RenderMan RIB ("rib"):
+
+ keyword keyword
+ number number
+ string string
+ comment comment
+ commands command
+
+Maya Embedded Language ("mel"):
+
+ keyword keyword
+ number number
+ string string
+ comment comment
+ variable variable
+
+SQL ("sql"):
+
+ keyword keyword (mostly SQL'92 and SQL'99)
+ number number
+ string string (of any type: "..", '..', `..`)
+ comment comment
+ aggregate aggregate function
+
+Smalltalk ("smalltalk"):
+
+ keyword keyword
+ number number
+ string string
+ comment commment
+ symbol symbol
+ array array
+ class name of a class
+ char char
+ localvars block of local variables
+
+Lisp ("lisp"):
+
+ keyword keyword
+ number number
+ string string
+ comment commment
+ variable variable
+ literal b, t and nil
+ list non-quoted list
+ title first symbol in a non-quoted list
+ body remainder of the non-quoted list
+ quoted quoted list, both "(quote .. )" and "'(..)"
+
+Clojure ("clojure"):
+
+ comment comments and hints
+ string string
+ number number
+ collection collections
+ attribute :keyword
+ title function name (built-in or user defined)
+ built_in built-in function name
+
+Ini ("ini"):
+
+ title title of a section
+ value value of a setting of any type
+ string string
+ number number
+ keyword boolean value keyword
+
+Apache ("apache"):
+
+ keyword keyword
+ number number
+ comment commment
+ literal On and Off
+ sqbracket variables in rewrites "%{..}"
+ cbracket options in rewrites "[..]"
+ tag begin and end of a configuration section
+
+Nginx ("nginx"):
+
+ title directive title
+ string string
+ number number
+ comment comment
+ built_in built-in constant
+ variable $-variable
+ regexp regexp
+
+Diff ("diff"):
+
+ header file header
+ chunk chunk header within a file
+ addition added lines
+ deletion deleted lines
+ change changed lines
+
+DOS ("dos"):
+
+ keyword keyword
+ flow batch control keyword
+ stream DOS special files ("con", "prn", ...)
+ winutils some commands (see dos.js specifically)
+ envvar environment variables
+
+Bash ("bash"):
+
+ keyword keyword
+ string string
+ number number
+ comment comment
+ literal special literal: "true" и "false"
+ variable variable
+ shebang script interpreter header
+
+CMake ("cmake")
+
+ keyword keyword
+ number number
+ string string
+ comment commment
+ envvar $-variable
+
+Axapta ("axapta"):
+
+ keyword keyword
+ number number
+ string string
+ comment commment
+ class class header from "class" till "{"
+ title class name inside a header
+ params everything in parentheses inside a class header
+ inheritance keywords "extends" and "implements" inside class header
+ preprocessor preprocessor directive
+
+1C ("1c"):
+
+ keyword keyword
+ number number
+ date date
+ string string
+ comment commment
+ function header of function or procudure
+ title function name inside a header
+ params everything in parentheses inside a function header
+ preprocessor preprocessor directive
+
+AVR assembler ("avrasm"):
+
+ keyword keyword
+ built_in pre-defined register
+ number number
+ string string
+ comment commment
+ label label
+ preprocessor preprocessor directive
+ localvars substitution in .macro
+
+VHDL ("vhdl")
+
+ keyword keyword
+ number number
+ string string
+ comment commment
+ literal signal logical value
+ typename typename
+ attribute signal attribute
+
+Parser3 ("parser3"):
+
+ keyword keyword
+ number number
+ comment commment
+ variable variable starting with "$"
+ preprocessor preprocessor directive
+ title user-defined name starting with "@"
+
+TeX ("tex"):
+
+ comment comment
+ number number
+ command command
+ parameter parameter
+ formula formula
+ special special symbol
+
+Haskell ("haskell"):
+
+ keyword keyword
+ number number
+ string string
+ comment comment
+ class type classes and other data types
+ title function name
+ type type class name
+ typedef definition of types (type, newtype, data)
+
+Erlang ("erlang"):
+
+ comment comment
+ string string
+ number number
+ keyword keyword
+ record_name record access (#record_name)
+ title name of declaration function
+ variable variable (starts with capital letter or with _)
+ pp.keywords module's attribute (-attribute)
+ function_name atom or atom:atom in case of function call
+
+Rust ("rust"):
+
+ comment comment
+ string string
+ number number
+ keyword keyword
+ title name of declaration
+ preprocessor preprocessor directive
+
+Matlab ("matlab"):
+
+ comment comment
+ string string
+ number number
+ keyword keyword
+ title function name
+ function function
+ param params of function
+ matrix matrix in [ .. ]
+ cell cell in { .. }
+
+R ("r"):
+
+ comment comment
+ string string constant
+ number number
+ keyword language keywords (function, if) plus "structural"
+ functions (attach, require, setClass)
+ literal special literal: TRUE, FALSE, NULL, NA, etc.
+
+OpenGL Shading Language ("glsl"):
+
+ comment comment
+ number number
+ preprocessor preprocessor directive
+ keyword keyword
+ built_in GLSL built-in functions and variables
+ literal true false
+
+AppleScript ("applescript"):
+
+ keyword keyword
+ command core AppleScript command
+ constant AppleScript built in constant
+ type AppleScript variable type (integer, etc.)
+ property Applescript built in property (length, etc.)
+ number number
+ string string
+ comment comment
+ title name of a handler
+
+Brainfuck ("brainfuck"):
+
+ title Brainfuck while loop command
+ literal Brainfuck inc and dec commands
+ comment comment
+ string Brainfuck input and output commands
Added: trunk/highlight.js/highlight.pack.js
===================================================================
--- trunk/highlight.js/highlight.pack.js	 (rev 0)
+++ trunk/highlight.js/highlight.pack.js	2013年04月16日 16:02:49 UTC (rev 8761)
@@ -0,0 +1 @@
+var hljs=new function(){function l(o){return o.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function b(p){for(var o=p.firstChild;o;o=o.nextSibling){if(o.nodeName=="CODE"){return o}if(!(o.nodeType==3&&o.nodeValue.match(/\s+/))){break}}}function h(p,o){return Array.prototype.map.call(p.childNodes,function(q){if(q.nodeType==3){return o?q.nodeValue.replace(/\n/g,""):q.nodeValue}if(q.nodeName=="BR"){return"\n"}return h(q,o)}).join("")}function a(q){var p=(q.className+" "+q.parentNode.className).split(/\s+/);p=p.map(function(r){return r.replace(/^language-/,"")});for(var o=0;o<p.length;o++){if(e[p[o]]||p[o]=="no-highlight"){return p[o]}}}function c(q){var o=[];(function p(r,s){for(var t=r.firstChild;t;t=t.nextSibling){if(t.nodeType==3){s+=t.nodeValue.length}else{if(t.nodeName=="BR"){s+=1}else{if(t.nodeType==1){o.push({event:"start",offset:s,node:t});s=p(t,s);o.push({event:"stop",offset:s,node:t})}}}}return s})(q,0);return o}function j(x,v,w){var p=0;var y="";var r=[];function t(){if(x.length&&v.length){if(x[0].offset!=v[0].offset){return(x[0].offset<v[0].offset)?x:v}else{return v[0].event=="start"?x:v}}else{return x.length?x:v}}function s(A){function z(B){return" "+B.nodeName+'="'+l(B.value)+'"'}return"<"+A.nodeName+Array.prototype.map.call(A.attributes,z).join("")+">"}while(x.length||v.length){var u=t().splice(0,1)[0];y+=l(w.substr(p,u.offset-p));p=u.offset;if(u.event=="start"){y+=s(u.node);r.push(u.node)}else{if(u.event=="stop"){var o,q=r.length;do{q--;o=r[q];y+=("</"+o.nodeName.toLowerCase()+">")}while(o!=u.node);r.splice(q,1);while(q<r.length){y+=s(r[q]);q++}}}}return y+l(w.substr(p))}function f(q){function o(s,r){return RegExp(s,"m"+(q.cI?"i":"")+(r?"g":""))}function p(y,w){if(y.compiled){return}y.compiled=true;var s=[];if(y.k){var r={};function z(A,t){t.split(" ").forEach(function(B){var C=B.split("|");r[C[0]]=[A,C[1]?Number(C[1]):1];s.push(C[0])})}y.lR=o(y.l||hljs.IR,true);if(typeof y.k=="string"){z("keyword",y.k)}else{for(var x in y.k){if(!y.k.hasOwnProperty(x)){continue}z(x,y.k[x])}}y.k=r}if(w){if(y.bWK){y.b="\\b("+s.join("|")+")\\s"}y.bR=o(y.b?y.b:"\\B|\\b");if(!y.e&&!y.eW){y.e="\\B|\\b"}if(y.e){y.eR=o(y.e)}y.tE=y.e||"";if(y.eW&&w.tE){y.tE+=(y.e?"|":"")+w.tE}}if(y.i){y.iR=o(y.i)}if(y.r===undefined){y.r=1}if(!y.c){y.c=[]}for(var v=0;v<y.c.length;v++){if(y.c[v]=="self"){y.c[v]=y}p(y.c[v],y)}if(y.starts){p(y.starts,w)}var u=[];for(var v=0;v<y.c.length;v++){u.push(y.c[v].b)}if(y.tE){u.push(y.tE)}if(y.i){u.push(y.i)}y.t=u.length?o(u.join("|"),true):{exec:function(t){return null}}}p(q)}function d(D,E){function o(r,M){for(var L=0;L<M.c.length;L++){var K=M.c[L].bR.exec(r);if(K&&K.index==0){return M.c[L]}}}function s(K,r){if(K.e&&K.eR.test(r)){return K}if(K.eW){return s(K.parent,r)}}function t(r,K){return K.i&&K.iR.test(r)}function y(L,r){var K=F.cI?r[0].toLowerCase():r[0];return L.k.hasOwnProperty(K)&&L.k[K]}function G(){var K=l(w);if(!A.k){return K}var r="";var N=0;A.lR.lastIndex=0;var L=A.lR.exec(K);while(L){r+=K.substr(N,L.index-N);var M=y(A,L);if(M){v+=M[1];r+='<span class="'+M[0]+'">'+L[0]+"</span>"}else{r+=L[0]}N=A.lR.lastIndex;L=A.lR.exec(K)}return r+K.substr(N)}function z(){if(A.sL&&!e[A.sL]){return l(w)}var r=A.sL?d(A.sL,w):g(w);if(A.r>0){v+=r.keyword_count;B+=r.r}return'<span class="'+r.language+'">'+r.value+"</span>"}function J(){return A.sL!==undefined?z():G()}function I(L,r){var K=L.cN?'<span class="'+L.cN+'">':"";if(L.rB){x+=K;w=""}else{if(L.eB){x+=l(r)+K;w=""}else{x+=K;w=r}}A=Object.create(L,{parent:{value:A}});B+=L.r}function C(K,r){w+=K;if(r===undefined){x+=J();return 0}var L=o(r,A);if(L){x+=J();I(L,r);return L.rB?0:r.length}var M=s(A,r);if(M){if(!(M.rE||M.eE)){w+=r}x+=J();do{if(A.cN){x+="</span>"}A=A.parent}while(A!=M.parent);if(M.eE){x+=l(r)}w="";if(M.starts){I(M.starts,"")}return M.rE?0:r.length}if(t(r,A)){throw"Illegal"}w+=r;return r.length||1}var F=e[D];f(F);var A=F;var w="";var B=0;var v=0;var x="";try{var u,q,p=0;while(true){A.t.lastIndex=p;u=A.t.exec(E);if(!u){break}q=C(E.substr(p,u.index-p),u[0]);p=u.index+q}C(E.substr(p));return{r:B,keyword_count:v,value:x,language:D}}catch(H){if(H=="Illegal"){return{r:0,keyword_count:0,value:l(E)}}else{throw H}}}function g(s){var o={keyword_count:0,r:0,value:l(s)};var q=o;for(var p in e){if(!e.hasOwnProperty(p)){continue}var r=d(p,s);r.language=p;if(r.keyword_count+r.r>q.keyword_count+q.r){q=r}if(r.keyword_count+r.r>o.keyword_count+o.r){q=o;o=r}}if(q.language){o.second_best=q}return o}function i(q,p,o){if(p){q=q.replace(/^((<[^>]+>|\t)+)/gm,function(r,v,u,t){return v.replace(/\t/g,p)})}if(o){q=q.replace(/\n/g,"<br>")}return q}function m(r,u,p){var v=h(r,p);var t=a(r);if(t=="no-highlight"){return}var w=t?d(t,v):g(v);t=w.language;var o=c(r);if(o.length){var q=document.createElement("pre");q.innerHTML=w.value;w.value=j(o,c(q),v)}w.value=i(w.value,u,p);var s=r.className;if(!s.match("(\\s|^)(language-)?"+t+"(\\s|$)")){s=s?(s+" "+t):t}r.innerHTML=w.value;r.className=s;r.result={language:t,kw:w.keyword_count,re:w.r};if(w.second_best){r.second_best={language:w.second_best.language,kw:w.second_best.keyword_count,re:w.second_best.r}}}function n(){if(n.called){return}n.called=true;Array.prototype.map.call(document.getElementsByTagName("pre"),b).filter(Boolean).forEach(function(o){m(o,hljs.tabReplace)})}function k(){window.addEventListener("DOMContentLoaded",n,false);window.addEventListener("load",n,false)}var e={};this.LANGUAGES=e;this.highlight=d;this.highlightAuto=g;this.fixMarkup=i;this.highlightBlock=m;this.initHighlighting=n;this.initHighlightingOnLoad=k;this.IR="[a-zA-Z][a-zA-Z0-9_]*";this.UIR="[a-zA-Z_][a-zA-Z0-9_]*";this.NR="\\b\\d+(\\.\\d+)?";this.CNR="(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)";this.BNR="\\b(0b[01]+)";this.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|\\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";this.BE={b:"\\\\[\\s\\S]",r:0};this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[this.BE],r:0};this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[this.BE],r:0};this.CLCM={cN:"comment",b:"//",e:"$"};this.CBLCLM={cN:"comment",b:"/\\*",e:"\\*/"};this.HCM={cN:"comment",b:"#",e:"$"};this.NM={cN:"number",b:this.NR,r:0};this.CNM={cN:"number",b:this.CNR,r:0};this.BNM={cN:"number",b:this.BNR,r:0};this.inherit=function(q,r){var o={};for(var p in q){o[p]=q[p]}if(r){for(var p in r){o[p]=r[p]}}return o}}();hljs.LANGUAGES.bash=function(a){var g="true false";var e="if then else elif fi for break continue while in do done echo exit return set declare";var c={cN:"variable",b:"\\$[a-zA-Z0-9_#]+"};var b={cN:"variable",b:"\\${([^}]|\\\\})+}"};var h={cN:"string",b:'"',e:'"',i:"\\n",c:[a.BE,c,b],r:0};var d={cN:"string",b:"'",e:"'",c:[{b:"''"}],r:0};var f={cN:"test_condition",b:"",e:"",c:[h,d,c,b],k:{literal:g},r:0};return{k:{keyword:e,literal:g},c:[{cN:"shebang",b:"(#!\\/bin\\/bash)|(#!\\/bin\\/sh)",r:10},c,b,a.HCM,h,d,a.inherit(f,{b:"\\[ ",e:" \\]",r:0}),a.inherit(f,{b:"\\[\\[ ",e:" \\]\\]"})]}}(hljs);hljs.LANGUAGES.cs=function(a){return{k:"abstract as base bool break byte case catch char checked class const continue decimal default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long namespace new null object operator out override params private protected public readonly ref return sbyte sealed short sizeof stackalloc static string struct switch this throw true try typeof uint ulong unchecked unsafe ushort using virtual volatile void while ascending descending from get group into join let orderby partial select set value var where yield",c:[{cN:"comment",b:"///",e:"$",rB:true,c:[{cN:"xmlDocTag",b:"///|<!--|-->"},{cN:"xmlDocTag",b:"</?",e:">"}]},a.CLCM,a.CBLCLM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line region endregion pragma checksum"},{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},a.ASM,a.QSM,a.CNM]}}(hljs);hljs.LANGUAGES.ruby=function(e){var a="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?";var j="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?";var g={keyword:"and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or include"};var c={cN:"yardoctag",b:"@[A-Za-z]+"};var k=[{cN:"comment",b:"#",e:"$",c:[c]},{cN:"comment",b:"^\\=begin",e:"^\\=end",c:[c],r:10},{cN:"comment",b:"^__END__",e:"\\n$"}];var d={cN:"subst",b:"#\\{",e:"}",l:a,k:g};var i=[e.BE,d];var b=[{cN:"string",b:"'",e:"'",c:i,r:0},{cN:"string",b:'"',e:'"',c:i,r:0},{cN:"string",b:"%[qw]?\\(",e:"\\)",c:i},{cN:"string",b:"%[qw]?\\[",e:"\\]",c:i},{cN:"string",b:"%[qw]?{",e:"}",c:i},{cN:"string",b:"%[qw]?<",e:">",c:i,r:10},{cN:"string",b:"%[qw]?/",e:"/",c:i,r:10},{cN:"string",b:"%[qw]?%",e:"%",c:i,r:10},{cN:"string",b:"%[qw]?-",e:"-",c:i,r:10},{cN:"string",b:"%[qw]?\\|",e:"\\|",c:i,r:10}];var h={cN:"function",bWK:true,e:" |$|;",k:"def",c:[{cN:"title",b:j,l:a,k:g},{cN:"params",b:"\\(",e:"\\)",l:a,k:g}].concat(k)};var f=k.concat(b.concat([{cN:"class",bWK:true,e:"$|;",k:"class module",c:[{cN:"title",b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?",r:0},{cN:"inheritance",b:"<\\s*",c:[{cN:"parent",b:"("+e.IR+"::)?"+e.IR}]}].concat(k)},h,{cN:"constant",b:"(::)?(\\b[A-Z]\\w*(::)?)+",r:0},{cN:"symbol",b:":",c:b.concat([{b:j}]),r:0},{cN:"symbol",b:a+":",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"number",b:"\\?\\w"},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"("+e.RSR+")\\s*",c:k.concat([{cN:"regexp",b:"/",e:"/[a-z]*",i:"\\n",c:[e.BE,d]}]),r:0}]));d.c=f;h.c[1].c=f;return{l:a,k:g,c:f}}(hljs);hljs.LANGUAGES.diff=function(a){return{c:[{cN:"chunk",b:"^\\@\\@ +\\-\\d+,\\d+ +\\+\\d+,\\d+ +\\@\\@$",r:10},{cN:"chunk",b:"^\\*\\*\\* +\\d+,\\d+ +\\*\\*\\*\\*$",r:10},{cN:"chunk",b:"^\\-\\-\\- +\\d+,\\d+ +\\-\\-\\-\\-$",r:10},{cN:"header",b:"Index: ",e:"$"},{cN:"header",b:"=====",e:"=====$"},{cN:"header",b:"^\\-\\-\\-",e:"$"},{cN:"header",b:"^\\*{3} ",e:"$"},{cN:"header",b:"^\\+\\+\\+",e:"$"},{cN:"header",b:"\\*{5}",e:"\\*{5}$"},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"change",b:"^\\!",e:"$"}]}}(hljs);hljs.LANGUAGES.javascript=function(a){return{k:{keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const",literal:"true false null undefined NaN Infinity"},c:[a.ASM,a.QSM,a.CLCM,a.CBLCLM,a.CNM,{b:"("+a.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[a.CLCM,a.CBLCLM,{cN:"regexp",b:"/",e:"/[gim]*",i:"\\n",c:[{b:"\\\\/"}]},{b:"<",e:">;",sL:"xml"}],r:0},{cN:"function",bWK:true,e:"{",k:"function",c:[{cN:"title",b:"[A-Za-z$_][0-9A-Za-z$_]*"},{cN:"params",b:"\\(",e:"\\)",c:[a.CLCM,a.CBLCLM],i:"[\"'\\(]"}],i:"\\[|%"}]}}(hljs);hljs.LANGUAGES.css=function(a){var b={cN:"function",b:a.IR+"\\(",e:"\\)",c:[a.NM,a.ASM,a.QSM]};return{cI:true,i:"[=/|']",c:[a.CBLCLM,{cN:"id",b:"\\#[A-Za-z0-9_-]+"},{cN:"class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"attr_selector",b:"\\[",e:"\\]",i:"$"},{cN:"pseudo",b:":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"},{cN:"at_rule",b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{cN:"at_rule",b:"@",e:"[{;]",eE:true,k:"import page media charset",c:[b,a.ASM,a.QSM,a.NM]},{cN:"tag",b:a.IR,r:0},{cN:"rules",b:"{",e:"}",i:"[^\\s]",r:0,c:[a.CBLCLM,{cN:"rule",b:"[^\\s]",rB:true,e:";",eW:true,c:[{cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:true,i:"[^\\s]",starts:{cN:"value",eW:true,eE:true,c:[b,a.NM,a.QSM,a.ASM,a.CBLCLM,{cN:"hexcolor",b:"\\#[0-9A-F]+"},{cN:"important",b:"!important"}]}}]}]}]}}(hljs);hljs.LANGUAGES.xml=function(a){var c="[A-Za-z0-9\\._:-]+";var b={eW:true,c:[{cN:"attribute",b:c,r:0},{b:'="',rB:true,e:'"',c:[{cN:"value",b:'"',eW:true}]},{b:"='",rB:true,e:"'",c:[{cN:"value",b:"'",eW:true}]},{b:"=",c:[{cN:"value",b:"[^\\s/>]+"}]}]};return{cI:true,c:[{cN:"pi",b:"<\\?",e:"\\?>",r:10},{cN:"doctype",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},{cN:"comment",b:"<!--",e:"-->",r:10},{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{title:"style"},c:[b],starts:{e:"</style>",rE:true,sL:"css"}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{title:"script"},c:[b],starts:{e:"<\/script>",rE:true,sL:"javascript"}},{b:"<%",e:"%>",sL:"vbscript"},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"title",b:"[^ />]+"},b]}]}}(hljs);hljs.LANGUAGES.http=function(a){return{i:"\\S",c:[{cN:"status",b:"^HTTP/[0-9\\.]+",e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{cN:"request",b:"^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",rB:true,e:"$",c:[{cN:"string",b:" ",e:" ",eB:true,eE:true}]},{cN:"attribute",b:"^\\w",e:": ",eE:true,i:"\\n|\\s|=",starts:{cN:"string",e:"$"}},{b:"\\n\\n",starts:{sL:"",eW:true}}]}}(hljs);hljs.LANGUAGES.java=function(a){return{k:"false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws",c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",c:[{cN:"javadoctag",b:"@[A-Za-z]+"}],r:10},a.CLCM,a.CBLCLM,a.ASM,a.QSM,{cN:"class",bWK:true,e:"{",k:"class interface",i:":",c:[{bWK:true,k:"extends implements",r:10},{cN:"title",b:a.UIR}]},a.CNM,{cN:"annotation",b:"@[A-Za-z]+"}]}}(hljs);hljs.LANGUAGES.php=function(a){var e={cN:"variable",b:"\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*"};var b=[a.inherit(a.ASM,{i:null}),a.inherit(a.QSM,{i:null}),{cN:"string",b:'b"',e:'"',c:[a.BE]},{cN:"string",b:"b'",e:"'",c:[a.BE]}];var c=[a.BNM,a.CNM];var d={cN:"title",b:a.UIR};return{cI:true,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return implements parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception php_user_filter default die require __FUNCTION__ enddeclare final try this switch continue endfor endif declare unset true false namespace trait goto instanceof insteadof __DIR__ __NAMESPACE__ __halt_compiler",c:[a.CLCM,a.HCM,{cN:"comment",b:"/\\*",e:"\\*/",c:[{cN:"phpdoc",b:"\\s@[A-Za-z]+"}]},{cN:"comment",eB:true,b:"__halt_compiler.+?;",eW:true},{cN:"string",b:"<<<['\"]?\\w+['\"]?$",e:"^\\w+;",c:[a.BE]},{cN:"preprocessor",b:"<\\?php",r:10},{cN:"preprocessor",b:"\\?>"},e,{cN:"function",bWK:true,e:"{",k:"function",i:"\\$|\\[|%",c:[d,{cN:"params",b:"\\(",e:"\\)",c:["self",e,a.CBLCLM].concat(b).concat(c)}]},{cN:"class",bWK:true,e:"{",k:"class",i:"[:\\(\\$]",c:[{bWK:true,eW:true,k:"extends",c:[d]},d]},{b:"=>"}].concat(b).concat(c)}}(hljs);hljs.LANGUAGES.python=function(a){var f={cN:"prompt",b:"^(>>>|\\.\\.\\.) "};var c=[{cN:"string",b:"(u|b)?r?'''",e:"'''",c:[f],r:10},{cN:"string",b:'(u|b)?r?"""',e:'"""',c:[f],r:10},{cN:"string",b:"(u|r|ur)'",e:"'",c:[a.BE],r:10},{cN:"string",b:'(u|r|ur)"',e:'"',c:[a.BE],r:10},{cN:"string",b:"(b|br)'",e:"'",c:[a.BE]},{cN:"string",b:'(b|br)"',e:'"',c:[a.BE]}].concat([a.ASM,a.QSM]);var e={cN:"title",b:a.UIR};var d={cN:"params",b:"\\(",e:"\\)",c:["self",a.CNM,f].concat(c)};var b={bWK:true,e:":",i:"[${=;\\n]",c:[e,d],r:10};return{k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda nonlocal|10",built_in:"None True False Ellipsis NotImplemented"},i:"(</|->|\\?)",c:c.concat([f,a.HCM,a.inherit(b,{cN:"function",k:"def"}),a.inherit(b,{cN:"class",k:"class"}),a.CNM,{cN:"decorator",b:"@",e:"$"},{b:"\\b(print|exec)\\("}])}}(hljs);hljs.LANGUAGES.sql=function(a){return{cI:true,c:[{cN:"operator",b:"(begin|start|commit|rollback|savepoint|lock|alter|create|drop|rename|call|delete|do|handler|insert|load|replace|select|truncate|update|set|show|pragma|grant)\\b(?!:)",e:";",eW:true,k:{keyword:"all partial global month current_timestamp using go revoke smallint indicator end-exec disconnect zone with character assertion to add current_user usage input local alter match collate real then rollback get read timestamp session_user not integer bit unique day minute desc insert execute like ilike|2 level decimal drop continue isolation found where constraints domain right national some module transaction relative second connect escape close system_user for deferred section cast current sqlstate allocate intersect deallocate numeric public preserve full goto initially asc no key output collation group by union session both last language constraint column of space foreign deferrable prior connection unknown action commit view or first into float year primary cascaded except restrict set references names table outer open select size are rows from prepare distinct leading create only next inner authorization schema corresponding option declare precision immediate else timezone_minute external varying translation true case exception join hour default double scroll value cursor descriptor values dec fetch procedure delete and false int is describe char as at in varchar null trailing any absolute current_time end grant privileges when cross check write current_date pad begin temporary exec time update catalog user sql date on identity timezone_hour natural whenever interval work order cascade diagnostics nchar having left call do handler load replace truncate start lock show pragma exists number",aggregate:"count sum min max avg"},c:[{cN:"string",b:"'",e:"'",c:[a.BE,{b:"''"}],r:0},{cN:"string",b:'"',e:'"',c:[a.BE,{b:'""'}],r:0},{cN:"string",b:"`",e:"`",c:[a.BE]},a.CNM]},a.CBLCLM,{cN:"comment",b:"--",e:"$"}]}}(hljs);hljs.LANGUAGES.ini=function(a){return{cI:true,i:"[^\\s]",c:[{cN:"comment",b:";",e:"$"},{cN:"title",b:"^\\[",e:"\\]"},{cN:"setting",b:"^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*",e:"$",c:[{cN:"value",eW:true,k:"on off true false yes no",c:[a.QSM,a.NM]}]}]}}(hljs);hljs.LANGUAGES.perl=function(e){var a="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when";var d={cN:"subst",b:"[$@]\\{",e:"\\}",k:a,r:10};var b={cN:"variable",b:"\\$\\d"};var i={cN:"variable",b:"[\\$\\%\\@\\*](\\^\\w\\b|#\\w+(\\:\\:\\w+)*|[^\\s\\w{]|{\\w+}|\\w+(\\:\\:\\w*)*)"};var f=[e.BE,d,b,i];var h={b:"->",c:[{b:e.IR},{b:"{",e:"}"}]};var g={cN:"comment",b:"^(__END__|__DATA__)",e:"\\n$",r:5};var c=[b,i,e.HCM,g,{cN:"comment",b:"^\\=\\w",e:"\\=cut",eW:true},h,{cN:"string",b:"q[qwxr]?\\s*\\(",e:"\\)",c:f,r:5},{cN:"string",b:"q[qwxr]?\\s*\\[",e:"\\]",c:f,r:5},{cN:"string",b:"q[qwxr]?\\s*\\{",e:"\\}",c:f,r:5},{cN:"string",b:"q[qwxr]?\\s*\\|",e:"\\|",c:f,r:5},{cN:"string",b:"q[qwxr]?\\s*\\<",e:"\\>",c:f,r:5},{cN:"string",b:"qw\\s+q",e:"q",c:f,r:5},{cN:"string",b:"'",e:"'",c:[e.BE],r:0},{cN:"string",b:'"',e:'"',c:f,r:0},{cN:"string",b:"`",e:"`",c:[e.BE]},{cN:"string",b:"{\\w+}",r:0},{cN:"string",b:"-?\\w+\\s*\\=\\>",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"("+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[e.HCM,g,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],r:0}]},{cN:"sub",bWK:true,e:"(\\s*\\(.*?\\))?[;{]",k:"sub",r:5},{cN:"operator",b:"-\\w\\b",r:0}];d.c=c;h.c[1].c=c;return{k:a,c:c}}(hljs);hljs.LANGUAGES.json=function(a){var e={literal:"true false null"};var d=[a.QSM,a.CNM];var c={cN:"value",e:",",eW:true,eE:true,c:d,k:e};var b={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:true,eE:true,c:[a.BE],i:"\\n",starts:c}],i:"\\S"};var f={b:"\\[",e:"\\]",c:[a.inherit(c,{cN:null})],i:"\\S"};d.splice(d.length,0,b,f);return{c:d,k:e,i:"\\S"}}(hljs);hljs.LANGUAGES.cpp=function(a){var b={keyword:"false int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long throw volatile static protected bool template mutable if public friend do return goto auto void enum else break new extern using true class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue wchar_t inline delete alignof char16_t char32_t constexpr decltype noexcept nullptr static_assert thread_local restrict _Bool complex",built_in:"std string cin cout cerr clog stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr"};return{k:b,i:"</",c:[a.CLCM,a.CBLCLM,a.QSM,{cN:"string",b:"'\\\\?.",e:"'",i:"."},{cN:"number",b:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},a.CNM,{cN:"preprocessor",b:"#",e:"$"},{cN:"stl_container",b:"\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",e:">",k:b,r:10,c:["self"]}]}}(hljs);
\ No newline at end of file
Added: trunk/highlight.js/styles/arta.css
===================================================================
--- trunk/highlight.js/styles/arta.css	 (rev 0)
+++ trunk/highlight.js/styles/arta.css	2013年04月16日 16:02:49 UTC (rev 8761)
@@ -0,0 +1,158 @@
+/*
+Date: 17.V.2011
+Author: pumbur <pu...@pu...>
+*/
+
+pre code
+{
+ display: block; padding: 0.5em;
+ background: #222;
+}
+
+pre .profile .header *,
+pre .ini .title,
+pre .nginx .title
+{
+ color: #fff;
+}
+
+pre .comment,
+pre .javadoc,
+pre .preprocessor,
+pre .preprocessor .title,
+pre .shebang,
+pre .profile .summary,
+pre .diff,
+pre .pi,
+pre .doctype,
+pre .tag,
+pre .template_comment,
+pre .css .rules,
+pre .tex .special
+{
+ color: #444;
+}
+
+pre .string,
+pre .symbol,
+pre .diff .change,
+pre .regexp,
+pre .xml .attribute,
+pre .smalltalk .char,
+pre .xml .value,
+pre .ini .value,
+pre .clojure .attribute
+{
+ color: #ffcc33;
+}
+
+pre .number,
+pre .addition
+{
+ color: #00cc66;
+}
+
+pre .built_in,
+pre .literal,
+pre .vhdl .typename,
+pre .go .constant,
+pre .go .typename,
+pre .ini .keyword,
+pre .lua .title,
+pre .perl .variable,
+pre .php .variable,
+pre .mel .variable,
+pre .django .variable,
+pre .css .funtion,
+pre .smalltalk .method,
+pre .hexcolor,
+pre .important,
+pre .flow,
+pre .inheritance,
+pre .parser3 .variable
+{
+ color: #32AAEE;
+}
+
+pre .keyword,
+pre .tag .title,
+pre .css .tag,
+pre .css .class,
+pre .css .id,
+pre .css .pseudo,
+pre .css .attr_selector,
+pre .lisp .title,
+pre .clojure .built_in,
+pre .winutils,
+pre .tex .command,
+pre .request,
+pre .status
+{
+ color: #6644aa;
+}
+
+pre .title,
+pre .ruby .constant,
+pre .vala .constant,
+pre .parent,
+pre .deletion,
+pre .template_tag,
+pre .css .keyword,
+pre .objectivec .class .id,
+pre .smalltalk .class,
+pre .lisp .keyword,
+pre .apache .tag,
+pre .nginx .variable,
+pre .envvar,
+pre .bash .variable,
+pre .go .built_in,
+pre .vbscript .built_in,
+pre .lua .built_in,
+pre .rsl .built_in,
+pre .tail,
+pre .avrasm .label,
+pre .tex .formula,
+pre .tex .formula *
+{
+ color: #bb1166;
+}
+
+pre .yardoctag,
+pre .phpdoc,
+pre .profile .header,
+pre .ini .title,
+pre .apache .tag,
+pre .parser3 .title
+{
+ font-weight: bold;
+}
+
+pre .coffeescript .javascript,
+pre .javascript .xml,
+pre .tex .formula,
+pre .xml .javascript,
+pre .xml .vbscript,
+pre .xml .css,
+pre .xml .cdata
+{
+ opacity: 0.6;
+}
+
+pre code,
+pre .javascript,
+pre .css,
+pre .xml,
+pre .subst,
+pre .diff .chunk,
+pre .css .value,
+pre .css .attribute,
+pre .lisp .string,
+pre .lisp .number,
+pre .tail .params,
+pre .container,
+pre .haskell *,
+pre .erlang *,
+pre .erlang_repl *
+{
+ color: #aaa;
+}
Added: trunk/highlight.js/styles/ascetic.css
===================================================================
--- trunk/highlight.js/styles/ascetic.css	 (rev 0)
+++ trunk/highlight.js/styles/ascetic.css	2013年04月16日 16:02:49 UTC (rev 8761)
@@ -0,0 +1,50 @@
+/*
+
+Original style from softwaremaniacs.org (c) Ivan Sagalaev <Ma...@So...>
+
+*/
+
+pre code {
+ display: block; padding: 0.5em;
+ background: white; color: black;
+}
+
+pre .string,
+pre .tag .value,
+pre .filter .argument,
+pre .addition,
+pre .change,
+pre .apache .tag,
+pre .apache .cbracket,
+pre .nginx .built_in,
+pre .tex .formula {
+ color: #888;
+}
+
+pre .comment,
+pre .template_comment,
+pre .shebang,
+pre .doctype,
+pre .pi,
+pre .javadoc,
+pre .deletion,
+pre .apache .sqbracket {
+ color: #CCC;
+}
+
+pre .keyword,
+pre .tag .title,
+pre .ini .title,
+pre .lisp .title,
+pre .clojure .title,
+pre .http .title,
+pre .nginx .title,
+pre .css .tag,
+pre .winutils,
+pre .flow,
+pre .apache .tag,
+pre .tex .command,
+pre .request,
+pre .status {
+ font-weight: bold;
+}
Added: trunk/highlight.js/styles/brown_paper.css
===================================================================
--- trunk/highlight.js/styles/brown_paper.css	 (rev 0)
+++ trunk/highlight.js/styles/brown_paper.css	2013年04月16日 16:02:49 UTC (rev 8761)
@@ -0,0 +1,104 @@
+/*
+
+Brown Paper style from goldblog.com.ua (c) Zaripov Yura <yu...@uk...>
+
+*/
+
+pre code {
+ display: block; padding: 0.5em;
+ background:#b7a68e url(./brown_papersq.png);
+}
+
+pre .keyword,
+pre .literal,
+pre .change,
+pre .winutils,
+pre .flow,
+pre .lisp .title,
+pre .clojure .built_in,
+pre .nginx .title,
+pre .tex .special,
+pre .request,
+pre .status {
+ color:#005599;
+ font-weight:bold;
+}
+
+pre code,
+pre .subst,
+pre .tag .keyword {
+ color: #363C69;
+}
+
+pre .string,
+pre .title,
+pre .haskell .type,
+pre .tag .value,
+pre .css .rules .value,
+pre .preprocessor,
+pre .ruby .symbol,
+pre .ruby .symbol .string,
+pre .ruby .class .parent,
+pre .built_in,
+pre .sql .aggregate,
+pre .django .template_tag,
+pre .django .variable,
+pre .smalltalk .class,
+pre .javadoc,
+pre .ruby .string,
+pre .django .filter .argument,
+pre .smalltalk .localvars,
+pre .smalltalk .array,
+pre .attr_selector,
+pre .pseudo,
+pre .addition,
+pre .stream,
+pre .envvar,
+pre .apache .tag,
+pre .apache .cbracket,
+pre .tex .number {
+ color: #2C009F;
+}
+
+pre .comment,
+pre .java .annotation,
+pre .python .decorator,
+pre .template_comment,
+pre .pi,
+pre .doctype,
+pre .deletion,
+pre .shebang,
+pre .apache .sqbracket,
+pre .nginx .built_in,
+pre .tex .formula {
+ color: #802022;
+}
+
+pre .keyword,
+pre .literal,
+pre .css .id,
+pre .phpdoc,
+pre .title,
+pre .haskell .type,
+pre .vbscript .built_in,
+pre .sql .aggregate,
+pre .rsl .built_in,
+pre .smalltalk .class,
+pre .diff .header,
+pre .chunk,
+pre .winutils,
+pre .bash .variable,
+pre .apache .tag,
+pre .tex .command {
+ font-weight: bold;
+}
+
+pre .coffeescript .javascript,
+pre .javascript .xml,
+pre .tex .formula,
+pre .xml .javascript,
+pre .xml .vbscript,
+pre .xml .css,
+pre .xml .cdata {
+ opacity: 0.8;
+}
Added: trunk/highlight.js/styles/brown_papersq.png
===================================================================
(Binary files differ)
Index: trunk/highlight.js/styles/brown_papersq.png
===================================================================
--- trunk/highlight.js/styles/brown_papersq.png	2013年04月16日 15:53:47 UTC (rev 8760)
+++ trunk/highlight.js/styles/brown_papersq.png	2013年04月16日 16:02:49 UTC (rev 8761)
Property changes on: trunk/highlight.js/styles/brown_papersq.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+image/png
\ No newline at end of property
Added: trunk/highlight.js/styles/dark.css
===================================================================
--- trunk/highlight.js/styles/dark.css	 (rev 0)
+++ trunk/highlight.js/styles/dark.css	2013年04月16日 16:02:49 UTC (rev 8761)
@@ -0,0 +1,103 @@
+/*
+
+Dark style from softwaremaniacs.org (c) Iv...
 
[truncated message content]
From: <var...@us...> - 2013年04月16日 15:53:49
Revision: 8760
 http://sourceforge.net/p/phpwiki/code/8760
Author: vargenau
Date: 2013年04月16日 15:53:47 +0000 (2013年4月16日)
Log Message:
-----------
Remove unused param in getCounter
Modified Paths:
--------------
 trunk/lib/plugin/CreateToc.php
Modified: trunk/lib/plugin/CreateToc.php
===================================================================
--- trunk/lib/plugin/CreateToc.php	2013年04月16日 15:42:21 UTC (rev 8759)
+++ trunk/lib/plugin/CreateToc.php	2013年04月16日 15:53:47 UTC (rev 8760)
@@ -114,7 +114,7 @@
 }
 
 // Get string corresponding to the current title
- private function getCounter(&$counter, $level, $firstlevelstyle)
+ private function getCounter(&$counter, $firstlevelstyle)
 {
 if ($firstlevelstyle == 'roman') {
 $str = $this->roman_counter($counter[1]);
@@ -311,7 +311,7 @@
 $manchor = MangleXmlIdentifier($anchor);
 $texts = $s;
 if ($counter) {
- $texts = $this->getCounter($tocCounter, $level, $firstlevelstyle) . ' ' . $s;
+ $texts = $this->getCounter($tocCounter, $firstlevelstyle) . ' ' . $s;
 }
 $headers[] = array('text' => $texts,
 'anchor' => $anchor,
@@ -330,7 +330,7 @@
 $x = $markup->_content[$j];
 $qheading = $this->quote($s);
 if ($counter)
- $counterString = $this->getCounter($tocCounter, $level, $firstlevelstyle);
+ $counterString = $this->getCounter($tocCounter, $firstlevelstyle);
 if (($hstart === 0) && is_string($markup->_content[$j])) {
 if ($backlink) {
 if ($counter)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8759
 http://sourceforge.net/p/phpwiki/code/8759
Author: vargenau
Date: 2013年04月16日 15:42:21 +0000 (2013年4月16日)
Log Message:
-----------
No underscore for private function
Modified Paths:
--------------
 trunk/lib/plugin/WikicreoleTable.php
Modified: trunk/lib/plugin/WikicreoleTable.php
===================================================================
--- trunk/lib/plugin/WikicreoleTable.php	2013年04月16日 15:32:54 UTC (rev 8758)
+++ trunk/lib/plugin/WikicreoleTable.php	2013年04月16日 15:42:21 UTC (rev 8759)
@@ -93,52 +93,52 @@
 }
 }
 
- $nbrows = sizeof($table);
+ $nb_rows = sizeof($table);
 // If table is empty, do not generate table markup
- if ($nbrows == 0) {
+ if ($nb_rows == 0) {
 return HTML::raw('');
 }
 
 // Number of columns is the number of cells in the longer row
- $nbcols = 0;
- for ($i = 0; $i < $nbrows; $i++) {
- $nbcols = max($nbcols, sizeof($table[$i]));
+ $nb_cols = 0;
+ for ($i = 0; $i < $nb_rows; $i++) {
+ $nb_cols = max($nb_cols, sizeof($table[$i]));
 }
 
- for ($i = 0; $i < $nbrows; $i++) {
- for ($j = 0; $j < $nbcols; $j++) {
+ for ($i = 0; $i < $nb_rows; $i++) {
+ for ($j = 0; $j < $nb_cols; $j++) {
 if (!isset($table[$i][$j])) {
 $table[$i][$j] = '';
 } elseif (preg_match('/@@/', $table[$i][$j])) {
- $table[$i][$j] = $this->_compute_tablecell($table, $i, $j, $nbrows, $nbcols);
+ $table[$i][$j] = $this->compute_table_cell($table, $i, $j, $nb_rows, $nb_cols);
 }
 }
 }
 
- $htmltable = HTML::table(array('class' => "bordered"));
+ $html_table = HTML::table(array('class' => "bordered"));
 foreach ($table as $row) {
- $htmlrow = HTML::tr();
+ $html_row = HTML::tr();
 foreach ($row as $cell) {
 if ($cell && $cell[0] == '=') {
 $cell = trim(substr($cell, 1));
- $htmlrow->pushContent(HTML::th(TransformInline($cell, 2.0, $basepage)));
+ $html_row->pushContent(HTML::th(TransformInline($cell, 2.0, $basepage)));
 } else {
 if (is_numeric($cell)) {
- $htmlrow->pushContent(HTML::td(array('style' => "text-align:right"), $cell));
+ $html_row->pushContent(HTML::td(array('style' => "text-align:right"), $cell));
 } else {
- $htmlrow->pushContent(HTML::td(TransformInline($cell, 2.0, $basepage)));
+ $html_row->pushContent(HTML::td(TransformInline($cell, 2.0, $basepage)));
 }
 }
 }
- $htmltable->pushContent($htmlrow);
+ $html_table->pushContent($html_row);
 }
- return $htmltable;
+ return $html_table;
 }
 
 private function parse_row($line)
 {
- $brkt_link = "\\[ .*? [^]\s] .*? \\]";
- $cell_content = "(?: [^[] | " . ESCAPE_CHAR . "\\[ | $brkt_link )*?";
+ $bracket_link = "\\[ .*? [^]\s] .*? \\]";
+ $cell_content = "(?: [^[] | " . ESCAPE_CHAR . "\\[ | $bracket_link )*?";
 
 preg_match_all("/(\\|+) \s* ($cell_content) \s* (?=\\||\$)/x",
 $line, $matches, PREG_SET_ORDER);
@@ -158,7 +158,7 @@
 * $i and $j: indexes of cell to compute
 * $imax and $jmax: table dimensions
 */
- private function _compute_tablecell($table, $i, $j, $imax, $jmax)
+ private function compute_table_cell($table, $i, $j, $imax, $jmax)
 {
 
 // What is implemented:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月16日 15:32:58
Revision: 8758
 http://sourceforge.net/p/phpwiki/code/8758
Author: vargenau
Date: 2013年04月16日 15:32:54 +0000 (2013年4月16日)
Log Message:
-----------
Update translations
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/fr/LC_MESSAGES/phpwiki.php
 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/locale/zh/LC_MESSAGES/phpwiki.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)
Modified: trunk/locale/fr/LC_MESSAGES/phpwiki.php
===================================================================
--- trunk/locale/fr/LC_MESSAGES/phpwiki.php	2013年04月16日 15:31:08 UTC (rev 8757)
+++ trunk/locale/fr/LC_MESSAGES/phpwiki.php	2013年04月16日 15:32:54 UTC (rev 8758)
@@ -999,7 +999,6 @@
 $locale["Sorry, no dynamic DB Session support."] = "Désolé, Session dynamique non supportées.";
 $locale["Sorry, this page does not exist."] = "Désolé, cette page n'existe pas.";
 $locale["Sorry, this version of PHP cannot create PNG image files."] = "Désolé, cette version de PHP ne peut pas créer des fichiers d'image PNG.";
-$locale["Sorry. Access Restrictions not yet implemented"] = "Désolé. Restriction d'accès pas encore disponible";
 $locale["Sort by %s"] = "Trier par %s";
 $locale["Sound Score"] = "Score de son";
 $locale["Special Actions"] = "Actions spéciales";
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	2013年04月16日 15:31:08 UTC (rev 8757)
+++ trunk/locale/po/de.po	2013年04月16日 15:32:54 UTC (rev 8758)
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.4.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013年04月08日 16:18+0200\n"
+"POT-Creation-Date: 2013年04月16日 17:32+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."
@@ -4213,9 +4213,6 @@
 msgid "Purge all empty, unreferenced Pages"
 msgstr "Alle leeren Seiten endgültig entfernen, die nicht verlinkt sind."
 
-msgid "Access Restrictions"
-msgstr ""
-
 msgid "Convert cached_html"
 msgstr ""
 
@@ -4261,9 +4258,6 @@
 msgid "Converted successfully %d pages"
 msgstr "%d Seiten erfolgreich konvertiert"
 
-msgid "Sorry. Access Restrictions not yet implemented"
-msgstr ""
-
 msgid "E-mail"
 msgstr "E-Mail"
 
Modified: trunk/locale/po/es.po
===================================================================
--- trunk/locale/po/es.po	2013年04月16日 15:31:08 UTC (rev 8757)
+++ trunk/locale/po/es.po	2013年04月16日 15:32:54 UTC (rev 8758)
@@ -11,7 +11,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.4.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013年04月08日 16:18+0200\n"
+"POT-Creation-Date: 2013年04月16日 17:32+0200\n"
 "PO-Revision-Date: 2000年02月01日 00:50-0500\n"
 "Last-Translator: Pablo Roca <pr...@cl...>\n"
 "Language-Team: \n"
@@ -4076,9 +4076,6 @@
 msgid "Purge all empty, unreferenced Pages"
 msgstr ""
 
-msgid "Access Restrictions"
-msgstr ""
-
 msgid "Convert cached_html"
 msgstr ""
 
@@ -4124,9 +4121,6 @@
 msgid "Converted successfully %d pages"
 msgstr ""
 
-msgid "Sorry. Access Restrictions not yet implemented"
-msgstr ""
-
 msgid "E-mail"
 msgstr ""
 
Modified: trunk/locale/po/fr.po
===================================================================
--- trunk/locale/po/fr.po	2013年04月16日 15:31:08 UTC (rev 8757)
+++ trunk/locale/po/fr.po	2013年04月16日 15:32:54 UTC (rev 8758)
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.4.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013年04月08日 16:18+0200\n"
+"POT-Creation-Date: 2013年04月16日 17:32+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."
@@ -4124,9 +4124,6 @@
 msgid "Purge all empty, unreferenced Pages"
 msgstr ""
 
-msgid "Access Restrictions"
-msgstr ""
-
 msgid "Convert cached_html"
 msgstr ""
 
@@ -4172,9 +4169,6 @@
 msgid "Converted successfully %d pages"
 msgstr "%d pages converties avec succès"
 
-msgid "Sorry. Access Restrictions not yet implemented"
-msgstr "Désolé. Restriction d'accès pas encore disponible"
-
 msgid "E-mail"
 msgstr "Adresse électronique"
 
@@ -6085,6 +6079,9 @@
 msgid "Edit this page"
 msgstr "Modifier cette page"
 
+#~ msgid "Sorry. Access Restrictions not yet implemented"
+#~ msgstr "Désolé. Restriction d'accès pas encore disponible"
+
 #~ msgid "SteveWainstead"
 #~ msgstr "SteveWainstead"
 
Modified: trunk/locale/po/it.po
===================================================================
--- trunk/locale/po/it.po	2013年04月16日 15:31:08 UTC (rev 8757)
+++ trunk/locale/po/it.po	2013年04月16日 15:32:54 UTC (rev 8758)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.4.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013年04月08日 16:18+0200\n"
+"POT-Creation-Date: 2013年04月16日 17:32+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"
@@ -4050,9 +4050,6 @@
 msgid "Purge all empty, unreferenced Pages"
 msgstr ""
 
-msgid "Access Restrictions"
-msgstr ""
-
 msgid "Convert cached_html"
 msgstr ""
 
@@ -4098,9 +4095,6 @@
 msgid "Converted successfully %d pages"
 msgstr ""
 
-msgid "Sorry. Access Restrictions not yet implemented"
-msgstr ""
-
 msgid "E-mail"
 msgstr ""
 
Modified: trunk/locale/po/ja.po
===================================================================
--- trunk/locale/po/ja.po	2013年04月16日 15:31:08 UTC (rev 8757)
+++ trunk/locale/po/ja.po	2013年04月16日 15:32:54 UTC (rev 8758)
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.4.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013年04月08日 16:18+0200\n"
+"POT-Creation-Date: 2013年04月16日 17:32+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"
@@ -4157,9 +4157,6 @@
 msgid "Purge all empty, unreferenced Pages"
 msgstr ""
 
-msgid "Access Restrictions"
-msgstr ""
-
 msgid "Convert cached_html"
 msgstr ""
 
@@ -4205,9 +4202,6 @@
 msgid "Converted successfully %d pages"
 msgstr ""
 
-msgid "Sorry. Access Restrictions not yet implemented"
-msgstr ""
-
 #, fuzzy
 msgid "E-mail"
 msgstr "メール"
Modified: trunk/locale/po/nl.po
===================================================================
--- trunk/locale/po/nl.po	2013年04月16日 15:31:08 UTC (rev 8757)
+++ trunk/locale/po/nl.po	2013年04月16日 15:32:54 UTC (rev 8758)
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.4.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013年04月08日 16:18+0200\n"
+"POT-Creation-Date: 2013年04月16日 17:32+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"
@@ -4035,9 +4035,6 @@
 msgid "Purge all empty, unreferenced Pages"
 msgstr ""
 
-msgid "Access Restrictions"
-msgstr ""
-
 msgid "Convert cached_html"
 msgstr ""
 
@@ -4083,9 +4080,6 @@
 msgid "Converted successfully %d pages"
 msgstr ""
 
-msgid "Sorry. Access Restrictions not yet implemented"
-msgstr ""
-
 msgid "E-mail"
 msgstr ""
 
Modified: trunk/locale/po/phpwiki.pot
===================================================================
--- trunk/locale/po/phpwiki.pot	2013年04月16日 15:31:08 UTC (rev 8757)
+++ trunk/locale/po/phpwiki.pot	2013年04月16日 15:32:54 UTC (rev 8758)
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki-1.4.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013年04月08日 16:18+0200\n"
+"POT-Creation-Date: 2013年04月16日 17:32+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"
@@ -4024,9 +4024,6 @@
 msgid "Purge all empty, unreferenced Pages"
 msgstr ""
 
-msgid "Access Restrictions"
-msgstr ""
-
 msgid "Convert cached_html"
 msgstr ""
 
@@ -4072,9 +4069,6 @@
 msgid "Converted successfully %d pages"
 msgstr ""
 
-msgid "Sorry. Access Restrictions not yet implemented"
-msgstr ""
-
 msgid "E-mail"
 msgstr ""
 
Modified: trunk/locale/po/sv.po
===================================================================
--- trunk/locale/po/sv.po	2013年04月16日 15:31:08 UTC (rev 8757)
+++ trunk/locale/po/sv.po	2013年04月16日 15:32:54 UTC (rev 8758)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.4.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013年04月08日 16:18+0200\n"
+"POT-Creation-Date: 2013年04月16日 17:32+0200\n"
 "PO-Revision-Date: 2001年01月27日 01:58+0200\n"
 "Last-Translator: Jon Åslund <jo...@he...>\n"
 "Language-Team: \n"
@@ -4027,9 +4027,6 @@
 msgid "Purge all empty, unreferenced Pages"
 msgstr ""
 
-msgid "Access Restrictions"
-msgstr ""
-
 msgid "Convert cached_html"
 msgstr ""
 
@@ -4075,9 +4072,6 @@
 msgid "Converted successfully %d pages"
 msgstr ""
 
-msgid "Sorry. Access Restrictions not yet implemented"
-msgstr ""
-
 msgid "E-mail"
 msgstr ""
 
Modified: trunk/locale/po/zh.po
===================================================================
--- trunk/locale/po/zh.po	2013年04月16日 15:31:08 UTC (rev 8757)
+++ trunk/locale/po/zh.po	2013年04月16日 15:32:54 UTC (rev 8758)
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.4.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013年04月08日 16:18+0200\n"
+"POT-Creation-Date: 2013年04月16日 17:32+0200\n"
 "PO-Revision-Date: 2004年04月21日 10:08+0800\n"
 "Last-Translator: DruryL <dr...@us...>\n"
 "Language-Team: DruryL <dr...@us...>\n"
@@ -4298,9 +4298,6 @@
 msgid "Purge all empty, unreferenced Pages"
 msgstr ""
 
-msgid "Access Restrictions"
-msgstr ""
-
 msgid "Convert cached_html"
 msgstr ""
 
@@ -4348,9 +4345,6 @@
 msgid "Converted successfully %d pages"
 msgstr "檔案已經成功地上傳."
 
-msgid "Sorry. Access Restrictions not yet implemented"
-msgstr "抱歉. 存取限制尚未被實作."
-
 msgid "E-mail"
 msgstr "E-mail"
 
@@ -6334,6 +6328,9 @@
 msgid "Edit this page"
 msgstr "編輯此頁面"
 
+#~ msgid "Sorry. Access Restrictions not yet implemented"
+#~ msgstr "抱歉. 存取限制尚未被實作."
+
 #~ msgid "SteveWainstead"
 #~ msgstr "SteveWainstead"
 
Modified: trunk/locale/sv/LC_MESSAGES/phpwiki.mo
===================================================================
(Binary files differ)
Modified: trunk/locale/zh/LC_MESSAGES/phpwiki.mo
===================================================================
(Binary files differ)
Modified: trunk/locale/zh/LC_MESSAGES/phpwiki.php
===================================================================
--- trunk/locale/zh/LC_MESSAGES/phpwiki.php	2013年04月16日 15:31:08 UTC (rev 8757)
+++ trunk/locale/zh/LC_MESSAGES/phpwiki.php	2013年04月16日 15:32:54 UTC (rev 8758)
@@ -503,7 +503,6 @@
 $locale["Sorry! You must wait at least 20 minutes until you can vote again!"] = "抱歉! 你必須等至少 20 分鐘才能在投票!";
 $locale["Sorry, no dynamic DB Session support."] = "抱歉,無動態 DB Session 支援.";
 $locale["Sorry, this version of PHP cannot create PNG image files."] = "抱歉, 這個版本的 PHP 無法建立 PNG 圖片檔.";
-$locale["Sorry. Access Restrictions not yet implemented"] = "抱歉. 存取限制尚未被實作.";
 $locale["Sort by %s"] = "以 %s 排序";
 $locale["Sound Score"] = "音節得分";
 $locale["Spelling Score"] = "拼字得分";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8757
 http://sourceforge.net/p/phpwiki/code/8757
Author: vargenau
Date: 2013年04月16日 15:31:08 +0000 (2013年4月16日)
Log Message:
-----------
No underscore for private functions
Modified Paths:
--------------
 trunk/lib/plugin/AnalyseAccessLogSql.php
Modified: trunk/lib/plugin/AnalyseAccessLogSql.php
===================================================================
--- trunk/lib/plugin/AnalyseAccessLogSql.php	2013年04月16日 15:18:12 UTC (rev 8756)
+++ trunk/lib/plugin/AnalyseAccessLogSql.php	2013年04月16日 15:31:08 UTC (rev 8757)
@@ -24,7 +24,7 @@
 * access log. This information may be sensitive and so is limited to
 * administrator access only.
 *
- * To add a new query, see _getQueryString()
+ * To add a new query, see getQueryString()
 */
 class WikiPlugin_AnalyseAccessLogSql
 extends WikiPlugin
@@ -53,11 +53,11 @@
 * ."WHERE referer IS NOT NULL "
 * .$where_conditions
 */
- private function _getQueryString(&$args)
+ private function getQueryString(&$args)
 {
 // extract any parametrised conditions from the arguments,
 // in particular, how much history to select
- $where_conditions = $this->_getWhereConditions($args);
+ $where_conditions = $this->getWhereConditions($args);
 
 // get the correct name for the table
 //FIXME is there a more correct way to do this?
@@ -90,7 +90,7 @@
 break;
 case 'external_referers':
 $args['local_referrers'] = 'false';
- $where_conditions = $this->_getWhereConditions($args);
+ $where_conditions = $this->getWhereConditions($args);
 if ($where_conditions <> '')
 $where_conditions = 'WHERE ' . $where_conditions . ' ';
 $query = "SELECT "
@@ -224,7 +224,7 @@
 
 /** Honeypot for xgettext. Those strings are translated dynamically.
 */
- private function _locale_dummy()
+ private function locale_dummy()
 {
 $dummy = array(
 // mode caption
@@ -279,13 +279,13 @@
 if (!ACCESS_LOG_SQL) // need read access
 return HTML::p(_("The SQL_ACCESS_LOG is not enabled."));
 
- // set aside a place for the table headers, see _setHeaders()
+ // set aside a place for the table headers, see setHeaders()
 $this->_theadrow = HTML::tr();
 $this->_headerSet = false;
 
 $args = $this->getArgs($argstr, $request);
 
- $query = $this->_getQueryString($args);
+ $query = $this->getQueryString($args);
 
 if ($query == '')
 return HTML::p(sprintf(_("Unrecognised parameter 'mode=%s'"),
@@ -294,17 +294,17 @@
 // get the data back.
 // Note that this must be done before the final generation ofthe table,
 // otherwise the headers will not be ready
- $tbody = $this->_getQueryResults($query, $dbi);
+ $tbody = $this->getQueryResults($query, $dbi);
 
 return HTML::table(array('border' => 1,
 'cellspacing' => 1,
 'cellpadding' => 1),
- HTML::caption(HTML::h1(HTML::br(), $this->_getCaption($args))),
+ HTML::caption(HTML::h1(HTML::br(), $this->getCaption($args))),
 HTML::thead($this->_theadrow),
 $tbody);
 }
 
- private function _getQueryResults($query, &$dbi)
+ private function getQueryResults($query, &$dbi)
 {
 $queryResult = $dbi->genericSqlIter($query);
 if (!$queryResult) {
@@ -312,7 +312,7 @@
 } else {
 $tbody = HTML::tbody();
 while ($row = $queryResult->next()) {
- $this->_setHeaders($row);
+ $this->setHeaders($row);
 $tr = HTML::tr();
 foreach ($row as $value) {
 // output a '-' for empty values, otherwise the table looks strange
@@ -325,7 +325,7 @@
 return $tbody;
 }
 
- private function _setHeaders($row)
+ private function setHeaders($row)
 {
 if (!$this->_headerSet) {
 foreach ($row as $key => $value) {
@@ -335,7 +335,7 @@
 }
 }
 
- private function _getWhereConditions(&$args)
+ private function getWhereConditions(&$args)
 {
 $where_conditions = '';
 
@@ -389,7 +389,7 @@
 return $where_conditions;
 }
 
- private function _getCaption(&$args)
+ private function getCaption(&$args)
 {
 $caption = $args['caption'];
 if ($caption == '')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月16日 15:18:16
Revision: 8756
 http://sourceforge.net/p/phpwiki/code/8756
Author: vargenau
Date: 2013年04月16日 15:18:12 +0000 (2013年4月16日)
Log Message:
-----------
access-restrictions are not implemented
Modified Paths:
--------------
 trunk/TODO
 trunk/lib/plugin/WikiAdminUtils.php
 trunk/locale/de/pgsrc/PhpWikiSystemverwalten
 trunk/locale/fr/pgsrc/AdministrationDePhpWiki
 trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki
 trunk/pgsrc/Help%2FWikiAdminUtilsPlugin
 trunk/pgsrc/PhpWikiAdministration
Modified: trunk/TODO
===================================================================
--- trunk/TODO	2013年04月16日 14:57:15 UTC (rev 8755)
+++ trunk/TODO	2013年04月16日 15:18:12 UTC (rev 8756)
@@ -88,7 +88,6 @@
 * plugin\SearchHighlight
 * logfile stuff:
 * plugin\RecentReferrers
-* WikiAccessRestrictions
 * SpamAssassinIntegration
 
 already done lately:
Modified: trunk/lib/plugin/WikiAdminUtils.php
===================================================================
--- trunk/lib/plugin/WikiAdminUtils.php	2013年04月16日 14:57:15 UTC (rev 8755)
+++ trunk/lib/plugin/WikiAdminUtils.php	2013年04月16日 15:18:12 UTC (rev 8756)
@@ -26,7 +26,6 @@
 purge-cache
 purge-bad-pagenames
 purge-empty-pages
-access-restrictions
 email-verification
 convert-cached-html
 db-check
@@ -116,7 +115,6 @@
 $labels = array('purge-cache' => _("Purge Markup Cache"),
 'purge-bad-pagenames' => _("Purge all Pages With Invalid Names"),
 'purge-empty-pages' => _("Purge all empty, unreferenced Pages"),
- 'access-restrictions' => _("Access Restrictions"),
 'email-verification' => _("E-mail address confirmation"),
 'convert-cached-html' => _("Convert cached_html"),
 'db-check' => _("DB Check"),
@@ -231,13 +229,6 @@
 return $dbh->_backend->rebuild($args);
 }
 
- //TODO: We need a separate plugin for this.
- // Too many options.
- private function _do_access_restrictions(&$request, &$args)
- {
- return _("Sorry. Access Restrictions not yet implemented");
- }
-
 // pagelist with enable/disable button
 private function _do_email_verification(&$request, &$args)
 {
Modified: trunk/locale/de/pgsrc/PhpWikiSystemverwalten
===================================================================
--- trunk/locale/de/pgsrc/PhpWikiSystemverwalten	2013年04月16日 14:57:15 UTC (rev 8755)
+++ trunk/locale/de/pgsrc/PhpWikiSystemverwalten	2013年04月16日 15:18:12 UTC (rev 8756)
@@ -1,4 +1,4 @@
-Date: Mon, 4 Feb 2013 10:43:14 +0000
+Date: 2013年4月16日 17:14:25 +0000
 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
 Content-Type: application/x-phpwiki;
 pagename=PhpWikiSystemverwalten;
@@ -12,7 +12,7 @@
 nicht funktionieren.//
 
 <<CreateToc jshide||=1 with_toclink||=1 >>
-----
+
 == Seiten Explorer ==
 
 Entweder wähle zuerst die Seiten und führe dann die Aktion aus:
@@ -43,16 +43,6 @@
 label="E-Mail Verifizierung"
 >>
 
-Zugangsbeschränkungen (disabled):
-
- To prevent from robots eating all possible ressources in a short time, blocking from certain IP's or not-well-behaving user agents can be defined below. See PhpWiki:HowToBlockRobots and MeatBall:SurgeProtector. _Note: Not yet enabled._
-
- <<WikiAdminUtils
- action=access-restrictions
- label="Zugangsbeschränkungen"
- >>
-
-----------
 == Aufräumen ==
 
 Räume die Wiki SandKiste auf. Hiermit kann man die Seite mit der
@@ -60,7 +50,6 @@
 
 [ SandKiste löschen | phpwiki:?action=loadfile&overwrite=1&source=locale/de/pgsrc/SandKiste ].
 
-----------
 == Speichern und Archivieren ==
 
 ==== Backup der PhpWiki Datenbank als ZIP Dateien
@@ -90,8 +79,6 @@
 Verzeichnis geschrieben. Beachte, dass evtl. deine Benutzerrechte dazu
 ausreichen müssen.
 
------------
-
 == Wiederherstellen ==
 
 Wenn du ein PhpWiki Backup besitzt, kannst du dieses hier wieder
@@ -127,8 +114,6 @@
 
 ;:[ Upgrade | phpwiki:HomePage?action=upgrade ]
 
------------
-
 == Daten-Format ==
 
 Momentan werden alle Seiten dateiweise als MIME (RFC:2045) E-Mail's
@@ -159,8 +144,6 @@
 Verzeichnis oder Einzeldateien als MIME E-Mail, Serialisiert oder
 einfache Textdatei.)
 
-----
-
 == Seiten als XHTML Dateien speichern ==
 
 <<WikiForm action=dumphtml>>
@@ -171,8 +154,6 @@
 Das XHTML-Verzeichnis kann auch heruntergeladen werden als eine
 **[XHTML ZIP Datei | phpwiki:?action=ziphtml]**.
 
-----
-
 == PhpWiki Internals ==
 
 These are here mostly for debugging purposes (at least, that's the
Modified: trunk/locale/fr/pgsrc/AdministrationDePhpWiki
===================================================================
--- trunk/locale/fr/pgsrc/AdministrationDePhpWiki	2013年04月16日 14:57:15 UTC (rev 8755)
+++ trunk/locale/fr/pgsrc/AdministrationDePhpWiki	2013年04月16日 15:18:12 UTC (rev 8756)
@@ -1,4 +1,4 @@
-Date: Mon, 8 Apr 2013 15:13:02 +0000
+Date: 2013年4月16日 17:14:34 +0000
 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
 Content-Type: application/x-phpwiki;
 pagename=AdministrationDePhpWiki;
@@ -14,7 +14,6 @@
 
 <<CreateToc jshide||=1 with_toclink||=1>>
 
-----
 == Explorateur de pages
 
 D'abord choississez une ou plusieurs pages et ensuite définissez une action :
@@ -36,14 +35,6 @@
 label="Vérification de l'email"
 >>
 
-Pour prévenir des robots occupant toutes les ressources en un court temps, bloquant depuis certaines adresses IP ou ayant un mauvais comportement, les agents utilisateurs peuvent être définis ci-dessous. Voir PhpWiki:HowToBlockRobots et MeatBall:SurgeProtector. _Note : Pas encore activé._
-
- <<WikiAdminUtils
- action=access-restrictions
- label="Restrictions d'accès"
- >>
-
-----------
 == Nettoyage
 
 Le [BacÀSable] Wiki est très simple à nettoyer. Vous pouvez ici le restaurer 
@@ -51,7 +42,6 @@
 
 [ Râtisser le BacÀSable | phpwiki:?action=loadfile&source=pgsrc/SandBox ]
 
-----------
 == Sauvegarde des pages
 
 === Récupération des fichiers
@@ -72,7 +62,6 @@
 
 La version la plus récente de chaque page sera écrite dans le répertoire, à raison d'une page par fichier. Votre serveur doit avoir le droit d'écrire dans le répertoire !
 
------------
 == Restauration
 
 Si vous avez sauvegardé un ensemble de pages de PhpWiki, vous pouvez les recharger ici. Notez que les pages dans votre base de données seront écrasées ; ainsi, si vous avez récupéré votre [PageAccueil], lorsque vous le rechargerez depuis ce formulaire, il écrasera celui qui est actuellement dans votre base de données. Si vous désirez être sélectif, effacez juste du répertoire (ou du fichier zip) les pages que vous ne voulez pas charger.
@@ -97,7 +86,6 @@
 
 ;:[ Mise à jour | phpwiki:HomePage?action=upgrade ]
 
------------
 == Format des fichiers
 
 Actuellement, les pages sont stockées, une par fichier, sous forme de messages électronique (RFC:822) MIME (RFC:2045). Le content-type utilisé est ''application/x-phpwiki'', et les métadonnées de chaque page sont codées dans les paramètres du content-type. Si le fichier contient plusieurs versions d'une page, il aura comme type ''multipart/mixed'', et contiendra plusieurs sous-parties, chacune de type ''application/x-phpwiki''. Le corps du message contient le texte de la page.
@@ -114,8 +102,6 @@
 
 Les fonctions de téléchargement et de chargement reconnaîtront automatiquement chacun de ces trois types de fichiers, et les géreront convenablement.
 
-----
-
 == Sauvegarde des pages au format xhtml
 
 <<WikiForm action=dumphtml>>
@@ -124,8 +110,6 @@
 
 La collection de fichiers XHTML peut aussi être téléchargée comme une **[XHTML ZIP Snapshot | phpwiki:?action=ziphtml]**.
 
-----
-
 == Le coeur de phpwiki
 
 Tout ceci surtout pour des débogages (au moins c'est ce que j'espère).
Modified: trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki
===================================================================
--- trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki	2013年04月16日 14:57:15 UTC (rev 8755)
+++ trunk/locale/it/pgsrc/AmministrazioneDiPhpWiki	2013年04月16日 15:18:12 UTC (rev 8756)
@@ -1,4 +1,4 @@
-Date: Fri, 4 Feb 2011 16:36:44 +0000
+Date: 2013年4月16日 17:14:15 +0000
 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
 Content-Type: application/x-phpwiki;
 pagename=AmministrazioneDiPhpWiki;
@@ -34,14 +34,6 @@
 label="Email Verification"
 >>
 
-To prevent from robots eating all possible ressources in a short time, blocking from certain IP's or not-well-behaving user agents can be defined below. See PhpWiki:HowToBlockRobots and MeatBall:SurgeProtector. _Note: Not yet enabled._
-
- <<WikiAdminUtils
- action=access-restrictions
- label="Access Restrictions"
- >>
-
-----
 == Cleanup
 
 A Wiki SandBox is very easy to clean. Here you can restore it to
@@ -49,8 +41,6 @@
 
 [Rake the SandBox|phpwiki:?action=loadfile&source=pgsrc/SandBox].
 
-----------
-
 == Making Snapshots or Backups
 
 === ZIP files of database
@@ -79,7 +69,6 @@
 directory, one page per file. Your server must have write permissions
 to the directory!
 
------------
 == Restoring
 
 If you have dumped a set of pages from PhpWiki, you can reload them
@@ -114,7 +103,6 @@
 
 ;:[ Upgrade | phpwiki:HomePage?action=upgrade ]
 
------------
 
 == Format of the files
 
@@ -143,7 +131,6 @@
 The upload and load functions will automatically recognize each of
 these three types of files, and handle them accordingly.
 
-----
 
 == Dump pages as XHTML
 
@@ -157,7 +144,6 @@
 The XHTML file collection can also be downloaded as an
 **[XHTML ZIP Snapshot | phpwiki:?action=ziphtml]**.
 
-----
 
 == Phpwiki Internals
 
@@ -195,5 +181,4 @@
 label="Exorcise WikiDB"
 >>
 
-----
 PhpWikiDocumentation
Modified: trunk/pgsrc/Help%2FWikiAdminUtilsPlugin
===================================================================
--- trunk/pgsrc/Help%2FWikiAdminUtilsPlugin	2013年04月16日 14:57:15 UTC (rev 8755)
+++ trunk/pgsrc/Help%2FWikiAdminUtilsPlugin	2013年04月16日 15:18:12 UTC (rev 8756)
@@ -1,4 +1,4 @@
-Date: Fri, 7 Dec 2012 15:16:29 +0000
+Date: 2013年4月16日 17:13:59 +0000
 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
 Content-Type: application/x-phpwiki;
 pagename=Help%2FWikiAdminUtilsPlugin;
@@ -14,7 +14,6 @@
 <<WikiAdminUtils action="purge-cache" >>
 <<WikiAdminUtils action="purge-bad-pagenames" >>
 <<WikiAdminUtils action="purge-empty-pages" >>
-<<WikiAdminUtils action="access-restrictions" >>
 <<WikiAdminUtils action="email-verification" >>
 <<WikiAdminUtils action="convert-cached-html" >>
 <<WikiAdminUtils action="db-check" >>
@@ -30,7 +29,7 @@
 ! Default value
 |-
 | **action**
-| Valid action are: "purge-cache", "purge-bad-pagenames", "purge-empty-pages", "access-restrictions", "email-verification", "convert-cached-html", "db-check" and "db-rebuild"
+| Valid action are: "purge-cache", "purge-bad-pagenames", "purge-empty-pages", "email-verification", "convert-cached-html", "db-check" and "db-rebuild"
 | //None//
 |-
 | **label**
Modified: trunk/pgsrc/PhpWikiAdministration
===================================================================
--- trunk/pgsrc/PhpWikiAdministration	2013年04月16日 14:57:15 UTC (rev 8755)
+++ trunk/pgsrc/PhpWikiAdministration	2013年04月16日 15:18:12 UTC (rev 8756)
@@ -1,4 +1,4 @@
-Date: Fri, 6 Apr 2012 16:15:14 +0000
+Date: 2013年4月16日 17:13:59 +0000
 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
 Content-Type: application/x-phpwiki;
 pagename=PhpWikiAdministration;
@@ -44,14 +44,6 @@
 
 <<WikiAdminUtils action=email-verification label="Email Verification">>
 
-=== Access Restrictions (disabled) ===
-
-To prevent from robots eating all possible ressources in a short time, blocking from certain IPs
-or not-well-behaving user agents can be defined below. See [[PhpWiki:HowToBlockRobots]] and
-[[MeatBall:SurgeProtector]]. //Note: Not yet enabled.//
-
-<<WikiAdminUtils action=access-restrictions label="Access Restrictions">>
-
 == Cleanup ==
 
 A Wiki SandBox is very easy to clean. Here you can restore it to
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <var...@us...> - 2013年04月16日 14:57:17
Revision: 8755
 http://sourceforge.net/p/phpwiki/code/8755
Author: vargenau
Date: 2013年04月16日 14:57:15 +0000 (2013年4月16日)
Log Message:
-----------
private --> protected
Modified Paths:
--------------
 trunk/lib/plugin/BlogArchives.php
 trunk/lib/plugin/BlogJournal.php
 trunk/lib/plugin/WikiBlog.php
 trunk/lib/plugin/WikiFormRich.php
Modified: trunk/lib/plugin/BlogArchives.php
===================================================================
--- trunk/lib/plugin/BlogArchives.php	2013年04月16日 14:55:33 UTC (rev 8754)
+++ trunk/lib/plugin/BlogArchives.php	2013年04月16日 14:57:15 UTC (rev 8755)
@@ -88,7 +88,7 @@
 // unset($pagelist->_columns['pagename']);
 
 if (!empty($args['month'])) {
- $prefix = $parent . $this->_blogPrefix('wikiblog') . SUBPAGE_SEPARATOR . $args['month'];
+ $prefix = $parent . $this->blogPrefix('wikiblog') . SUBPAGE_SEPARATOR . $args['month'];
 $pages = $dbi->titleSearch(new TextSearchQuery("^" . $prefix, true, 'posix'));
 $html = HTML::ul();
 while ($page = $pages->next()) {
@@ -98,7 +98,7 @@
 $html->pushContent(HTML::li(WikiLink($page, 'known', $rev->get('summary'))));
 }
 if (!$args['noheader'])
- return HTML(HTML::h3(sprintf(_("Blog Entries for %s:"), $this->_monthTitle($args['month']))),
+ return HTML(HTML::h3(sprintf(_("Blog Entries for %s:"), $this->monthTitle($args['month']))),
 $html);
 else
 return $html;
@@ -118,11 +118,11 @@
 $mon = $blog['month'];
 if (empty($months[$mon]))
 $months[$mon] =
- array('title' => $this->_monthTitle($mon),
+ array('title' => $this->monthTitle($mon),
 'num' => 1,
 'month' => $mon,
 'link' => WikiURL($basepage,
- $this->_nonDefaultArgs(array('month' => $mon))));
+ $this->nonDefaultArgs(array('month' => $mon))));
 else
 $months[$mon]['num']++;
 }
Modified: trunk/lib/plugin/BlogJournal.php
===================================================================
--- trunk/lib/plugin/BlogJournal.php	2013年04月16日 14:55:33 UTC (rev 8754)
+++ trunk/lib/plugin/BlogJournal.php	2013年04月16日 14:57:15 UTC (rev 8755)
@@ -79,7 +79,7 @@
 }
 $parent = (empty($args['user']) ? '' : $args['user'] . SUBPAGE_SEPARATOR);
 
- $prefix = $base = $parent . $this->_blogPrefix('wikiblog');
+ $prefix = $base = $parent . $this->blogPrefix('wikiblog');
 if ($args['month'])
 $prefix .= (SUBPAGE_SEPARATOR . $args['month']);
 $pages = $dbi->titleSearch(new TextSearchQuery("^" . $prefix . SUBPAGE_SEPARATOR, true, 'posix'));
@@ -100,7 +100,7 @@
 if (!$i)
 return HTML(HTML::h3(_("No Blog Entries")), $html);
 if (!$args['noheader'])
- return HTML(HTML::h3(sprintf(_("Blog Entries for %s:"), $this->_monthTitle($args['month']))),
+ return HTML(HTML::h3(sprintf(_("Blog Entries for %s:"), $this->monthTitle($args['month']))),
 $html);
 else
 return $html;
Modified: trunk/lib/plugin/WikiBlog.php
===================================================================
--- trunk/lib/plugin/WikiBlog.php	2013年04月16日 14:55:33 UTC (rev 8754)
+++ trunk/lib/plugin/WikiBlog.php	2013年04月16日 14:57:15 UTC (rev 8755)
@@ -196,7 +196,7 @@
 
 $saved = false;
 if ($type != 'wikiforum')
- $pagename = $this->_blogPrefix($type);
+ $pagename = $this->blogPrefix($type);
 else {
 $pagename = substr($summary, 0, 12);
 if (empty($pagename)) {
@@ -286,14 +286,14 @@
 if ($args['order'] == 'reverse')
 $blogs = array_reverse($blogs);
 
- $name = $this->_blogPrefix($type);
+ $name = $this->blogPrefix($type);
 if (!$args['noheader'])
 $html->pushContent(HTML::h4(array('class' => "$type-heading"),
 fmt("%s on %s:", $name, WikiLink($basepage))));
 foreach ($blogs as $rev) {
 if (!$rev->get($type)) {
 // Ack! this is an old-style blog with data ctime in page meta-data.
- $content = $this->_transformOldFormatBlog($rev, $type);
+ $content = $this->transformOldFormatBlog($rev, $type);
 } else {
 $content = $rev->getTransformedContent($type);
 }
@@ -306,7 +306,7 @@
 
 // Subpage for the basepage. All Blogs/Forum/Comment entries are
 // Subpages under this pagename, to find them faster.
- private function _blogPrefix($type = 'wikiblog')
+ protected function blogPrefix($type = 'wikiblog')
 {
 if ($type == 'wikiblog')
 $basepage = "Blog";
@@ -317,7 +317,7 @@
 return $basepage;
 }
 
- private function _transformOldFormatBlog($rev, $type = 'wikiblog')
+ private function transformOldFormatBlog($rev, $type = 'wikiblog')
 {
 $page = $rev->getPage();
 $metadata = array();
@@ -334,7 +334,7 @@
 {
 $prefix = (empty($basepage)
 ? ""
- : $basepage . SUBPAGE_SEPARATOR) . $this->_blogPrefix($type);
+ : $basepage . SUBPAGE_SEPARATOR) . $this->blogPrefix($type);
 $pages = $dbi->titleSearch(new TextSearchQuery('"' . $prefix . '"', true, 'none'));
 
 $blogs = array();
@@ -370,7 +370,7 @@
 }
 
 // "2004-12" => "December 2004"
- private function _monthTitle($month)
+ protected function monthTitle($month)
 {
 if (!$month) $month = strftime("%Y-%m");
 //list($year,$mon) = explode("-",$month);
@@ -378,7 +378,7 @@
 }
 
 // "UserName/Blog/2004-12-13/12:28:50+01:00" => array('month' => "2004-12", ...)
- private function _blog($rev_or_page)
+ protected function _blog($rev_or_page)
 {
 $pagename = $rev_or_page->getName();
 if (preg_match("/^(.*Blog)\/(\d\d\d\d-\d\d)-(\d\d)\/(.*)/", $pagename, $m))
@@ -386,14 +386,14 @@
 return array('pagename' => $pagename,
 // page (list pages per month) or revision (list months)?
 //'title' => isa($rev_or_page,'WikiDB_PageRevision') ? $rev_or_page->get('summary') : '',
- //'monthtitle' => $this->_monthTitle($month),
+ //'monthtitle' => $this->monthTitle($month),
 'month' => $month,
 'day' => $day,
 'time' => $time,
 'prefix' => $prefix);
 }
 
- private function _nonDefaultArgs($args)
+ protected function nonDefaultArgs($args)
 {
 return array_diff_assoc($args, $this->getDefaultArguments());
 }
Modified: trunk/lib/plugin/WikiFormRich.php
===================================================================
--- trunk/lib/plugin/WikiFormRich.php	2013年04月16日 14:55:33 UTC (rev 8754)
+++ trunk/lib/plugin/WikiFormRich.php	2013年04月16日 14:57:15 UTC (rev 8755)
@@ -238,7 +238,7 @@
 if (empty($input['value']) and ($s = $request->getArg($input['name'])))
 $input['value'] = $s;
 if (!empty($input['autocomplete']))
- $this->_doautocomplete($form, $inputtype, $input, $input['value']);
+ $this->do_autocomplete($form, $inputtype, $input, $input['value']);
 if ($nobr)
 $form->pushContent($text, $nbsp, HTML::input($input));
 else
@@ -252,7 +252,7 @@
 unset($input['type']);
 if (is_string($values)) $values = explode(",", $values);
 if (!empty($input['autocomplete']))
- $this->_doautocomplete($form, $inputtype, $input, $values);
+ $this->do_autocomplete($form, $inputtype, $input, $values);
 $select = HTML::select($input);
 if (empty($values) and ($s = $request->getArg($input['name']))) {
 $select->pushContent(HTML::option(array('value' => $s), $s));
@@ -318,7 +318,7 @@
 return $form;
 }
 
- private function _doautocomplete(&$form, $inputtype, &$input, &$values)
+ private function do_autocomplete(&$form, $inputtype, &$input, &$values)
 {
 global $request;
 $input['class'] = "dropdown";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8754
 http://sourceforge.net/p/phpwiki/code/8754
Author: vargenau
Date: 2013年04月16日 14:55:33 +0000 (2013年4月16日)
Log Message:
-----------
No underscore for private parse_row function
Modified Paths:
--------------
 trunk/lib/plugin/WikicreoleTable.php
Modified: trunk/lib/plugin/WikicreoleTable.php
===================================================================
--- trunk/lib/plugin/WikicreoleTable.php	2013年04月16日 14:42:30 UTC (rev 8753)
+++ trunk/lib/plugin/WikicreoleTable.php	2013年04月16日 14:55:33 UTC (rev 8754)
@@ -89,7 +89,7 @@
 $line = substr($line, 0, -1);
 }
 if ($line[0] == '|') {
- $table[] = $this->_parse_row($line);
+ $table[] = $this->parse_row($line);
 }
 }
 
@@ -135,7 +135,7 @@
 return $htmltable;
 }
 
- private function _parse_row($line)
+ private function parse_row($line)
 {
 $brkt_link = "\\[ .*? [^]\s] .*? \\]";
 $cell_content = "(?: [^[] | " . ESCAPE_CHAR . "\\[ | $brkt_link )*?";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
5 messages has been excluded from this view by a project administrator.

Showing results of 43

1 2 > >> (Page 1 of 2)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /