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
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <var...@us...> - 2015-01-28 16:36:36
|
Revision: 9498 http://sourceforge.net/p/phpwiki/code/9498 Author: vargenau Date: 2015-01-28 16:36:33 +0000 (Wed, 28 Jan 2015) Log Message: ----------- Use smart quotes Modified Paths: -------------- trunk/locale/de/LC_MESSAGES/phpwiki.mo trunk/locale/es/LC_MESSAGES/phpwiki.mo trunk/locale/fr/LC_MESSAGES/phpwiki.mo trunk/locale/it/LC_MESSAGES/phpwiki.mo trunk/locale/ja/LC_MESSAGES/phpwiki.mo trunk/locale/nl/LC_MESSAGES/phpwiki.mo trunk/locale/po/de.po trunk/locale/po/es.po trunk/locale/po/fr.po trunk/locale/po/it.po trunk/locale/po/ja.po trunk/locale/po/nl.po trunk/locale/po/phpwiki.pot trunk/locale/po/sv.po trunk/locale/po/zh.po trunk/locale/sv/LC_MESSAGES/phpwiki.mo trunk/locale/zh/LC_MESSAGES/phpwiki.mo Modified: trunk/locale/de/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/es/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/fr/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/it/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/ja/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/nl/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/po/de.po =================================================================== --- trunk/locale/po/de.po 2015-01-28 16:32:33 UTC (rev 9497) +++ trunk/locale/po/de.po 2015-01-28 16:36:33 UTC (rev 9498) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:46+0100\n" +"POT-Creation-Date: 2015-01-28 17:35+0100\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." @@ -5736,7 +5736,7 @@ msgid "Date Format" msgstr "Datumsformat" -msgid "Show relative dates using 'Today' and 'Yesterday'" +msgid "Show relative dates using “Today” and “Yesterday”" msgstr "Datum mit relativen Bezeichnungen, wie »Heute« und »Gestern«" msgid "Update Preferences" Modified: trunk/locale/po/es.po =================================================================== --- trunk/locale/po/es.po 2015-01-28 16:32:33 UTC (rev 9497) +++ trunk/locale/po/es.po 2015-01-28 16:36:33 UTC (rev 9498) @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:46+0100\n" +"POT-Creation-Date: 2015-01-28 17:35+0100\n" "PO-Revision-Date: 2000-02-01 00:50-0500\n" "Last-Translator: Pablo Roca <pr...@cl...>\n" "Language-Team: \n" @@ -5588,7 +5588,7 @@ msgid "Date Format" msgstr "" -msgid "Show relative dates using 'Today' and 'Yesterday'" +msgid "Show relative dates using “Today” and “Yesterday”" msgstr "" msgid "Update Preferences" Modified: trunk/locale/po/fr.po =================================================================== --- trunk/locale/po/fr.po 2015-01-28 16:32:33 UTC (rev 9497) +++ trunk/locale/po/fr.po 2015-01-28 16:36:33 UTC (rev 9498) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:46+0100\n" +"POT-Creation-Date: 2015-01-28 17:35+0100\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." @@ -5673,7 +5673,7 @@ msgid "Date Format" msgstr "Format de la date" -msgid "Show relative dates using 'Today' and 'Yesterday'" +msgid "Show relative dates using “Today” and “Yesterday”" msgstr "Afficher des dates relatives avec « Aujourd'hui » et « Hier »" msgid "Update Preferences" Modified: trunk/locale/po/it.po =================================================================== --- trunk/locale/po/it.po 2015-01-28 16:32:33 UTC (rev 9497) +++ trunk/locale/po/it.po 2015-01-28 16:36:33 UTC (rev 9498) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:46+0100\n" +"POT-Creation-Date: 2015-01-28 17:35+0100\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" @@ -5532,7 +5532,7 @@ msgid "Date Format" msgstr "Formato della Data" -msgid "Show relative dates using 'Today' and 'Yesterday'" +msgid "Show relative dates using “Today” and “Yesterday”" msgstr "" msgid "Update Preferences" Modified: trunk/locale/po/ja.po =================================================================== --- trunk/locale/po/ja.po 2015-01-28 16:32:33 UTC (rev 9497) +++ trunk/locale/po/ja.po 2015-01-28 16:36:33 UTC (rev 9498) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:46+0100\n" +"POT-Creation-Date: 2015-01-28 17:35+0100\n" "PO-Revision-Date: 2003-06-07 09:01+0900\n" "Last-Translator: Tadashi Jokagi <web...@el...>\n" "Language-Team: LANGUAGE <LL...@li...>\n" @@ -5702,7 +5702,7 @@ msgid "Date Format" msgstr "データフォーマット" -msgid "Show relative dates using 'Today' and 'Yesterday'" +msgid "Show relative dates using “Today” and “Yesterday”" msgstr "" msgid "Update Preferences" Modified: trunk/locale/po/nl.po =================================================================== --- trunk/locale/po/nl.po 2015-01-28 16:32:33 UTC (rev 9497) +++ trunk/locale/po/nl.po 2015-01-28 16:36:33 UTC (rev 9498) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:46+0100\n" +"POT-Creation-Date: 2015-01-28 17:35+0100\n" "PO-Revision-Date: 2000-09-30 02:23+0200\n" "Last-Translator: Jan Nieuwenhuizen <ja...@gn...>\n" "Language-Team: Dutch <nl...@li...>\n" @@ -5524,7 +5524,7 @@ msgid "Date Format" msgstr "" -msgid "Show relative dates using 'Today' and 'Yesterday'" +msgid "Show relative dates using “Today” and “Yesterday”" msgstr "" msgid "Update Preferences" Modified: trunk/locale/po/phpwiki.pot =================================================================== --- trunk/locale/po/phpwiki.pot 2015-01-28 16:32:33 UTC (rev 9497) +++ trunk/locale/po/phpwiki.pot 2015-01-28 16:36:33 UTC (rev 9498) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki-1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:46+0100\n" +"POT-Creation-Date: 2015-01-28 17:35+0100\n" "PO-Revision-Date: 2002-12-14 17:51-0500\n" "Last-Translator: Reini Urban <ru...@us...>\n" "Language-Team: LANGUAGE <LL...@li...>\n" @@ -5516,7 +5516,7 @@ msgid "Date Format" msgstr "" -msgid "Show relative dates using 'Today' and 'Yesterday'" +msgid "Show relative dates using “Today” and “Yesterday”" msgstr "" msgid "Update Preferences" Modified: trunk/locale/po/sv.po =================================================================== --- trunk/locale/po/sv.po 2015-01-28 16:32:33 UTC (rev 9497) +++ trunk/locale/po/sv.po 2015-01-28 16:36:33 UTC (rev 9498) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:46+0100\n" +"POT-Creation-Date: 2015-01-28 17:35+0100\n" "PO-Revision-Date: 2001-01-27 01:58+0200\n" "Last-Translator: Jon Åslund <jo...@he...>\n" "Language-Team: \n" @@ -5517,7 +5517,7 @@ msgid "Date Format" msgstr "" -msgid "Show relative dates using 'Today' and 'Yesterday'" +msgid "Show relative dates using “Today” and “Yesterday”" msgstr "" msgid "Update Preferences" Modified: trunk/locale/po/zh.po =================================================================== --- trunk/locale/po/zh.po 2015-01-28 16:32:33 UTC (rev 9497) +++ trunk/locale/po/zh.po 2015-01-28 16:36:33 UTC (rev 9498) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:46+0100\n" +"POT-Creation-Date: 2015-01-28 17:35+0100\n" "PO-Revision-Date: 2004-04-21 10:08+0800\n" "Last-Translator: DruryL <dr...@us...>\n" "Language-Team: DruryL <dr...@us...>\n" @@ -5801,7 +5801,7 @@ msgid "Date Format" msgstr "日期格式" -msgid "Show relative dates using 'Today' and 'Yesterday'" +msgid "Show relative dates using “Today” and “Yesterday”" msgstr "使用'今天'和'昨天'來顯示相對日期." msgid "Update Preferences" Modified: trunk/locale/sv/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/zh/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-28 16:32:36
|
Revision: 9497 http://sourceforge.net/p/phpwiki/code/9497 Author: vargenau Date: 2015-01-28 16:32:33 +0000 (Wed, 28 Jan 2015) Log Message: ----------- Better MonoBook layout Modified Paths: -------------- trunk/themes/MonoBook/monobook.css Modified: trunk/themes/MonoBook/monobook.css =================================================================== --- trunk/themes/MonoBook/monobook.css 2015-01-28 16:05:33 UTC (rev 9496) +++ trunk/themes/MonoBook/monobook.css 2015-01-28 16:32:33 UTC (rev 9497) @@ -1266,7 +1266,7 @@ position: absolute; /*z-index: 1;*/ /* important! */ - top: 1.3em; + top: 1.8em; left: 11.5em; margin: 0; white-space: nowrap; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-28 16:05:36
|
Revision: 9496 http://sourceforge.net/p/phpwiki/code/9496 Author: vargenau Date: 2015-01-28 16:05:33 +0000 (Wed, 28 Jan 2015) Log Message: ----------- Check user Modified Paths: -------------- trunk/lib/WikiTheme.php Modified: trunk/lib/WikiTheme.php =================================================================== --- trunk/lib/WikiTheme.php 2015-01-28 16:04:43 UTC (rev 9495) +++ trunk/lib/WikiTheme.php 2015-01-28 16:05:33 UTC (rev 9496) @@ -1637,12 +1637,18 @@ */ global $request; - if (!$UserCalPageTitle) - $UserCalPageTitle = $request->_user->getId() . - '/' . _("Calendar"); - if (!$UserCalPageTitle) - $UserCalPageTitle = (BLOG_EMPTY_DEFAULT_PREFIX ? '' - : ($request->_user->getId() . '/')) . "Blog"; + if (!$UserCalPageTitle) { + if (!empty($request->_user)) { + $UserCalPageTitle = $request->_user->getId().'/'._("Calendar"); + } + } + if (!$UserCalPageTitle) { + if (BLOG_EMPTY_DEFAULT_PREFIX) { + $UserCalPageTitle = "Blog"; + } else { + $UserCalPageTitle = $request->_user->getId() . '/' . "Blog"; + } + } return $UserCalPageTitle; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-28 16:04:55
|
Revision: 9495 http://sourceforge.net/p/phpwiki/code/9495 Author: vargenau Date: 2015-01-28 16:04:43 +0000 (Wed, 28 Jan 2015) Log Message: ----------- Better print style sheet for MonoBook Modified Paths: -------------- trunk/themes/MonoBook/commonPrint.css Modified: trunk/themes/MonoBook/commonPrint.css =================================================================== --- trunk/themes/MonoBook/commonPrint.css 2015-01-27 10:47:46 UTC (rev 9494) +++ trunk/themes/MonoBook/commonPrint.css 2015-01-28 16:04:43 UTC (rev 9495) @@ -182,9 +182,7 @@ .toctoggle, div#f-poweredbyico, div#f-copyrightico, -li#f-viewcount, -li#f-about, -li#f-disclaimer, +ul#f-list, div#xhtml-validator, li#pt-logout, li#pt-login, @@ -210,7 +208,7 @@ } #footer { - border: 1px solid black; + border: none; } h1, h2, h3, h4, h5, h6 { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-27 10:47:48
|
Revision: 9494 http://sourceforge.net/p/phpwiki/code/9494 Author: vargenau Date: 2015-01-27 10:47:46 +0000 (Tue, 27 Jan 2015) 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/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 Modified: trunk/locale/de/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/es/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/fr/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/it/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/ja/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/nl/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/po/de.po =================================================================== --- trunk/locale/po/de.po 2015-01-27 10:27:03 UTC (rev 9493) +++ trunk/locale/po/de.po 2015-01-27 10:47:46 UTC (rev 9494) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:25+0100\n" +"POT-Creation-Date: 2015-01-27 11:46+0100\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." @@ -877,7 +877,7 @@ msgstr "um eine gezippte Sicherung von allen Wiki Seiten herunterzuladen" msgid "download a HTML ZIP dump from this wiki" -msgstr "um eine gezippte Sicherung von allen Wiki Seiten herunterzuladen" +msgstr "um alle HTML Seiten als Zipdatei von diesem Wiki herunterzuladen" msgid "use" msgstr "benutze" Modified: trunk/locale/po/es.po =================================================================== --- trunk/locale/po/es.po 2015-01-27 10:27:03 UTC (rev 9493) +++ trunk/locale/po/es.po 2015-01-27 10:47:46 UTC (rev 9494) @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:25+0100\n" +"POT-Creation-Date: 2015-01-27 11:46+0100\n" "PO-Revision-Date: 2000-02-01 00:50-0500\n" "Last-Translator: Pablo Roca <pr...@cl...>\n" "Language-Team: \n" @@ -858,7 +858,7 @@ msgstr "para descargar un cierre relámpago descargue de este wiki" msgid "download a HTML ZIP dump from this wiki" -msgstr "para descargar un cierre relámpago descargue de este wiki" +msgstr "para descargar un HTML relampague la descarga de este wiki" msgid "use" msgstr "" Modified: trunk/locale/po/fr.po =================================================================== --- trunk/locale/po/fr.po 2015-01-27 10:27:03 UTC (rev 9493) +++ trunk/locale/po/fr.po 2015-01-27 10:47:46 UTC (rev 9494) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:25+0100\n" +"POT-Creation-Date: 2015-01-27 11:46+0100\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." Modified: trunk/locale/po/it.po =================================================================== --- trunk/locale/po/it.po 2015-01-27 10:27:03 UTC (rev 9493) +++ trunk/locale/po/it.po 2015-01-27 10:47:46 UTC (rev 9494) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:25+0100\n" +"POT-Creation-Date: 2015-01-27 11:46+0100\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" Modified: trunk/locale/po/ja.po =================================================================== --- trunk/locale/po/ja.po 2015-01-27 10:27:03 UTC (rev 9493) +++ trunk/locale/po/ja.po 2015-01-27 10:47:46 UTC (rev 9494) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:25+0100\n" +"POT-Creation-Date: 2015-01-27 11:46+0100\n" "PO-Revision-Date: 2003-06-07 09:01+0900\n" "Last-Translator: Tadashi Jokagi <web...@el...>\n" "Language-Team: LANGUAGE <LL...@li...>\n" Modified: trunk/locale/po/nl.po =================================================================== --- trunk/locale/po/nl.po 2015-01-27 10:27:03 UTC (rev 9493) +++ trunk/locale/po/nl.po 2015-01-27 10:47:46 UTC (rev 9494) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:25+0100\n" +"POT-Creation-Date: 2015-01-27 11:46+0100\n" "PO-Revision-Date: 2000-09-30 02:23+0200\n" "Last-Translator: Jan Nieuwenhuizen <ja...@gn...>\n" "Language-Team: Dutch <nl...@li...>\n" Modified: trunk/locale/po/phpwiki.pot =================================================================== --- trunk/locale/po/phpwiki.pot 2015-01-27 10:27:03 UTC (rev 9493) +++ trunk/locale/po/phpwiki.pot 2015-01-27 10:47:46 UTC (rev 9494) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki-1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:25+0100\n" +"POT-Creation-Date: 2015-01-27 11:46+0100\n" "PO-Revision-Date: 2002-12-14 17:51-0500\n" "Last-Translator: Reini Urban <ru...@us...>\n" "Language-Team: LANGUAGE <LL...@li...>\n" Modified: trunk/locale/po/sv.po =================================================================== --- trunk/locale/po/sv.po 2015-01-27 10:27:03 UTC (rev 9493) +++ trunk/locale/po/sv.po 2015-01-27 10:47:46 UTC (rev 9494) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:25+0100\n" +"POT-Creation-Date: 2015-01-27 11:46+0100\n" "PO-Revision-Date: 2001-01-27 01:58+0200\n" "Last-Translator: Jon Åslund <jo...@he...>\n" "Language-Team: \n" Modified: trunk/locale/po/zh.po =================================================================== --- trunk/locale/po/zh.po 2015-01-27 10:27:03 UTC (rev 9493) +++ trunk/locale/po/zh.po 2015-01-27 10:47:46 UTC (rev 9494) @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PhpWiki 1.5.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-27 11:25+0100\n" +"POT-Creation-Date: 2015-01-27 11:46+0100\n" "PO-Revision-Date: 2004-04-21 10:08+0800\n" "Last-Translator: DruryL <dr...@us...>\n" "Language-Team: DruryL <dr...@us...>\n" @@ -5252,7 +5252,7 @@ msgstr "無法開啟 ZIP 檔案 “%s” 進行讀取" msgid "Unexpected EOF in ZIP file" -msgstr "ZIP 檔案中存有不被期待的 EOF." +msgstr "ZIP 檔案中存有不被期待的 EOF" #, php-format msgid "[%d] See [%s]" Modified: trunk/locale/sv/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) Modified: trunk/locale/zh/LC_MESSAGES/phpwiki.mo =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-27 10:27:10
|
Revision: 9493 http://sourceforge.net/p/phpwiki/code/9493 Author: vargenau Date: 2015-01-27 10:27:03 +0000 (Tue, 27 Jan 2015) Log Message: ----------- Use upper case for ZIP and HTML Modified Paths: -------------- trunk/lib/WikiPluginCached.php trunk/lib/main.php trunk/lib/ziplib.php Modified: trunk/lib/WikiPluginCached.php =================================================================== --- trunk/lib/WikiPluginCached.php 2015-01-27 10:26:36 UTC (rev 9492) +++ trunk/lib/WikiPluginCached.php 2015-01-27 10:27:03 UTC (rev 9493) @@ -840,7 +840,7 @@ // cache empty, but image maps have to be created _inline_ // so ask user to reload wiki page instead if (($plugin->getPluginType() & PLUGIN_CACHED_MAP) && PLUGIN_CACHED_FORCE_SYNCMAP) { - $errortext = _("Image map expired. Reload wiki page to recreate its html part."); + $errortext = _("Image map expired. Reload wiki page to recreate its HTML part."); $this->printError($errorformat, $errortext); } Modified: trunk/lib/main.php =================================================================== --- trunk/lib/main.php 2015-01-27 10:26:36 UTC (rev 9492) +++ trunk/lib/main.php 2015-01-27 10:27:03 UTC (rev 9493) @@ -564,7 +564,7 @@ $actionDescriptions = array('browse' => _("view this page"), 'diff' => _("diff this page"), - 'dumphtml' => _("dump html pages"), + 'dumphtml' => _("dump HTML pages"), 'dumpserial' => _("dump serial pages"), 'edit' => _("edit this page"), 'rename' => _("rename this page"), @@ -575,13 +575,13 @@ 'purge' => _("purge this page"), 'remove' => _("remove this page"), 'unlock' => _("unlock this page"), - 'upload' => _("upload a zip dump"), + 'upload' => _("upload a ZIP dump"), 'verify' => _("verify the current action"), 'viewsource' => _("view the source of this page"), 'xmlrpc' => _("access this wiki via XML-RPC"), 'soap' => _("access this wiki via SOAP"), - 'zip' => _("download a zip dump from this wiki"), - 'ziphtml' => _("download a html zip dump from this wiki") + 'zip' => _("download a ZIP dump from this wiki"), + 'ziphtml' => _("download a HTML ZIP dump from this wiki") ); } if (in_array($action, array_keys($actionDescriptions))) @@ -608,7 +608,7 @@ $disallowedActionDescriptions = array('browse' => _("Browsing pages"), 'diff' => _("Diffing pages"), - 'dumphtml' => _("Dumping html pages"), + 'dumphtml' => _("Dumping HTML pages"), 'dumpserial' => _("Dumping serial pages"), 'edit' => _("Editing pages"), 'revert' => _("Reverting to a previous version of pages"), @@ -618,13 +618,13 @@ 'purge' => _("Purging pages"), 'remove' => _("Removing pages"), 'unlock' => _("Unlocking pages"), - 'upload' => _("Uploading zip dumps"), + 'upload' => _("Uploading ZIP dumps"), 'verify' => _("Verify the current action"), 'viewsource' => _("Viewing the source of pages"), 'xmlrpc' => _("XML-RPC access"), 'soap' => _("SOAP access"), - 'zip' => _("Downloading zip dumps"), - 'ziphtml' => _("Downloading html zip dumps") + 'zip' => _("Downloading ZIP dumps"), + 'ziphtml' => _("Downloading HTML ZIP dumps") ); } if (in_array($action, array_keys($disallowedActionDescriptions))) Modified: trunk/lib/ziplib.php =================================================================== --- trunk/lib/ziplib.php 2015-01-27 10:26:36 UTC (rev 9492) +++ trunk/lib/ziplib.php 2015-01-27 10:27:03 UTC (rev 9493) @@ -322,7 +322,7 @@ if ($zipfile) { $this->zipfile = $zipfile; if (!($this->fp = fopen($zipfile, "rb"))) { - trigger_error(sprintf(_("Can't open zip file “%s” for reading"), + trigger_error(sprintf(_("Can't open ZIP file “%s” for reading"), $zipfile), E_USER_ERROR); } } @@ -333,11 +333,11 @@ if ($this->fp) { $chunk = fread($this->fp, $nbytes); if (strlen($chunk) != $nbytes) - trigger_error(_("Unexpected EOF in zip file"), E_USER_ERROR); + trigger_error(_("Unexpected EOF in ZIP file"), E_USER_ERROR); return $chunk; } elseif ($this->buf) { if (strlen($this->buf) < $nbytes) - trigger_error(_("Unexpected EOF in zip file"), E_USER_ERROR); + trigger_error(_("Unexpected EOF in ZIP file"), E_USER_ERROR); $chunk = substr($this->buf, 0, $nbytes); $this->buf = substr($this->buf, $nbytes); return $chunk; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-27 09:49:29
|
Revision: 9491 http://sourceforge.net/p/phpwiki/code/9491 Author: vargenau Date: 2015-01-27 09:49:26 +0000 (Tue, 27 Jan 2015) Log Message: ----------- Allow unlimited memory for ZIP dump Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2015-01-26 16:40:23 UTC (rev 9490) +++ trunk/lib/loadsave.php 2015-01-27 09:49:26 UTC (rev 9491) @@ -231,6 +231,8 @@ $include_empty = true; } + // We may need much memory for the dump + ini_set("memory_limit", -1); $zip = new ZipWriter("Created by PhpWiki " . PHPWIKI_VERSION, $zipname); /* ignore fatals in plugins */ @@ -488,7 +490,11 @@ } else { $zipname = "wikihtml.zip"; } + + // We may need much memory for the dump + ini_set("memory_limit", -1); $zip = new ZipWriter("Created by PhpWiki " . PHPWIKI_VERSION, $zipname); + $dbi =& $request->_dbi; $thispage = $request->getArg('pagename'); // for "Return to ..." if ($pages = $request->getArg('pages')) { // which pagenames This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-26 16:40:26
|
Revision: 9490 http://sourceforge.net/p/phpwiki/code/9490 Author: vargenau Date: 2015-01-26 16:40:23 +0000 (Mon, 26 Jan 2015) Log Message: ----------- PageHistory: by default, limit number of versions to display to 100 Modified Paths: -------------- trunk/lib/plugin/PageHistory.php trunk/pgsrc/Help%2FPageHistoryPlugin trunk/soapscripts/createpage trunk/soapscripts/createpagefromfile trunk/soapscripts/fulltextsearch trunk/soapscripts/getallpagenames trunk/soapscripts/getcurrentrevision trunk/soapscripts/getpage trunk/soapscripts/getpagemeta trunk/soapscripts/getpagerevision trunk/soapscripts/getpluginsynopsis trunk/soapscripts/listlinks trunk/soapscripts/listplugins trunk/soapscripts/listrelations trunk/soapscripts/recentchanges trunk/soapscripts/replacestring trunk/soapscripts/titlesearch Modified: trunk/lib/plugin/PageHistory.php =================================================================== --- trunk/lib/plugin/PageHistory.php 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/lib/plugin/PageHistory.php 2015-01-26 16:40:23 UTC (rev 9490) @@ -27,7 +27,7 @@ { public $_itemcount; - function _PageHistory_PageRevisionIter($rev_iter, $params) + function __construct($rev_iter, $params) { $this->_iter = $rev_iter; @@ -284,7 +284,7 @@ return array('days' => false, 'show_minor' => true, 'show_major' => true, - 'limit' => 0, + 'limit' => 100, 'page' => '[pagename]', 'format' => false); } Modified: trunk/pgsrc/Help%2FPageHistoryPlugin =================================================================== --- trunk/pgsrc/Help%2FPageHistoryPlugin 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/pgsrc/Help%2FPageHistoryPlugin 2015-01-26 16:40:23 UTC (rev 9490) @@ -1,4 +1,4 @@ -Date: Tue, 7 Oct 2014 19:05:57 +0000 +Date: Mon, 26 Jan 2015 17:36:01 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.5.2) Content-Type: application/x-phpwiki; pagename=Help%2FPageHistoryPlugin; @@ -38,8 +38,8 @@ | true |- | **limit** -| -| +| Number of versions to display +| 100 |- | **format** | Modified: trunk/soapscripts/createpage =================================================================== --- trunk/soapscripts/createpage 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/createpage 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/createpagefromfile =================================================================== --- trunk/soapscripts/createpagefromfile 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/createpagefromfile 2015-01-26 16:40:23 UTC (rev 9490) @@ -27,7 +27,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/fulltextsearch =================================================================== --- trunk/soapscripts/fulltextsearch 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/fulltextsearch 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/getallpagenames =================================================================== --- trunk/soapscripts/getallpagenames 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/getallpagenames 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/getcurrentrevision =================================================================== --- trunk/soapscripts/getcurrentrevision 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/getcurrentrevision 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/getpage =================================================================== --- trunk/soapscripts/getpage 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/getpage 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/getpagemeta =================================================================== --- trunk/soapscripts/getpagemeta 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/getpagemeta 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/getpagerevision =================================================================== --- trunk/soapscripts/getpagerevision 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/getpagerevision 2015-01-26 16:40:23 UTC (rev 9490) @@ -21,7 +21,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/getpluginsynopsis =================================================================== --- trunk/soapscripts/getpluginsynopsis 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/getpluginsynopsis 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/listlinks =================================================================== --- trunk/soapscripts/listlinks 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/listlinks 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/listplugins =================================================================== --- trunk/soapscripts/listplugins 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/listplugins 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/listrelations =================================================================== --- trunk/soapscripts/listrelations 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/listrelations 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/recentchanges =================================================================== --- trunk/soapscripts/recentchanges 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/recentchanges 2015-01-26 16:40:23 UTC (rev 9490) @@ -21,7 +21,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/replacestring =================================================================== --- trunk/soapscripts/replacestring 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/replacestring 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } Modified: trunk/soapscripts/titlesearch =================================================================== --- trunk/soapscripts/titlesearch 2015-01-26 13:05:02 UTC (rev 9489) +++ trunk/soapscripts/titlesearch 2015-01-26 16:40:23 UTC (rev 9490) @@ -17,7 +17,7 @@ $password = readline("Password: "); $credentials = base64_encode($login.':'.$password); if ($fp = fopen($phpwiki, 'w')) { - fprintf($fp, "%s:%s\n", $login, $password); + fprintf($fp, "%s:%s", $login, $password); fclose($fp); chmod($phpwiki, 0600); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-26 13:05:14
|
Revision: 9489 http://sourceforge.net/p/phpwiki/code/9489 Author: vargenau Date: 2015-01-26 13:05:02 +0000 (Mon, 26 Jan 2015) Log Message: ----------- Remove obsolete comment Modified Paths: -------------- trunk/lib/plugin/FullTextSearch.php Modified: trunk/lib/plugin/FullTextSearch.php =================================================================== --- trunk/lib/plugin/FullTextSearch.php 2015-01-22 14:54:52 UTC (rev 9488) +++ trunk/lib/plugin/FullTextSearch.php 2015-01-26 13:05:02 UTC (rev 9489) @@ -33,11 +33,6 @@ * Only uploaded: textfiles, PDF, HTML, DOC, XLS, ... or * External apps: xapian-omages seems to be the better than lucene, * lucene.net, swish, nakamazu, ... - * - * See http://sf.net/tracker/index.php?aid=927395&group_id=6121&atid=106121 - * Wordaround to let the dead locks occur somewhat later: - * Increase the memory limit of PHP from 8 MB to 32 MB - * php.ini: memory_limit = 32 MB */ class WikiPlugin_FullTextSearch extends WikiPlugin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-22 14:55:01
|
Revision: 9488 http://sourceforge.net/p/phpwiki/code/9488 Author: vargenau Date: 2015-01-22 14:54:52 +0000 (Thu, 22 Jan 2015) Log Message: ----------- Add soapscripts Added Paths: ----------- trunk/soapscripts/ trunk/soapscripts/README trunk/soapscripts/createpage trunk/soapscripts/createpagefromfile trunk/soapscripts/fulltextsearch trunk/soapscripts/getallpagenames trunk/soapscripts/getcurrentrevision trunk/soapscripts/getpage trunk/soapscripts/getpagemeta trunk/soapscripts/getpagerevision trunk/soapscripts/getpluginsynopsis trunk/soapscripts/listlinks trunk/soapscripts/listplugins trunk/soapscripts/listrelations trunk/soapscripts/recentchanges trunk/soapscripts/replacestring trunk/soapscripts/titlesearch Added: trunk/soapscripts/README =================================================================== --- trunk/soapscripts/README (rev 0) +++ trunk/soapscripts/README 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,16 @@ +The following scripts are available as examples of SOAP use: +* createpage +* createpagefromfile +* fulltextsearch +* getallpagenames +* getcurrentrevision +* getpage +* getpagemeta +* getpagerevision +* getpluginsynopsis +* listlinks +* listplugins +* listrelations +* recentchanges +* replacestring +* titlesearch Added: trunk/soapscripts/createpage =================================================================== --- trunk/soapscripts/createpage (rev 0) +++ trunk/soapscripts/createpage 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,33 @@ +#!/usr/bin/php +<?php +if (count($argv) != 3) { + echo "usage: $argv[0] pagename content\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + echo $client->doSavePage($argv[1], $argv[2], $credentials); + echo "\n"; +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/createpage ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/createpagefromfile =================================================================== --- trunk/soapscripts/createpagefromfile (rev 0) +++ trunk/soapscripts/createpagefromfile 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,43 @@ +#!/usr/bin/php +<?php +if (count($argv) != 3) { + echo "usage: $argv[0] pagename filename\n"; + exit; +} + +if (!file_exists($argv[2])) { + echo "error: file $argv[2] does not exist\n"; + exit; +} + +if (!is_readable($argv[2])) { + echo "error: file $argv[2] is not readable\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + echo $client->doSavePage($argv[1], file_get_contents($argv[2]), $credentials); + echo "\n"; +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/createpagefromfile ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/fulltextsearch =================================================================== --- trunk/soapscripts/fulltextsearch (rev 0) +++ trunk/soapscripts/fulltextsearch 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,35 @@ +#!/usr/bin/php +<?php +if (count($argv) != 2) { + echo "usage: $argv[0] term-to-search\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + $pages = $client->doFullTextSearch($argv[1], $credentials); + foreach ($pages as $page) { + echo $page['pagename']."\n"; + } +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/fulltextsearch ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/getallpagenames =================================================================== --- trunk/soapscripts/getallpagenames (rev 0) +++ trunk/soapscripts/getallpagenames 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,36 @@ +#!/usr/bin/php +<?php +if (count($argv) != 1) { + echo "usage: $argv[0]\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + $all_pages = $client->getAllPagenames($argv[1]); + for ($i = 0; $i < count($all_pages); $i++) { + echo $all_pages[$i]['pagename']; + echo "\n"; + } +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/getallpagenames ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/getcurrentrevision =================================================================== --- trunk/soapscripts/getcurrentrevision (rev 0) +++ trunk/soapscripts/getcurrentrevision 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,33 @@ +#!/usr/bin/php +<?php +if (count($argv) != 2) { + echo "usage: $argv[0] pagename\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + echo $client->getCurrentRevision($argv[1], $credentials); + echo "\n"; +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/getcurrentrevision ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/getpage =================================================================== --- trunk/soapscripts/getpage (rev 0) +++ trunk/soapscripts/getpage 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,33 @@ +#!/usr/bin/php +<?php +if (count($argv) != 2) { + echo "usage: $argv[0] pagename\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + echo $client->getPageContent($argv[1], $credentials); + echo "\n"; +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/getpage ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/getpagemeta =================================================================== --- trunk/soapscripts/getpagemeta (rev 0) +++ trunk/soapscripts/getpagemeta 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,35 @@ +#!/usr/bin/php +<?php +if (count($argv) != 2) { + echo "usage: $argv[0] pagename\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + $pagemeta = $client->getPageMeta($argv[1], $credentials); + foreach ($pagemeta as $key => $value) { + echo "$key: $value\n"; + } +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/getpagemeta ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/getpagerevision =================================================================== --- trunk/soapscripts/getpagerevision (rev 0) +++ trunk/soapscripts/getpagerevision 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,37 @@ +#!/usr/bin/php +<?php +if (count($argv) != 3) { + echo "usage: $argv[0] pagename revision\n"; + exit; +} +if (!is_numeric($argv[2])) { + echo "usage: revision must be an integer\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + echo $client->getPageRevision($argv[1], $argv[2], $credentials); + echo "\n"; +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/getpagerevision ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/getpluginsynopsis =================================================================== --- trunk/soapscripts/getpluginsynopsis (rev 0) +++ trunk/soapscripts/getpluginsynopsis 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,33 @@ +#!/usr/bin/php +<?php +if (count($argv) != 2) { + echo "usage: $argv[0] plugin-name\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + echo $client->getPluginSynopsis($argv[1], $credentials); + echo "\n"; +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/getpluginsynopsis ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/listlinks =================================================================== --- trunk/soapscripts/listlinks (rev 0) +++ trunk/soapscripts/listlinks 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,35 @@ +#!/usr/bin/php +<?php +if (count($argv) != 2) { + echo "usage: $argv[0] pagename\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + $links = $client->listLinks($argv[1], $credentials); + foreach ($links as $link) { + echo $link['pagename']."\n"; + } +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/listlinks ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/listplugins =================================================================== --- trunk/soapscripts/listplugins (rev 0) +++ trunk/soapscripts/listplugins 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,36 @@ +#!/usr/bin/php +<?php +if (count($argv) != 1) { + echo "usage: $argv[0]\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + $plugins = $client->listPlugins($credentials); + for ($i = 0; $i < count($plugins); $i++) { + echo $plugins[$i]; + echo "\n"; + } +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/listplugins ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/listrelations =================================================================== --- trunk/soapscripts/listrelations (rev 0) +++ trunk/soapscripts/listrelations 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,36 @@ +#!/usr/bin/php +<?php +if (count($argv) != 1) { + echo "usage: $argv[0]\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + $relations = $client->listRelations($credentials); + for ($i = 0; $i < count($relations); $i++) { + echo $relations[$i]; + echo "\n"; + } +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/listrelations ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/recentchanges =================================================================== --- trunk/soapscripts/recentchanges (rev 0) +++ trunk/soapscripts/recentchanges 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,45 @@ +#!/usr/bin/php +<?php +if (count($argv) == 1) { + $limit = 20; +} elseif (count($argv) == 2) { + $limit = $argv[0]; +} else { + echo "usage: $argv[0] [limit]\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + $changes = $client->getRecentChanges($limit, $credentials); + foreach ($changes as $change) { + echo "Pagename: ".$change['pagename']."\n"; + echo "Last modified: ".$change['lastModified']."\n"; + echo "Author: ".$change['author']."\n"; + echo "Summary: ".$change['summary']."\n"; + echo "Version: ".$change['version']."\n"; + echo "\n"; + } + +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/recentchanges ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/replacestring =================================================================== --- trunk/soapscripts/replacestring (rev 0) +++ trunk/soapscripts/replacestring 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,37 @@ +#!/usr/bin/php +<?php +if (count($argv) != 4) { + echo "usage: $argv[0] pagename search replace\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + $old_content = $client->getPageContent($argv[1], $credentials); + $new_content = str_replace($argv[2], $argv[3], $old_content); + if ($new_content != $old_content) { + echo $client->doSavePage($argv[1], $new_content, $credentials); + echo "\n"; + } +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/replacestring ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: trunk/soapscripts/titlesearch =================================================================== --- trunk/soapscripts/titlesearch (rev 0) +++ trunk/soapscripts/titlesearch 2015-01-22 14:54:52 UTC (rev 9488) @@ -0,0 +1,35 @@ +#!/usr/bin/php +<?php +if (count($argv) != 2) { + echo "usage: $argv[0] term-to-search\n"; + exit; +} + +try { + $client = new SoapClient("http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl"); +} catch (SoapFault $fault) { + die($fault->faultstring); +} + +$phpwiki = getenv("HOME")."/.phpwiki"; +if (!file_exists($phpwiki)) { + $login = readline("Login: "); + $password = readline("Password: "); + $credentials = base64_encode($login.':'.$password); + if ($fp = fopen($phpwiki, 'w')) { + fprintf($fp, "%s:%s\n", $login, $password); + fclose($fp); + chmod($phpwiki, 0600); + } +} else { + $credentials = base64_encode(file_get_contents($phpwiki)); +} + +try { + $pages = $client->doTitleSearch($argv[1], $credentials); + foreach ($pages as $page) { + echo $page['pagename']."\n"; + } +} catch (SoapFault $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} Property changes on: trunk/soapscripts/titlesearch ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-21 16:26:42
|
Revision: 9487 http://sourceforge.net/p/phpwiki/code/9487 Author: vargenau Date: 2015-01-21 16:26:40 +0000 (Wed, 21 Jan 2015) Log Message: ----------- Display WDSL in browser Modified Paths: -------------- trunk/SOAP.php Modified: trunk/SOAP.php =================================================================== --- trunk/SOAP.php 2015-01-21 16:07:37 UTC (rev 9486) +++ trunk/SOAP.php 2015-01-21 16:26:40 UTC (rev 9487) @@ -355,13 +355,26 @@ } return $links->asArray(); } - } $server = new SoapServer('PhpWiki.wsdl'); $server->setClass('PhpWikiSoapServer'); -$server->handle(); +if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD']=='POST') { + $server->handle(); +} elseif (isset($_SERVER['QUERY_STRING'])) { + // Return the WSDL + $wsdl = @implode('', @file('PhpWiki.wsdl')); + if (strlen($wsdl) > 1) { + header("Content-type: text/xml"); + echo $wsdl; + } else { + header("Status: 500 Internal Server Error"); + header("Content-type: text/plain"); + echo "HTTP/1.0 500 Internal Server Error"; + } +} + // 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...> - 2015-01-21 16:07:45
|
Revision: 9486 http://sourceforge.net/p/phpwiki/code/9486 Author: vargenau Date: 2015-01-21 16:07:37 +0000 (Wed, 21 Jan 2015) Log Message: ----------- Sort result in getAllPagenames Modified Paths: -------------- trunk/SOAP.php Modified: trunk/SOAP.php =================================================================== --- trunk/SOAP.php 2015-01-20 13:41:47 UTC (rev 9485) +++ trunk/SOAP.php 2015-01-21 16:07:37 UTC (rev 9486) @@ -145,6 +145,7 @@ while ($page = $page_iter->next()) { $pages[] = array('pagename' => $page->_pagename); } + sort($pages); return $pages; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-20 13:41:50
|
Revision: 9485 http://sourceforge.net/p/phpwiki/code/9485 Author: vargenau Date: 2015-01-20 13:41:47 +0000 (Tue, 20 Jan 2015) Log Message: ----------- Make credentials a string Modified Paths: -------------- trunk/PhpWiki.wsdl trunk/SOAP.php Modified: trunk/PhpWiki.wsdl =================================================================== --- trunk/PhpWiki.wsdl 2015-01-19 16:20:47 UTC (rev 9484) +++ trunk/PhpWiki.wsdl 2015-01-20 13:41:47 UTC (rev 9485) @@ -9,12 +9,12 @@ <message name="getPageContent"> <part name="pagename" type="xsd:string"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="getPageRevision"> <part name="pagename" type="xsd:string"/> <part name="revision" type="xsd:double"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="getPageContentResponse"> <part name="content" type="xsd:string"/> @@ -22,7 +22,7 @@ <message name="getCurrentRevision"> <part name="pagename" type="xsd:string"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="getRevisionResponse"> <part name="revision" type="xsd:double"/> @@ -30,7 +30,7 @@ <message name="getPageMeta"> <part name="pagename" type="xsd:string"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="getPageMetaResponse"> <part name="meta" type="typens:PageMetadata"/> @@ -38,59 +38,59 @@ <message name="doSavePage"> <part name="pagename" type="xsd:string"/> <part name="content" type="xsd:string"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="doSavePageResponse"> <part name="successcode" type="xsd:int"/> </message> <message name="getAllPagenames"> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="getBackLinks"> <part name="pagename" type="xsd:string"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="doTitleSearch"> <part name="query" type="xsd:string"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="doFullTextSearch"> <part name="query" type="xsd:string"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="getRecentChanges"> <part name="limit" type="xsd:int"/> <part name="since" type="xsd:int"/> <part name="include_minor" type="xsd:int"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="listLinks"> <part name="pagename" type="xsd:string"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="listPlugins"> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="callPlugin"> <part name="pluginname" type="xsd:string"/> <part name="pluginargs" type="xsd:string"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="getPluginSynopsis"> <part name="pluginname" type="xsd:string"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="listRelations"> <part name="option" type="xsd:int"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="linkSearch"> <part name="linktype" type="xsd:string"/> <part name="search" type="xsd:string"/> <part name="pages" type="xsd:string"/> <part name="relation" type="xsd:string"/> - <part name="credentials" type="typens:Credentials"/> + <part name="credentials" type="xsd:string"/> </message> <message name="PagenameListResponse"> @@ -133,12 +133,6 @@ <part name="version" type="xsd:int"/> </xsd:all> </xsd:complexType> - <xsd:complexType name="Credentials"> - <xsd:all> - <xsd:element name="username" type="xsd:string"/> - <xsd:element name="password" type="xsd:string"/> - </xsd:all> - </xsd:complexType> <xsd:complexType name="PageMetadata"> <xsd:all> <xsd:element name="createdby" type="xsd:string"/> Modified: trunk/SOAP.php =================================================================== --- trunk/SOAP.php 2015-01-19 16:20:47 UTC (rev 9484) +++ trunk/SOAP.php 2015-01-20 13:41:47 UTC (rev 9485) @@ -26,32 +26,40 @@ function checkCredentials(&$server, &$credentials, $access, $pagename) { - /* - // check the "Authorization: Basic '.base64_encode("$this->username:$this->password").'\r\n'" header - if (isset($server->header['Authorization'])) { - $line = base64_decode(str_replace("Basic ", "", trim($server->header['Authorization']))); - list($credentials['username'], $credentials['password']) = explode(':', $line); - } else { - if (!isset($_SERVER)) - $_SERVER =& $GLOBALS['HTTP_SERVER_VARS']; + // check the "Authorization: Basic '.base64_encode("$this->username:$this->password").'\r\n'" header + if (isset($server->header['Authorization'])) { + $line = base64_decode(str_replace("Basic ", "", trim($server->header['Authorization']))); + list($username, $password) = explode(':', $line); + } elseif ($credentials && is_string($credentials) && base64_decode($credentials, true)) { + list($username, $password) = explode(':', base64_decode($credentials)); + } else { + if (!isset($_SERVER)) + $_SERVER =& $GLOBALS['HTTP_SERVER_VARS']; // TODO: where in the header is the client IP - if (!isset($credentials['username'])) { + if (!isset($username)) { if (isset($_SERVER['REMOTE_ADDR'])) - $credentials['username'] = $_SERVER['REMOTE_ADDR']; + $username = $_SERVER['REMOTE_ADDR']; elseif (isset($GLOBALS['REMOTE_ADDR'])) - $credentials['username'] = $GLOBALS['REMOTE_ADDR']; else - $credentials['username'] = $server->host; + $username = $GLOBALS['REMOTE_ADDR']; + else + $username = $server->host; } - } - if (!isset($credentials['password'])) $credentials['password'] = ''; + } + if (!isset($password)) + $password = ''; - global $request; - $request->_user = WikiUser($credentials['username']); - $request->_user->AuthCheck(array('userid' => $credentials['username'], - 'passwd' => $credentials['password'])); - if (!mayAccessPage($access, $pagename)) - $server->fault(401, '', "no permission"); - */ + global $request; + $request->_user = WikiUser($username); + $request->_user->AuthCheck(array('userid' => $username, 'passwd' => $password)); + + if (!mayAccessPage($access, $pagename)) { + $server->fault(401, "no permission, " + . "access=$access, " + . "pagename=$pagename, " + . "username=$username, " + ); + } + $credentials = array('username' => $username, 'password' => $password); } class PhpWikiSoapServer This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-19 16:20:55
|
Revision: 9484 http://sourceforge.net/p/phpwiki/code/9484 Author: vargenau Date: 2015-01-19 16:20:47 +0000 (Mon, 19 Jan 2015) Log Message: ----------- Update meta Modified Paths: -------------- trunk/SOAP.php Modified: trunk/SOAP.php =================================================================== --- trunk/SOAP.php 2015-01-16 14:37:26 UTC (rev 9483) +++ trunk/SOAP.php 2015-01-19 16:20:47 UTC (rev 9484) @@ -66,9 +66,15 @@ $dbi = WikiDB::open($GLOBALS['DBParams']); $page = $dbi->getPage($pagename); $current = $page->getCurrentRevision(); - $meta = $current->_data; - $meta['summary'] = sprintf(_("SOAP Request %s", $credentials['username'])); // from user or IP ? $version = $current->getVersion(); + $userid = $credentials['username']; + $summary = sprintf(_("SOAP Request by %s"), $userid); + $meta = array('author' => $userid, + 'author_id' => $userid, + 'summary' => $summary, + 'mtime' => time(), + 'pagetype' => 'wikitext' + ); return $page->save($content, $version + 1, $meta); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-16 16:09:10
|
Revision: 9481 http://sourceforge.net/p/phpwiki/code/9481 Author: vargenau Date: 2015-01-16 13:21:18 +0000 (Fri, 16 Jan 2015) Log Message: ----------- Reformat code Modified Paths: -------------- trunk/PhpWiki.wsdl Modified: trunk/PhpWiki.wsdl =================================================================== --- trunk/PhpWiki.wsdl 2015-01-16 10:17:29 UTC (rev 9480) +++ trunk/PhpWiki.wsdl 2015-01-16 13:21:18 UTC (rev 9481) @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="UTF-8" ?> - <definitions name="Wiki" - targetNamespace="http://phpwiki.sourceforge.net/PhpWiki.wsdl" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:tns="http://phpwiki.sourceforge.net/PhpWiki.wsdl" - xmlns:xsd="http://www.w3.org/1999/XMLSchema" - xmlns="http://schemas.xmlsoap.org/wsdl/" - > +<definitions name="Wiki" + targetNamespace="http://phpwiki.sourceforge.net/PhpWiki.wsdl" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:tns="http://phpwiki.sourceforge.net/PhpWiki.wsdl" + xmlns:xsd="http://www.w3.org/1999/XMLSchema" + xmlns="http://schemas.xmlsoap.org/wsdl/" + > <message name="getPageContent"> <part name="pagename" type="xsd:string"/> @@ -109,45 +109,45 @@ <part name="content" type="xsd:string"/> </message> - <xsd:complexType name="PagenameList"> - <xsd:all> - <part name="pagename" type="xsd:string"/> - </xsd:all> - </xsd:complexType> - <xsd:complexType name="RdfTripleList"> - <xsd:all> - <part name="pagename" type="xsd:string"/> - <part name="relation" type="xsd:string"/> - <part name="target" type="xsd:string"/> - </xsd:all> - </xsd:complexType> - <xsd:complexType name="StringList"> - <xsd:all type="xsd:string" /> - </xsd:complexType> - <xsd:complexType name="RecentChangesList"> - <xsd:all> - <part name="pagename" type="xsd:string"/> - <part name="lastModified" type="xsd:int"/> - <part name="author" type="xsd:string"/> - <part name="summary" type="xsd:string"/> - <part name="version" type="xsd:int"/> - </xsd:all> - </xsd:complexType> - <xsd:complexType name="Credentials"> - <xsd:all> - <xsd:element name="username" type="xsd:string"/> - <xsd:element name="password" type="xsd:string"/> - </xsd:all> - </xsd:complexType> - <xsd:complexType name="PageMetadata"> - <xsd:all> - <xsd:element name="createdby" type="xsd:string"/> - <xsd:element name="lastauthor" type="xsd:string"/> - <xsd:element name="ctime" type="xsd:int"/> - <xsd:element name="mtime" type="xsd:int"/> - <xsd:element name="atime" type="xsd:int"/> - </xsd:all> - </xsd:complexType> + <xsd:complexType name="PagenameList"> + <xsd:all> + <part name="pagename" type="xsd:string"/> + </xsd:all> + </xsd:complexType> + <xsd:complexType name="RdfTripleList"> + <xsd:all> + <part name="pagename" type="xsd:string"/> + <part name="relation" type="xsd:string"/> + <part name="target" type="xsd:string"/> + </xsd:all> + </xsd:complexType> + <xsd:complexType name="StringList"> + <xsd:all type="xsd:string" /> + </xsd:complexType> + <xsd:complexType name="RecentChangesList"> + <xsd:all> + <part name="pagename" type="xsd:string"/> + <part name="lastModified" type="xsd:int"/> + <part name="author" type="xsd:string"/> + <part name="summary" type="xsd:string"/> + <part name="version" type="xsd:int"/> + </xsd:all> + </xsd:complexType> + <xsd:complexType name="Credentials"> + <xsd:all> + <xsd:element name="username" type="xsd:string"/> + <xsd:element name="password" type="xsd:string"/> + </xsd:all> + </xsd:complexType> + <xsd:complexType name="PageMetadata"> + <xsd:all> + <xsd:element name="createdby" type="xsd:string"/> + <xsd:element name="lastauthor" type="xsd:string"/> + <xsd:element name="ctime" type="xsd:int"/> + <xsd:element name="mtime" type="xsd:int"/> + <xsd:element name="atime" type="xsd:int"/> + </xsd:all> + </xsd:complexType> <portType name="wikiPortType"> <operation name="getPageContent"> @@ -366,7 +366,7 @@ <service name="wikiService"> <port name="wikiPortType" binding="tns:wikiBinding"> - <soap:address location="http://phpwiki.nmu.alcatel.fr/phpwiki/SOAP.php" /> + <soap:address location="http://phpwiki.nmu.alcatel.fr/phpwiki/SOAP.php" /> </port> </service> </definitions> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-16 14:37:29
|
Revision: 9483 http://sourceforge.net/p/phpwiki/code/9483 Author: vargenau Date: 2015-01-16 14:37:26 +0000 (Fri, 16 Jan 2015) Log Message: ----------- Improve getPageMeta Modified Paths: -------------- trunk/SOAP.php Modified: trunk/SOAP.php =================================================================== --- trunk/SOAP.php 2015-01-16 13:38:13 UTC (rev 9482) +++ trunk/SOAP.php 2015-01-16 14:37:26 UTC (rev 9483) @@ -117,10 +117,7 @@ checkCredentials($server, $credentials, 'view', $pagename); $dbi = WikiDB::open($GLOBALS['DBParams']); $page = $dbi->getPage($pagename); - $rev = $page->getCurrentRevision(); - $meta = $rev->_data; - //todo: reformat the meta hash - return $meta; + return $page->getMetaData(); } // require 'view' access to AllPages This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-16 13:38:20
|
Revision: 9482 http://sourceforge.net/p/phpwiki/code/9482 Author: vargenau Date: 2015-01-16 13:38:13 +0000 (Fri, 16 Jan 2015) Log Message: ----------- Fix getPageMeta, getPageMetaResponse & getCurrentRevision Modified Paths: -------------- trunk/PhpWiki.wsdl Modified: trunk/PhpWiki.wsdl =================================================================== --- trunk/PhpWiki.wsdl 2015-01-16 13:21:18 UTC (rev 9481) +++ trunk/PhpWiki.wsdl 2015-01-16 13:38:13 UTC (rev 9482) @@ -29,11 +29,11 @@ </message> <message name="getPageMeta"> - <part name="pagename" type="typens:PageMetadata"/> + <part name="pagename" type="xsd:string"/> <part name="credentials" type="typens:Credentials"/> </message> <message name="getPageMetaResponse"> - <part name="meta" type="xsd:double"/> + <part name="meta" type="typens:PageMetadata"/> </message> <message name="doSavePage"> <part name="pagename" type="xsd:string"/> @@ -160,7 +160,7 @@ </operation> <operation name="getCurrentRevision"> <input message="tns:getPageRevision"/> - <output message="tns:getPageContentResponse"/> + <output message="tns:getRevisionResponse"/> </operation> <operation name="getPageMeta"> <input message="tns:getPageMeta"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-16 10:55:04
|
Revision: 9480 http://sourceforge.net/p/phpwiki/code/9480 Author: vargenau Date: 2015-01-16 10:17:29 +0000 (Fri, 16 Jan 2015) Log Message: ----------- Put back http://phpwiki.sourceforge.net Modified Paths: -------------- trunk/PhpWiki.wsdl Modified: trunk/PhpWiki.wsdl =================================================================== --- trunk/PhpWiki.wsdl 2015-01-15 14:06:13 UTC (rev 9479) +++ trunk/PhpWiki.wsdl 2015-01-16 10:17:29 UTC (rev 9480) @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8" ?> <definitions name="Wiki" - targetNamespace="http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl" + targetNamespace="http://phpwiki.sourceforge.net/PhpWiki.wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:tns="http://phpwiki.nmu.alcatel.fr/phpwiki/PhpWiki.wsdl" + xmlns:tns="http://phpwiki.sourceforge.net/PhpWiki.wsdl" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-15 14:06:21
|
Revision: 9479 http://sourceforge.net/p/phpwiki/code/9479 Author: vargenau Date: 2015-01-15 14:06:13 +0000 (Thu, 15 Jan 2015) Log Message: ----------- Change template syntax to please Template engine Modified Paths: -------------- trunk/themes/Crao/templates/editpage.tmpl trunk/themes/Wordpress/templates/editpage.tmpl trunk/themes/default/templates/editpage.tmpl trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/Crao/templates/editpage.tmpl =================================================================== --- trunk/themes/Crao/templates/editpage.tmpl 2015-01-14 16:37:46 UTC (rev 9478) +++ trunk/themes/Crao/templates/editpage.tmpl 2015-01-15 14:06:13 UTC (rev 9479) @@ -21,7 +21,12 @@ <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?> <br class="clear-floats" /> <table class="fullwidth"> - <tr><td><?php if (isset($EDIT_TOOLBAR)) echo $EDIT_TOOLBAR ?></td> + <tr> + <td> + <?php if (isset($EDIT_TOOLBAR)) { ?> + <?php echo $EDIT_TOOLBAR ?> + <?php } ?> + </td> <td class="align-right"><div id="editarea-size"> <?php echo _("Size")._(":") ?> <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?> Modified: trunk/themes/Wordpress/templates/editpage.tmpl =================================================================== --- trunk/themes/Wordpress/templates/editpage.tmpl 2015-01-14 16:37:46 UTC (rev 9478) +++ trunk/themes/Wordpress/templates/editpage.tmpl 2015-01-15 14:06:13 UTC (rev 9479) @@ -22,7 +22,12 @@ </tr> </table> <table class="fullwidth"> - <tr><td><?php echo $EDIT_TOOLBAR ?></td> + <tr> + <td> + <?php if (isset($EDIT_TOOLBAR)) { ?> + <?php echo $EDIT_TOOLBAR ?> + <?php } ?> + </td> <td class="align-right"><div id="editarea-size"> <?php echo _("Size")._(":") ?> <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?> Modified: trunk/themes/default/templates/editpage.tmpl =================================================================== --- trunk/themes/default/templates/editpage.tmpl 2015-01-14 16:37:46 UTC (rev 9478) +++ trunk/themes/default/templates/editpage.tmpl 2015-01-15 14:06:13 UTC (rev 9479) @@ -21,10 +21,11 @@ <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?> <br class="clear-floats" /> <table class="fullwidth"> - <tr><td> - <?php if (isset($EDIT_TOOLBAR)) { ?> - <?php echo $EDIT_TOOLBAR ?> - <?php } ?> + <tr> + <td> + <?php if (isset($EDIT_TOOLBAR)) { ?> + <?php echo $EDIT_TOOLBAR ?> + <?php } ?> </td> <td class="align-right"><div id="editarea-size"> <?php echo _("Size")._(":") ?> Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2015-01-14 16:37:46 UTC (rev 9478) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2015-01-15 14:06:13 UTC (rev 9479) @@ -64,7 +64,12 @@ <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?> <br class="clear-floats" /> <table class="fullwidth"> - <tr><td><?php if (isset($EDIT_TOOLBAR)) echo $EDIT_TOOLBAR ?></td> + <tr> + <td> + <?php if (isset($EDIT_TOOLBAR)) { ?> + <?php echo $EDIT_TOOLBAR ?> + <?php } ?> + </td> <td class="align-right"><div id="editarea-size"> <?php echo _("Size")._(":") ?> <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-14 16:37:49
|
Revision: 9478 http://sourceforge.net/p/phpwiki/code/9478 Author: vargenau Date: 2015-01-14 16:37:46 +0000 (Wed, 14 Jan 2015) Log Message: ----------- functions most_popular and most_recent are public Modified Paths: -------------- trunk/lib/WikiDB/backend/ADODB.php trunk/lib/WikiDB/backend/PDO.php trunk/lib/WikiDB/backend/PearDB.php trunk/lib/WikiDB/backend/PearDB_ffpgsql.php trunk/lib/WikiDB/backend/cvs.php trunk/lib/WikiDB/backend.php Modified: trunk/lib/WikiDB/backend/ADODB.php =================================================================== --- trunk/lib/WikiDB/backend/ADODB.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend/ADODB.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -974,7 +974,7 @@ /** * Find highest or lowest hit counts. */ - function most_popular($limit = 20, $sortby = '-hits') + public function most_popular($limit = 20, $sortby = '-hits') { $dbh = &$this->_dbh; extract($this->_table_names); @@ -1010,7 +1010,7 @@ /** * Find recent changes. */ - function most_recent($params) + public function most_recent($params) { $limit = 0; $since = 0; Modified: trunk/lib/WikiDB/backend/PDO.php =================================================================== --- trunk/lib/WikiDB/backend/PDO.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend/PDO.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -948,7 +948,7 @@ /** * Find highest or lowest hit counts. */ - function most_popular($limit = 20, $sortby = '-hits') + public function most_popular($limit = 20, $sortby = '-hits') { $dbh = &$this->_dbh; extract($this->_table_names); @@ -984,7 +984,7 @@ /** * Find recent changes. */ - function most_recent($params) + public function most_recent($params) { $limit = 0; $since = 0; Modified: trunk/lib/WikiDB/backend/PearDB.php =================================================================== --- trunk/lib/WikiDB/backend/PearDB.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend/PearDB.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -798,7 +798,7 @@ /** * Find highest or lowest hit counts. */ - function most_popular($limit = 20, $sortby = '-hits') + public function most_popular($limit = 20, $sortby = '-hits') { $dbh = &$this->_dbh; extract($this->_table_names); @@ -836,7 +836,7 @@ /** * Find recent changes. */ - function most_recent($params) + public function most_recent($params) { $limit = 0; $since = 0; Modified: trunk/lib/WikiDB/backend/PearDB_ffpgsql.php =================================================================== --- trunk/lib/WikiDB/backend/PearDB_ffpgsql.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend/PearDB_ffpgsql.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -385,7 +385,7 @@ return new WikiDB_backend_PearDB_iter($this, $result, $options); } - function most_popular($limit = 20, $sortby = '-hits') + public function most_popular($limit = 20, $sortby = '-hits') { $dbh = &$this->_dbh; extract($this->_table_names); @@ -424,7 +424,7 @@ return new WikiDB_backend_PearDB_iter($this, $result); } - function most_recent($params) + public function most_recent($params) { $limit = 0; $since = 0; Modified: trunk/lib/WikiDB/backend/cvs.php =================================================================== --- trunk/lib/WikiDB/backend/cvs.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend/cvs.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -432,7 +432,7 @@ } } - function most_popular($limit, $sortby = '') + public function most_popular($limit = 20, $sortby = '') { // TODO: needs to be tested ... $mp = $this->_getMostPopular(); @@ -455,7 +455,7 @@ * This only accepts the 'since' and 'limit' attributes, everything * else is ignored. */ - function most_recent($params) + public function most_recent($params) { // TODO: needs to be tested ... // most recent are those pages with the highest time value ... Modified: trunk/lib/WikiDB/backend.php =================================================================== --- trunk/lib/WikiDB/backend.php 2015-01-14 15:48:57 UTC (rev 9477) +++ trunk/lib/WikiDB/backend.php 2015-01-14 16:37:46 UTC (rev 9478) @@ -388,7 +388,7 @@ * @param string $sortby * @return object A WikiDB_backend_iterator. */ - protected function most_popular($limit, $sortby = '-hits') + public function most_popular($limit = 20, $sortby = '-hits') { // This is method fetches all pages, then // sorts them by hit count. @@ -409,7 +409,7 @@ * @return object A WikiDB_backend_iterator. * @see WikiDB::mostRecent */ - protected function most_recent($params) + public function most_recent($params) { // This method is very inefficient and searches through // all pages for the most recent changes. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-14 15:49:04
|
Revision: 9477 http://sourceforge.net/p/phpwiki/code/9477 Author: vargenau Date: 2015-01-14 15:48:57 +0000 (Wed, 14 Jan 2015) Log Message: ----------- Use getVersion Modified Paths: -------------- trunk/SOAP.php Modified: trunk/SOAP.php =================================================================== --- trunk/SOAP.php 2015-01-14 15:35:08 UTC (rev 9476) +++ trunk/SOAP.php 2015-01-14 15:48:57 UTC (rev 9477) @@ -68,9 +68,8 @@ $current = $page->getCurrentRevision(); $meta = $current->_data; $meta['summary'] = sprintf(_("SOAP Request %s", $credentials['username'])); // from user or IP ? - // $version = $current->getVersion(); - // return $page->save($content, $version + 1, $meta); - return $page->save($content, 5, $meta); + $version = $current->getVersion(); + return $page->save($content, $version + 1, $meta); } // require 'view' access This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-14 15:35:17
|
Revision: 9476 http://sourceforge.net/p/phpwiki/code/9476 Author: vargenau Date: 2015-01-14 15:35:08 +0000 (Wed, 14 Jan 2015) Log Message: ----------- Add new function getVersion for class WikiDB_Page Modified Paths: -------------- trunk/lib/WikiDB.php Modified: trunk/lib/WikiDB.php =================================================================== --- trunk/lib/WikiDB.php 2015-01-14 15:15:14 UTC (rev 9475) +++ trunk/lib/WikiDB.php 2015-01-14 15:35:08 UTC (rev 9476) @@ -810,6 +810,13 @@ return !$current->hasDefaultContents(); } + public function getVersion() + { + $backend = &$this->_wikidb->_backend; + $pagename = &$this->_pagename; + return $backend->get_latest_version($pagename); + } + /** * Delete an old revision of a WikiDB_Page. * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-14 15:15:23
|
Revision: 9475 http://sourceforge.net/p/phpwiki/code/9475 Author: vargenau Date: 2015-01-14 15:15:14 +0000 (Wed, 14 Jan 2015) Log Message: ----------- Reformat Modified Paths: -------------- trunk/SOAP.php Modified: trunk/SOAP.php =================================================================== --- trunk/SOAP.php 2015-01-14 15:04:54 UTC (rev 9474) +++ trunk/SOAP.php 2015-01-14 15:15:14 UTC (rev 9475) @@ -26,328 +26,328 @@ function checkCredentials(&$server, &$credentials, $access, $pagename) { -/* - // check the "Authorization: Basic '.base64_encode("$this->username:$this->password").'\r\n'" header - if (isset($server->header['Authorization'])) { - $line = base64_decode(str_replace("Basic ", "", trim($server->header['Authorization']))); - list($credentials['username'], $credentials['password']) = explode(':', $line); - } else { - if (!isset($_SERVER)) - $_SERVER =& $GLOBALS['HTTP_SERVER_VARS']; - // TODO: where in the header is the client IP - if (!isset($credentials['username'])) { - if (isset($_SERVER['REMOTE_ADDR'])) - $credentials['username'] = $_SERVER['REMOTE_ADDR']; - elseif (isset($GLOBALS['REMOTE_ADDR'])) - $credentials['username'] = $GLOBALS['REMOTE_ADDR']; else - $credentials['username'] = $server->host; + /* + // check the "Authorization: Basic '.base64_encode("$this->username:$this->password").'\r\n'" header + if (isset($server->header['Authorization'])) { + $line = base64_decode(str_replace("Basic ", "", trim($server->header['Authorization']))); + list($credentials['username'], $credentials['password']) = explode(':', $line); + } else { + if (!isset($_SERVER)) + $_SERVER =& $GLOBALS['HTTP_SERVER_VARS']; + // TODO: where in the header is the client IP + if (!isset($credentials['username'])) { + if (isset($_SERVER['REMOTE_ADDR'])) + $credentials['username'] = $_SERVER['REMOTE_ADDR']; + elseif (isset($GLOBALS['REMOTE_ADDR'])) + $credentials['username'] = $GLOBALS['REMOTE_ADDR']; else + $credentials['username'] = $server->host; + } } - } - if (!isset($credentials['password'])) $credentials['password'] = ''; + if (!isset($credentials['password'])) $credentials['password'] = ''; - global $request; - $request->_user = WikiUser($credentials['username']); - $request->_user->AuthCheck(array('userid' => $credentials['username'], - 'passwd' => $credentials['password'])); - if (!mayAccessPage($access, $pagename)) - $server->fault(401, '', "no permission"); -*/ + global $request; + $request->_user = WikiUser($credentials['username']); + $request->_user->AuthCheck(array('userid' => $credentials['username'], + 'passwd' => $credentials['password'])); + if (!mayAccessPage($access, $pagename)) + $server->fault(401, '', "no permission"); + */ } class PhpWikiSoapServer { -//todo: check and set credentials -// requiredAuthorityForPage($action); -// require 'edit' access -function doSavePage($pagename, $content, $credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'edit', $pagename); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $page = $dbi->getPage($pagename); - $current = $page->getCurrentRevision(); - $meta = $current->_data; - $meta['summary'] = sprintf(_("SOAP Request %s", $credentials['username'])); // from user or IP ? - // $version = $current->getVersion(); - // return $page->save($content, $version + 1, $meta); - return $page->save($content, 5, $meta); -} + //todo: check and set credentials + // requiredAuthorityForPage($action); + // require 'edit' access + function doSavePage($pagename, $content, $credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'edit', $pagename); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $page = $dbi->getPage($pagename); + $current = $page->getCurrentRevision(); + $meta = $current->_data; + $meta['summary'] = sprintf(_("SOAP Request %s", $credentials['username'])); // from user or IP ? + // $version = $current->getVersion(); + // return $page->save($content, $version + 1, $meta); + return $page->save($content, 5, $meta); + } -// require 'view' access -function getPageContent($pagename, $credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'view', $pagename); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $page = $dbi->getPage($pagename); - $rev = $page->getCurrentRevision(); - $text = $rev->getPackedContent(); - return $text; -} + // require 'view' access + function getPageContent($pagename, $credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'view', $pagename); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $page = $dbi->getPage($pagename); + $rev = $page->getCurrentRevision(); + $text = $rev->getPackedContent(); + return $text; + } -// require 'view' access -function getPageRevision($pagename, $revision, $credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'view', $pagename); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $page = $dbi->getPage($pagename); - $rev = $page->getRevision($revision); - $text = $rev->getPackedContent(); - return $text; -} + // require 'view' access + function getPageRevision($pagename, $revision, $credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'view', $pagename); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $page = $dbi->getPage($pagename); + $rev = $page->getRevision($revision); + $text = $rev->getPackedContent(); + return $text; + } -// require 'view' access -function getCurrentRevision($pagename, $credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'view', $pagename); - // if (!mayAccessPage('view', $pagename)) - // $server->fault(401, '', "no permission"); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $page = $dbi->getPage($pagename); - // $rev = $page->getCurrentRevision(); - $version = $page->getVersion(); - return (double)$version; -} + // require 'view' access + function getCurrentRevision($pagename, $credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'view', $pagename); + // if (!mayAccessPage('view', $pagename)) + // $server->fault(401, '', "no permission"); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $page = $dbi->getPage($pagename); + // $rev = $page->getCurrentRevision(); + $version = $page->getVersion(); + return (double)$version; + } -// require 'change' or 'view' access ? -function getPageMeta($pagename, $credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'view', $pagename); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $page = $dbi->getPage($pagename); - $rev = $page->getCurrentRevision(); - $meta = $rev->_data; - //todo: reformat the meta hash - return $meta; -} + // require 'change' or 'view' access ? + function getPageMeta($pagename, $credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'view', $pagename); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $page = $dbi->getPage($pagename); + $rev = $page->getCurrentRevision(); + $meta = $rev->_data; + //todo: reformat the meta hash + return $meta; + } -// require 'view' access to AllPages -function getAllPagenames($credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'view', _("AllPages")); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $page_iter = $dbi->getAllPages(); - $pages = array(); - while ($page = $page_iter->next()) { - $pages[] = array('pagename' => $page->_pagename); + // require 'view' access to AllPages + function getAllPagenames($credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'view', _("AllPages")); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $page_iter = $dbi->getAllPages(); + $pages = array(); + while ($page = $page_iter->next()) { + $pages[] = array('pagename' => $page->_pagename); + } + return $pages; } - return $pages; -} -// require 'view' access -function getBacklinks($pagename, $credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'view', $pagename); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $backend = &$dbi->_backend; - $result = $backend->get_links($pagename); - $page_iter = new WikiDB_PageIterator($dbi, $result); - $pages = array(); - while ($page = $page_iter->next()) { - $pages[] = array('pagename' => $page->getName()); + // require 'view' access + function getBacklinks($pagename, $credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'view', $pagename); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $backend = &$dbi->_backend; + $result = $backend->get_links($pagename); + $page_iter = new WikiDB_PageIterator($dbi, $result); + $pages = array(); + while ($page = $page_iter->next()) { + $pages[] = array('pagename' => $page->getName()); + } + return $pages; } - return $pages; -} -// require 'view' access to TitleSearch -function doTitleSearch($s, $credentials = false) -{ - require_once 'lib/TextSearchQuery.php'; + // require 'view' access to TitleSearch + function doTitleSearch($s, $credentials = false) + { + require_once 'lib/TextSearchQuery.php'; - global $server; - checkCredentials($server, $credentials, 'view', _("TitleSearch")); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $query = new TextSearchQuery($s); - $page_iter = $dbi->titleSearch($query); - $pages = array(); - while ($page = $page_iter->next()) { - $pages[] = array('pagename' => $page->getName()); + global $server; + checkCredentials($server, $credentials, 'view', _("TitleSearch")); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $query = new TextSearchQuery($s); + $page_iter = $dbi->titleSearch($query); + $pages = array(); + while ($page = $page_iter->next()) { + $pages[] = array('pagename' => $page->getName()); + } + return $pages; } - return $pages; -} -// require 'view' access to FullTextSearch -function doFullTextSearch($s, $credentials = false) -{ - require_once 'lib/TextSearchQuery.php'; + // require 'view' access to FullTextSearch + function doFullTextSearch($s, $credentials = false) + { + require_once 'lib/TextSearchQuery.php'; - global $server; - checkCredentials($server, $credentials, 'view', _("FullTextSearch")); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $query = new TextSearchQuery($s); - $page_iter = $dbi->fullSearch($query); - $pages = array(); - while ($page = $page_iter->next()) { - $pages[] = array('pagename' => $page->getName()); + global $server; + checkCredentials($server, $credentials, 'view', _("FullTextSearch")); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $query = new TextSearchQuery($s); + $page_iter = $dbi->fullSearch($query); + $pages = array(); + while ($page = $page_iter->next()) { + $pages[] = array('pagename' => $page->getName()); + } + return $pages; } - return $pages; -} -// require 'view' access to RecentChanges -function getRecentChanges($limit = false, $since = false, $include_minor = false, $credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'view', _("RecentChanges")); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $params = array('limit' => $limit, 'since' => $since, - 'include_minor_revisions' => $include_minor); - $page_iter = $dbi->mostRecent($params); - $pages = array(); - while ($page = $page_iter->next()) { - $pages[] = array('pagename' => $page->getName(), - 'lastModified' => $page->get('mtime'), - 'author' => $page->get('author'), - 'summary' => $page->get('summary'), // added with 1.3.13 - 'version' => $page->getVersion() - ); + // require 'view' access to RecentChanges + function getRecentChanges($limit = false, $since = false, $include_minor = false, $credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'view', _("RecentChanges")); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $params = array('limit' => $limit, 'since' => $since, + 'include_minor_revisions' => $include_minor); + $page_iter = $dbi->mostRecent($params); + $pages = array(); + while ($page = $page_iter->next()) { + $pages[] = array('pagename' => $page->getName(), + 'lastModified' => $page->get('mtime'), + 'author' => $page->get('author'), + 'summary' => $page->get('summary'), // added with 1.3.13 + 'version' => $page->getVersion() + ); + } + return $pages; } - return $pages; -} -// require 'view' access -function listLinks($pagename, $credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'view', $pagename); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $page = $dbi->getPage($pagename); - $linkiterator = $page->getPageLinks(); - $links = array(); - while ($currentpage = $linkiterator->next()) { - if ($currentpage->exists()) - $links[] = array('pagename' => $currentpage->getName()); + // require 'view' access + function listLinks($pagename, $credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'view', $pagename); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $page = $dbi->getPage($pagename); + $linkiterator = $page->getPageLinks(); + $links = array(); + while ($currentpage = $linkiterator->next()) { + if ($currentpage->exists()) + $links[] = array('pagename' => $currentpage->getName()); + } + return $links; } - return $links; -} -function listPlugins($credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'change', _("HomePage")); - $plugin_dir = 'lib/plugin'; - if (defined('PHPWIKI_DIR')) - $plugin_dir = PHPWIKI_DIR . "/$plugin_dir"; - $pd = new fileSet($plugin_dir, '*.php'); - $plugins = $pd->getFiles(); - unset($pd); - sort($plugins); - $RetArray = array(); - if (!empty($plugins)) { - require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader(); - foreach ($plugins as $plugin) { - $pluginName = str_replace(".php", "", $plugin); - $p = $w->getPlugin($pluginName, false); // second arg? - // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only - if (strtolower(substr(get_parent_class($p), 0, 10)) == 'wikiplugin') { - $RetArray[] = $pluginName; + function listPlugins($credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'change', _("HomePage")); + $plugin_dir = 'lib/plugin'; + if (defined('PHPWIKI_DIR')) + $plugin_dir = PHPWIKI_DIR . "/$plugin_dir"; + $pd = new fileSet($plugin_dir, '*.php'); + $plugins = $pd->getFiles(); + unset($pd); + sort($plugins); + $RetArray = array(); + if (!empty($plugins)) { + require_once 'lib/WikiPlugin.php'; + $w = new WikiPluginLoader(); + foreach ($plugins as $plugin) { + $pluginName = str_replace(".php", "", $plugin); + $p = $w->getPlugin($pluginName, false); // second arg? + // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only + if (strtolower(substr(get_parent_class($p), 0, 10)) == 'wikiplugin') { + $RetArray[] = $pluginName; + } } } + return $RetArray; } - return $RetArray; -} -function getPluginSynopsis($pluginname, $credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'change', "Help/" . $pluginname . "Plugin"); - require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader(); - $synopsis = ''; - $p = $w->getPlugin($pluginname, false); // second arg? - // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only - if (strtolower(substr(get_parent_class($p), 0, 10)) == 'wikiplugin') { - $plugin_args = ''; - $desc = $p->getArgumentsDescription(); - $src = array("\n", '"', "'", '|', '[', ']', '\\'); - $replace = array('%0A', '%22', '%27', '%7C', '%5B', '%5D', '%5C'); - $desc = str_replace("<br />", ' ', $desc->asXML()); - if ($desc) - $plugin_args = '\n' . str_replace($src, $replace, $desc); - $synopsis = "<?plugin " . $pluginname . $plugin_args . "?>"; // args? + function getPluginSynopsis($pluginname, $credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'change', "Help/" . $pluginname . "Plugin"); + require_once 'lib/WikiPlugin.php'; + $w = new WikiPluginLoader(); + $synopsis = ''; + $p = $w->getPlugin($pluginname, false); // second arg? + // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only + if (strtolower(substr(get_parent_class($p), 0, 10)) == 'wikiplugin') { + $plugin_args = ''; + $desc = $p->getArgumentsDescription(); + $src = array("\n", '"', "'", '|', '[', ']', '\\'); + $replace = array('%0A', '%22', '%27', '%7C', '%5B', '%5D', '%5C'); + $desc = str_replace("<br />", ' ', $desc->asXML()); + if ($desc) + $plugin_args = '\n' . str_replace($src, $replace, $desc); + $synopsis = "<?plugin " . $pluginname . $plugin_args . "?>"; // args? + } + return $synopsis; } - return $synopsis; -} -// only plugins returning pagelists will return something useful. so omit the html output -function callPlugin($pluginname, $plugin_args, $credentials = false) -{ - global $request; - global $server; - checkCredentials($server, $credentials, 'change', "Help/" . $pluginname . "Plugin"); + // only plugins returning pagelists will return something useful. so omit the html output + function callPlugin($pluginname, $plugin_args, $credentials = false) + { + global $request; + global $server; + checkCredentials($server, $credentials, 'change', "Help/" . $pluginname . "Plugin"); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $basepage = ''; - require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader(); - $p = $w->getPlugin($pluginname, false); // second arg? - $pagelist = $p->run($dbi, $plugin_args, $request, $basepage); - $pages = array(); - if (is_object($pagelist) and is_a($pagelist, 'PageList')) { - foreach ($pagelist->pageNames() as $name) - $pages[] = array('pagename' => $name); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $basepage = ''; + require_once 'lib/WikiPlugin.php'; + $w = new WikiPluginLoader(); + $p = $w->getPlugin($pluginname, false); // second arg? + $pagelist = $p->run($dbi, $plugin_args, $request, $basepage); + $pages = array(); + if (is_object($pagelist) and is_a($pagelist, 'PageList')) { + foreach ($pagelist->pageNames() as $name) + $pages[] = array('pagename' => $name); + } + return $pages; } - return $pages; -} -/** - * array listRelations([ Integer option = 1 ]) - * - * Returns an array of all available relation names. - * option: 1 relations only ( with 0 also ) - * option: 2 attributes only - * option: 3 both, all names of relations and attributes - * option: 4 unsorted, this might be added as bitvalue: 7 = 4+3. default: sorted - * For some semanticweb autofill methods. - * - * @author: Reini Urban - */ -function listRelations($option = 1, $credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'view', _("HomePage")); - $dbi = WikiDB::open($GLOBALS['DBParams']); - $also_attributes = $option & 2; - $only_attributes = $option & 2 and !($option & 1); - $sorted = !($option & 4); - return $dbi->listRelations($also_attributes, - $only_attributes, - $sorted); -} + /** + * array listRelations([ Integer option = 1 ]) + * + * Returns an array of all available relation names. + * option: 1 relations only ( with 0 also ) + * option: 2 attributes only + * option: 3 both, all names of relations and attributes + * option: 4 unsorted, this might be added as bitvalue: 7 = 4+3. default: sorted + * For some semanticweb autofill methods. + * + * @author: Reini Urban + */ + function listRelations($option = 1, $credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'view', _("HomePage")); + $dbi = WikiDB::open($GLOBALS['DBParams']); + $also_attributes = $option & 2; + $only_attributes = $option & 2 and !($option & 1); + $sorted = !($option & 4); + return $dbi->listRelations($also_attributes, + $only_attributes, + $sorted); + } -// some basic semantic search -function linkSearch($linktype, $search, $pages = "*", $relation = "*", $credentials = false) -{ - global $server; - checkCredentials($server, $credentials, 'view', _("HomePage")); - $dbi = WikiDB::open($GLOBALS['DBParams']); - require_once 'lib/TextSearchQuery.php'; - $pagequery = new TextSearchQuery($pages); - $linkquery = new TextSearchQuery($search); - if ($linktype == 'relation') { - $relquery = new TextSearchQuery($relation); - $links = $dbi->_backend->link_search($pagequery, $linkquery, $linktype, $relquery); - } elseif ($linktype == 'attribute') { // only numeric search with attributes! - $relquery = new TextSearchQuery($relation); - require_once 'lib/SemanticWeb.php'; - // search: "population > 1 million and area < 200 km^2" relation="*" pages="*" - $linkquery = new SemanticAttributeSearchQuery($search, $relation); - $links = $dbi->_backend->link_search($pagequery, $linkquery, $linktype, $relquery); - } else { - // we already do have forward and backlinks as SOAP - $links = $dbi->_backend->link_search($pagequery, $linkquery, $linktype); + // some basic semantic search + function linkSearch($linktype, $search, $pages = "*", $relation = "*", $credentials = false) + { + global $server; + checkCredentials($server, $credentials, 'view', _("HomePage")); + $dbi = WikiDB::open($GLOBALS['DBParams']); + require_once 'lib/TextSearchQuery.php'; + $pagequery = new TextSearchQuery($pages); + $linkquery = new TextSearchQuery($search); + if ($linktype == 'relation') { + $relquery = new TextSearchQuery($relation); + $links = $dbi->_backend->link_search($pagequery, $linkquery, $linktype, $relquery); + } elseif ($linktype == 'attribute') { // only numeric search with attributes! + $relquery = new TextSearchQuery($relation); + require_once 'lib/SemanticWeb.php'; + // search: "population > 1 million and area < 200 km^2" relation="*" pages="*" + $linkquery = new SemanticAttributeSearchQuery($search, $relation); + $links = $dbi->_backend->link_search($pagequery, $linkquery, $linktype, $relquery); + } else { + // we already do have forward and backlinks as SOAP + $links = $dbi->_backend->link_search($pagequery, $linkquery, $linktype); + } + return $links->asArray(); } - return $links->asArray(); -} } -$server=new SoapServer('PhpWiki.wsdl'); +$server = new SoapServer('PhpWiki.wsdl'); $server->setClass('PhpWikiSoapServer'); $server->handle(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-14 14:47:59
|
Revision: 9472 http://sourceforge.net/p/phpwiki/code/9472 Author: vargenau Date: 2015-01-14 14:47:52 +0000 (Wed, 14 Jan 2015) Log Message: ----------- Simplify require_once Modified Paths: -------------- trunk/lib/InlineParser.php trunk/lib/imagecache.php trunk/lib/main.php Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2015-01-14 14:17:27 UTC (rev 9471) +++ trunk/lib/InlineParser.php 2015-01-14 14:47:52 UTC (rev 9472) @@ -35,7 +35,7 @@ define('ESCAPE_CHAR', '~'); require_once 'lib/CachedMarkup.php'; -require_once(dirname(__FILE__) . '/stdlib.php'); +require_once 'lib/stdlib.php'; function WikiEscape($text) { Modified: trunk/lib/imagecache.php =================================================================== --- trunk/lib/imagecache.php 2015-01-14 14:17:27 UTC (rev 9471) +++ trunk/lib/imagecache.php 2015-01-14 14:47:52 UTC (rev 9472) @@ -27,9 +27,9 @@ */ include_once 'lib/config.php'; -require_once(dirname(__FILE__) . "/stdlib.php"); +require_once 'lib/stdlib.php'; require_once 'lib/Request.php'; -require_once("lib/WikiUser.php"); +require_once 'lib/WikiUser.php'; require_once 'lib/WikiDB.php'; require_once 'lib/WikiPluginCached.php'; Modified: trunk/lib/main.php =================================================================== --- trunk/lib/main.php 2015-01-14 14:17:27 UTC (rev 9471) +++ trunk/lib/main.php 2015-01-14 14:47:52 UTC (rev 9472) @@ -25,7 +25,7 @@ define ('USE_PREFS_IN_PAGE', true); //include "lib/config.php"; -require_once(dirname(__FILE__) . "/stdlib.php"); +require_once 'lib/stdlib.php'; require_once 'lib/Request.php'; require_once 'lib/WikiDB.php'; require_once 'lib/WikiUser.php'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-14 14:17:34
|
Revision: 9471 http://sourceforge.net/p/phpwiki/code/9471 Author: vargenau Date: 2015-01-14 14:17:27 +0000 (Wed, 14 Jan 2015) Log Message: ----------- Simplify require_once Modified Paths: -------------- trunk/SOAP.php Modified: trunk/SOAP.php =================================================================== --- trunk/SOAP.php 2015-01-14 14:08:19 UTC (rev 9470) +++ trunk/SOAP.php 2015-01-14 14:17:27 UTC (rev 9471) @@ -20,10 +20,10 @@ define ("WIKI_SOAP", true); define ("PHPWIKI_NOMAIN", true); -require_once (dirname(__FILE__) . '/lib/prepend.php'); -require_once(dirname(__FILE__) . '/lib/IniConfig.php'); -IniConfig(dirname(__FILE__) . "/config/config.ini"); -require_once(dirname(__FILE__) . '/lib/main.php'); +require_once 'lib/prepend.php'; +require_once 'lib/IniConfig.php'; +IniConfig('config/config.ini'); +require_once 'lib/main.php'; function checkCredentials(&$server, &$credentials, $access, $pagename) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |