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