summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2010-10-07 09:44:02 +0200
committerAdrian Lang <mail@adrianlang.de>2010-10-07 09:44:02 +0200
commitd9c8ae6b7379d7b64d4817dbd5cca276b45a9dd5 (patch)
tree39c26d5412170ca4fa176962e60e9962dc643667 /inc/html.php
parent2c053ed58376c6709596ab48fc40dceb90d4e89d (diff)
parent85dd53ceb1c2d9a7abe01b5ec50d155dcb142c59 (diff)
downloadrpg-d9c8ae6b7379d7b64d4817dbd5cca276b45a9dd5.tar.gz
rpg-d9c8ae6b7379d7b64d4817dbd5cca276b45a9dd5.tar.bz2
Merge branch 'master' into stable
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/inc/html.php b/inc/html.php
index b475e2b7a..968a63e4e 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -285,7 +285,7 @@ function html_draft(){
*/
function html_hilight($html,$phrases){
$phrases = array_filter((array) $phrases);
- $regex = join('|',array_map('preg_quote_cb',$phrases));
+ $regex = join('|',array_map('ft_snippet_re_preprocess', array_map('preg_quote_cb',$phrases)));
if ($regex === '') return $html;
$html = preg_replace_callback("/((<[^>]*)|$regex)/ui",'html_hilight_callback',$html);
@@ -1177,7 +1177,7 @@ function html_edit(){
$form->addHidden('id', $ID);
$form->addHidden('rev', $REV);
$form->addHidden('date', $DATE);
- $form->addHidden('prefix', $PRE);
+ $form->addHidden('prefix', $PRE . '.');
$form->addHidden('suffix', $SUF);
$form->addHidden('changecheck', $check);
@@ -1394,6 +1394,12 @@ function html_admin(){
);
}
+ // data security check
+ echo '<a style="background: transparent url(data/security.png) left top no-repeat;
+ display: block; width:380px; height:73px; border:none; float:right"
+ target="_blank"
+ href="http://www.dokuwiki.org/security#web_access_security"></a>';
+
print p_locale_xhtml('admin');
// Admin Tasks
@@ -1447,7 +1453,11 @@ function html_admin(){
}
unset($menu['popularity']);
+ // print DokuWiki version:
ptln('</ul>');
+ echo '<div id="admin__version">';
+ echo getVersion();
+ echo '</div>';
// print the rest as sorted list
if(count($menu)){