github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/public/libs/tinymce/plugins/jbimages/config.php (about)

     1  <?php
     2  /**
     3   * Justboil.me - a TinyMCE image upload plugin
     4   * jbimages/config.php
     5   *
     6   * Released under Creative Commons Attribution 3.0 Unported License
     7   *
     8   * License: http://creativecommons.org/licenses/by/3.0/
     9   * Plugin info: http://justboil.me/
    10   * Author: Viktor Kuzhelnyi
    11   *
    12   * Version: 2.3 released 23/06/2013
    13   */
    14   
    15  /*
    16    
    17    ------------------------------------------------------------------
    18   
    19    IMPORTANT NOTE! In case, when TinyMCE’s folder is not protected with HTTP Authorisation,
    20    you should require is_allowed() function to return 
    21    `TRUE` if user is authorised,
    22    `FALSE` - otherwise
    23      is_allowed() can be found in jbimages/is_allowed.php
    24   
    25    This is intended to protect upload script, if someone guesses it's url.
    26  
    27  
    28    So, here we go...
    29  
    30  
    31  | -------------------------------------------------------------------
    32  |
    33  | Path to upload target folder, relative to domain name. NO TRAILING SLASH!
    34  | Example: if an image is acessed via http://www.example.com/images/somefolder/image.jpg, you should specify here:
    35  | 
    36  | $config['img_path'] = '/images/somefolder';
    37  | 
    38  | -------------------------------------------------------------------*/
    39  
    40  	
    41  	$config['img_path'] = '/images'; // Relative to domain name
    42  	$config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path']; // Physical path. [Usually works fine like this]
    43  
    44  
    45  /*-------------------------------------------------------------------
    46  | 
    47  | Allowed image filetypes. Specifying something other, than image types will result in error. 
    48  | 
    49  | $config['allowed_types'] = 'gif|jpg|png';
    50  | 
    51  | -------------------------------------------------------------------*/
    52  
    53  	
    54  	$config['allowed_types'] = 'gif|jpg|png';
    55  
    56  
    57  /*-------------------------------------------------------------------
    58  | 
    59  | Maximum image file size in kilobytes. This value can't exceed value set in php.ini.
    60  | Set to `0` if you want to use php.ini default:
    61  | 
    62  | $config['max_size'] = 0;
    63  | 
    64  | -------------------------------------------------------------------*/
    65  
    66  	
    67  	$config['max_size'] = 0;
    68  
    69  
    70  /*-------------------------------------------------------------------
    71  | 
    72  | Maximum image width. Set to `0` for no limit:
    73  | 
    74  | $config['max_width'] = 0;
    75  | 
    76  | -------------------------------------------------------------------*/
    77  
    78  	
    79  	$config['max_width'] = 0;
    80  
    81  
    82  /*-------------------------------------------------------------------
    83  | 
    84  | Maximum image height. Set to `0` for no limit:
    85  | 
    86  | $config['max_height'] = 0;
    87  | 
    88  | -------------------------------------------------------------------*/
    89  
    90  	
    91  	$config['max_height'] = 0;
    92  
    93  
    94  /*-------------------------------------------------------------------
    95  | 
    96  | Allow script to resize image that exceeds maximum width or maximum height (or both)
    97  | If set to `TRUE`, image will be resized to fit maximum values (proportions are saved)
    98  | If set to `FALSE`, user will recieve an error message.
    99  | 
   100  | $config['allow_resize'] = TRUE;
   101  | 
   102  | -------------------------------------------------------------------*/
   103  
   104  	
   105  	$config['allow_resize'] = TRUE;
   106  
   107  
   108  /*-------------------------------------------------------------------
   109  | 
   110  | Image name encryption
   111  | If set to `TRUE`, image file name will be encrypted in something like 7fdd57742f0f7b02288feb62570c7813.jpg
   112  | If set to `FALSE`, original filenames will be preserved
   113  | 
   114  | $config['encrypt_name'] = TRUE;
   115  | 
   116  | -------------------------------------------------------------------*/
   117  
   118  	
   119  	$config['encrypt_name'] = FALSE;
   120  
   121  
   122  /*-------------------------------------------------------------------
   123  | 
   124  | How to behave if 2 or more files with the same name are uploaded:
   125  | `TRUE` - the entire file will be overwritten
   126  | `FALSE` - a number will be added to the newly uploaded file name
   127  | 
   128  | -------------------------------------------------------------------*/
   129  
   130  
   131  	$config['overwrite'] = FALSE;
   132  	
   133  	
   134  /*-------------------------------------------------------------------
   135  | 
   136  | Target upload folder relative to document root. Most likely, you will not need to change this setting.
   137  | 
   138  | -------------------------------------------------------------------*/
   139  
   140  	
   141  	
   142  	
   143  
   144  /*-------------------------------------------------------------------
   145  | 
   146  | THAT IS ALL. HAVE A NICE DAY! )))
   147  | 
   148  | -------------------------------------------------------------------*/
   149  ?>