From 14a960ac7b3d7345965a419e81ee8afcb88b8953 Mon Sep 17 00:00:00 2001
From: Petr Skoda
Date: Wed, 4 Nov 2009 19:53:01 +0000
Subject: [PATCH] MDL-20700 coding style cleanup - cvs keywords removed,
closign php tag removed, trailing whitespace cleanup
---
lib/typo3/class.t3lib_cs.php | 1 -
lib/typo3/class.t3lib_div.php | 1 -
mod/wiki/TODO.txt | 4 +-
mod/wiki/admin.php | 4 +-
mod/wiki/backuplib.php | 20 +-
mod/wiki/confirmlock.php | 9 +-
mod/wiki/db/access.php | 4 +-
mod/wiki/db/install.php | 2 +-
mod/wiki/db/upgrade.php | 6 +-
mod/wiki/ewiki/README | 528 +++++++++---------
mod/wiki/ewiki/README.de | 422 +++++++-------
mod/wiki/ewiki/ewiki.php | 142 ++---
mod/wiki/ewiki/fragments/auth.php | 5 +-
mod/wiki/ewiki/fragments/binary.php | 1 -
mod/wiki/ewiki/fragments/calendar.css | 2 +-
mod/wiki/ewiki/fragments/htaccess | 2 +-
mod/wiki/ewiki/fragments/mkhuge | 2 +-
mod/wiki/ewiki/fragments/nuke_mod_wiki_index | 2 +-
.../fragments/strip_wonderful_slashes.php | 4 +-
mod/wiki/ewiki/fragments/wiki_format.inc | 4 +-
mod/wiki/ewiki/plugins/aview/backlinks.php | 5 +-
mod/wiki/ewiki/plugins/aview/downloads.php | 10 +-
mod/wiki/ewiki/plugins/email_protect.php | 8 +-
.../ewiki/plugins/feature/imgresize_gd.php | 3 +-
mod/wiki/ewiki/plugins/init.php | 6 +-
mod/wiki/ewiki/plugins/jump.php | 7 +-
mod/wiki/ewiki/plugins/lib/mime_magic.php | 115 ++--
mod/wiki/ewiki/plugins/markup/footnotes.php | 9 +-
mod/wiki/ewiki/plugins/moodle/diff.php | 14 +-
mod/wiki/ewiki/plugins/moodle/downloads.php | 18 +-
mod/wiki/ewiki/plugins/moodle/f_fixhtml.php | 6 +-
.../plugins/moodle/moodle_binary_store.php | 22 +-
.../ewiki/plugins/moodle/moodle_highlight.php | 8 +-
.../plugins/moodle/moodle_rescue_html.php | 10 +-
.../ewiki/plugins/moodle/moodle_wikidump.php | 110 ++--
mod/wiki/ewiki/plugins/moodle/sitemap.php | 54 +-
mod/wiki/ewiki/plugins/moodle/wantedpages.php | 18 +-
mod/wiki/ewiki/plugins/notify.php | 3 +-
mod/wiki/ewiki/plugins/page/orphanedpages.php | 8 +-
mod/wiki/ewiki/plugins/page/pageindex.php | 4 +-
mod/wiki/ewiki/plugins/patchsaving.php | 9 +-
mod/wiki/ewiki/plugins/pluginloader.php | 1 -
mod/wiki/ewiki/plugins/spages.php | 4 +-
mod/wiki/ewikimoodlelib.php | 2 +-
mod/wiki/filter.php | 8 +-
mod/wiki/index.php | 2 +-
mod/wiki/lib.php | 34 +-
mod/wiki/mod_form.php | 2 +-
mod/wiki/overridelock.php | 4 +-
mod/wiki/restorelib.php | 20 +-
mod/wiki/test.php | 1 -
mod/wiki/version.php | 4 +-
mod/wiki/view.php | 2 +-
53 files changed, 841 insertions(+), 855 deletions(-)
diff --git a/lib/typo3/class.t3lib_cs.php b/lib/typo3/class.t3lib_cs.php
index 918aaa420c..a596cb72c5 100644
--- a/lib/typo3/class.t3lib_cs.php
+++ b/lib/typo3/class.t3lib_cs.php
@@ -25,7 +25,6 @@
* Class for conversion between charsets.
*
* Typo Id: class.t3lib_cs.php 3439 2008-03-16 19:16:51Z flyguide $
- * Moodle $Id$
*
* @author Kasper Skaarhoj
* @author Martin Kutschker
diff --git a/lib/typo3/class.t3lib_div.php b/lib/typo3/class.t3lib_div.php
index 1b9dbb17de..984f5212d9 100644
--- a/lib/typo3/class.t3lib_div.php
+++ b/lib/typo3/class.t3lib_div.php
@@ -28,7 +28,6 @@
* Contains the reknown class "t3lib_div" with general purpose functions
*
* Typo Id: class.t3lib_div.php 3797 2008-06-11 06:39:13Z stucki $
- * Moodle $Id$
* Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj
* XHTML compliant
* Usage counts are based on search 22/2 2003 through whole source including tslib/
diff --git a/mod/wiki/TODO.txt b/mod/wiki/TODO.txt
index 66c885653c..d40862b929 100644
--- a/mod/wiki/TODO.txt
+++ b/mod/wiki/TODO.txt
@@ -16,7 +16,7 @@ Unassigned or not ready:
- Wiki HTML: http://moodle.org/mod/forum/discuss.php?d=8920
- http://moodle.org/mod/forum/discuss.php?d=7768#36954
- Image Thumbnails http://moodle.org/mod/forum/discuss.php?d=8351
-
-
+
+
ewiki Preparation:
- Current Version: 1.01d
diff --git a/mod/wiki/admin.php b/mod/wiki/admin.php
index 8dd35e12bb..b297e78ad1 100644
--- a/mod/wiki/admin.php
+++ b/mod/wiki/admin.php
@@ -132,7 +132,7 @@
default: break;
}
}
-
+
$PAGE->navbar->add(get_string("administration","wiki"));
$PAGE->set_title($wiki_entry->pagename);
$PAGE->set_focuscontrol($focus);
@@ -370,4 +370,4 @@
echo $OUTPUT->footer();
exit;
-?>
+
diff --git a/mod/wiki/backuplib.php b/mod/wiki/backuplib.php
index 78b2d12a2a..7953c09f70 100644
--- a/mod/wiki/backuplib.php
+++ b/mod/wiki/backuplib.php
@@ -1,4 +1,4 @@
-get_record('wiki', array('id'=>$wiki));
}
-
+
//Start mod
fwrite ($bf,start_tag("MOD",3,true));
//Print assignment data
@@ -68,16 +68,16 @@
fwrite ($bf,full_tag("REVERTCHANGES",4,false,$wiki->revertchanges));
fwrite ($bf,full_tag("INITIALCONTENT",4,false,$wiki->initialcontent));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$wiki->timemodified));
-
+
//backup entries and pages
if (backup_userdata_selected($preferences,'wiki',$wiki->id)) {
$status = backup_wiki_entries($bf,$preferences,$wiki->id, $preferences->mods["wiki"]->userinfo);
$status = backup_wiki_files_instance($bf,$preferences,$wiki->id);
}
-
+
//End mod
fwrite ($bf,end_tag("MOD",3,true));
-
+
return $status;
}
@@ -171,12 +171,12 @@
}
return $status;
}
-
+
function backup_wiki_files_instance($bf,$preferences,$instanceid) {
global $CFG, $DB;
-
+
$status = true;
-
+
//First we check to moddata exists and create it as necessary
//in temp/backup/$backup_code dir
$status = check_and_create_moddata_dir($preferences->backup_unique_code);
@@ -240,4 +240,4 @@
return $result;
}
-?>
+
diff --git a/mod/wiki/confirmlock.php b/mod/wiki/confirmlock.php
index 4cc68ca708..9647f9b9f7 100644
--- a/mod/wiki/confirmlock.php
+++ b/mod/wiki/confirmlock.php
@@ -1,8 +1,8 @@
set_url($CFG->wwwroot.'/mod/wiki/confirmlock.php');
-header('Content-Type: text/plain');
+header('Content-Type: text/plain');
$lockid = optional_param('lockid', 0, PARAM_INT);
@@ -27,9 +27,8 @@ if($lockid == 0) {
if($lock=$DB->get_record('wiki_locks', array('id'=>$lockid))) {
$lock->lockedseen=time();
$DB->update_record('wiki_locks',$lock);
- print 'ok';
+ print 'ok';
} else {
print 'cancel'; // Tells user their lock has been cancelled.
}
-?>
\ No newline at end of file
diff --git a/mod/wiki/db/access.php b/mod/wiki/db/access.php
index 25e84fd840..654d246ab9 100644
--- a/mod/wiki/db/access.php
+++ b/mod/wiki/db/access.php
@@ -1,4 +1,4 @@
- CAP_ALLOW
)
),
-
+
'mod/wiki:overridelock' => array(
'riskbitmask' => 0,
diff --git a/mod/wiki/db/install.php b/mod/wiki/db/install.php
index fe37656ce8..c8fe08e75d 100644
--- a/mod/wiki/db/install.php
+++ b/mod/wiki/db/install.php
@@ -1,4 +1,4 @@
-
+
diff --git a/mod/wiki/ewiki/README b/mod/wiki/ewiki/README
index 342ed1369c..7b6f5f1a16 100644
--- a/mod/wiki/ewiki/README
+++ b/mod/wiki/ewiki/README
@@ -4,7 +4,7 @@ ErfurtWiki - a fast, user-friendly, highly configurable Wiki engine in PHP
README
-¯¯¯¯¯¯
+������
This is the documentation for ewiki. I tries to describe nearly everything,
but therefore has now grown to long to be read at once. However it is often
sufficient to just read the first few paragraphs to set it up (plugins can be
@@ -246,7 +246,7 @@ read this file in hypertext format.
What is this?
-¯¯¯¯¯¯¯¯¯¯¯¯¯
+�������������
This is a WikiWikiWeb engine implemented in the PHP web scripting
language. A WikiWiki is a web site which can be edited by everybody
who visits it (most commonly without requiring that user to register
@@ -260,7 +260,7 @@ text for inclusion in your pages` body/content area.
Why "ErfurtWiki"?
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+�����������������
My home town (Btw, Erfurt is next to Weimar.de) and really that's
just a name (you're allowed to rename, extend it and to finally
ship it GPLifyed). You'll soon see the internal name is "ewiki",
@@ -269,7 +269,7 @@ and it is also sometimes called 'EmbeddableWiki'.
If you asked - Why you should I use it?
- - It is contained within a single file. It does not require 20 other
+ - It is contained within a single file. It does not require 20 other
files to lie around between your own scripts.
- It does not impose a pre-defined layout, and you do not need
@@ -284,7 +284,7 @@ If you asked - Why you should I use it?
WikiAlternatives
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+����������������
If you don't like ewiki, then try at least one of these:
* PhpWiki has a more complete approach than this WikiWare,
@@ -306,7 +306,7 @@ If you don't like ewiki, then try at least one of these:
* coWiki - completely OOP and the source code layout is great; looks
very featureful, but is more a CMS than a Wiki (authentication bloat)
and has also a little weird markup,
- but better check it out yourself on http://cowiki.org/
+ but better check it out yourself on http://cowiki.org/
* And of course there are Wikis in other scripting languages (and yes,
there is still demand for an implementation in assembler or C !!)
@@ -319,9 +319,9 @@ If you don't like ewiki, then try at least one of these:
Authors
-¯¯¯¯¯¯¯
-current maintainer: Mario Salzer icq95596825 (+Yah,Jab)
-main contributor: Andy Fundinger from http://burgiss.com/
+�������
+current maintainer: Mario Salzer icq95596825 (+Yah,Jab)
+main contributor: Andy Fundinger from http://burgiss.com/
For the complete list of authors and contributors please see the CREDITS
file.
@@ -333,8 +333,8 @@ contribution (yep, that is not measured in lines of source code).
Project Pages
-¯¯¯¯¯¯¯¯¯¯¯¯¯
-official freshmeat project page:
+�������������
+official freshmeat project page:
- http://freshmeat.net/projects/ewiki
demo site:
@@ -349,7 +349,7 @@ mailing list archive
Obtaining Support
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+�����������������
Getting support for problems with ewiki is possible, but please read this
README first. The author is thankful for BugReports, and of course would
like to know were this documentation is not detailed enough and fails to
@@ -368,7 +368,7 @@ soon as your problems are solved).
License
-¯¯¯¯¯¯¯
+�������
This "program" is "distributed" as "Public Domain". Public Domain
is like "FreeWare", but a bit more free ;-> You can think of it
as the GPL without being bound to the GPL. I didn't want to
@@ -384,7 +384,7 @@ downloaded separately (mime_magic.php, rendering_phpwiki12.php).
Known Bugs
-¯¯¯¯¯¯¯¯¯¯
+����������
Currently none. But this note is just here to encourage you to visit
http://erfurtwiki.sourceforge.net/?BugReports
@@ -398,7 +398,7 @@ http://erfurtwiki.sourceforge.net/?BugReports
HowTo
-¯¯¯¯¯
+�����
the ewiki script requires:
- Webserver (Apache, Nanoweb, ...)
@@ -414,13 +414,13 @@ get this running).
Integration with yoursite.php
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+�����������������������������
For the next few paragraphs the "yoursite.php" refers to whatever
files and/or scripts belong to your already existing website. This
hypothetical script should at least output the tags
around the output from ewiki. The most simple script to accomplish
this could look like this (see also example-2.php):
-
+
-
+
[1] The first two commands open a connection to your MySQL database,
usually one saves the result of mysql_connect() in a variable named
$db or so, but as PHP does not depend on it if there is only one
@@ -461,7 +461,7 @@ string but does not output that one itself.
Creating a "config.php"
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ �����������������������
Instead of including the plain "ewiki.php" script as shown in the
example above, many people may find it more useful to include()
a more customized Wiki yoursite.
@@ -506,7 +506,7 @@ string but does not output that one itself.
Generation of a "monsterwiki.php" script
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ����������������������������������������
ewiki over the time grow larger, and nowadays isn't anymore the
single script it once was. The distribution ships with over hundreds
of extension plugins. But nevertheless it is still possible to build
@@ -517,7 +517,7 @@ string but does not output that one itself.
the plugins). - You could still just include() the "ewiki.php"
script into yoursite and delete everything else the ewiki tarball
contained.
-
+
However, it is also possible to MERGE all wanted plugins and the
core script together to built a customized (feature enhanced) Wiki
script from it. All you needed to do was:
@@ -561,13 +561,13 @@ string but does not output that one itself.
loading it twice is once too much).
StaticPages (read about "spages" plugin) can also be included, if
- you first convert them into ordinary ["page"] plugins using the
+ you first convert them into ordinary ["page"] plugins using the
'mkpageplugin' commandline tool.
What to do if images don't work
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ �������������������������������
The first example, as well as the "example-2.php" have problems with
binary content, because: the is output before the 'ewiki.php'
library was loaded and got the chance to output pictures.
@@ -606,11 +606,11 @@ string but does not output that one itself.
Supplying the WikiPageName
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+��������������������������
If you just call ewiki_page() as shown in the first example, it will
try to get the name of the requested WikiPage either from the
$_SERVER["PATH_INFO"] variable or from one of the GET-variables '?id='
-or '?name=' or '?page=' or '?file=' (available as $_REQUEST["name"]).
+or '?name=' or '?page=' or '?file=' (available as $_REQUEST["name"]).
If yoursite.php however uses another way or another varname to receive
the WikiPageName you can just give it as first parameter:
@@ -622,7 +622,7 @@ example-4.php shows how this can be used to list a second WikiPage
mod_rewrite or PATH_INFO
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ������������������������
If you dedicate a complete directory for your wiki, you should keep
in mind, that some of the generated URLs contain slashes (for
example "edit/WikiPage"), and will look like subdirectories and thus
@@ -646,7 +646,7 @@ example-4.php shows how this can be used to list a second WikiPage
use with the 404 trick
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ����������������������
Once I implemented a way to run a web server below another one
(actually Nanoweb below Apache, for more details see
http://nanoweb.si.kz/), because the Apache on one of my providers
@@ -675,7 +675,7 @@ example-4.php shows how this can be used to list a second WikiPage
ewiki.php.
The $url from the above example could also be used as $id
- parameter to ewiki_page().
+ parameter to ewiki_page().
It should be noted, that some Apache implementations are garbaging
POST requests in case of a triggered 404 error - but you can simply
@@ -692,7 +692,7 @@ example-4.php shows how this can be used to list a second WikiPage
Security considerations
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+�����������������������
ewiki was developed using a PHP5 interpreter, but with limitations of PHP4.3
in mind. There are huge differences (a rather instable, bug-prone and still
unfinished language) across the 4.x versions of PHP. The 4.0 series is not
@@ -705,11 +705,11 @@ providers. Some for example enforce users to run their scripts in so called
Other still use pre-4.3 settings for the PHP interpreter (the Win4 php.ini
still is outdated). So take care, and adjust settings using .htaccess`
php_option for Apache servers.
-
+
PHP settings (register_globals)
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ �������������������������������
Because ewiki was developed on later PHP versions (at least 4.3), it
heavily uses the $_REQUEST array and assumes a deactivated
"register_globals" setting in php.ini
@@ -735,7 +735,7 @@ php_option for Apache servers.
The two modes of operation (_protected_mode and _flat_real_mode)
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������������������
While this wiki was originally developed as a real wiki, many people
use it for different things now, like private HomePages, easy CMS on
commercial web sites.
@@ -763,7 +763,7 @@ php_option for Apache servers.
simple usage restrictions via wrappers
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+��������������������������������������
The easiest way to cripple a Wiki setup to be browseable-only for the larger
public, and to allow only a small subset of users to edit pages is to write
two wrapper scripts around the ewiki.php library.
@@ -800,7 +800,7 @@ they'll work for you!
PhpWiki compatibility
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+���������������������
The MySQL database table is partially compatible to PhpWiki versions 1.2.x,
but not with the current PhpWiki 1.3.x versions. There is however now the
db_phpwiki13 plugin which allows to access those (rw).
@@ -808,7 +808,7 @@ db_phpwiki13 plugin which allows to access those (rw).
Transition from another WikiWare
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������������������������
If you choosed ewiki to replace an already existing wiki script on
your site, you should first think about, that the syntax/WikiMarkup
isn't equal across all Wikis. There are a few markup extension
@@ -824,7 +824,7 @@ db_phpwiki13 plugin which allows to access those (rw).
EWIKI_PAGE_INDEX is not found in the db).
There is a "plugins/db_phpwiki13.php" which may be useful in first
- trying ewiki, but it is not recommended to use it for daily work.
+ trying ewiki, but it is not recommended to use it for daily work.
Speaking of PhpWiki you could also use the "tools/t_convertdb.php"
to import (and markup convert) all pages from PhpWiki to the ewiki
database format.
@@ -840,9 +840,9 @@ db_phpwiki13 plugin which allows to access those (rw).
Internals
-¯¯¯¯¯¯¯¯¯
+���������
The MySQL database table structure is to a certain degree compatible
-with that of the well known »PHPWiki« v1.2.x (you only need to change
+with that of the well known �PHPWiki� v1.2.x (you only need to change
EWIKI_DB_TABLE_NAME to "wiki" to use it). This is the MySQL statement
which creates our database table (you can find it at the bottom of the
"ewiki.php" script):
@@ -900,7 +900,7 @@ to implement the flat file based "database backend".
ewiki_ functions
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+����������������
Some of the core functions of ewiki.php can be used separate from the
others and some of them were designed to be replaced by different
implementations.
@@ -982,13 +982,13 @@ or more scripts into one program).
Is just a ewiki_script() wrapper, but can additionally distinguish
between binary download and upload URLs, which could be utilized by
(database external) plain file storages (see plugins/binary_store).
-
+
ewiki_binary()
--------------
Gets called automatically for requests with the ?binary= trailer
which is used to reference cached and uploaded images (or not
- yet cached ones).
+ yet cached ones).
ewiki_author()
@@ -1041,7 +1041,7 @@ or more scripts into one program).
produces the click-through links for inclusion on other dynamic pages,
allows overlapping of page chunk ranges.
-
+
ewiki_in_array($value, &$array, $dn=0)
--------------------------------------
Case-insensitive variant of PHPs` in_array(), returns the $value if
@@ -1137,7 +1137,7 @@ or more scripts into one program).
$GLOBALS pollution
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+������������������
At least the ewiki_page() function produces variables in the
global namespace. Of course they also were named to not interfere
with anything from yoursite.php:
@@ -1176,7 +1176,7 @@ with anything from yoursite.php:
$ewiki_auth_user - Is set by ewiki_auth_user() whenever it successfully
authenticates a user in _PROTECTED_MODE. This variable
is then used as reliable state setting, which affects
- permission granting.
+ permission granting.
$ewiki_ring - Holds the permission level ('ring') of the currently
authenticated user (or else will be unset). This value
@@ -1212,11 +1212,11 @@ with anything from yoursite.php:
$ewiki_script - Was a global var for a short period of time, but now is
a subentry in $ewiki_config.
-
+
EWIKI_ constants
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+����������������
This chapter explains some of the constants and how you can utilize
them to tweak some of ewiki's behaviour.
@@ -1276,7 +1276,7 @@ ewiki by pre-defining one of the following constants).
If you do not set this constant, it will be guessed by the
ewiki_script_url() funciton, what often works but may be suboptimal
and could also lead to security problems.
-
+
EWIKI_DB_TABLE_NAME
Sets the name of the MySQL database table name to be created
@@ -1382,7 +1382,7 @@ ewiki by pre-defining one of the following constants).
If a not logged-in user however re-saves the page this flag
won't be set anymore, so you should be careful about that.
{{edit ewiki.php and define(_DB_F_HTML with 8+16) to change}}
-
+
EWIKI_RESCUE_HTML
Was replaced by "plugins/markup_rescuehtml.php", which now allows
for certain 'safe' HTML tags within the wiki source to be used.
@@ -1459,7 +1459,7 @@ ewiki by pre-defining one of the following constants).
EWIKI_DB_F_BINARY
Used for cached/uploaded images. Prevents a page from getting
shown.
-
+
EWIKI_DB_F_DISABLED
If set will prevent the page from being shown. Not useful.
You could more easily unset the TEXT flag to disable page view.
@@ -1588,7 +1588,7 @@ ewiki by pre-defining one of the following constants).
Note that the renderer relies only on some unique string to detect
binary references, but the database functions in fact depend upon
"://" to return image sizes on "FIND" calls.
-
+
EWIKI_ACCEPT_BINARY
Allows users to upload arbitrary binary files through the image upload
function. You should now rather use the downloads plugin, which adds
@@ -1640,7 +1640,7 @@ ewiki by pre-defining one of the following constants).
you, which version you are running currently.
Major releases have a version number like 'R1.00a', while testing and
unstable releases have another number appended 'R1.00a7'.
-
+
See the tools/ subdir for a small utility to change the mentioned flags
in the ewiki database table.
@@ -1648,7 +1648,7 @@ in the ewiki database table.
$ewiki_config array
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+�������������������
As it turned out not all configuration settings are as everlasting that
they can be constants (this mainly applies to "look&feel"-settings). So
some of the above mentioned EWIKI_ constants can now be overridden by
@@ -1725,7 +1725,7 @@ before the 'ewiki.php' script gets included().
internal coding explained
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+�������������������������
This section is to explain some of the coding style of ewiki, and how some
things work. While many parts of ewiki carry good source code comments, it
is always difficult to quickly understand larger scripts like the ewiki one
@@ -1734,7 +1734,7 @@ by just reading it.
how ewiki operates
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ������������������
ewiki_page()
- decodes the $id and $action from the GET or POST parameters
- tries to load the page from ewiki_database()
@@ -1780,7 +1780,7 @@ by just reading it.
- page plugins return html output, which usually is hardcoded as
strings into them
- provide some interactivity
-
+
ewiki_$action_plugins_*()
- activate on pages with special registered $action's
- provide some interactivity (for page editing for example)
@@ -1788,7 +1788,7 @@ by just reading it.
used variables
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������
Variables in ewiki often have similar names, and are also
regularily passed by reference from one function to another (so it
is in fact the same variable).
@@ -1835,13 +1835,13 @@ by just reading it.
Tweaking
-¯¯¯¯¯¯¯¯
+��������
(this part of the README is also just a collection of random notes)
Just using the wiki source transformation
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+�����������������������������������������
The ewiki_format function was designed to be used independently from the
ewiki database.
@@ -1871,7 +1871,7 @@ stuff). Contributed by Frank Luithle.
Customizing ewiki_format()
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+��������������������������
There are various markup extension plugins available for ewiki, which
allow you to use BBCode or the syntax of another WikiWare. But if you
have a closer look at $ewiki_config (the defaults are in 'ewiki.php'
@@ -1903,7 +1903,7 @@ Please see the section on "ewiki_format() internals" on how to write a
Customization using CSS
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+�����������������������
There are now some interesting ways to style ewiki output, just read on.
Please note, that it in your stylesheets you just write ".wiki" and
@@ -1917,7 +1917,7 @@ lots of class names with minus dashes instead of underscores.)
user style classes in pages
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+���������������������������
The plugins/markup_css allows you to use CSS classes and style definitions
in WikiPages. With the double at @@ followed by a css classname or command
you start styling a paragraph or parts of the text.
@@ -1938,7 +1938,7 @@ like @@color:#ff0000; will work, while specifying font names may not always.
rendered page content
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+���������������������
If you are not interested in walking around the "ewiki.php" script
when you want to tune how the output looks, you should try to
utilize the (few) CSS classes ewiki defines (it does not include
@@ -1954,12 +1954,12 @@ even one color setting or tag):
.indent // to specify a different space-indentation
-
+
pages enclosed in style classes
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+�������������������������������
The most powerful way to style the content ewiki includes into your site
is to use the generic style class names which enclose every page that comes
from ewiki:
@@ -1999,7 +1999,7 @@ widespread.)
plugin output styling
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+���������������������
There often appear special 'pieces' within a rendered page that ewiki
returns, because not everything in the returned html code belongs to the
requested pages` content.
@@ -2054,7 +2054,7 @@ different naming scheme.
Idea Collection
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+���������������
Here we'll note some tricks, on how to do this and that. Some of the
following paragraphs also explain workarounds for currently lacking
features.
@@ -2062,7 +2062,7 @@ features.
Multiple Wikis / InterWiki feature abuse
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ����������������������������������������
Other WikiWare provides means to have multiple namespaces in a wiki,
what if fact is contrary to the original Wiki idea suggesting a
single flat namespace. ewiki does not support SubWikis or alike, to
@@ -2082,7 +2082,7 @@ features.
$ewiki_config["interwiki"]["office"] = "/wiki/office/?id=";
$ewiki_config["interwiki"]["tech"] = "http://tech.company.com/?id=";
$ewiki_config["interwiki"]["our-www"] = "http://www.company.com/";
-
+
The last one is an example, on how to use the InterWiki feature to
generate references to arbitrary web documents, with a simple syntax
like "[our-www:/customers/pub/rules.html]" - it's somehow standard to
@@ -2101,14 +2101,14 @@ features.
Explanations
-¯¯¯¯¯¯¯¯¯¯¯¯
+������������
The next few paragraphs shall enlight more detailed how some things are
handled in ewiki (and why it is that way).
Binary and Text content
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+�����������������������
Because I'd like to keep it small (see also the "Everything in one
script" paragraph) ewiki also creates just one database table.
Differently from other Wikis this one has the 'flags' setting for
@@ -2134,7 +2134,7 @@ throughout the code to separate between _DB_F_BINARY and _DB_F_TEXT content.
Image Uploading
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ���������������
The currently most important use for the BINARY flag and image
functions is to upload images with the small form below every page
edit box.
@@ -2158,7 +2158,7 @@ throughout the code to separate between _DB_F_BINARY and _DB_F_TEXT content.
Images Caching
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������
Images are usually redirected through EWIKI_SCRIPT_BINARY, and ewiki
tries to save them inside the database as with uploaded images. So
most of the facts from the previous paragraph apply to this function
@@ -2177,7 +2177,7 @@ throughout the code to separate between _DB_F_BINARY and _DB_F_TEXT content.
Image WikiMarkup
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ����������������
Usually one writes image references using square brackets around the
url of an image: [http://www.example.com/pics/image.png] or:
[internal://md5md5md5md5md5md5md5md5md5md5md5md5.png]
@@ -2211,7 +2211,7 @@ throughout the code to separate between _DB_F_BINARY and _DB_F_TEXT content.
binary_store, direct access
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ���������������������������
While storing the binary data together with text pages in the same
database is most often a good thing and suits most sites, there
exists also a workaround/hack to keep this binary data in plain
@@ -2231,7 +2231,7 @@ throughout the code to separate between _DB_F_BINARY and _DB_F_TEXT content.
Arbitrary Binary Content
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ������������������������
Set the EWIKI_ACCEPT_BINARY constant, if you'd like to allow any
binary file to be uploaded and saved in the database using the image
upload function. Uploaded files will show up as ordinary (except
@@ -2243,7 +2243,7 @@ throughout the code to separate between _DB_F_BINARY and _DB_F_TEXT content.
$action and $id
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+���������������
Inside of ewiki.php you'll see many occurrences of variables named $id and
$action. The $id refers to the current page, which usually is a string like
ThisPage, ThatPage, OrAnotherPage.
@@ -2268,7 +2268,7 @@ example (the "view" gets mandatory in such cases).
ewiki URLs
- ¯¯¯¯¯¯¯¯¯¯
+ ����������
"$action/$id" is most commonly appended as "GET parameter" to an
ewiki URL, after a string like "?id=" or "?page=" - you've already
noticed that!
@@ -2302,12 +2302,12 @@ example (the "view" gets mandatory in such cases).
Everything in one script
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+������������������������
I think its handy to have one script for one task, and as ewiki is not
intended to be used as portal script I think it's senseless to have
always thousands of libs/scripts surrounding it.
-However as time went on, it turned out, that it would either slow down
+However as time went on, it turned out, that it would either slow down
the core 'library' when everything was included into it, or that there
couldn't be much further development at some point.
@@ -2332,7 +2332,7 @@ inside ewiki.
database plugins
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+����������������
The ewiki.php core script contains a database request function which is
tailored to a MySQL database. However that function is already prepared
to chain to another "database abstraction" function if desired.
@@ -2340,7 +2340,7 @@ to chain to another "database abstraction" function if desired.
MySQL support
- ¯¯¯¯¯¯¯¯¯¯¯¯¯
+ �������������
The first implemented, and still most recommended way to use
ewiki is with a MySQL (3.21 or later) database. RDBMS work more
reliably and of course much faster than any other of the ewiki
@@ -2361,7 +2361,7 @@ to chain to another "database abstraction" function if desired.
plugins/db_flat_files
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ���������������������
If you don't have access to a MySQL database, then just include()
this plugin to save your wiki pages into simple text files (editable,
often called "flat files") inside a dedicated subdirectory. You
@@ -2375,7 +2375,7 @@ to chain to another "database abstraction" function if desired.
Usually "/tmp" will work, but this one is purged on every boot; and
therefore you should create a new sub directory (" mkdir ./pages ")
where all files go into. This newly created subdir must be made
- »world-writeable« using the command "chmod 777 ./pages", because the
+ �world-writeable� using the command "chmod 777 ./pages", because the
WebServers user id counts when accessing it.
Usually you can do both from within your ftp client (the commands
@@ -2418,7 +2418,7 @@ to chain to another "database abstraction" function if desired.
| created: 1046532697
| lastmodified: 1046532697
| refs: \nErfurtWiki\nNewestPages\n
- |
+ |
| !! WikiSourceContent
| ...
@@ -2452,7 +2452,7 @@ to chain to another "database abstraction" function if desired.
plugins/db_fast_files
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ���������������������
NOTE: The db_fast_files has been merged into db_flat_files, so both
formats can be read now - at the same time! Updated or new pages will
however always be written in the file format determined by
@@ -2488,7 +2488,7 @@ to chain to another "database abstraction" function if desired.
plugins/db_any
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������
If you use a relational SQL database other than MySQL, then you
may want to give this plugin a try. It itself provides a wrapper
for the PHP database access wrapper libraries ADOdb, PEAR::DB and
@@ -2521,13 +2521,13 @@ to chain to another "database abstraction" function if desired.
plugins/db_adodb
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ����������������
obsoleted by plugins/db_any
plugins/db_dba
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������
including() this plugin enables ewiki to store the WikiPages in the
Berkeley DB file given with the EWIKI_DBA constant. Your PHP binary
must be compiled with either the "dba" or the "dbm" extension to use
@@ -2597,7 +2597,7 @@ to chain to another "database abstraction" function if desired.
plugins/binary_store
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������������
Is a hack into the ewiki core, which will store binary/uploaded
files outside of the default ewiki database (as plain files in a
data directory).
@@ -2616,7 +2616,7 @@ to chain to another "database abstraction" function if desired.
database, however it has the drawback that only the main ewiki
script can handle this transparently and all admin tools/ fail to
deal with the stored plain data files (no backup support and so on).
-
+
By setting the EWIKI_DB_STORE_URL constant correctly (corresponding
to your wiki setup and where you store the data files, compare with
EWIKI_DB_STORE_DIRECTORY) you can make ewiki create URLs directly
@@ -2631,14 +2631,14 @@ to chain to another "database abstraction" function if desired.
core enhancements
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+�����������������
Some really cool features are put into extension plugins, and the most
important, recommended and most often used ones are listed in this section:
plugins/patchsaving
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ �������������������
If two users concurrently edit a page, then only the first saving
attempt will succeed; which the second user is told by the "This
page version was already saved" failure message.
@@ -2652,7 +2652,7 @@ important, recommended and most often used ones are listed in this section:
plugins/notify
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������
This plugin enables users to get notified, whenever someone changes
a watched page. To enable 'watching' one must just place an email
address into the page with following syntax:
@@ -2671,7 +2671,7 @@ important, recommended and most often used ones are listed in this section:
plugins/jump
- ¯¯¯¯¯¯¯¯¯¯¯¯
+ ������������
Introduces magic markup for page redirection (switching to another
page). Possible notations are:
@@ -2689,7 +2689,7 @@ important, recommended and most often used ones are listed in this section:
plugins/email_protect
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ���������������������
This plugin 'ciphers' all valid email addresses inside a WikiPage
for protection against automated spambots. Additionally it
throws fake/trap email addresses to spam spammers databases :>
@@ -2702,7 +2702,7 @@ important, recommended and most often used ones are listed in this section:
plugins/spages (StaticPages)
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ����������������������������
The "StaticPages"-plugin allows ewiki to access files in a given
directory. If these files are in text format, ewiki will parse them
as WikiPages. But if you put files with an extension .html, .htm or
@@ -2710,9 +2710,9 @@ important, recommended and most often used ones are listed in this section:
be returned as is from ewiki_page() - the .php files will of course
get executed and their output is returned.
- The basename of the files in the directories to be used by spages
+ The basename of the files in the directories to be used by spages
will make up the WikiPageName with which the files will be
- accessible.
+ accessible.
Any given directory (see on top of plugins/spages.php) will be read
recursively. So files in a subdirectory will get available as a
@@ -2752,7 +2752,7 @@ important, recommended and most often used ones are listed in this section:
plugins/pluginloader
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������������
The pluginloader plugin automatically loads ["action"] and ["page"]
plugins, whenever necessary. This allows to skip dozens of
include() statements within the config.php (which most always just
@@ -2764,7 +2764,7 @@ important, recommended and most often used ones are listed in this section:
plugins/init
- ¯¯¯¯¯¯¯¯¯¯¯¯
+ ������������
Handles database initialization using the distributed standard Wiki
files from './init-pages'. Unlike the ewiki-builtin function to
perform that task, this plugin first outputs informational notes
@@ -2775,7 +2775,7 @@ important, recommended and most often used ones are listed in this section:
plugins/feature/appendonly
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������������������
This plugin (a family of) implements the actual support for the
_DB_F_APPENDONLY page flag. When the flag is set, and this plugin
active, then ordinary users can further only append text to the
@@ -2809,7 +2809,7 @@ important, recommended and most often used ones are listed in this section:
plugins/feature/imgresize_gd
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ����������������������������
Was extracted from the core during the R1.00f development releases.
Automatically rescales uploaded images, if they are larger than
EWIKI_IMAGE_MAXSIZE.
@@ -2821,7 +2821,7 @@ important, recommended and most often used ones are listed in this section:
plugins/feature/imgresize_magick
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������������������������
Rescales uploaded images via the ImageMagick utility "mogrify",
which is usually only available on UNIX systems. It should however
be fairly simple to make this plugin work with some other image
@@ -2830,7 +2830,7 @@ important, recommended and most often used ones are listed in this section:
plugins/feature/spellcheck
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������������������
Turns the [preview] button below every page edit box into a
spellcheck function.
@@ -2841,7 +2841,7 @@ important, recommended and most often used ones are listed in this section:
action/ plugins
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+���������������
Action plugins are those, that can be activated ON individual pages. And
usually are shown as links below a page. The ewiki-builtin EditThisPage,
BackLinks and PageInfo are ["action"] plugins for example.
@@ -2849,15 +2849,15 @@ BackLinks and PageInfo are ["action"] plugins for example.
plugins/action/diff
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ �������������������
Enables to view the differences between two saved page versions
(what changes somebody has done to the page), but it is rather
stupid and guessworking in how it does so.
-
+
plugins/action/translation
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������������������
This plugin adds a link to the GoogleLanguageTools or AltaVista
BabelFish, which then remotely translated the current page into
the users preferred language. It has support to detect the lang
@@ -2866,7 +2866,7 @@ BackLinks and PageInfo are ["action"] plugins for example.
plugins/like_pages
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ������������������
LikePages is a search feature of WardsWiki, which scans for
WikiPages whose name is somewhat similar to the one of the current
page (the pagename must be made up of the same WikiWordParts so a
@@ -2875,13 +2875,13 @@ BackLinks and PageInfo are ["action"] plugins for example.
plugins/action/raw
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ������������������
Can be used to download the unrendered Wiki source of a page.
plugins related to hypertext links
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+����������������������������������
The linking/ plugin group deals with how links inside the Wiki will look and
work. Some of them are would also fall the "core enhancements" group, while
others are just handy or for link beatification.
@@ -2889,7 +2889,7 @@ others are just handy or for link beatification.
plugins/linking/tcn
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ �������������������
ewiki evaluates the Accept-Language HTTP header modern browser
send with each request. This plugin now automatically brings up
a variant of the current requested page if it finds a match in
@@ -2913,7 +2913,7 @@ others are just handy or for link beatification.
plugins/linking/plural
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ����������������������
This plugin tries to alias plural and singular page names against
each other. That is, "WikiPage" will be shown, whenever "WikiPages"
was requested (and vice versa).
@@ -2921,7 +2921,7 @@ others are just handy or for link beatification.
plugins/linking/autolinking
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ���������������������������
The autolinking plugin allows to have automatic links inside the
Wiki for words which exist in the database, but are no real
WikiWords. This is made possible by the companion StaticPage
@@ -2932,7 +2932,7 @@ others are just handy or for link beatification.
plugins/linking/link_css
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ������������������������
Adds CSS classes to the links generated by the Wiki page formatting
kernel, which then allow you to colorize (or to otherwise change
appearance of links) via a style sheet.
@@ -2940,7 +2940,7 @@ others are just handy or for link beatification.
plugins/linking/link_icons
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������������������
The link_icons plugin prepends icon s before registered link
types, like the link_css plugin adds class="..." attributes to the
html formatted links in every page.
@@ -2948,14 +2948,14 @@ others are just handy or for link beatification.
plugins/linking/link_target_blank
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ���������������������������������
Adds 'target="blank"' to link tags , which will result in most
browsers opening pages in a new window.
plugins/linking/linkexcerpts
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ����������������������������
Adds a short preview text (with ) to every link of
a page. This however requires multiple additonal database accesses
(slower) and could enlarge delivered .html page sizes dramatically.
@@ -2963,7 +2963,7 @@ others are just handy or for link beatification.
plugins/linking/linkdatabase
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ����������������������������
Is a page plugin, which provides a nearly compliant implementation
of the page and link structure export function known from the UseMod
WikiWare and MeatBall:LinkDatabase. This is useful for contributing
@@ -2972,7 +2972,7 @@ others are just handy or for link beatification.
plugins/linking/instanturls
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ���������������������������
Allows to specify URL abbreviations on one or more summary pages.
This can be done using a table or a definition list to assign
each URL a title, which then can be used on other pages as square
@@ -2987,14 +2987,14 @@ others are just handy or for link beatification.
plugins/linking/titlefix
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ������������������������
Allows to swap [title|PageName] in square brackers [Page|title],
because that can easily be detected, if the page already exists.
plugins/interwiki/intermap
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������������������
This plugin (in fact only a general include) extends the list of
known InterWiki: prefixes with a more complete set merged from
MoinMoin and PhpWiki's interwiki.map. The links are rather
@@ -3004,28 +3004,28 @@ others are just handy or for link beatification.
appearance/ tweaks
-¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+������������������
There are various plugin hooks within ewiki, which allow to mangle text
strings and data immediately before it would be returned as output.
plugins/appearance/listpages_br
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ �������������������������������
This plugin will produce separated lists (for SearchPages,
PageIndex, MostVisitedPages, and so on).
plugins/appearance/listpages_ul
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ �������������������������������
Creates real
code
instead of the limited pipe syntax provided by ewiki. It will parse
for
and
tags and strip any not registered attributes to
@@ -3351,7 +3351,7 @@ used WikiWare.
plugins/markup_rescuehtml
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ �������������������������
Allows to use some 'safe' HTML tags within the WikiPage. This
plugin replaces the previous EWIKI_RESCUE_HTML constant.
@@ -3372,7 +3372,7 @@ used WikiWare.
..................................................................
: The code of this module is covered by the GPL license, as it :
: was copied verbatim from the PhpWiki project. :
- ··································································
+ ������������������������������������������������������������������
@@ -3388,7 +3388,7 @@ used WikiWare.
mpi
-¯¯¯
+���
The so called "mpi" plugins can be embedded into pages, and produce their
output there. They are loaded on demand (only if it appears that they should
be invoked), but it is possible to include() the individual files regardless
@@ -3414,7 +3414,7 @@ create a link inside of the page using the syntax
mpi_backlinks
- ¯¯¯¯¯¯¯¯¯¯¯¯¯
+ �������������
Prints a list of BackLinks to the current page (the same as when
clicking on the title of a page or on the BackLinks action link).
@@ -3423,13 +3423,13 @@ create a link inside of the page using the syntax
mpi_multimedia
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
+ ��������������
Allows to
";
}
$line = "
\n
" . str_replace("|", "
\n
", $line) . "
\n
";
}
@@ -1940,7 +1940,7 @@ function ewiki_format (
#-- headlines
if (($c0 == "!") && ($excl = strspn($line, "!"))) {
- if ($excl > 3) {
+ if ($excl > 3) {
$excl = 3;
}
$line = substr($line, $excl);
@@ -1961,12 +1961,12 @@ function ewiki_format (
$n_indent = 0;
if (!$list && (!$s["block"]) && ($n_indent = strspn($line, " "))) {
$n_indent = (int) ($n_indent / 2.65);
- while ($n_indent > $s["indent"]) {
+ while ($n_indent > $s["indent"]) {
$out .= $wm_indent;
$s["indent"]++;
}
}
- while ($n_indent < $s["indent"]) {
+ while ($n_indent < $s["indent"]) {
$out .= "";
$s["indent"]--;
}
@@ -2018,7 +2018,7 @@ function ewiki_format (
list($lopen, $ltag1, $ltag2) = $wm_list[$lchar];
$lclose = strtok($lopen, " ");
$lspace = str_repeat(" ", $new_len);
-
+
$out .= "\n$lspace<$lopen>\n" . "$lspace". $linsert . "<$ltag2>";
$s["close"][] = "$lspace$lclose>";
$s["close"][] = "$lspace$ltag2>";
@@ -2129,7 +2129,7 @@ function ewiki_format (
if ($ooo[$in][1] & 0x0002) {
##### BEGIN MOODLE ADDITION #####
# No WikiLinks in Editor
- #################################
+ #################################
global $ewiki_use_editor, $ewiki_editor_content;
if(!($ewiki_use_editor && $ewiki_editor_content)) {
##### END MOODLE ADDITION #####
@@ -2186,7 +2186,7 @@ function ewiki_format_close_para(&$ooo, &$s) {
function ewiki_format_close_tags(&$ooo, &$s, $count=100) {
$out = &$ooo[$s["in"]][0];
- if (!is_array($s) || !is_array($s["close"])) {
+ if (!is_array($s) || !is_array($s["close"])) {
die("\$s is garbaged == $s!!");
}
while (($count--) && ($add = array_pop($s["close"]))) {
@@ -2203,7 +2203,7 @@ function ewiki_format_pre(&$str, &$in, &$iii, &$s, $btype) {
function ewiki_format_html(&$str, &$in, &$iii, &$s) {
$he = array_reverse($GLOBALS["ewiki_config"]["htmlentities"]);
$str = strtr($str, array_flip($he));
- $str = "" . $str . "\n\n";
+ $str = "" . $str . "\n\n";
}
@@ -2272,7 +2272,7 @@ function ewiki_render_wiki_links(&$o) {
*/
function ewiki_merge_links(&$ewiki_links) {
global $ewiki_plugins;
-#### BEGIN MOODLE CHANGES
+#### BEGIN MOODLE CHANGES
global $ewiki_link_case;
$ewiki_link_case=array();
#### END MOODLE CHANGES
@@ -2280,11 +2280,11 @@ function ewiki_merge_links(&$ewiki_links) {
foreach ($ewiki_plugins["page"] as $page=>$uu) {
$ewiki_links[$page] = 1;
}
-#### BEGIN MOODLE CHANGES
+#### BEGIN MOODLE CHANGES
foreach($ewiki_links as $page => $uu) {
if($uu) {
- $ewiki_link_case[strtolower($page)]=$page;
- }
+ $ewiki_link_case[strtolower($page)]=$page;
+ }
}
#### END MOODLE CHANGES
$ewiki_links = ewiki_array($ewiki_links);
@@ -2348,7 +2348,7 @@ function ewiki_link_regex_callback($uu, $force_noimg=0) {
$href = str_replace($f, $t, $href);
}
}
-
+
#-- anchors
$href2 = "";
if (($p = strrpos($href, "#")) && ($p) && ($href[$p-1] != "&")) {
@@ -2394,9 +2394,9 @@ function ewiki_link_regex_callback($uu, $force_noimg=0) {
#-- ordinary internal WikiLinks
elseif (($ewiki_links === true) || @$ewiki_links[$href_i]) {
$type = array("wikipage");
-#### BEGIN MOODLE CHANGES
+#### BEGIN MOODLE CHANGES
global $ewiki_link_case;
- $href_realcase=array_key_exists($href_i,$ewiki_link_case) ? $ewiki_link_case[$href_i] : $href;
+ $href_realcase=array_key_exists($href_i,$ewiki_link_case) ? $ewiki_link_case[$href_i] : $href;
$str = '' . $title . '';
#### END MOODLE CHANGES
@@ -2426,7 +2426,7 @@ function ewiki_link_regex_callback($uu, $force_noimg=0) {
}
#-- convert standard URLs
- foreach ($ewiki_config["idf"]["url"] as $find)
+ foreach ($ewiki_config["idf"]["url"] as $find)
if (strpos($href, $find)===0) {
$type[-2] = "url";
$type[-1] = strtok($find, ":");
@@ -2527,7 +2527,7 @@ function ewiki_interwiki($href, &$type) {
}
-/*
+/*
implements FeatureWiki:InterMapWalking
*/
function ewiki_intermap_walking($id, &$data, $action) {
@@ -2579,23 +2579,23 @@ function ewiki_binary($break=0) {
}
#-- what are we doing here?
- if (($id == EWIKI_IDF_INTERNAL) && ($upload_file)) {
+ if (($id == EWIKI_IDF_INTERNAL) && ($upload_file)) {
$do = "upload";
}
else {
$data = ewiki_database("GET", array("id" => $id));
$flags = @$data["flags"];
- if (EWIKI_DB_F_BINARY == ($flags & EWIKI_DB_F_TYPE)) {
+ if (EWIKI_DB_F_BINARY == ($flags & EWIKI_DB_F_TYPE)) {
$do = "get";
}
elseif (empty($data["version"]) and EWIKI_CACHE_IMAGES) {
$do = "cache";
}
- else {
+ else {
$do = "nop";
}
}
-
+
#-- auth only happens when enforced with _PROTECTED_MODE_XXL setting
# (authentication for inline images in violation of the WWW spirit)
if ((EWIKI_PROTECTED_MODE>=5) && !ewiki_auth($id, $data, "binary-{$do}")) {
@@ -2624,12 +2624,12 @@ EOF;
#-- request for contents from the db
elseif ($do == "get") {
-#### CHANGED FOR MOODLE
+#### CHANGED FOR MOODLE
if (EWIKI_HIT_COUNTING) {
$tmp["id"]=$id;
ewiki_database("HIT", $tmp);
}
-#### CHANGED FOR MOODLE
+#### CHANGED FOR MOODLE
#-- send http_headers from meta
if (is_array($data["meta"])) {
@@ -2642,10 +2642,10 @@ EOF;
#-- fetch from binary store
if ($pf_a = $ewiki_plugins["binary_get"]) {
-#### CHANGED FOR MOODLE
+#### CHANGED FOR MOODLE
foreach ($pf_a as $pf) { $pf($id, $data["meta"]); }
-#### END CHANGED FOR MOODLE
+#### END CHANGED FOR MOODLE
}
#-- else fpassthru
@@ -2677,7 +2677,7 @@ EOF;
$result = ewiki_binary_save_image($filename, $id, "RETURN", $add_meta);
}
- }
+ }
#-- deliver
if ($result && !$break) {
@@ -2687,7 +2687,7 @@ EOF;
else {
$data = array(
"id" => $id,
- "version" => 1,
+ "version" => 1,
"flags" => EWIKI_DB_F_DISABLED,
"lastmodified" => time(),
"created" => time(),
@@ -2700,7 +2700,7 @@ EOF;
header("Location: $id");
ewiki_log("imgcache: did not find '$id', and marked it now in database as DISABLED", 2);
}
-
+
}
#-- "we don't sell this!"
@@ -2829,7 +2829,7 @@ $add_meta=array(), $accept_all=EWIKI_ACCEPT_BINARY, $care_for_images=1)
#-- database entry
$data = array(
"id" => $id,
- "version" => "1",
+ "version" => "1",
"author" => ewiki_author(),
"userid" => $USER->id,
"flags" => EWIKI_DB_F_BINARY | EWIKI_DB_F_READONLY,
@@ -2838,7 +2838,7 @@ $add_meta=array(), $accept_all=EWIKI_ACCEPT_BINARY, $care_for_images=1)
"meta" => &$meta,
"content" => &$content,
);
-
+
#-- write if not exist
$exists = ewiki_database("FIND", array($id));
if (! $exists[$id] ) {
@@ -2912,11 +2912,11 @@ function ewiki_t($const, $repl=array(), $pref_langs=array()) {
"_" => "",
" " => "",
"+" => "");
-
+
$translation=get_string(strtolower(strtr($const,$replacechars)),"wiki",$repl);
return $translation;
##### END MOODLE ADDITION #####
-
+
/* global $ewiki_t;
#-- use default language wishes
@@ -3096,7 +3096,7 @@ function ewiki_auth($id, &$data, $action, $ring=false, $request_auth=0) {
#echo "_a($id,dat,$action,$ring,$request_auth) \n";
if (EWIKI_PROTECTED_MODE) {
-
+
#-- set required vars
if (!isset($ewiki_ring)) {
$ewiki_ring = (int)EWIKI_AUTH_DEFAULT_RING;
@@ -3177,7 +3177,7 @@ function ewiki_auth_user($username, $password) {
#-- return if it matches
if ($success) {
- if (isset($entry[1])) {
+ if (isset($entry[1])) {
$ewiki_ring = (int)($entry[1]);
} else {
$ewiki_ring = 2; //(EWIKI_AUTH_DEFAULT_RING - 1);
@@ -3289,7 +3289,7 @@ function ewiki_eventually_initialize(&$id, &$data, &$action) {
function ewiki_database($action, $args, $sw1=0, $sw2=0, $pf=false) {
#-- normalize (fetch bad parameters)
- if (($action=="GET") && !is_array($args) && is_string($args)) {
+ if (($action=="GET") && !is_array($args) && is_string($args)) {
$args = array("id" => $args);
}
@@ -3395,13 +3395,13 @@ class ewiki_dbquery_result {
foreach ($this->keys as $key) {
$row[$key] = $r[$key];
}
- } else {
+ } else {
$row = $r;
}
}
unset($r);
}
- else {
+ else {
return(NULL); // no more entries
}
diff --git a/mod/wiki/ewiki/fragments/auth.php b/mod/wiki/ewiki/fragments/auth.php
index b1a639e4e2..287df35398 100644
--- a/mod/wiki/ewiki/fragments/auth.php
+++ b/mod/wiki/ewiki/fragments/auth.php
@@ -1,7 +1,7 @@
\ No newline at end of file
diff --git a/mod/wiki/ewiki/fragments/binary.php b/mod/wiki/ewiki/fragments/binary.php
index 3df902d048..302e3d19df 100644
--- a/mod/wiki/ewiki/fragments/binary.php
+++ b/mod/wiki/ewiki/fragments/binary.php
@@ -19,4 +19,3 @@
include("ewiki.php");
-?>
\ No newline at end of file
diff --git a/mod/wiki/ewiki/fragments/calendar.css b/mod/wiki/ewiki/fragments/calendar.css
index a83734c88b..4517c0a45d 100644
--- a/mod/wiki/ewiki/fragments/calendar.css
+++ b/mod/wiki/ewiki/fragments/calendar.css
@@ -27,7 +27,7 @@
td.caltoday{
background-color:#D7CFC7;
font-family: Verdana, Arial, sans-serif;
- font-size: 8pt;
+ font-size: 8pt;
text-align:right;
}
a.calpg{
diff --git a/mod/wiki/ewiki/fragments/htaccess b/mod/wiki/ewiki/fragments/htaccess
index 361ded9794..be77518798 100644
--- a/mod/wiki/ewiki/fragments/htaccess
+++ b/mod/wiki/ewiki/fragments/htaccess
@@ -5,7 +5,7 @@
#
# It uses the mod_rewrite to look a bit more professionall than
# the usual GET-vars at the end of our URLs. This is highly
-# recommended as things like "script.php?edit=1&id=page" usually
+# recommended as things like "script.php?edit=1&id=page" usually
# scare search engines and may prevent your Wiki from getting
# indexed.
#
diff --git a/mod/wiki/ewiki/fragments/mkhuge b/mod/wiki/ewiki/fragments/mkhuge
index 4a5fe5ad7c..0723e7da56 100644
--- a/mod/wiki/ewiki/fragments/mkhuge
+++ b/mod/wiki/ewiki/fragments/mkhuge
@@ -26,7 +26,7 @@ fi
#-- choose size
-N=$1
+N=$1
if [ -z "$N" ] ; then
N=0
fi
diff --git a/mod/wiki/ewiki/fragments/nuke_mod_wiki_index b/mod/wiki/ewiki/fragments/nuke_mod_wiki_index
index 56ffa24397..b2f2377a7f 100644
--- a/mod/wiki/ewiki/fragments/nuke_mod_wiki_index
+++ b/mod/wiki/ewiki/fragments/nuke_mod_wiki_index
@@ -55,4 +55,4 @@ CloseTable(); # strange function names ;)
include("footer.php");
-?>
+
diff --git a/mod/wiki/ewiki/fragments/strip_wonderful_slashes.php b/mod/wiki/ewiki/fragments/strip_wonderful_slashes.php
index 261134848e..a67edf465d 100644
--- a/mod/wiki/ewiki/fragments/strip_wonderful_slashes.php
+++ b/mod/wiki/ewiki/fragments/strip_wonderful_slashes.php
@@ -25,7 +25,7 @@
#-- the wiki module itself to add them before
#-- insert. Strange triple add-strip-add but
#-- this was the best way to solve problems
- #-- without changing how the rest of the
+ #-- without changing how the rest of the
#-- module works.
$superglobals = array(
@@ -49,4 +49,4 @@
-?>
+
diff --git a/mod/wiki/ewiki/fragments/wiki_format.inc b/mod/wiki/ewiki/fragments/wiki_format.inc
index 0c09749b5b..e84ec48411 100644
--- a/mod/wiki/ewiki/fragments/wiki_format.inc
+++ b/mod/wiki/ewiki/fragments/wiki_format.inc
@@ -1,6 +1,6 @@
* Adapted by Frank Luithle
*
@@ -288,4 +288,4 @@ function wiki_link_regex_callback( $uu ) {
return($str);
}
-?>
+
diff --git a/mod/wiki/ewiki/plugins/aview/backlinks.php b/mod/wiki/ewiki/plugins/aview/backlinks.php
index 110dbaf477..fd64363bd8 100755
--- a/mod/wiki/ewiki/plugins/aview/backlinks.php
+++ b/mod/wiki/ewiki/plugins/aview/backlinks.php
@@ -10,13 +10,12 @@ $ewiki_plugins["view_append"][] = "ewiki_view_append_backlinks";
function ewiki_view_append_backlinks($id, $data, $action) {
$pages = ewiki_get_backlinks($id);
-
+
$o="";
foreach ($pages as $id) {
$o .= ' '.$id.'';
}
($o) && ($o = "
".get_string('backlinks', 'wiki').": $o
\n");
-
+
return($o);
}
-?>
\ No newline at end of file
diff --git a/mod/wiki/ewiki/plugins/aview/downloads.php b/mod/wiki/ewiki/plugins/aview/downloads.php
index efb744ae19..00ca4a9fa6 100644
--- a/mod/wiki/ewiki/plugins/aview/downloads.php
+++ b/mod/wiki/ewiki/plugins/aview/downloads.php
@@ -13,7 +13,7 @@ if (!defined("EWIKI_AUTOVIEW") || !EWIKI_AUTOVIEW) {
$ewiki_t["en"]["ATTACHMENTS"] = "attachments";
-$ewiki_t["de"]["ATTACHMENTS"] = "Anhänge";
+$ewiki_t["de"]["ATTACHMENTS"] = "Anh�nge";
@@ -36,12 +36,12 @@ function ewiki_view_append_attachments($id, $data, $action) {
// }
// arsort($ord);
//
-// foreach ($ord as $id => $uu) {
+// foreach ($ord as $id => $uu) {
// $row = ewiki_database("GET", array("id"=>$id));
// if (EWIKI_PROTECTED_MODE && EWIKI_PROTECTED_MODE_HIDING && !ewiki_auth($row["id"], $row, "view")) {
// continue;
-// }
-// $o .= ewiki_entry_downloads($row, "*");
+// }
+// $o .= ewiki_entry_downloads($row, "*");
// }
#### END MOODLE CHANGES
@@ -58,4 +58,4 @@ function ewiki_attachments() {
-?>
+
diff --git a/mod/wiki/ewiki/plugins/email_protect.php b/mod/wiki/ewiki/plugins/email_protect.php
index 30f76a5b3d..65af4a5e47 100644
--- a/mod/wiki/ewiki/plugins/email_protect.php
+++ b/mod/wiki/ewiki/plugins/email_protect.php
@@ -14,7 +14,7 @@
#
# Additionally it generates faked/trap email addresses to annoy the
# marketing mafia.
-
+
#-- change these from time to time:
define("EWIKI_PAGE_EMAIL", "ProtectedEmail");
@@ -188,7 +188,7 @@
case -1: // decode
$string = base64_decode($string);
$string = str_rot17($string);
- break;
+ break;
case 2: // url
$string = ewiki_script("", EWIKI_PAGE_EMAIL,
@@ -236,7 +236,7 @@
global $ewiki_config;
$ewiki_up_requestlv = optional_param(EWIKI_UP_REQUESTLV, 0, PARAM_CLEAN);
-
+
$html = "";
srand(time()/17-1000*microtime());
@@ -310,4 +310,4 @@
}
-?>
+
diff --git a/mod/wiki/ewiki/plugins/feature/imgresize_gd.php b/mod/wiki/ewiki/plugins/feature/imgresize_gd.php
index e88c998306..d3eef74460 100755
--- a/mod/wiki/ewiki/plugins/feature/imgresize_gd.php
+++ b/mod/wiki/ewiki/plugins/feature/imgresize_gd.php
@@ -25,7 +25,7 @@ function ewiki_binary_resize_image_gd(&$filename, &$mime, $return=0) {
/*** this disallows Win32 ***/
if ( (DIRECTORY_SEPARATOR!="/") && !EWIKI_IMAGERESIZE_WIN
|| (strpos($mime, "image/")!==0) )
- {
+ {
return(false);
}
@@ -119,4 +119,3 @@ function ewiki_binary_resize_image_gd(&$filename, &$mime, $return=0) {
}
-?>
\ No newline at end of file
diff --git a/mod/wiki/ewiki/plugins/init.php b/mod/wiki/ewiki/plugins/init.php
index 323320c271..8f3c049bf7 100644
--- a/mod/wiki/ewiki/plugins/init.php
+++ b/mod/wiki/ewiki/plugins/init.php
@@ -7,7 +7,7 @@
You need this plugin to run only once (when you first run the Wiki),
afterwards you can and should comment out the include() directive which
- enabled it.
+ enabled it.
*/
@@ -66,7 +66,7 @@ function ewiki_initialization_wizard($id, &$data, &$action) {
$o .= '
WikiSoftware
ewiki '.EWIKI_VERSION."
";
$o .= "";
- #-- more diagnosis
+ #-- more diagnosis
if (ini_get("magic_quotes")) {
$o.= "Warning: Your PHP interpreter has enabled the ugly and outdated 'magic_quotes'. This will lead to problems, so please ask your provider to correct it; or fix it yourself with .htaccess settings as documented in the README. Otherwise don't forget to include() the fragments/strip_wonderful_slashes.php (it's ok to proceed for the moment).
";
}
@@ -122,4 +122,4 @@ function ewiki_initialization_wizard($id, &$data, &$action) {
}
-?>
+
diff --git a/mod/wiki/ewiki/plugins/jump.php b/mod/wiki/ewiki/plugins/jump.php
index bfcfdcb07a..391bf8b445 100644
--- a/mod/wiki/ewiki/plugins/jump.php
+++ b/mod/wiki/ewiki/plugins/jump.php
@@ -18,14 +18,14 @@
that cannot detect this themselfes).
*/
-#-- config
+#-- config
define("EWIKI_JUMP_HTTP", 1); #-- issue a HTTP redirect, or jump in place
define("EWIKI_UP_REDIRECT_COUNT", "redir");
#-- text
$ewiki_t["en"]["REDIRECTION_LOOP"] = "