All pastes #227171 Raw Edit

Funname stripper

public php v1 · immutable
#227171 ·published 2006-10-29 02:23 UTC
rendered paste body
$text_table = array (	"\0","-", "-", "-", "_", "*", "t", ".", "N", "-", "\n","#", ".", ">", "*", "*",	"[", "]", "@", "@", "@", "@", "@", "@", "<", ">", ".", "-", "*", "-", "-", "-",	" ", "!", "\"","#", "$", "%", "&", "\'","(", ")", "*", "+", ",", "-", ".", "/",	"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "?",	"@", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O",	"P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "\\","]", "^", "_",	"`", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o",	"p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "{", "|", "}", "~", "<",	"(", "=", ")", "^", "!", "O", "U", "I", "C", "C", "R", "#", "?", ">", "*", "*",	"[", "]", "@", "@", "@", "@", "@", "@", "<", ">", "*", "X", "*", "-", "-", "-",	" ", "!", "\"","#", "$", "%", "&", "\'","(", ")", "*", "+", ",", "-", ".", "/",	"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "?",	"@", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O",	"P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "\\","]", "^", "_",	"`", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O",	"P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "{", "|", "}", "~", "<");function funnameconvert($name){	global $fncolors;	global $text_table;	$lastcolor = ""; // Initialize this to 0 so it doesn't conflict with the default text color below	$output = "";	for ($x=0;$x<=strlen($name)-1;$x++){		switch (ord($name[$x])) {			case 0x86: //Underline				$letter = "";				break;			case 0x87: // Italics				$letter = "";				break;			case 0x88: // Colors				$x++; // This skips the next character				$letter = "";				break;			default:				$letter = $text_table[ord($name[$x])];				break;		}		$output .= $letter;	}	return $output;}