KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/yuchun/plugin/getid3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/yuchun/plugin/getid3/module.audio.mod.php
<?php
/////////////////////////////////////////////////////////////////
/// getID3() by James Heinrich <info@getid3.org>               //
//  available at http://getid3.sourceforge.net                 //
//            or http://www.getid3.org                         //
/////////////////////////////////////////////////////////////////
// See readme.txt for more details                             //
/////////////////////////////////////////////////////////////////
//                                                             //
// module.audio.mod.php                                        //
// module for analyzing MOD Audio files                        //
// dependencies: NONE                                          //
//                                                            ///
/////////////////////////////////////////////////////////////////


class getid3_mod
{

	// new combined constructor
	function getid3_mod(&$fd, &$ThisFileInfo, $option) {

		if ($option === 'mod') {
			$this->getMODheaderFilepointer($fd, $ThisFileInfo);
		}
		elseif ($option === 'xm') {
			$this->getXMheaderFilepointer($fd, $ThisFileInfo);
		}
		elseif ($option === 'it') {
			$this->getITheaderFilepointer($fd, $ThisFileInfo);
		}
		elseif ($option === 's3m') {
			$this->getS3MheaderFilepointer($fd, $ThisFileInfo);
		}
	}


	function getMODheaderFilepointer(&$fd, &$ThisFileInfo) {

		fseek($fd, $ThisFileInfo['avdataoffset'] + 1080);
		$FormatID = fread($fd, 4);
		if (!preg_match('#^(M.K.|[5-9]CHN|[1-3][0-9]CH)$#', $FormatID)) {
			$ThisFileInfo['error'][] = 'This is not a known type of MOD file';
			return false;
		}

		$ThisFileInfo['fileformat'] = 'mod';

		$ThisFileInfo['error'][] = 'MOD parsing not enabled in this version of getID3()';
		return false;
	}

	function getXMheaderFilepointer(&$fd, &$ThisFileInfo) {

		fseek($fd, $ThisFileInfo['avdataoffset']);
		$FormatID = fread($fd, 15);
		if (!preg_match('#^Extended Module$#', $FormatID)) {
			$ThisFileInfo['error'][] = 'This is not a known type of XM-MOD file';
			return false;
		}

		$ThisFileInfo['fileformat'] = 'xm';

		$ThisFileInfo['error'][] = 'XM-MOD parsing not enabled in this version of getID3()';
		return false;
	}

	function getS3MheaderFilepointer(&$fd, &$ThisFileInfo) {

		fseek($fd, $ThisFileInfo['avdataoffset'] + 44);
		$FormatID = fread($fd, 4);
		if (!preg_match('#^SCRM$#', $FormatID)) {
			$ThisFileInfo['error'][] = 'This is not a ScreamTracker MOD file';
			return false;
		}

		$ThisFileInfo['fileformat'] = 's3m';

		$ThisFileInfo['error'][] = 'ScreamTracker parsing not enabled in this version of getID3()';
		return false;
	}

	function getITheaderFilepointer(&$fd, &$ThisFileInfo) {

		fseek($fd, $ThisFileInfo['avdataoffset']);
		$FormatID = fread($fd, 4);
		if (!preg_match('#^IMPM$#', $FormatID)) {
			$ThisFileInfo['error'][] = 'This is not an ImpulseTracker MOD file';
			return false;
		}

		$ThisFileInfo['fileformat'] = 'it';

		$ThisFileInfo['error'][] = 'ImpulseTracker parsing not enabled in this version of getID3()';
		return false;
	}

}


?>

Anon7 - 2021