EasyMod Suggestion (raw code) (can't post in proper board)

Want to share what MODs you've gotten to work with EM? Happy about all the time your're saving? Want to say "thanks"? Here's the place.
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
FierceRecon
Registered User
Posts: 9
Joined: Wed Jul 07, 2004 3:55 am
Contact:

EasyMod Suggestion (raw code) (can't post in proper board)

Post by FierceRecon »

For the copying of multiple files (*.*, *.jpg, etc), you can use glob to get all the files.

Code: Select all

$files = glob($pattern);

for ($i = 0; $i < count($files); $i++)
{
      // Copy file here
}
If this is already in the making, then I'm sorry for taking up your time.

BTW how come I can't post in ANY of the EasyMOD boards?

User avatar
{o}
Registered User
Posts: 90
Joined: Wed Mar 31, 2004 1:26 pm
Contact:

Re: EasyMod Suggestion (raw code) (can't post in proper boar

Post by {o} »

FierceRecon wrote:BTW how come I can't post in ANY of the EasyMOD boards?
Just read. You cannot. You can reply.

User avatar
A_Jelly_Doughnut
Registered User
Posts: 1780
Joined: Wed Jun 04, 2003 4:23 pm

Re: EasyMod Suggestion (raw code) (can't post in proper boar

Post by A_Jelly_Doughnut »

FWIW, mass copying is coming...
A_Jelly_Doughnut

BondGamer
Registered User
Posts: 112
Joined: Mon Dec 15, 2003 8:20 pm
Contact:

Re: EasyMod Suggestion (raw code) (can't post in proper boar

Post by BondGamer »

What is happening to EasyMOD development anyway? It has been in alpha for like a year.

trenzterra
Registered User
Posts: 165
Joined: Sat Dec 29, 2001 5:57 am
Location: Singapore

Re: EasyMod Suggestion (raw code) (can't post in proper boar

Post by trenzterra »

{o} wrote:
FierceRecon wrote:BTW how come I can't post in ANY of the EasyMOD boards?
Just read. You cannot. You can reply.
Who can create new topics then? I've seen newbies post there.

Graham
Registered User
Posts: 1304
Joined: Tue Mar 19, 2002 7:11 pm
Location: UK

Re: EasyMod Suggestion (raw code) (can't post in proper boar

Post by Graham »

You should be able to post topics in at least 2 of the EM forums I thought, I'm not sure of the permissions on all of them however.

PS. Moved to EM Discussion when i find the right button ;)
"So Long, and Thanks for All the Fish"

Graham
Eeek, a blog!

FierceRecon
Registered User
Posts: 9
Joined: Wed Jul 07, 2004 3:55 am
Contact:

Re: EasyMod Suggestion (raw code) (can't post in proper boar

Post by FierceRecon »

i decided to implement some of my code into easymod.
After about 1 hour of work, my output for country flags was:

[code]
Array
(
[0] => copy flags/Thumbs.db ../../../images/flags/Thumbs.db
[1] => copy flags/Thumbs.db:encryptable ../../../images/flags/Thumbs.db:encryptable
[2] => copy flags/afghanistan.gif ../../../images/flags/afghanistan.gif
[3] => copy flags/albania.gif ../../../images/flags/albania.gif
[4] => copy flags/algeria.gif ../../../images/flags/algeria.gif
[5] => copy flags/andorra.gif ../../../images/flags/andorra.gif
[6] => copy flags/angola.gif ../../../images/flags/angola.gif
[7] => copy flags/antiguabarbuda.gif ../../../images/flags/antiguabarbuda.gif
[8] => copy flags/argentina.gif ../../../images/flags/argentina.gif
[9] => copy flags/armenia.gif ../../../images/flags/armenia.gif
[10] => copy flags/australia.gif ../../../images/flags/australia.gif
[11] => copy flags/austria.gif ../../../images/flags/austria.gif
[12] => copy flags/azerbaijan.gif ../../../images/flags/azerbaijan.gif
[13] => copy flags/bahamas.gif ../../../images/flags/bahamas.gif
[14] => copy flags/bahrain.gif ../../../images/flags/bahrain.gif
[15] => copy flags/bangladesh.gif ../../../images/flags/bangladesh.gif
[16] => copy flags/barbados.gif ../../../images/flags/barbados.gif
[17] => copy flags/belarus.gif ../../../images/flags/belarus.gif
[18] => copy flags/belgium.gif ../../../images/flags/belgium.gif
[19] => copy flags/belize.gif ../../../images/flags/belize.gif
[20] => copy flags/benin.gif ../../../images/flags/benin.gif
[21] => copy flags/bhutan.gif ../../../images/flags/bhutan.gif
[22] => copy flags/blank.gif ../../../images/flags/blank.gif
[23] => copy flags/bolivia.gif ../../../images/flags/bolivia.gif
[24] => copy flags/bosnia_herzegovina.gif ../../../images/flags/bosnia_herzegovina.gif
[25] => copy flags/botswana.gif ../../../images/flags/botswana.gif
[26] => copy flags/brazil.gif ../../../images/flags/brazil.gif
[27] => copy flags/brunei.gif ../../../images/flags/brunei.gif
[28] => copy flags/bulgaria.gif ../../../images/flags/bulgaria.gif
[29] => copy flags/burkinafaso.gif ../../../images/flags/burkinafaso.gif
[30] => copy flags/burma.gif ../../../images/flags/burma.gif
[31] => copy flags/burund.gif ../../../images/flags/burund.gif
[32] => copy flags/cambodia.gif ../../../images/flags/cambodia.gif
[33] => copy flags/cameroon.gif ../../../images/flags/cameroon.gif
[34] => copy flags/canada.gif ../../../images/flags/canada.gif
[35] => copy flags/centralafricanrep.gif ../../../images/flags/centralafricanrep.gif
[36] => copy flags/chad.gif ../../../images/flags/chad.gif
[37] => copy flags/chile.gif ../../../images/flags/chile.gif
[38] => copy flags/china.gif ../../../images/flags/china.gif
[39] => copy flags/columbia.gif ../../../images/flags/columbia.gif
[40] => copy flags/comoros.gif ../../../images/flags/comoros.gif
[41] => copy flags/congo.gif ../../../images/flags/congo.gif
[42] => copy flags/costarica.gif ../../../images/flags/costarica.gif
[43] => copy flags/croatia.gif ../../../images/flags/croatia.gif
[44] => copy flags/cuba.gif ../../../images/flags/cuba.gif
[45] => copy flags/cyprus.gif ../../../images/flags/cyprus.gif
[46] => copy flags/czechrepublic.gif ../../../images/flags/czechrepublic.gif
[47] => copy flags/demrepcongo.gif ../../../images/flags/demrepcongo.gif
[48] => copy flags/denmark.gif ../../../images/flags/denmark.gif
[49] => copy flags/djiboutil.gif ../../../images/flags/djiboutil.gif
[50] => copy flags/dominica.gif ../../../images/flags/dominica.gif
[51] => copy flags/dominicanrep.gif ../../../images/flags/dominicanrep.gif
[52] => copy flags/ecuador.gif ../../../images/flags/ecuador.gif
[53] => copy flags/egypt.gif ../../../images/flags/egypt.gif
[54] => copy flags/elsalvado.gif ../../../images/flags/elsalvado.gif
[55] => copy flags/eq_guinea.gif ../../../images/flags/eq_guinea.gif
[56] => copy flags/eritrea.gif ../../../images/flags/eritrea.gif
[57] => copy flags/estonia.gif ../../../images/flags/estonia.gif
[58] => copy flags/ethiopia.gif ../../../images/flags/ethiopia.gif
[59] => copy flags/fiji.gif ../../../images/flags/fiji.gif
[60] => copy flags/finland.gif ../../../images/flags/finland.gif
[61] => copy flags/france.gif ../../../images/flags/france.gif
[62] => copy flags/gabon.gif ../../../images/flags/gabon.gif
[63] => copy flags/gambia.gif ../../../images/flags/gambia.gif
[64] => copy flags/georgia.gif ../../../images/flags/georgia.gif
[65] => copy flags/germany.gif ../../../images/flags/germany.gif
[66] => copy flags/ghana.gif ../../../images/flags/ghana.gif
[67] => copy flags/greece.gif ../../../images/flags/greece.gif
[68] => copy flags/grenada.gif ../../../images/flags/grenada.gif
[69] => copy flags/grenadines.gif ../../../images/flags/grenadines.gif
[70] => copy flags/guatemala.gif ../../../images/flags/guatemala.gif
[71] => copy flags/guineabissau.gif ../../../images/flags/guineabissau.gif
[72] => copy flags/guineal.gif ../../../images/flags/guineal.gif
[73] => copy flags/guyana.gif ../../../images/flags/guyana.gif
[74] => copy flags/haiti.gif ../../../images/flags/haiti.gif
[75] => copy flags/honduras.gif ../../../images/flags/honduras.gif
[76] => copy flags/hong_kong.gif ../../../images/flags/hong_kong.gif
[77] => copy flags/hungary.gif ../../../images/flags/hungary.gif
[78] => copy flags/iceland.gif ../../../images/flags/iceland.gif
[79] => copy flags/india.gif ../../../images/flags/india.gif
[80] => copy flags/indonesia.gif ../../../images/flags/indonesia.gif
[81] => copy flags/iran.gif ../../../images/flags/iran.gif
[82] => copy flags/iraq.gif ../../../images/flags/iraq.gif
[83] => copy flags/ireland.gif ../../../images/flags/ireland.gif
[84] => copy flags/israel.gif ../../../images/flags/israel.gif
[85] => copy flags/italy.gif ../../../images/flags/italy.gif
[86] => copy flags/ivorycoast.gif ../../../images/flags/ivorycoast.gif
[87] => copy flags/jamaica.gif ../../../images/flags/jamaica.gif
[88] => copy flags/japan.gif ../../../images/flags/japan.gif
[89] => copy flags/jordan.gif ../../../images/flags/jordan.gif
[90] => copy flags/kazakhstan.gif ../../../images/flags/kazakhstan.gif
[91] => copy flags/kenya.gif ../../../images/flags/kenya.gif
[92] => copy flags/kiribati.gif ../../../images/flags/kiribati.gif
[93] => copy flags/kuwait.gif ../../../images/flags/kuwait.gif
[94] => copy flags/kyrgyzstan.gif ../../../images/flags/kyrgyzstan.gif
[95] => copy flags/laos.gif ../../../images/flags/laos.gif
[96] => copy flags/latvia.gif ../../../images/flags/latvia.gif
[97] => copy flags/lebanon.gif ../../../images/flags/lebanon.gif
[98] => copy flags/liberia.gif ../../../images/flags/liberia.gif
[99] => copy flags/libya.gif ../../../images/flags/libya.gif
[100] => copy flags/liechtenstein.gif ../../../images/flags/liechtenstein.gif
[101] => copy flags/lithuania.gif ../../../images/flags/lithuania.gif
[102] => copy flags/luxembourg.gif ../../../images/flags/luxembourg.gif
[103] => copy flags/macadonia.gif ../../../images/flags/macadonia.gif
[104] => copy flags/macau.gif ../../../images/flags/macau.gif
[105] => copy flags/madagascar.gif ../../../images/flags/madagascar.gif
[106] => copy flags/malawi.gif ../../../images/flags/malawi.gif
[107] => copy flags/malaysia.gif ../../../images/flags/malaysia.gif
[108] => copy flags/maldives.gif ../../../images/flags/maldives.gif
[109] => copy flags/mali.gif ../../../images/flags/mali.gif
[110] => copy flags/malta.gif ../../../images/flags/malta.gif
[111] => copy flags/mauritania.gif ../../../images/flags/mauritania.gif
[112] => copy flags/mauritius.gif ../../../images/flags/mauritius.gif
[113] => copy flags/mexico.gif ../../../images/flags/mexico.gif
[114] => copy flags/micronesia.gif ../../../images/flags/micronesia.gif
[115] => copy flags/moldova.gif ../../../images/flags/moldova.gif
[116] => copy flags/monaco.gif ../../../images/flags/monaco.gif
[117] => copy flags/mongolia.gif ../../../images/flags/mongolia.gif
[118] => copy flags/morocco.gif ../../../images/flags/morocco.gif
[119] => copy flags/mozambique.gif ../../../images/flags/mozambique.gif
[120] => copy flags/namibia.gif ../../../images/flags/namibia.gif
[121] => copy flags/nauru.gif ../../../images/flags/nauru.gif
[122] => copy flags/nepal.gif ../../../images/flags/nepal.gif
[123] => copy flags/neth_antilles.gif ../../../images/flags/neth_antilles.gif
[124] => copy flags/netherlands.gif ../../../images/flags/netherlands.gif
[125] => copy flags/newzealand.gif ../../../images/flags/newzealand.gif
[126] => copy flags/nicaragua.gif ../../../images/flags/nicaragua.gif
[127] => copy flags/niger.gif ../../../images/flags/niger.gif
[128] => copy flags/nigeria.gif ../../../images/flags/nigeria.gif
[129] => copy flags/north_korea.gif ../../../images/flags/north_korea.gif
[130] => copy flags/norway.gif ../../../images/flags/norway.gif
[131] => copy flags/oman.gif ../../../images/flags/oman.gif
[132] => copy flags/pakistan.gif ../../../images/flags/pakistan.gif
[133] => copy flags/panama.gif ../../../images/flags/panama.gif
[134] => copy flags/papuanewguinea.gif ../../../images/flags/papuanewguinea.gif
[135] => copy flags/paraguay.gif ../../../images/flags/paraguay.gif
[136] => copy flags/peru.gif ../../../images/flags/peru.gif
[137] => copy flags/philippines.gif ../../../images/flags/philippines.gif
[138] => copy flags/poland.gif ../../../images/flags/poland.gif
[139] => copy flags/portugal.gif ../../../images/flags/portugal.gif
[140] => copy flags/puertorico.gif ../../../images/flags/puertorico.gif
[141] => copy flags/qatar.gif ../../../images/flags/qatar.gif
[142] => copy flags/rawanda.gif ../../../images/flags/rawanda.gif
[143] => copy flags/romania.gif ../../../images/flags/romania.gif
[144] => copy flags/russia.gif ../../../images/flags/russia.gif
[145] => copy flags/sao_tome.gif ../../../images/flags/sao_tome.gif
[146] => copy flags/saudiarabia.gif ../../../images/flags/saudiarabia.gif
[147] => copy flags/senegal.gif ../../../images/flags/senegal.gif
[148] => copy flags/serbia.gif ../../../images/flags/serbia.gif
[149] => copy flags/seychelles.gif ../../../images/flags/seychelles.gif
[150] => copy flags/sierraleone.gif ../../../images/flags/sierraleone.gif
[151] => copy flags/singapore.gif ../../../images/flags/singapore.gif
[152] => copy flags/slovakia.gif ../../../images/flags/slovakia.gif
[153] => copy flags/slovenia.gif ../../../images/flags/slovenia.gif
[154] => copy flags/solomon_islands.gif ../../../images/flags/solomon_islands.gif
[155] => copy flags/somalia.gif ../../../images/flags/somalia.gif
[156] => copy flags/south_korea.gif ../../../images/flags/south_korea.gif
[157] => copy flags/southafrica.gif ../../../images/flags/southafrica.gif
[158] => copy flags/spain.gif ../../../images/flags/spain.gif
[159] => copy flags/srilanka.gif ../../../images/flags/srilanka.gif
[160] => copy flags/stkitts_nevis.gif ../../../images/flags/stkitts_nevis.gif
[161] => copy flags/stlucia.gif ../../../images/flags/stlucia.gif
[162] => copy flags/sudan.gif ../../../images/flags/sudan.gif
[163] => copy flags/suriname.gif ../../../images/flags/suriname.gif
[164] => copy flags/sweden.gif ../../../images/flags/sweden.gif
[165] => copy flags/switzerland.gif ../../../images/flags/switzerland.gif
[166] => copy flags/syria.gif ../../../images/flags/syria.gif
[167] => copy flags/taiwan.gif ../../../images/flags/taiwan.gif
[168] => copy flags/tajikistan.gif ../../../images/flags/tajikistan.gif
[169] => copy flags/tanzania.gif ../../../images/flags/tanzania.gif
[170] => copy flags/thailand.gif ../../../images/flags/thailand.gif
[171] => copy flags/togo.gif ../../../images/flags/togo.gif
[172] => copy flags/tonga.gif ../../../images/flags/tonga.gif
[173] => copy flags/trinidadandtobago.gif ../../../images/flags/trinidadandtobago.gif
[174] => copy flags/tunisia.gif ../../../images/flags/tunisia.gif
[175] => copy flags/turkey.gif ../../../images/flags/turkey.gif
[176] => copy flags/turkmenistan.gif ../../../images/flags/turkmenistan.gif
[177] => copy flags/tuvala.gif ../../../images/flags/tuvala.gif
[178] => copy flags/uae.gif ../../../images/flags/uae.gif
[179] => copy flags/uganda.gif ../../../images/flags/uganda.gif
[180] => copy flags/uk.gif ../../../images/flags/uk.gif
[181] => copy flags/ukraine.gif ../../../images/flags/ukraine.gif
[182] => copy flags/uruguay.gif ../../../images/flags/uruguay.gif
[183] => copy flags/usa.gif ../../../images/flags/usa.gif
[184] => copy flags/ussr.gif ../../../images/flags/ussr.gif
[185] => copy flags/uzbekistan.gif ../../../images/flags/uzbekistan.gif
[186] => copy flags/vanuatu.gif ../../../images/flags/vanuatu.gif
[187] => copy flags/venezuela.gif ../../../images/flags/venezuela.gif
[188] => copy flags/vietnam.gif ../../../images/flags/vietnam.gif
[189] => copy flags/western_samoa.gif ../../../images/flags/western_samoa.gif
[190] => copy flags/yemen.gif ../../../images/flags/yemen.gif
[191] => copy flags/yugoslavia.gif ../../../images/flags/yugoslavia.gif
[192] => copy flags/zaire.gif ../../../images/flags/zaire.gif
[193] => copy flags/zambia.gif ../../../images/flags/zambia.gif
[194] => copy flags/zimbabwe.gif ../../../images/flags/zimbabwe.gif
)[/code]

FierceRecon
Registered User
Posts: 9
Joined: Wed Jul 07, 2004 3:55 am
Contact:

Re: EasyMod Suggestion (raw code) (can't post in proper boar

Post by FierceRecon »

yep it works, as well as i can tell, althrough I'm pretty sure I shoudn't have put it in the place i did...
anyway if anyone wants it...
[code]
else if ($commands[$i]['command'] == 'COPY')
{
// strip the body of whitespace lines; allow multiple lines
$body[$i] = strip_whitespace( $body[$i], false) ;

// loop through the body, setting up the copy
$bad_copy = false ;
for ($j=0; $j<count($body[$i]); $j++)
{
// strip out potentially unlimited whitespace within the line
$tmp_str = str_replace( ' ', ' ', trim($body[$i][$j])) ;
$tmp_array = explode(' ', $tmp_str) ;
$split_array = array() ;

// loop through elements and keep only elements with text
for ($e=0; $e<count($tmp_array); $e++)
{
// got text? we want you!
if ($tmp_array[$e] != '')
{
$split_array[] = $tmp_array[$e] ;
}
}


// discard "copy" if it exists, and discard "to"
if ( count($split_array) < 2)
{
display_error( '<b>' . $lang['EM_err_critical_error'] . "</b><br><br>
" . $lang['EM_err_copy_format'] . '<br>' . trim($body[$i][$j]) . "<br>
" . $lang['EM_line_num'] .$commands[$i]['line']);
$bad_copy = true ;
break ;
}
else if ( strtolower($split_array[0]) == 'copy')
{
$target = $split_array[1] ;
$destination = $split_array[3] ;
}
else
{
$target = $split_array[0] ;
$destination = $split_array[2] ;
}

// get path and filename
$split_path = explode('/', $destination) ;
$dest_file = $split_path[count($split_path)-1] ;
$dest_path = substr( $destination, 0, strlen($destination)-strlen($dest_file)) ;
$split_targpath = explode('/', $target) ;
$targ_file = $split_targpath[count($split_targpath)-1] ;
$targ_path = substr( $target, 0, strlen($target)-strlen($targ_file)) ;


/////////////////////
///////////////////// emcopy - might need this later
/////////////////////

// if the filename to copy is *.* or nothing, then make sure at least the directory exists
if ((strpos($targ_file, '*') !== FALSE || ($targ_file == '') || is_dir($install_path . $target)) && (file_exists($install_path . $targ_path)))
{

/////////////////////
///////////////////// emcopy - in 0.0.10 we are not dealing with multiple gets
/////////////////////
/* // if the filename to copy is *.* or nothing, then make sure at least the directory exists
if (($targ_file == '*.*') || ($targ_file == ''))
{
//$command_file->modio_mkdirs_copy( $dest_path) ;
$display_copy_warning = true ;
continue ;
}
*/
/////////////////////
///////////////////// emcopy - fine for 0.0.10a but may need to change later
/////////////////////
// WILDCARDS COPY FIX by Fierce Recon
// Technically if we copy 'nothing' we copy the whole folder, so we can add a *
if (is_dir($target) && $targ_file != '')
{
$targ_path .= $targ_file;
$targ_file = '';
}
if ($dest_file != '' && $targ_file != '') // Copy-rename folder
{
$dest_path .= $dest_file;
$dest_file = '';
}
if ($targ_file == '') { $target .= '*'; }
// Let's build a list of ALL files to copy...
$files = array();
function get_files($sfiles, &$files)
{
for ($h = 0; $h < count($sfiles); $h++)
{
if (is_dir($sfiles[$h]))
get_files(glob($sfiles[$h]), $files);
else
$files[] = $sfiles[$h];
}
}
get_files(glob($install_path . $target), $files);
// Function for doing our dirty work
// This may seem to work with only *, but it also works with *.*, since it shouldn't return any folders
for ($g = 0; $g < count($files); $g++)
{
$files[$g] = str_replace($install_path, '', $files[$g]);
$split_targpath1 = explode('/', $files[$g]) ;
$targ_file1 = ( strrpos($files[$g], '.') === FALSE) ? '' : substr($files[$g], strrpos($files[$g], '.'));
$targ_path1 = substr( $files[$g], 0, strlen($files[$g])-strlen($targ_file1)) ;
// if it is destine for subsilver, make sure it goes to ALL themes
if (($split_path1[0] == 'templates') && ($split_path1[1] == 'subSilver'))
{
$files2 = get_theme_files( $targ_file1, str_replace($targ_path , $dest_path . $dest_file, $targ_path1)) ;
for ($x=0; $x<count($files2); $x++)
{
// make any dirs we may need
$command_file->modio_mkdirs_copy( $files2[$x]['path']) ;
$command_file->afile[] = 'copy ' . $files[$g] . ' ../../../' . $files2[$x]['path'] . $files2[$x]['filename'] ;
}
}

// if it destined for lang_english, make sure it goes to ALL languates
else if (($split_path1[0] == 'language') && ($split_path1[1] == 'lang_english'))
{
$lang_path = $phpbb_root_path . 'language/' ;
$files2 = get_lang_files( $targ_file1, str_replace($targ_path ,$dest_path . $dest_file, $targ_path1), $lang_path) ;
for ($x=0; $x<count($files2); $x++)
{
// make any dirs we may need
$command_file->modio_mkdirs_copy( $files2[$x]['path']) ;
$command_file->afile[] = 'copy ' . $files[$g] . ' ../../../' . $files2[$x]['path'] . $files2[$x]['filename'] ;
}
}

// everything else
else
{
// make any dirs we may need
$command_file->modio_mkdirs_copy( str_replace($targ_path ,$dest_path . $dest_file, $targ_path1)) ;
$command_file->afile[] = 'copy ' . $files[$g] . ' ../../../' . str_replace($targ_path ,$dest_path . $dest_file, $targ_path1) . $targ_file1 ;
}
}
}
else if ((strpos($targ_file, '*') !== FALSE || ($targ_file == '') || is_dir($installpath . $target)) && !(file_exists($install_path . $targ_path)))
{
display_error( '<b>' . $lang['EM_err_critical_error'] . "</b><br><br>
" . sprintf($lang['EM_err_comm_copy'], $install_path, $target) . "<br>
" . $lang['EM_line_num'] .$commands[$i]['line']);
$bad_copy = true ;
break ;
}
else
{
// if a destination file name was not supplied, then use the target's filename
if ($dest_file == '')
{
$dest_file = $targ_file ;
}

// make sure the target file actually exists
else if (!file_exists($install_path . $target))
{
display_error( '<b>' . $lang['EM_err_critical_error'] . "</b><br><br>
" . sprintf($lang['EM_err_comm_copy'], $install_path, $target) . "<br>
" . $lang['EM_line_num'] .$commands[$i]['line']);
$bad_copy = true ;
break ;
}

// if it is destine for subsilver, make sure it goes to ALL themes
if (($split_path[0] == 'templates') && ($split_path[1] == 'subSilver'))
{
$files = get_theme_files( $dest_file, $dest_path) ;
for ($x=0; $x<count($files); $x++)
{
// make any dirs we may need
$command_file->modio_mkdirs_copy( $files[$x]['path']) ;
$command_file->afile[] = 'copy ' . $target . ' ../../../' . $files[$x]['path'] . $files[$x]['filename'] ;
}
}

// if it destined for lang_english, make sure it goes to ALL languates
else if (($split_path[0] == 'language') && ($split_path[1] == 'lang_english'))
{
$lang_path = $phpbb_root_path . 'language/' ;
$files = get_lang_files( $dest_file, $dest_path, $lang_path) ;
for ($x=0; $x<count($files); $x++)
{
// make any dirs we may need
$command_file->modio_mkdirs_copy( $files[$x]['path']) ;
$command_file->afile[] = 'copy ' . $target . ' ../../../' . $files[$x]['path'] . $files[$x]['filename'] ;
}
}

// everything else
else
{
// make any dirs we may need
$command_file->modio_mkdirs_copy( $dest_path) ;
$command_file->afile[] = 'copy ' . $target . ' ../../../' . $dest_path . $dest_file ;
}

}
}

// if we failed then halt processing
if ($bad_copy)
{
break ;
}
}
[/code]

This is Line ~1750 in admin_easymod.php

Locked