[Easymod-cvs] easymod2/mods/easymod/em_includes em_modio.php,1.2,1.3
Status: Beta
Brought to you by:
wgeric
From: Eric F. <wg...@us...> - 2005-05-09 22:00:53
|
Update of /cvsroot/easymod/easymod2/mods/easymod/em_includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8279/mods/easymod/em_includes Modified Files: em_modio.php Log Message: Made it so directories from the COPY action are created on the post process screen (Step 3), right before moving the files, instead of when the COPY action is first processed (Step 1). Index: em_modio.php =================================================================== RCS file: /cvsroot/easymod/easymod2/mods/easymod/em_includes/em_modio.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** em_modio.php 1 May 2005 07:22:01 -0000 1.2 --- em_modio.php 9 May 2005 22:00:44 -0000 1.3 *************** *** 114,118 **** // set up the path; relative to EM execution point, starting at root $root_path = ( substr($phpbb_root_path, 0, 2) == './') ? substr($phpbb_root_path, 2) : $phpbb_root_path ; ! $copy_path = $root_path . $path ; // create dirs for processing the file (server) --- 114,118 ---- // set up the path; relative to EM execution point, starting at root $root_path = ( substr($phpbb_root_path, 0, 2) == './') ? substr($phpbb_root_path, 2) : $phpbb_root_path ; ! $copy_path = ( substr($path, 0, 9) == '../../../') ? $root_path . substr($path, 9) : $phpbb_root_path . $path; // create dirs for processing the file (server) *************** *** 121,125 **** $dir_path = '' ; $splitarray = explode('/', $copy_path) ; ! for ($idir=0; $idir<count($splitarray)-1; $idir++) { $dir_path .= trim($splitarray[$idir]) ; --- 121,125 ---- $dir_path = '' ; $splitarray = explode('/', $copy_path) ; ! for ($idir=0; $idir<count($splitarray); $idir++) { $dir_path .= trim($splitarray[$idir]) ; |