<? PHP
Class class_replace {
Function htmldecode ($ Str ){
If (empty ($ Str) return; if ($ STR = "") return $ STR;
$ STR = str_replace ("&", "", $ Str );
$ STR = str_replace (">", "", $ Str );
$ STR = str_replace ("<", "", $ Str );
$ STR = str_replace ("CHR (32)", "", $ Str );
$ STR = str_replace ("CHR (9)", "", $ Str );
$ STR = str_replace (CHR (34), "", $ Str );
$ STR = str_replace ("\" "," ", $ Str );
$ STR = str_replace (CHR (39), "", $ Str );
$ STR = str_replace ("", "", $ Str );
$ STR = str_replace ("'", "", $ Str );
$ STR = str_replace ("select", "", $ Str );
$ STR = str_replace ("join", "", $ Str );
$ STR = str_replace ("Union", "", $ Str );
$ STR = str_replace ("where", "", $ Str );
$ STR = str_replace ("insert", "", $ Str );
$ STR = str_replace ("delete", "", $ Str );
$ STR = str_replace ("Update", "", $ Str );
$ STR = str_replace ("like", "", $ Str );
$ STR = str_replace ("Drop", "", $ Str );
$ STR = str_replace ("CREATE", "", $ Str );
$ STR = str_replace ("modify", "", $ Str );
$ STR = str_replace ("RENAME", "", $ Str );
$ STR = str_replace ("alter", "", $ Str );
$ STR = str_replace ("cas", "", $ Str );
$ STR = str_replace ("replace", "", $ Str );
$ STR = str_replace ("%", "", $ Str );
$ STR = str_replace ("or", "", $ Str );
$ STR = str_replace ("and", "", $ Str );
$ STR = str_replace ("! "," ", $ Str );
$ STR = str_replace ("XOR", "", $ Str );
$ STR = str_replace ("not", "", $ Str );
$ STR = str_replace ("user", "", $ Str );
$ STR = str_replace ("|", "", $ Str );
$ STR = str_replace ("<", "", $ Str );
$ STR = str_replace (">", "", $ Str );
Return $ STR;
}
}
// Usage: $ guolv = new class_replace ();
// Instantiate
// $ Username = $ guolv-> htmldecode ($ _ post ["username"]);
// Example?>