diff options
Diffstat (limited to 'system/init')
-rw-r--r-- | system/init/index.html | 15 | ||||
-rw-r--r-- | system/init/init_calendar.php | 19 | ||||
-rw-r--r-- | system/init/init_email.php | 24 | ||||
-rw-r--r-- | system/init/init_encrypt.php | 18 | ||||
-rw-r--r-- | system/init/init_image_lib.php | 24 | ||||
-rw-r--r-- | system/init/init_pagination.php | 24 | ||||
-rw-r--r-- | system/init/init_parser.php | 19 | ||||
-rw-r--r-- | system/init/init_session.php | 18 | ||||
-rw-r--r-- | system/init/init_trackback.php | 18 | ||||
-rw-r--r-- | system/init/init_unit_test.php | 18 | ||||
-rw-r--r-- | system/init/init_upload.php | 24 | ||||
-rw-r--r-- | system/init/init_validation.php | 18 | ||||
-rw-r--r-- | system/init/init_xmlrpc.php | 24 | ||||
-rw-r--r-- | system/init/init_xmlrpcs.php | 27 |
14 files changed, 290 insertions, 0 deletions
diff --git a/system/init/index.html b/system/init/index.html new file mode 100644 index 000000000..5a1f5d6ae --- /dev/null +++ b/system/init/index.html @@ -0,0 +1,15 @@ +<html>
+
+<head>
+
+<title>403 Forbidden</title>
+
+</head>
+
+<body bgcolor='#ffffff'>
+
+<p>Directory access is forbidden.<p>
+
+</body>
+
+</html>
\ No newline at end of file diff --git a/system/init/init_calendar.php b/system/init/init_calendar.php new file mode 100644 index 000000000..5cf663725 --- /dev/null +++ b/system/init/init_calendar.php @@ -0,0 +1,19 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates calendar class + * + * @access private called by the app controller + */ + +if ( ! class_exists('CI_Calendar')) +{ + require_once(BASEPATH.'libraries/Calendar'.EXT); +} + +$obj =& get_instance(); + +$obj->calendar = new CI_Calendar(); +$obj->ci_is_loaded[] = 'calendar'; + +?>
\ No newline at end of file diff --git a/system/init/init_email.php b/system/init/init_email.php new file mode 100644 index 000000000..6782310ef --- /dev/null +++ b/system/init/init_email.php @@ -0,0 +1,24 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates email class + * + * @access private called by the app controller + */ + +$config = array(); +if (file_exists(APPPATH.'config/email'.EXT)) +{ + include_once(APPPATH.'config/email'.EXT); +} + +if ( ! class_exists('CI_Email')) +{ + require_once(BASEPATH.'libraries/Email'.EXT); +} + +$obj =& get_instance(); +$obj->email = new CI_Email($config); +$obj->ci_is_loaded[] = 'email'; + +?>
\ No newline at end of file diff --git a/system/init/init_encrypt.php b/system/init/init_encrypt.php new file mode 100644 index 000000000..5eae533ba --- /dev/null +++ b/system/init/init_encrypt.php @@ -0,0 +1,18 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates encryption class + * + * @access private called by the app controller + */ + +if ( ! class_exists('CI_Encrypt')) +{ + require_once(BASEPATH.'libraries/Encrypt'.EXT); +} + +$obj =& get_instance(); +$obj->encrypt = new CI_Encrypt(); +$obj->ci_is_loaded[] = 'encrypt'; + +?>
\ No newline at end of file diff --git a/system/init/init_image_lib.php b/system/init/init_image_lib.php new file mode 100644 index 000000000..dcd702f0d --- /dev/null +++ b/system/init/init_image_lib.php @@ -0,0 +1,24 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates image manipulation class + * + * @access private called by the app controller + */ + +$config = array(); +if (file_exists(APPPATH.'config/image_lib'.EXT)) +{ + include_once(APPPATH.'config/image_lib'.EXT); +} + +if ( ! class_exists('CI_Image_lib')) +{ + require_once(BASEPATH.'libraries/Image_lib'.EXT); +} + +$obj =& get_instance(); +$obj->image_lib = new CI_Image_lib($config); +$obj->ci_is_loaded[] = 'image_lib'; + +?>
\ No newline at end of file diff --git a/system/init/init_pagination.php b/system/init/init_pagination.php new file mode 100644 index 000000000..3a7d9361c --- /dev/null +++ b/system/init/init_pagination.php @@ -0,0 +1,24 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates pagination class + * + * @access private called by the app controller + */ + +$config = array(); +if ( ! class_exists('CI_Pagination')) +{ + if (file_exists(APPPATH.'config/pagination'.EXT)) + { + include_once(APPPATH.'config/pagination'.EXT); + } + + require_once(BASEPATH.'libraries/Pagination'.EXT); +} + +$obj =& get_instance(); +$obj->pagination = new CI_Pagination($config); +$obj->ci_is_loaded[] = 'pagination'; + +?>
\ No newline at end of file diff --git a/system/init/init_parser.php b/system/init/init_parser.php new file mode 100644 index 000000000..17824b566 --- /dev/null +++ b/system/init/init_parser.php @@ -0,0 +1,19 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates parser class + * + * @access private called by the app controller + */ + +if ( ! class_exists('CI_Parser')) +{ + require_once(BASEPATH.'libraries/Parser'.EXT); +} + +$obj =& get_instance(); +$obj->parser = new CI_Parser(); +$obj->ci_is_loaded[] = 'parser'; + + +?>
\ No newline at end of file diff --git a/system/init/init_session.php b/system/init/init_session.php new file mode 100644 index 000000000..cf493e53c --- /dev/null +++ b/system/init/init_session.php @@ -0,0 +1,18 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates session class + * + * @access private called by the app controller + */ + +if ( ! class_exists('CI_Session')) +{ + require_once(BASEPATH.'libraries/Session'.EXT); +} + +$obj =& get_instance(); +$obj->session = new CI_Session(); +$obj->ci_is_loaded[] = 'session'; + +?>
\ No newline at end of file diff --git a/system/init/init_trackback.php b/system/init/init_trackback.php new file mode 100644 index 000000000..6a3778bcc --- /dev/null +++ b/system/init/init_trackback.php @@ -0,0 +1,18 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates trackback class + * + * @access private called by the app controller + */ + +if ( ! class_exists('CI_Trackback')) +{ + require_once(BASEPATH.'libraries/Trackback'.EXT); +} + +$obj =& get_instance(); +$obj->trackback = new CI_Trackback(); +$obj->ci_is_loaded[] = 'trackback'; + +?>
\ No newline at end of file diff --git a/system/init/init_unit_test.php b/system/init/init_unit_test.php new file mode 100644 index 000000000..61d5350b6 --- /dev/null +++ b/system/init/init_unit_test.php @@ -0,0 +1,18 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates unit testing class + * + * @access private called by the app controller + */ + +if ( ! class_exists('CI_Unit_test')) +{ + require_once(BASEPATH.'libraries/Unit_test'.EXT); +} + +$obj =& get_instance(); +$obj->unit = new CI_Unit_test(); +$obj->ci_is_loaded[] = 'unit'; + +?>
\ No newline at end of file diff --git a/system/init/init_upload.php b/system/init/init_upload.php new file mode 100644 index 000000000..495975c7a --- /dev/null +++ b/system/init/init_upload.php @@ -0,0 +1,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'; + +?>
\ No newline at end of file diff --git a/system/init/init_validation.php b/system/init/init_validation.php new file mode 100644 index 000000000..a320c3e5b --- /dev/null +++ b/system/init/init_validation.php @@ -0,0 +1,18 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates validation class + * + * @access private called by the app controller + */ + +if ( ! class_exists('CI_Validation')) +{ + require_once(BASEPATH.'libraries/Validation'.EXT); +} + +$obj =& get_instance(); +$obj->validation = new CI_Validation(); +$obj->ci_is_loaded[] = 'validation'; + +?>
\ No newline at end of file diff --git a/system/init/init_xmlrpc.php b/system/init/init_xmlrpc.php new file mode 100644 index 000000000..b75e9aad7 --- /dev/null +++ b/system/init/init_xmlrpc.php @@ -0,0 +1,24 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates XML-RPC request class + * + * @access private called by the app controller + */ + +$config = array(); +if (file_exists(APPPATH.'config/xmlrpc'.EXT)) +{ + include_once(APPPATH.'config/xmlrpc'.EXT); +} + +if ( ! class_exists('CI_XML_RPC')) +{ + require_once(BASEPATH.'libraries/Xmlrpc'.EXT); +} + +$obj =& get_instance(); +$obj->xmlrpc = new CI_XML_RPC($config); +$obj->ci_is_loaded[] = 'xmlrpc'; + +?>
\ No newline at end of file diff --git a/system/init/init_xmlrpcs.php b/system/init/init_xmlrpcs.php new file mode 100644 index 000000000..7566e3826 --- /dev/null +++ b/system/init/init_xmlrpcs.php @@ -0,0 +1,27 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates XML-RPC server class + * + * @access private called by the app controller + */ + +$config = array(); +if (file_exists(APPPATH.'config/xmlrpcs'.EXT)) +{ + include_once(APPPATH.'config/xmlrpcs'.EXT); +} + +if ( ! class_exists('CI_XML_RPC_Server')) +{ + require_once(BASEPATH.'libraries/Xmlrpc'.EXT); + require_once(BASEPATH.'libraries/Xmlrpcs'.EXT); +} + +$obj =& get_instance(); +$obj->xmlrpc = new CI_XML_RPC(); +$obj->xmlrpcs = new CI_XML_RPC_Server($config); +$obj->ci_is_loaded[] = 'xmlrpc'; +$obj->ci_is_loaded[] = 'xmlrpcs'; + +?>
\ No newline at end of file |