Dotclear

Changeset 1503


Ignore:
Timestamp:
09/24/09 21:40:53 (14 years ago)
Author:
Moe
Message:

DL Manager 1.1.1 :

  • moved PHP class in inc/ directory
  • getting ready for 2.1.6
Location:
plugins/dlManager/trunk
Files:
1 added
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • plugins/dlManager/trunk/_define.php

    r1097 r1503  
    2828     /* Description*/                "Download manager with a public page and a widget", 
    2929     /* Author */                    "Moe (http://gniark.net/), Osku and Tomtom (http://blog.zenstyle.fr)", 
    30      /* Version */                   '1.1', 
     30     /* Version */                   '1.1.1', 
    3131     /* Permissions */               'admin' 
    3232); 
  • plugins/dlManager/trunk/_prepend.php

    r1097 r1503  
    2424if (!defined('DC_RC_PATH')) {return;} 
    2525 
    26 $__autoload['dlManager'] = dirname(__FILE__).'/lib.dlManager.php'; 
     26$__autoload['dlManager'] = dirname(__FILE__).'/inc/lib.dlManager.php'; 
    2727 
    2828$core->url->register('media','media', 
  • plugins/dlManager/trunk/_public.php

    r1097 r1503  
    3636           
    3737          # if the plugin is disabled 
    38           if (!$core->blog->settings->dlmanager_active) {self::p404();} 
     38          if (!$core->blog->settings->dlmanager_active) 
     39          { 
     40               self::p404(); 
     41               return; 
     42          } 
    3943           
    4044          # exit if the public_path (and Media root) doesn't exist 
    41           if (!is_dir($core->blog->public_path)) {self::p404();} 
     45          if (!is_dir($core->blog->public_path)) 
     46          { 
     47               self::p404(); 
     48               return; 
     49          } 
    4250     } 
    4351      
     
    114122               # exit if the directory doesn't exist 
    115123               $dir_full_path = $core->media->root.'/'.$page_dir; 
    116                if (!is_dir($dir_full_path)) {self::p404();} 
     124               if (!is_dir($dir_full_path)) 
     125               { 
     126                    self::p404(); 
     127                    return; 
     128               } 
    117129                
    118130               # used to remove link to root directory 
     
    217229               { 
    218230                    self::p404(); 
     231                    return; 
    219232               } 
    220233                
     
    239252               if ($page_root_len > 0) {$page_root_len += 1;} 
    240253                
    241                if (!dlManager::inJail($file->relname)) {self::p404();} 
     254               if (!dlManager::inJail($file->relname)) 
     255               { 
     256                    self::p404(); 
     257                    return; 
     258               } 
    242259             
    243260            $file->relname = 
     
    281298          self::check(); 
    282299           
    283           if (!preg_match('/^[0-9]+$/',$args)) {self::p404();} 
     300          if (!preg_match('/^[0-9]+$/',$args)) 
     301          { 
     302               self::p404(); 
     303               return; 
     304          } 
    284305           
    285306          try 
     
    290311               { 
    291312                    self::p404(); 
    292                } 
    293                 
    294                if (!dlManager::inJail($file->relname)) {self::p404();} 
     313                    return; 
     314               } 
     315                
     316               if (!dlManager::inJail($file->relname)) 
     317               { 
     318                    self::p404(); 
     319                    return; 
     320               } 
    295321             
    296322               if (is_readable($file->file)) 
     
    323349               { 
    324350                    self::p404(); 
     351                    return; 
    325352               } 
    326353          } 
     
    343370          { 
    344371               self::p404(); 
     372               return; 
    345373          } 
    346374           
     
    357385                    { 
    358386                         self::p404(); 
     387                         return; 
    359388                    } 
    360389                     
     
    375404                    { 
    376405                         self::p404(); 
     406                         return; 
    377407                    } 
    378408                     
     
    389419               { 
    390420                    self::p404(); 
     421                    return; 
    391422               } 
    392423                
     
    394425               { 
    395426                    self::p404(); 
     427                    return; 
    396428               } 
    397429                
Note: See TracChangeset for help on using the changeset viewer.

Sites map