X-Git-Url: http://git.vanrenterghem.biz/www.vanrenterghem.biz.git/blobdiff_plain/4b1ce0d83844cfd7c55e75a60ccb239882cd62e3..83ab5456767602f2a9860a7db7247f002ec96945:/phpBB2_old/admin/xs_include_import.php diff --git a/phpBB2_old/admin/xs_include_import.php b/phpBB2_old/admin/xs_include_import.php deleted file mode 100644 index fd57285..0000000 --- a/phpBB2_old/admin/xs_include_import.php +++ /dev/null @@ -1,121 +0,0 @@ - 'upload', - 'local' => $items[$i]['tmp'], - 'remote' => $items[$i]['file'] - ); - } - } - return $arr; -} - -function generate_actions_dirs($dir = '') -{ - global $dirs; - $arr = array(); - if($dir && substr($dir, strlen($dir) - 1) !== '/') - { - $dir .= '/'; - } - if($dir) - { - // remove trailing / - $pos = strrpos($dir, '/'); - $str = $pos === strlen($dir) - 1 ? substr($dir, 0, $pos) : $dir; - // get last directory name - $pos = strrpos($str, '/'); - $str = $pos ? substr($str, $pos + 1) : $str; - $arr[] = array( - 'command' => 'mkdir', - 'dir' => $str, - 'ignore' => true - ); - $arr[] = array( - 'command' => 'chdir', - 'dir' => $str - ); - } - $arr[] = array( - 'command' => 'exec', - 'list' => generate_actions_files($dir) - ); - // create subdirectories - $len = strlen($dir); - for($i=0; $i 'exec', - 'list' => generate_actions_dirs($dirs[$i]) - ); - } - } - } - return $arr; -} - -function generate_style_name($str) -{ - $str = 'style_' . $str . '_%02d' . STYLE_EXTENSION; - $num = 0; - $found = true; - while($found) - { - $filename = sprintf($str, $num); - $found = @file_exists(XS_TEMP_DIR.$filename); - $num ++; - } - return $filename; -} - -?> \ No newline at end of file