mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-12 23:56:08 +00:00
first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename text_format.tpl ##
|
||||
## Developed by: Dixie ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
$txt="%TEKST%";
|
||||
|
||||
//bbcode = html code
|
||||
$txt = preg_replace("/\[b\]/is",'<b>', $txt);
|
||||
$txt = preg_replace("/\[\/b\]/is",'</b>', $txt);
|
||||
$txt = preg_replace("/\[i\]/is",'<i>', $txt);
|
||||
$txt = preg_replace("/\[\/i\]/is",'</i>', $txt);
|
||||
$txt = preg_replace("/\[u\]/is",'<u>', $txt);
|
||||
$txt = preg_replace("/\[\/u\]/is",'</u>', $txt);
|
||||
|
||||
//nl2br = enter
|
||||
echo nl2br($txt);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user