admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 1 | <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| 2 | |
| 3 | /** |
| 4 | * Loads and instantiates file uploading class |
| 5 | * |
| 6 | * @access private called by the app controller |
| 7 | */ |
| 8 | |
| 9 | $config = array(); |
| 10 | if ( ! class_exists('CI_Upload')) |
| 11 | { |
| 12 | if (file_exists(APPPATH.'config/upload'.EXT)) |
| 13 | { |
| 14 | include_once(APPPATH.'config/upload'.EXT); |
| 15 | } |
| 16 | |
| 17 | require_once(BASEPATH.'libraries/Upload'.EXT); |
| 18 | } |
| 19 | |
| 20 | $obj =& get_instance(); |
| 21 | $obj->upload = new CI_Upload($config); |
| 22 | $obj->ci_is_loaded[] = 'upload'; |
| 23 | |
| 24 | ?> |