download getid3.mod.php
Language: PHP
LOC: 46
Project Info
Tunez
Server: SourceForge
Type: cvs
...tunez\tunez\tunez\html\id3\
   getid3.aac.php
   getid3.ape.php
   getid3.asf.php
   getid3.au.php
   getid3.avr.php
   getid3.bmp.php
   getid3.bonk.php
   getid3.check.php
   getid3.exe.php
   getid3.flac.php
   getid3.frames.php
   getid3.functions.php
   getid3.getimagesize.php
   getid3.gif.php
   getid3.id3v1.php
   getid3.id3v2.php
   getid3.iso.php
   getid3.jpg.php
   getid3.la.php
   getid3.lookup.php
   getid3.lpac.php
   getid3.lyrics3.php
   getid3.matroska.php
   getid3.midi.php
   getid3.mod.php
   getid3.monkey.php
   getid3.mp3.php
   getid3.mpc.php
   getid3.mpeg.php
   getid3.nsv.php
   getid3.ogg.php
   getid3.ogginfo.php
   getid3.optimfrog.php
   getid3.php
   getid3.png.php
   getid3.putid3.php
   getid3.quicktime.php
   getid3.rar.php
   getid3.real.php
   getid3.rgad.php
   getid3.riff.php
   getid3.shorten.php
   getid3.swf.php
   getid3.thumbnail.php
   getid3.voc.php
   getid3.vqf.php
   getid3.write.php
   getid3.zip.php

<?php
/////////////////////////////////////////////////////////////////
/// getID3() by James Heinrich <info@getid3.org>               //
//  available at http://getid3.sourceforge.net                ///
//            or http://www.getid3.org                        ///
/////////////////////////////////////////////////////////////////
//                                                             //
// getid3.mod.php - part of getID3()                           //
// See getid3.readme.txt for more details                      //
//                                                             //
/////////////////////////////////////////////////////////////////

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

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

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

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

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

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

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

	$ThisFileInfo['error'] .= "\n".'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 (!ereg('^SCRM$', $FormatID)) {
		$ThisFileInfo['error'] .= "\n".'This is not a ScreamTracker MOD file';
		return false;
	}

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

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

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

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

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

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

?>

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us