X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fconfig%2Fconfig.php;h=10b45e07f0af356a86149d6086f5463d6fb7ad75;hb=ad7daf2de4288cff974e97ec9290533ba732df3b;hp=1ec65435ed05745acdbeb459d4a4f4c6928283e0;hpb=6d8f5b56b237767344bc4a283b4093e6d6f1a612;p=living-lab-site.git diff --git a/application/config/config.php b/application/config/config.php old mode 100755 new mode 100644 index 1ec6543..10b45e0 --- a/application/config/config.php +++ b/application/config/config.php @@ -26,7 +26,7 @@ $config['base_url'] = ''; | variable so that it is blank. | */ -$config['index_page'] = 'index.php'; +$config['index_page'] = ''; /* |-------------------------------------------------------------------------- @@ -180,7 +180,7 @@ $config['directory_trigger'] = 'd'; // experimental not currently in use | your log files will fill up very fast. | */ -$config['log_threshold'] = 0; +$config['log_threshold'] = 4; /* |-------------------------------------------------------------------------- @@ -358,5 +358,30 @@ $config['rewrite_short_tags'] = FALSE; $config['proxy_ips'] = ''; -/* End of file config.php */ -/* Location: ./application/config/config.php */ +/* +| ------------------------------------------------------------------- +| Native Autoload - by Phil Sturgeon. +| ------------------------------------------------------------------- +| +| Nothing to do with config/autoload.php, this allows PHP autoload to work +| for base controllers and some third-party libraries. +| +| If using HMVC you do not need this! HMVC will autoload. +| +| Place this code at the bottom of your application/config/config.php file. +*/ +function __autoload($class) +{ + if (strpos($class, 'CI_') !== 0) + { + if (file_exists($file = APPPATH . 'core/' . $class . EXT)) + { + include $file; + } + elseif (file_exists($file = APPPATH . 'libraries/' . $class . EXT)) + { + include $file; + } + } +} +