1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 02:57:15 +02:00

Media-Manager batch image-rotation added (only jpeg for now). Other minor tweaks.

This commit is contained in:
CaMer0n
2012-07-29 02:36:18 +00:00
parent ce41e47f43
commit 951665accd
6 changed files with 108 additions and 21 deletions

View File

@@ -272,11 +272,9 @@ class ecache {
* @example clearAll('db');
*/
function clearAll($type)
{
function clearAll($type,$mask = null)
{
$path = null;
$mask = null;
if($type =='content')
{
@@ -299,13 +297,13 @@ class ecache {
if($type == 'db')
{
$path = e_CACHE_DB;
$mask = '*.php';
$mask = ($mask == null) ? '*.php' : $mask;
}
if($type == 'image')
{
$path = e_CACHE_IMAGE;
$mask = '*.cache\.bin';
$mask = ($mask == null) ? '*.cache\.bin' : $mask;
}
if((null == $path) || (null == $mask))
@@ -315,7 +313,7 @@ class ecache {
$fl = e107::getFile(false);
$fl->mode = 'fname';
$files = $fl->get_files($path, $fmask);
$files = $fl->get_files($path, $mask);
if($files)
{
foreach ($files as $file)