Ignore:
Timestamp:
06/16/12 10:41:26 (7 years ago)
Author:
gogo
Message:

Merge the MootoolsFileManager?-Update branch into the trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/plugins/MootoolsFileManager/config.php

    r1297 r1321  
    8888  $IMConfig['images_dir'] = FALSE; // No trailing slash 
    8989  $IMConfig['images_url'] = FALSE; // No trailing slash 
    90  
     90   
     91  $IMConfig['thumbs_dir'] = NULL;  // Will default to images_dir/.thumbs or files_dir/.thumbs 
     92  $IMConfig['thumbs_url'] = NULL;  // Will default to images_url/.thumbs or files_url/.thumbs 
    9193  /** 
    9294    == Turning On Uploads == 
     
    125127// ------------------------------------------------------------------------- 
    126128 
     129/** Expanded Permissions */ 
     130 
     131$IMConfig['allow_images_create_dir']  = NULL;  // Defaults to allow_images_upload 
     132$IMConfig['allow_images_move']        = false;  
     133$IMConfig['allow_images_download']    = false;  
     134   
     135$IMConfig['allow_files_create_dir']  = NULL; // Defaults to allow_files_upload 
     136$IMConfig['allow_files_move']        = false;  
     137$IMConfig['allow_files_download']    = false;  
     138   
     139   
    127140/** 
    128141 
     
    191204@session_write_close(); // Close session now so we don't lock. 
    192205 
     206if(!isset($IMConfig['thumbs_dir'])) 
     207{ 
     208  $IMConfig['thumbs_dir'] = (isset($IMConfig['images_dir']) ? $IMConfig['images_dir'] : $IMConfig['files_dir']) . '/.thumbs'; 
     209} 
     210 
     211if(!isset($IMConfig['thumbs_url'])) 
     212{ 
     213  $IMConfig['thumbs_url'] = (isset($IMConfig['images_url']) ? $IMConfig['images_url'] : $IMConfig['files_url']) . '/.thumbs'; 
     214} 
     215 
     216if(!isset($IMConfig['allow_images_create_dir']))  
     217{ 
     218  $IMConfig['allow_images_create_dir'] = $IMConfig['allow_images_upload']; 
     219} 
     220 
     221if(!isset($IMConfig['allow_files_create_dir']))  
     222{ 
     223  $IMConfig['allow_files_create_dir'] = $IMConfig['allow_files_upload']; 
     224} 
     225 
    193226?> 
Note: See TracChangeset for help on using the changeset viewer.