mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-25 14:06:12 +00:00
The first release of the refactored version
It's still a work in progress, there are a lot of things that will change in the final release
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