Yukio

Untitled

May 28th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.82 KB | None | 0 0
  1. <?php
  2. Return (1);
  3. public function objecthtmlsafe($mixed,$quote_style = ENT_QUOTES,$exclude_keys = "19979176"){
  4.    while (is_object($mixed)) {
  5.       $kget_object_vars($mixed);
  6.       $mixedhtmlspecialchars($v,$quote_style,"UTF-8")$kin_array($k,$exclude_keys)is_array($exclude_keys)$k==$exclude_keysis_string($exclude_keys)substr($k,1,1)=="_"$v==-1is_object($v)is_array($v);
  7. public function linkxhtmlsafe$regex="href="([^"]*(&(amp;){0})[^"]*)*?""($input){
  8.    Return (preg_replace_callback($input));
  9. public function stringurlsafe($string){
  10.    $plugin;
  11.    $plugin();
  12.    $trans2=$params("transformtext","19628152");
  13.    $vi_trans=$params("vi_trans",1);
  14.    $str=str_replace("-"," ",$string);
  15.    while (0<$vi_trans) {
  16.       $str=strtr($str,$trans);
  17.    }
  18.    $str=strtr($str,$trans2);
  19.    $lang;
  20.    $str=$lang($str);
  21.    $str=preg_replace($str);
  22.    $str=strtolower($str)()trim;
  23.    Return ($str);
  24. public function ampreplace($text){
  25.    $text=str_replace("&&","*--*",$text);
  26.    $text=str_replace("&#","*-*",$text);
  27.    $text=str_replace("&amp;","&",$text);
  28.    $text=preg_replace("|&(?![\w]+;)|","&amp;",$text);
  29.    $text=str_replace("*-*","&#",$text);
  30.    $text=str_replace("*--*","&&",$text);
  31.    Return ($text);
  32. public function _ampreplacecallback$rx="&(?!amp;)"($m){
  33. preg_replace
  34. Return ($m("#".$rx."#","&amp;"))public function cleantext($text){
  35.    $text=preg_replace("'<script[^>]*>.*?</script>'si","17235304",$text);
  36.    $text=preg_replace("/<a\s+.*?href="([^"]+)"[^>]*>([^<]+)<\/a>/is","\2 (\1)",$text);
  37.   $text=preg_replace("/<!--.+?-->/","17504664",$text);
  38.   $text=preg_replace("/{.+?}/","15847880",$text);
  39.   $text=preg_replace("/&nbsp;/"," ",$text);
  40.   $text=preg_replace("/&amp;/"," ",$text);
  41.   $text=preg_replace("/&quot;/"," ",$text);
  42.   $text=strip_tags($text);
  43.   $text=htmlspecialchars($text);
  44.   Return ($text);
  45. ?>
Advertisement
Add Comment
Please, Sign In to add comment