public static final function request($str) { self::$canAdd = false; if (!preg_match('#^[a-z0-9_\\-;]+$#D', $_GET['js'])) { return false; } $array = explode(';', $_GET['js']); while ($str = array_shift($array)) { if (self::filter($str, 'toClient')) { $file = BASEDIR . preg_replace(self::$toClientPattern, self::$toClientReplace, $str); if (is_file($file)) { self::$files[] = $file; self::$mtime = max(self::$mtime, filemtime($file)); } } } self::$files = array_values(array_unique(self::$files)); return !empty(self::$files); }