wwwDomain = true; // Switch to true if filehost forces it's domain with www. $this->cname = 'xfss'; // Session cookie name $this->sslLogin = false; // Force https on login. $this->embedDL = true; // Try to unpack player's js for finding download link. (Only hosts with video player) $this->unescaper = false; // Enable JS unescape decoder. $this->customDecoder = true; // Enable custom pageDecoder(). // Custom link-check error messages $errMsgs = array('The file you were looking for could not be found', 'The file was removed by administrator', 'No available download slots for this region please check back later' ); $this->Start($link, $errMsgs); } // Decoder: http://vidbull.com/player/obc.swf protected function pageDecoder() { if (preg_match('@file\s*:\s*"((?:[0-9a-fA-F]{2})+)"@i', $this->page, $encoded)) { $encoded = $encoded[1]; $this->page = str_replace($encoded, rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, pack('H*', 'a949376e37b369f17bc7d3c7a04c5721'), pack('H*', $encoded), MCRYPT_MODE_ECB)), $this->page); } } protected function getFileName($url) { $fname = parent::getFileName($url); if (preg_match("@^(?:v(?:ideo)|{$this->fid})?\.(mp4|flv)$@i", $fname, $vExt) && preg_match('@