- // Special character filtering
- Function htmldecode ($ str)
- {
- If (empty ($ str) return;
- If ($ str = "") return $ str;
- $ Str = str_replace ("&", chr (34), $ 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 (39), $ str );
- $ Str = str_replace ("
", Chr (13), $ str );
- $ Str = str_replace ("'' "," '", $ str );
- $ Str = str_replace ("select", "select", $ str );
- $ Str = str_replace ("join", "join", $ str );
- $ Str = str_replace ("union", "union", $ str );
- $ Str = str_replace ("where", "where", $ str );
- $ Str = str_replace ("insert", "insert", $ str );
- $ Str = str_replace ("delete", "delete", $ str );
- $ Str = str_replace ("update", "update", $ str );
- $ Str = str_replace ("like", "like", $ str );
- $ Str = str_replace ("drop", "drop", $ str );
- $ Str = str_replace ("create", "create", $ str );
- $ Str = str_replace ("modify", "modify", $ str );
- $ Str = str_replace ("rename", "rename", $ str );
- $ Str = str_replace ("alter", "alter", $ str );
- $ Str = str_replace ("cas", "cast", $ str );
- // Script School http://bbs.it-home.org
- $ Farr = array (
- "// S +/", // filter unnecessary spaces
- "/<(//?) (Img | script | I? Frame | style | html | body | title | link | meta | /? |/%) ([^>] *?)> /Isu ", // filter
|