Revision history for TestPage
Additions:
""<b>bold</b>""
Deletions:
Prints a link to ##""CurrentPage/acls""## if the user has access to the ACLs: {{acls}}
%%(apache)
etwas code
# test
noch eine Test;
function test () {
}
%%
Additions:
==##""{{acls}}""##==
Prints a link to ##""CurrentPage/acls""## if the user has access to the ACLs: {{acls}}
%%(apache)
etwas code
# test
noch eine Test;
function test () {
}
%%
Prints a link to ##""CurrentPage/acls""## if the user has access to the ACLs: {{acls}}
%%(apache)
etwas code
# test
noch eine Test;
function test () {
}
%%
Deletions:
Prints a link to ##""CurrentPage/acls""## if the user has access to the ACLs: {{acls}}
%%(apache)
etwas code
# test
noch eine Test;
function test () {
}
%%
Additions:
%%(apache)
Additions:
# test
noch eine Test;
function test () {
}
noch eine Test;
function test () {
}
Additions:
%%
etwas code
%%
etwas code
%%
Additions:
Prints a link to ##""CurrentPage/acls""## if the user has access to the ACLs: {{acls}}
Deletions:
Additions:
{{acls}}
Deletions:
%%(php)
<?php
if ($this->page){
if ($owner = $this->GetPageOwner()){
if ($owner == "(Public)"){
print $this->IsAdmin() ? "<a href=\"".$this->href("acls")."\">(Edit ACLs)</a>\n" : ""; #i18n
} elseif ($this->UserIsOwner()){
print "<a href=\"".$this->href("acls")."\">Edit ACLs</a>\n"; #i18n
}
} else {
print ($this->GetUser()) ? " (<a href=\"".$this->href("claim")."\">Take Ownership</a>)\n" : ""; #i18n
}
}
?>
%%---
Additions:
----
==##""{{acls}}""##==
Prints a link to ##""CurrentPage/acls""## if the user has access to the ACLs: {{acls}}
%%(php)
<?php
if ($this->page){
if ($owner = $this->GetPageOwner()){
if ($owner == "(Public)"){
print $this->IsAdmin() ? "<a href=\"".$this->href("acls")."\">(Edit ACLs)</a>\n" : ""; #i18n
} elseif ($this->UserIsOwner()){
print "<a href=\"".$this->href("acls")."\">Edit ACLs</a>\n"; #i18n
}
} else {
print ($this->GetUser()) ? " (<a href=\"".$this->href("claim")."\">Take Ownership</a>)\n" : ""; #i18n
}
}
?>
%%---
==##""{{acls}}""##==
Prints a link to ##""CurrentPage/acls""## if the user has access to the ACLs: {{acls}}
%%(php)
<?php
if ($this->page){
if ($owner = $this->GetPageOwner()){
if ($owner == "(Public)"){
print $this->IsAdmin() ? "<a href=\"".$this->href("acls")."\">(Edit ACLs)</a>\n" : ""; #i18n
} elseif ($this->UserIsOwner()){
print "<a href=\"".$this->href("acls")."\">Edit ACLs</a>\n"; #i18n
}
} else {
print ($this->GetUser()) ? " (<a href=\"".$this->href("claim")."\">Take Ownership</a>)\n" : ""; #i18n
}
}
?>
%%---
Additions:
===== Wikka Menulets =====
{{lastedit show="3"}}
In the trac as [[Ticket:28]].
As part of my proposal for a general overhaul of the [[WikkaMenus | menu management system]] in WikkaWiki, I suggest we replace the current system-generated items that occur in the main menu and footer menu with a series of **menulets**, i.e. mini-actions generating content for menu items.
Any of these mini-actions can of course be used in the page body as well.
Here's a list of potential menulets and their output, that I've uploaded to this server.
Suggestions/modifications are welcome.
{{lastedit show="3"}}
In the trac as [[Ticket:28]].
As part of my proposal for a general overhaul of the [[WikkaMenus | menu management system]] in WikkaWiki, I suggest we replace the current system-generated items that occur in the main menu and footer menu with a series of **menulets**, i.e. mini-actions generating content for menu items.
Any of these mini-actions can of course be used in the page body as well.
Here's a list of potential menulets and their output, that I've uploaded to this server.
Suggestions/modifications are welcome.
Deletions:
Hier probieren wir mal etwas...
""<b>bold</b>""
Deletions:
#nun kommen einige Versuche mit Apache-Config:
<Directory>
</Directory>
%%
Additions:
%%(apache)
#nun kommen einige Versuche mit Apache-Config:
<Directory>
</Directory>
%%
#nun kommen einige Versuche mit Apache-Config:
<Directory>
</Directory>
%%
Deletions:
Additions:
{{files}}
Deletions:
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
Additions:
%%(apache)
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
Deletions:
%%(apache)
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
Additions:
Test:
%%(apache)
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
%%(apache)
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
Deletions:
==== Activating mod_rewrite for wikka ====
=== tested on apache 2.4 and Ubuntu 14.04 LTS ===
1) enable mod_rewrite on apache:
## sudo a2enmod rewrite ##
## apachectl restart ##
1) in the right virtual host on apache add following directives in the right directory:
## <Directory /path/to/your/dir>
""Options FollowSymLinks""
""AllowOverride All""
</Directory>##
1) activate rewrite on wikka config values (file ##wikka.config.php##):
%%
"base_url" => "http://my.domain.com/",
"rewrite_mode" => "1",
%%
on the first line eventually add your path
1) in the root directory of wikka add an ##.htaccess## file with following content:
(Achtung: die Zeile mit Bad Referrer ist unvollständig!)
%%(apache)
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
----
CategoryITKnowledge
Additions:
==== Activating mod_rewrite for wikka ====
=== tested on apache 2.4 and Ubuntu 14.04 LTS ===
1) enable mod_rewrite on apache:
## sudo a2enmod rewrite ##
## apachectl restart ##
1) in the right virtual host on apache add following directives in the right directory:
## <Directory /path/to/your/dir>
""Options FollowSymLinks""
""AllowOverride All""
</Directory>##
1) activate rewrite on wikka config values (file ##wikka.config.php##):
%%
"base_url" => "http://my.domain.com/",
"rewrite_mode" => "1",
%%
on the first line eventually add your path
1) in the root directory of wikka add an ##.htaccess## file with following content:
(Achtung: die Zeile mit Bad Referrer ist unvollständig!)
%%(apache)
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
----
CategoryITKnowledge
=== tested on apache 2.4 and Ubuntu 14.04 LTS ===
1) enable mod_rewrite on apache:
## sudo a2enmod rewrite ##
## apachectl restart ##
1) in the right virtual host on apache add following directives in the right directory:
## <Directory /path/to/your/dir>
""Options FollowSymLinks""
""AllowOverride All""
</Directory>##
1) activate rewrite on wikka config values (file ##wikka.config.php##):
%%
"base_url" => "http://my.domain.com/",
"rewrite_mode" => "1",
%%
on the first line eventually add your path
1) in the root directory of wikka add an ##.htaccess## file with following content:
(Achtung: die Zeile mit Bad Referrer ist unvollständig!)
%%(apache)
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
----
CategoryITKnowledge
Additions:
Test
Deletions:
==== Activating mod_rewrite for wikka ====
=== tested on apache 2.4 and Ubuntu 14.04 LTS ===
1) enable mod_rewrite on apache:
## sudo a2enmod rewrite ##
## apachectl restart ##
1) in the right virtual host on apache add following directives in the right directory:
## <Directory /path/to/your/dir>
""Options FollowSymLinks""
""AllowOverride All""
</Directory>##
1) activate rewrite on wikka config values (file ##wikka.config.php##):
%%
"base_url" => "http://my.domain.com/",
"rewrite_mode" => "1",
%%
on the first line eventually add your path
1) in the root directory of wikka add an ##.htaccess## file with following content:
(Achtung: die Zeile mit Bad Referrer ist unvollständig!)
%%(apache)
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
----
CategoryITKnowledge
Additions:
==== Activating mod_rewrite for wikka ====
=== tested on apache 2.4 and Ubuntu 14.04 LTS ===
1) enable mod_rewrite on apache:
## sudo a2enmod rewrite ##
## apachectl restart ##
1) in the right virtual host on apache add following directives in the right directory:
## <Directory /path/to/your/dir>
""Options FollowSymLinks""
""AllowOverride All""
</Directory>##
1) activate rewrite on wikka config values (file ##wikka.config.php##):
%%
"base_url" => "http://my.domain.com/",
"rewrite_mode" => "1",
%%
on the first line eventually add your path
1) in the root directory of wikka add an ##.htaccess## file with following content:
(Achtung: die Zeile mit Bad Referrer ist unvollständig!)
%%(apache)
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
----
CategoryITKnowledge
=== tested on apache 2.4 and Ubuntu 14.04 LTS ===
1) enable mod_rewrite on apache:
## sudo a2enmod rewrite ##
## apachectl restart ##
1) in the right virtual host on apache add following directives in the right directory:
## <Directory /path/to/your/dir>
""Options FollowSymLinks""
""AllowOverride All""
</Directory>##
1) activate rewrite on wikka config values (file ##wikka.config.php##):
%%
"base_url" => "http://my.domain.com/",
"rewrite_mode" => "1",
%%
on the first line eventually add your path
1) in the root directory of wikka add an ##.htaccess## file with following content:
(Achtung: die Zeile mit Bad Referrer ist unvollständig!)
%%(apache)
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|...).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
RewriteBase /pathto/subdir //(-> only if your wikka works in a subdirectory)
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
%%
----
CategoryITKnowledge
Additions:
""TestPage""
Deletions:
Additions:
""<b>bold</b>""
Test
Test