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: Carsten K. <car...@us...> - 2001-12-07 23:52:37
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv10032/phpwiki/lib Modified Files: interwiki.map Log Message: Added php-function and php-lookup. Index: interwiki.map =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/interwiki.map,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** interwiki.map 2001/12/06 22:44:42 1.6 --- interwiki.map 2001/12/07 23:52:34 1.7 *************** *** 41,44 **** --- 41,46 ---- OrgPatterns http://www.bell-labs.com/cgi-user/OrgPatterns/OrgPatterns? PersonalTelco http://www.personaltelco.net/index.cgi/ + php-function http://www.php.net/manual/en/function.%s.php + php-lookup http://www.php.net/manual-lookup.php?pattern= PhpWiki http://phpwiki.sourceforge.net/phpwiki/index.php? Pikie http://pikie.darktech.org/cgi/pikie? |
From: Geoffrey T. D. <da...@us...> - 2001-12-07 22:28:27
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory usw-pr-cvs1:/tmp/cvs-serv21917/lib/plugin Modified Files: RecentChanges.php Log Message: Change plugin arg syntax from 'rss=1' to 'format=rss'. Index: RecentChanges.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/RecentChanges.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** RecentChanges.php 2001/12/07 22:15:43 1.2 --- RecentChanges.php 2001/12/07 22:28:21 1.3 *************** *** 16,20 **** 'show_all' => false, 'limit' => false, ! 'rss' => false); } --- 16,20 ---- 'show_all' => false, 'limit' => false, ! 'format' => false); } *************** *** 35,39 **** $changes = $dbi->mostRecent($params); ! if ($rss && $request->getArg('action') == 'browse') { header("Content-Type: application/xml; charset=" . RSS_ENCODING); --- 35,45 ---- $changes = $dbi->mostRecent($params); ! if ($request->getArg('action') != 'browse') ! $format = false; // default -> HTML ! switch ($format) { ! case 'rss': ! if (!$args['limit']) ! $args['limit'] = 15; ! header("Content-Type: application/xml; charset=" . RSS_ENCODING); *************** *** 43,49 **** echo $xml; ExitWiki(); ! } ! else { return $this->__format_as_html($changes, $title, $args); } } --- 49,56 ---- echo $xml; ExitWiki(); ! break; ! default: return $this->__format_as_html($changes, $title, $args); + break; } } *************** *** 150,157 **** $limit = $args['limit']; ! if (! $limit) ! $limit = 15; ! ! while ($limit-- > 0 && $rev = $changes->next()) { $page = $rev->getPage(); --- 157,161 ---- $limit = $args['limit']; ! while ($rev = $changes->next()) { $page = $rev->getPage(); *************** *** 186,189 **** --- 190,196 ---- $uri = WikiURL($pagename, array('version' => $rev->getVersion()), 'absurl'); $rss->addItem($item, $uri); + + if ($limit && --$limit <= 0) + break; } |
From: Geoffrey T. D. <da...@us...> - 2001-12-07 22:15:46
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv18452/lib Added Files: RssWriter.php Log Message: Add support for generation of RSSified RecentChanges. ***** Error reading new file: [Errno 2] No such file or directory: 'RssWriter.php' |
From: Geoffrey T. D. <da...@us...> - 2001-12-07 22:15:46
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory usw-pr-cvs1:/tmp/cvs-serv18452/lib/plugin Modified Files: RecentChanges.php Log Message: Add support for generation of RSSified RecentChanges. Index: RecentChanges.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/RecentChanges.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** RecentChanges.php 2001/09/18 19:19:05 1.1 --- RecentChanges.php 2001/12/07 22:15:43 1.2 *************** *** 3,6 **** --- 3,8 ---- /** */ + define('RSS_ENCODING', 'ISO-8859-1'); + class WikiPlugin_RecentChanges extends WikiPlugin *************** *** 12,20 **** 'show_minor' => false, 'show_major' => true, ! 'show_all' => false); } function run($dbi, $argstr, $request) { ! extract($this->getArgs($argstr, $request)); $params = array('include_minor_revisions' => $show_minor, 'exclude_major_revisions' => !$show_major, --- 14,25 ---- 'show_minor' => false, 'show_major' => true, ! 'show_all' => false, ! 'limit' => false, ! 'rss' => false); } function run($dbi, $argstr, $request) { ! $args = $this->getArgs($argstr, $request); ! extract($args); $params = array('include_minor_revisions' => $show_minor, 'exclude_major_revisions' => !$show_major, *************** *** 22,33 **** if ($days > 0.0) { $params['since'] = time() - 24 * 3600 * $days; ! $html = "<h3>RecentChanges in the last $days days</h3>\n"; } else { ! $html = sprintf("<h3>RecentChanges</h3>\n", $days); } ! $changes = $dbi->mostRecent($params); global $dateformat; global $WikiNameRegexp; --- 27,54 ---- if ($days > 0.0) { $params['since'] = time() - 24 * 3600 * $days; ! $title = sprintf(_("RecentChanges in the past %.1f days"), $args['days']); } else { ! $title = _("RecentChanges"); } ! $changes = $dbi->mostRecent($params); + if ($rss && $request->getArg('action') == 'browse') { + header("Content-Type: application/xml; charset=" . RSS_ENCODING); + + $xml = $this->__format_as_rss($changes, $title, $args, $request); + printf("<?xml version=\"1.0\" encoding=\"%s\"?>\n", RSS_ENCODING); + printf("<!-- Generated by PhpWiki:\n%s-->\n", $GLOBALS['RCS_IDS']); + echo $xml; + ExitWiki(); + } + else { + return $this->__format_as_html($changes, $title, $args); + } + } + + function __format_as_html($changes, $title, $args) { + global $dateformat; global $WikiNameRegexp; *************** *** 38,41 **** --- 59,66 ---- $diffargs = array('action' => 'diff'); + // FIXME: add XML icon (and link) to title? + $html = QElement('h3', $title); + + $limit = $args['limit']; while ($rev = $changes->next()) { $created = $rev->get('mtime'); *************** *** 54,58 **** $pagename = $page->getName(); ! if ($show_all) { // FIXME: should set previous, too, if showing only minor or major revs. // or maybe difftype. --- 79,83 ---- $pagename = $page->getName(); ! if ($args['show_all']) { // FIXME: should set previous, too, if showing only minor or major revs. // or maybe difftype. *************** *** 78,81 **** --- 103,109 ---- $lines[] = Element('li', "$diff $wikipage $time $summary ... $author"); + + if ($limit && --$limit <= 0) + break; } if ($lines) *************** *** 84,89 **** return $html; } ! }; // (c-file-style: "gnu") // Local Variables: --- 112,196 ---- return $html; } ! ! function __format_as_rss($changes, $title, $args, $request) { ! include_once('lib/RssWriter.php'); ! $rss = new RssWriter; ! $rc_url = WikiURL($request->getArg('pagename'), false, 'absurl'); ! ! $chan = array('title' => 'PhpWiki', // FIXME: this should be a config define ! 'dc:description' => $title, ! 'link' => $rc_url, ! 'dc:date' => Iso8601DateTime(time())); ! ! /* FIXME: other things one might like in <channel>: ! * sy:updateFrequency ! * sy:updatePeriod ! * sy:updateBase ! * dc:subject ! * dc:publisher ! * dc:language ! * dc:rights ! * rss091:language ! * rss091:managingEditor ! * rss091:webmaster ! * rss091:lastBuildDate ! * rss091:copyright ! */ ! ! $rss->channel($chan, $rc_url); ! ! $rss->image(array('title' => 'PhpWiki', // FIXME: this should be a config define ! 'link' => WikiURL(_("HomePage"), false, 'absurl'), ! 'url' => DataURL($GLOBALS['logo']))); + $rss->textinput(array('title' => _("Search"), + 'description' => _("Title Search"), + 'name' => 's', + 'link' => WikiURL(_("TitleSearch"), false, 'absurl'))); + + $limit = $args['limit']; + if (! $limit) + $limit = 15; + + while ($limit-- > 0 && $rev = $changes->next()) { + $page = $rev->getPage(); + + $urlargs = array(); + if ($args['show_all']) { + // FIXME: should set previous, too, if showing only minor or major revs. + // or maybe difftype. + $urlargs['version'] = $rev->getVersion(); + } + + $pagename = $page->getName(); + + $item = array('title' => split_pagename($pagename), + 'description' => $rev->get('summary'), + 'link' => WikiURL($pagename, $urlargs, 'absurl'), + 'dc:date' => Iso8601DateTime($rev->get('mtime')), + 'dc:contributor' => $rev->get('author'), + 'wiki:version' => $rev->getVersion(), + 'wiki:importance' => $rev->get('is_minor_edit') ? 'minor' : 'major', + // wiki:status = 'new' | 'updated' | 'deleted' + 'wiki:diff' => WikiURL($pagename, + array_merge($urlargs, + array('action' => 'diff', + 'previous' => 'major')), + 'absurl'), + 'wiki:history' => WikiURL($pagename, + array('action' => 'info'), + 'absurl') + ); + + + $uri = WikiURL($pagename, array('version' => $rev->getVersion()), 'absurl'); + $rss->addItem($item, $uri); + } + + return $rss->asXML(); + } + }; + + // (c-file-style: "gnu") // Local Variables: |
From: Geoffrey T. D. <da...@us...> - 2001-12-07 22:14:35
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv18217/lib Modified Files: stdlib.php Log Message: TimezoneOffset, Iso8601DateTime, Rfc822DateTime: New functions to support RSS generation. Index: stdlib.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/stdlib.php,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -r1.55 -r1.56 *** stdlib.php 2001/12/06 19:15:05 1.55 --- stdlib.php 2001/12/07 22:14:32 1.56 *************** *** 525,528 **** --- 525,579 ---- + /** + * Get time offset for local time zone. + * + * @param $time time_t Get offset for this time. Default: now. + * @param $no_colon boolean Don't put colon between hours and minutes. + * @return string Offset as a string in the format +HH:MM. + */ + function TimezoneOffset ($time = false, $no_colon = false) { + if ($time === false) + $time = time(); + $secs = date('Z', $time); + if ($secs < 0) { + $sign = '-'; + $secs = -$secs; + } + else { + $sign = '+'; + } + $colon = $no_colon ? '' : ':'; + $mins = intval(($secs + 30) / 60); + return sprintf("%s%02d%s%02d", + $sign, $mins / 60, $colon, $mins % 60); + } + + /** + * Format time in ISO-8601 format. + * + * @param $time time_t Time. Default: now. + * @return string Date and time in ISO-8601 format. + */ + function Iso8601DateTime ($time = false) { + if ($time === false) + $time = time(); + $tzoff = TimezoneOffset($time); + $date = date('Y-m-d', $time); + $time=date('H:i:s', $time); + return $date . 'T' . $time . $tzoff; + } + + /** + * Format time in RFC-2822 format. + * + * @param $time time_t Time. Default: now. + * @return string Date and time in RFC-2822 format. + */ + function Rfc822DateTime ($time = false) { + if ($time === false) + $time = time(); + return date('D, d F H:i:s ', $time) . TimezoneOffset($time, 'no colon'); + } + // (c-file-style: "gnu") // Local Variables: |
From: Geoffrey T. D. <da...@us...> - 2001-12-07 22:13:56
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv17971/lib Modified Files: main.php Log Message: Ensure the 'action' argument in $request is set. Index: main.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/main.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** main.php 2001/11/26 22:43:24 1.18 --- main.php 2001/12/07 22:13:51 1.19 *************** *** 68,74 **** $action = $request->getArg('action'); ! if (!$action) $action = 'browse'; ! global $user; // FIXME: can we make this non-global? $user = new WikiUser($request, get_auth_mode($action)); --- 68,76 ---- $action = $request->getArg('action'); ! if (!$action) { $action = 'browse'; ! $request->setArg('action', $action); ! } ! global $user; // FIXME: can we make this non-global? $user = new WikiUser($request, get_auth_mode($action)); |
From: Geoffrey T. D. <da...@us...> - 2001-12-07 21:29:35
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv6304/lib Removed Files: logger.php Log Message: Obsolete. This code is now in lib/Request.php. --- logger.php DELETED --- |
From: Geoffrey T. D. <da...@us...> - 2001-12-07 17:39:48
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv27475/lib Modified Files: diff.php Log Message: Fix for PHP warning: "lib/diff.php:197: Notice[8]: Undefined index: ..." Index: diff.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/diff.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** diff.php 2001/11/14 21:05:38 1.14 --- diff.php 2001/12/07 17:39:45 1.15 *************** *** 186,191 **** $numer = $xlim - $xoff + $nchunks - 1; $x = $xoff; ! for ($chunk = 0; $chunk < $nchunks; $chunk++) ! { if ($chunk > 0) for ($i = 0; $i <= $this->lcs; $i++) --- 186,190 ---- $numer = $xlim - $xoff + $nchunks - 1; $x = $xoff; ! for ($chunk = 0; $chunk < $nchunks; $chunk++) { if ($chunk > 0) for ($i = 0; $i <= $this->lcs; $i++) *************** *** 193,202 **** $x1 = $xoff + (int)(($numer + ($xlim-$xoff)*$chunk) / $nchunks); ! for ( ; $x < $x1; $x++) ! { ! $matches = $ymatches[$flip ? $this->yv[$x] : $this->xv[$x]]; ! if (!$matches) continue; ! reset($matches); while (list ($junk, $y) = each($matches)) if (empty($this->in_seq[$y])) --- 192,201 ---- $x1 = $xoff + (int)(($numer + ($xlim-$xoff)*$chunk) / $nchunks); ! for ( ; $x < $x1; $x++) { ! $line = $flip ? $this->yv[$x] : $this->xv[$x]; ! if (empty($ymatches[$line])) continue; ! $matches = $ymatches[$line]; ! reset($matches); while (list ($junk, $y) = each($matches)) if (empty($this->in_seq[$y])) *************** *** 225,230 **** } } ! } ! } $seps[] = $flip ? array($yoff, $xoff) : array($xoff, $yoff); --- 224,229 ---- } } ! } ! } $seps[] = $flip ? array($yoff, $xoff) : array($xoff, $yoff); |
From: Carsten K. <car...@us...> - 2001-12-07 06:57:11
|
Update of /cvsroot/phpwiki/phpwiki In directory usw-pr-cvs1:/tmp/cvs-serv29922/phpwiki Modified Files: phpwiki.css Log Message: Note re: invisible ? in OmniWeb4 (MacOSX) Index: phpwiki.css =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/phpwiki.css,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** phpwiki.css 2001/12/06 19:15:05 1.6 --- phpwiki.css 2001/12/07 06:57:08 1.7 *************** *** 24,29 **** */ ! /* NS4 doesn't grok @import. This allows us to put things which break NS4 ! * in another file. */ @import url(phpwiki-heavy.css); --- 24,29 ---- */ ! /* NS4 & OmniWeb 4 don't grok @import. This allows us to put things which ! * break NS4 and OW4 in another file. */ @import url(phpwiki-heavy.css); *************** *** 144,147 **** --- 144,148 ---- .wikiunknown, .named-wikiunknown {color: #600; } + /* This renders the ? invisible in OW4 */ .wikiunknown A, .named-wikiunknown { color: white; background-color: #600; } |
From: Carsten K. <car...@us...> - 2001-12-07 05:37:16
|
Update of /cvsroot/phpwiki/phpwiki In directory usw-pr-cvs1:/tmp/cvs-serv15582/phpwiki Modified Files: index.php Log Message: InterWiki link-icon added. Index: index.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/index.php,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -r1.37 -r1.38 *** index.php 2001/12/07 05:27:03 1.37 --- index.php 2001/12/07 05:37:13 1.38 *************** *** 270,273 **** --- 270,275 ---- // but ONLY for the AllowedProtocols specified in in part four! // 'interwiki' icon indicates a Wiki listed in lib/interwiki.map + // If you want icons just to differentiate between urls and Wikis then + // turn on only 'interwiki' and '*', comment out the other four. /* $URL_LINK_ICONS = array( |
From: Carsten K. <car...@us...> - 2001-12-07 05:27:22
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv14133/phpwiki/lib Modified Files: interwiki.php Log Message: InterWiki link-icon added. Index: interwiki.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/interwiki.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** interwiki.php 2001/12/06 18:36:51 1.9 --- interwiki.php 2001/12/07 05:27:20 1.10 *************** *** 48,51 **** --- 48,62 ---- } + $linkproto='interwiki'; + $ICONS = &$GLOBALS['URL_LINK_ICONS']; + + $linkimg = isset($ICONS[$linkproto]) ? $ICONS[$linkproto] : $ICONS['*']; + if (!empty($linkimg)) { + $imgtag = Element('img', array('src' => DataURL($linkimg), + 'alt' => $linkproto, + 'class' => 'linkicon')); + $linktext = $imgtag . $linktext; + } + return Element('a', array('href' => $url, 'class' => $class), |
From: Carsten K. <car...@us...> - 2001-12-07 05:27:06
|
Update of /cvsroot/phpwiki/phpwiki In directory usw-pr-cvs1:/tmp/cvs-serv14067/phpwiki Modified Files: index.php Log Message: InterWiki link-icon added. Index: index.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/index.php,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -r1.36 -r1.37 *** index.php 2001/12/06 22:11:23 1.36 --- index.php 2001/12/07 05:27:03 1.37 *************** *** 267,271 **** // this turns on url indicator icons, inserted before embedded links ! // FIXME: need a special icon (question mark?) for unknown protocols. /* $URL_LINK_ICONS = array( --- 267,273 ---- // this turns on url indicator icons, inserted before embedded links ! // '*' icon is shown when the link type has no icon listed here, ! // but ONLY for the AllowedProtocols specified in in part four! ! // 'interwiki' icon indicates a Wiki listed in lib/interwiki.map /* $URL_LINK_ICONS = array( *************** *** 274,277 **** --- 276,280 ---- 'ftp' => 'images/ftp.png', 'mailto' => 'images/mailto.png', + 'interwiki' => 'images/interwiki.png', '*' => 'images/zapg.png' ); |
From: Carsten K. <car...@us...> - 2001-12-07 05:26:58
|
Update of /cvsroot/phpwiki/phpwiki/images In directory usw-pr-cvs1:/tmp/cvs-serv14032/phpwiki/images Added Files: interwiki.png Log Message: InterWiki link-icon added. --- NEW FILE --- PNG 50Á@!Æ4ø8Äd¸M]:OÅ0¤x9ßâ@¤i1ÿ P± þcÑdXóAbñ@<¨tDi¤ |
From: Carsten K. <car...@us...> - 2001-12-06 22:44:45
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv25806/phpwiki/lib Modified Files: interwiki.map Log Message: Category:Category links to the CategoryCategory page, yet this page won't show up in the back-links listing of CategoryCategory. Index: interwiki.map =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/interwiki.map,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** interwiki.map 2001/12/06 21:53:41 1.5 --- interwiki.map 2001/12/06 22:44:42 1.6 *************** *** 8,11 **** --- 8,12 ---- BridgesWiki http://c2.com/w2/bridges/ C2find http://c2.com/cgi/wiki?FindPage&value= + Category Category CLiki http://www.telent.net/cliki/ CmWiki http://www.ourpla.net/cgi-bin/wiki.pl? |
From: Carsten K. <car...@us...> - 2001-12-06 22:11:26
|
Update of /cvsroot/phpwiki/phpwiki In directory usw-pr-cvs1:/tmp/cvs-serv18110/phpwiki Modified Files: index.php Log Message: typo URL_LINK_ICONS Index: index.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/index.php,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -r1.35 -r1.36 *** index.php 2001/12/06 21:13:30 1.35 --- index.php 2001/12/06 22:11:23 1.36 *************** *** 269,273 **** // FIXME: need a special icon (question mark?) for unknown protocols. /* ! $LINK_ICONS = array( 'http' => 'images/http.png', 'https' => 'images/https.png', --- 269,273 ---- // FIXME: need a special icon (question mark?) for unknown protocols. /* ! $URL_LINK_ICONS = array( 'http' => 'images/http.png', 'https' => 'images/https.png', |
From: Carsten K. <car...@us...> - 2001-12-06 22:09:51
|
Update of /cvsroot/phpwiki/phpwiki/images In directory usw-pr-cvs1:/tmp/cvs-serv17579/phpwiki/images Modified Files: https.png Log Message: *** empty log message *** Index: https.png =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/images/https.png,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 Binary files /tmp/cvsq4ScVw and /tmp/cvsAtZWyT differ |
From: Carsten K. <car...@us...> - 2001-12-06 21:13:33
|
Update of /cvsroot/phpwiki/phpwiki In directory usw-pr-cvs1:/tmp/cvs-serv31500/phpwiki Modified Files: index.php Log Message: New icon for unknown link protocols, a hollow arrow (a question mark could be confused with unknown-WikiWords). Index: index.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/index.php,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -r1.34 -r1.35 *** index.php 2001/12/06 19:15:05 1.34 --- index.php 2001/12/06 21:13:30 1.35 *************** *** 274,278 **** 'ftp' => 'images/ftp.png', 'mailto' => 'images/mailto.png', ! '*' => 'images/http.png' ); */ --- 274,278 ---- 'ftp' => 'images/ftp.png', 'mailto' => 'images/mailto.png', ! '*' => 'images/zapg.png' ); */ |
From: Carsten K. <car...@us...> - 2001-12-06 21:04:03
|
Update of /cvsroot/phpwiki/phpwiki/images In directory usw-pr-cvs1:/tmp/cvs-serv28890/phpwiki/images Added Files: zapg.png Log Message: Tweaks to linkicons. --- NEW FILE --- PNG Ýz$á(Ëw0¶¨ÇYö¢* ZÖµ* ÈårÄä-Y(L(9^Ü6W/Æðð°K É J±oò(Y@ ¥t|ù¸J¥ÒuY"@,cGÖHX>þÑ|é7áÃt÷ôBÚÛ®n)::%ho!ì°Á£ÁÚrªß1 |
From: Carsten K. <car...@us...> - 2001-12-06 21:03:49
|
Update of /cvsroot/phpwiki/phpwiki/images In directory usw-pr-cvs1:/tmp/cvs-serv28803/phpwiki/images Modified Files: mailto.png Log Message: Tweaks to linkicons. Index: mailto.png =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/images/mailto.png,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 Binary files /tmp/cvsoNBIct and /tmp/cvsCwGz7L differ |
From: Carsten K. <car...@us...> - 2001-12-06 21:03:28
|
Update of /cvsroot/phpwiki/phpwiki/images In directory usw-pr-cvs1:/tmp/cvs-serv28707/phpwiki/images Modified Files: http.png Log Message: Tweaks to linkicons. Index: http.png =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/images/http.png,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 Binary files /tmp/cvsyVa2FJ and /tmp/cvswDI03i differ |
From: Geoffrey T. D. <da...@us...> - 2001-12-06 20:44:17
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv22983/lib Modified Files: WikiUser.php Log Message: Kludgy patch to close a potential security hole. (I think a carefully constructed cookie could be used to log in (as admin, even) without a password.) I'll work on a longer term fix... Index: WikiUser.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/WikiUser.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** WikiUser.php 2001/12/02 02:34:48 1.4 --- WikiUser.php 2001/12/06 20:44:13 1.5 *************** *** 23,26 **** --- 23,37 ---- // don't check for HTTP auth if there's nothing to worry about + // + // FIXME: the addition of this short-cut introduced a security hole. + // Since $this->_restore can potentially restore $this from a + // user provided cookie, a carefully constructed cookie can + // be used to effectively log in (even as admin) without + // a password. + // + // For now, I'm disabling the code which saves/restores $this + // in a cookie. (Login state is still preserved in session vars.) + // I'll work on a longer term solution. + if ( $this->state == 'authorized' && $auth_mode != 'LOGIN' *************** *** 206,212 **** if ( $this->_copy($req->getSessionVar('auth_state')) ) - return; - elseif ( $this->_copy($req->getCookieVar('WIKI_AUTH')) ) return; else { // Default state. --- 217,224 ---- if ( $this->_copy($req->getSessionVar('auth_state')) ) return; + // FIXME: Disable restore from cookie (see note in WikiUser().) + //elseif ( $this->_copy($req->getCookieVar('WIKI_AUTH')) ) + // return; else { // Default state. *************** *** 221,225 **** $req->setSessionVar('auth_state', $this); ! $req->setCookieVar('WIKI_AUTH', $this); } } --- 233,238 ---- $req->setSessionVar('auth_state', $this); ! // FIXME: Disable restore from cookie (see note in WikiUser().) ! //$req->setCookieVar('WIKI_AUTH', $this); } } |
From: Geoffrey T. D. <da...@us...> - 2001-12-06 19:15:08
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv26669/lib Modified Files: stdlib.php Log Message: Cleaned up the external URL link icon code a bit. Index: stdlib.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/stdlib.php,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -r1.54 -r1.55 *** stdlib.php 2001/12/06 18:29:15 1.54 --- stdlib.php 2001/12/06 19:15:05 1.55 *************** *** 102,153 **** } ! function LinkURL($url, $linktext='') { ! // FIXME: Is this needed (or sufficient?) ! if(ereg("[<>\"]", $url)) { ! return Element('strong', ! QElement('u', array('class' => 'baduri'), ! 'BAD URL -- remove all of <, >, "')); //" ! } ! if (empty($linktext)) { ! $linktext = $url; ! $class = 'rawurl'; ! } ! else { ! $class = 'namedurl'; ! } ! if (!defined('USE_LINK_ICONS')) { ! return QElement('a', ! array('href' => $url, 'class' => $class), ! $linktext); ! } else { ! //ideally the link image would be specified by a map file ! //similar to the interwiki.map ! $linkproto = substr($url, 0, strrpos($url, ":")); ! switch($linkproto) { ! case "mailto": ! $linkimg = "/images/mailto.png"; ! break; ! case "http": ! $linkimg = "/images/http.png"; ! break; ! case "https": ! $linkimg = "/images/https.png"; ! break; ! case "ftp": ! $linkimg = "/images/ftp.png"; ! break; ! default: ! $linkimg = "/images/http.png"; ! break; ! } ! return Element('a', ! array('href' => $url, 'class' => $class), ! Element('img', array('src' => DATA_PATH . $linkimg, ! 'alt' => $linkproto)) ! . $linktext); ! } ! } function LinkWikiWord($wikiword, $linktext='') { --- 102,137 ---- } ! function LinkURL($url, $linktext = '') { ! // FIXME: Is this needed (or sufficient?) ! if(ereg("[<>\"]", $url)) { ! return Element('strong', ! QElement('u', array('class' => 'baduri'), ! _('BAD URL -- remove all of <, >, "'))); //" ! } ! $attr['href'] = $url; ! if (empty($linktext)) { ! $linktext = $url; ! $attr['class'] = 'rawurl'; ! } ! else { ! $attr['class'] = 'namedurl'; ! } ! $linktext = htmlspecialchars($linktext); ! ! $linkproto = substr($url, 0, strpos($url, ":")); ! $ICONS = &$GLOBALS['URL_LINK_ICONS']; ! ! $linkimg = isset($ICONS[$linkproto]) ? $ICONS[$linkproto] : $ICONS['*']; ! if (!empty($linkimg)) { ! $imgtag = Element('img', array('src' => DataURL($linkimg), ! 'alt' => $linkproto, ! 'class' => 'linkicon')); ! $linktext = $imgtag . $linktext; ! } ! ! return Element('a', $attr, $linktext); ! } function LinkWikiWord($wikiword, $linktext='') { |
From: Geoffrey T. D. <da...@us...> - 2001-12-06 19:15:08
|
Update of /cvsroot/phpwiki/phpwiki In directory usw-pr-cvs1:/tmp/cvs-serv26669 Modified Files: phpwiki.css index.php Log Message: Cleaned up the external URL link icon code a bit. Index: phpwiki.css =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/phpwiki.css,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** phpwiki.css 2001/12/06 18:25:41 1.5 --- phpwiki.css 2001/12/06 19:15:05 1.6 *************** *** 169,172 **** --- 169,182 ---- /* + * No border on external link icons. + */ + img.linkicon { + border: none; + margin-right: 0.5ex; + margin-left: 0.25ex; + vertical-align: bottom; + } + + /* * Put a border around wikiaction forms: * This doesn't work for NS4. Index: index.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/index.php,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -r1.33 -r1.34 *** index.php 2001/12/06 08:15:38 1.33 --- index.php 2001/12/06 19:15:05 1.34 *************** *** 267,271 **** // this turns on url indicator icons, inserted before embedded links ! //define("USE_LINK_ICONS", 1); // Date & time formats used to display modification times, etc. --- 267,280 ---- // this turns on url indicator icons, inserted before embedded links ! // FIXME: need a special icon (question mark?) for unknown protocols. ! /* ! $LINK_ICONS = array( ! 'http' => 'images/http.png', ! 'https' => 'images/https.png', ! 'ftp' => 'images/ftp.png', ! 'mailto' => 'images/mailto.png', ! '*' => 'images/http.png' ! ); ! */ // Date & time formats used to display modification times, etc. |
From: Geoffrey T. D. <da...@us...> - 2001-12-06 18:44:33
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv16441/lib Modified Files: transform.php Log Message: Add parentheses to the list of punctuation not allowed in un-bracketed InterWiki links. Index: transform.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/transform.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -r1.27 -r1.28 *** transform.php 2001/11/16 22:59:02 1.27 --- transform.php 2001/12/06 18:41:21 1.28 *************** *** 330,334 **** $transform->register(WT_TOKENIZER, 'wtt_interwikilinks', pcre_fix_posix_classes("!?(?<![[:alnum:]])") . ! "$InterWikiLinkRegexp:[^\\s.,;?]+"); } $transform->register(WT_TOKENIZER, 'wtt_bumpylinks', "!?$WikiNameRegexp"); --- 330,334 ---- $transform->register(WT_TOKENIZER, 'wtt_interwikilinks', pcre_fix_posix_classes("!?(?<![[:alnum:]])") . ! "$InterWikiLinkRegexp:[^\\s.,;?()]+"); } $transform->register(WT_TOKENIZER, 'wtt_bumpylinks', "!?$WikiNameRegexp"); |