summaryrefslogtreecommitdiffstats
path: root/system/init/init_image_lib.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-08-25 19:25:49 +0200
committeradmin <devnull@localhost>2006-08-25 19:25:49 +0200
commitb0dd10f8171945e0c1f3527dd1e9d18b043e01a7 (patch)
treec3583ba09e72217683c4304f4690df6ce39ba731 /system/init/init_image_lib.php
Initial Import
Diffstat (limited to 'system/init/init_image_lib.php')
-rw-r--r--system/init/init_image_lib.php24
1 files changed, 24 insertions, 0 deletions
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