function scriptEnd() { $script = ob_get_clean(); $reg = "/(<script(?:\\s+[\\s\\S]*?[\"'\\s\\w\\/]>|\\s*>))([\\s\\S]*?)(?=<\\/script>|\$)/i"; if (preg_match($reg, $script, $matches)) { FISResource::addScriptPool($matches[2]); } else { FISResource::addScriptPool($script); } }
public static function addScript($code) { if (self::$_context['hit'] || self::$mode == self::$default_mode) { FISResource::addScriptPool($code); } }