23 if ($option ===
'mod') {
26 elseif ($option ===
'xm') {
29 elseif ($option ===
'it') {
32 elseif ($option ===
's3m') {
40 fseek($fd, $ThisFileInfo[
'avdataoffset'] + 1080);
41 $FormatID = fread($fd, 4);
42 if (!ereg(
'^(M.K.|[5-9]CHN|[1-3][0-9]CH)$', $FormatID)) {
43 $ThisFileInfo[
'error'][] =
'This is not a known type of MOD file';
47 $ThisFileInfo[
'fileformat'] =
'mod';
49 $ThisFileInfo[
'error'][] =
'MOD parsing not enabled in this version of getID3()';
55 fseek($fd, $ThisFileInfo[
'avdataoffset']);
56 $FormatID = fread($fd, 15);
57 if (!ereg(
'^Extended Module$', $FormatID)) {
58 $ThisFileInfo[
'error'][] =
'This is not a known type of XM-MOD file';
62 $ThisFileInfo[
'fileformat'] =
'xm';
64 $ThisFileInfo[
'error'][] =
'XM-MOD parsing not enabled in this version of getID3()';
70 fseek($fd, $ThisFileInfo[
'avdataoffset'] + 44);
71 $FormatID = fread($fd, 4);
72 if (!ereg(
'^SCRM$', $FormatID)) {
73 $ThisFileInfo[
'error'][] =
'This is not a ScreamTracker MOD file';
77 $ThisFileInfo[
'fileformat'] =
's3m';
79 $ThisFileInfo[
'error'][] =
'ScreamTracker parsing not enabled in this version of getID3()';
85 fseek($fd, $ThisFileInfo[
'avdataoffset']);
86 $FormatID = fread($fd, 4);
87 if (!ereg(
'^IMPM$', $FormatID)) {
88 $ThisFileInfo[
'error'][] =
'This is not an ImpulseTracker MOD file';
92 $ThisFileInfo[
'fileformat'] =
'it';
94 $ThisFileInfo[
'error'][] =
'ImpulseTracker parsing not enabled in this version of getID3()';