public static function pack($script, $encoding = null, $specialChars = null, $fastDecode = null) { // delete this self::$_FT = $FT; if (array_key_exists($encoding, self::$_PLE)) { $encoding = self::$_PLE[$encoding]; } $script = $script . "\n"; // if nothing specified use the config default values self::$_PFD = $fastDecode !== null ? $fastDecode : self::$_PFD; self::$_PEN = $encoding !== null ? min((int) $encoding, 95) : self::$_PEN; self::$_PCH = $specialChars !== null ? $specialChars : self::$_PCH; // apply parsing routines $script = self::compress($script); //if (self::$_PEN) $script = self::_pack_encode_keywords($script); //if (self::$_PCH) $script = self::_pack_encode_specialchars($script); return $script; }