From 0f42e1a7816893e083f49c933d1393a102a3510e Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Fri, 18 Feb 2011 00:17:07 +0000 Subject: improved wiki --- h-source/Application/Include/languages.php | 2 ++ h-source/Application/Include/myFunctions.php | 34 ++++++++++++++++------------ 2 files changed, 22 insertions(+), 14 deletions(-) (limited to 'h-source/Application/Include') diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index 5145029..4bfb40e 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -210,6 +210,8 @@ class Lang "list of deleted pages" => "lista delle pagine cancellate", "restore the wiki page" => "ripristina la pagina", "delete the wiki page" => "cancella la pagina", + "list of blocked pages" => "lista delle pagine bloccate", + "special pages" => "pagine speciali", ), 'es' => array ( diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index d731062..6b87958 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -23,28 +23,32 @@ if (!defined('EG')) die('Direct access not allowed!'); function encodeUrl($url) { $url = str_replace(' ','-',$url); + $url = str_replace('.','-',$url); $url = str_replace('[','-',$url); $url = str_replace(']','-',$url); $url = str_replace('(','-',$url); $url = str_replace(')','-',$url); $url = str_replace('/','-',$url); $url = str_replace('@','-at-',$url); + $url = str_replace('#','-at-',$url); + $url = str_replace('?','-at-',$url); - $temp = null; - for ($i=0;$i${2}',$string); $string = preg_replace('/(\[h3\])(.*?)(\[\/h3\])/s', '
${2}
',$string); + + $string = preg_replace('/(\[lang\])(.*?)(\[\/lang\])/s', '
${2}
',$string); return $string; } -- cgit v1.2.3