added authlevel button functions

This commit is contained in:
kremsy
2013-12-26 11:25:10 +01:00
parent b6de851d20
commit c7e8014ad5
4 changed files with 110 additions and 22 deletions

View File

@ -55,7 +55,7 @@ abstract class Formatter {
/**
* Strip all codes except colors from the string
*/
public static function stripCodesWithoutColors($string) {
public static function stripCodesWithoutColors($string) { //Todo don't remove $i, $s
$string = preg_replace('/(?<!\$)((?:\$\$)*)\$[^$0-9a-hlp]/iu', '$1', $string);
$string = self::stripLinks($string);
return $string;
@ -70,7 +70,7 @@ abstract class Formatter {
public static function stripCodes($string) {
$string = preg_replace('/(?<!\$)((?:\$\$)*)\$[^$0-9a-hlp]/iu', '$1', $string);
$string = self::stripLinks($string);
//$string = self::stripColors($string);
$string = self::stripColors($string);
return $string;
}