Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>

This commit is contained in:
Gregory PLANCHAT 2011-06-28 13:02:55 +02:00
commit 3fd8832b45
138 changed files with 2597 additions and 1253 deletions

View file

@ -34,6 +34,7 @@
* @param unknown_type $string
*/
function bbcode($string) {
trigger_error(sprintf('%s is deprecated', __FUNCTION__), E_USER_DEPRECATED);
$pattern = array(
'/\\n/',
'/\\r/',
@ -77,6 +78,7 @@ function bbcode($string) {
function image($string)
{
trigger_error(sprintf('%s is deprecated', __FUNCTION__), E_USER_DEPRECATED);
//On va pas se casser le fion a lire les accents quand meme !!!!!!!
$string = str_replace("&#39;", "'", $string);
@ -99,12 +101,14 @@ function image($string)
function sCode($string){
trigger_error(sprintf('%s is deprecated', __FUNCTION__), E_USER_DEPRECATED);
$pattern = '/\<img src=\\\"(.*?)img\/smilies\/(.*?).png\\\" alt=\\\"(.*?)\\\" \/>/s';
$string = preg_replace($pattern, '\3', $string);
return '<pre>' . trim($string) . '</pre>';
}
function sList($string) {
trigger_error(sprintf('%s is deprecated', __FUNCTION__), E_USER_DEPRECATED);
$tmp = explode('[*]', stripslashes($string));
$out = null;
foreach($tmp as $list) {
@ -116,6 +120,7 @@ function sList($string) {
}
function imagefix($img) {
trigger_error(sprintf('%s is deprecated', __FUNCTION__), E_USER_DEPRECATED);
if(substr($img, 0, 7) != 'http://') {
$img = './images/' . $img;
}
@ -123,6 +128,7 @@ function imagefix($img) {
}
function urlfix($url, $title) {
trigger_error(sprintf('%s is deprecated', __FUNCTION__), E_USER_DEPRECATED);
$title = stripslashes($title);
return '<a href="' . $url . '" title="' . $title . '">' . $title . '</a>';
}