public static function name($c) { $name = basename($c); $name = Str::conv($name); $name = Filter::thunder($name); return $name; }
public static function normalization($emule) { $emule = html_entity_decode($emule); $emule = preg_replace_callback("/(&#[0-9a-fx]+;)/i", function ($m) { return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); }, $emule); $file = self::name($emule); $file = Str::conv($file); $file = Filter::emule($file); $arr = explode("|", $emule); $arr[2] = urlencode($file); $emule = implode('|', $arr); return $emule; }