X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fconfig%2Fconfig.php;h=755fc91fd9cc29cd0144c486a6650f067f1dca70;hb=85bae784f30d1777db15f43d2e3ce04a2c3e8653;hp=14029537dec6ad4f80f676d5c035d715233b6340;hpb=0b134deb6f1108155973436e3de7296a76a2d660;p=living-lab-site.git diff --git a/application/config/config.php b/application/config/config.php old mode 100755 new mode 100644 index 1402953..755fc91 --- a/application/config/config.php +++ b/application/config/config.php @@ -126,7 +126,7 @@ $config['subclass_prefix'] = 'MY_'; | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!! | */ -$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; +$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-+'; /* @@ -358,3 +358,30 @@ $config['rewrite_short_tags'] = FALSE; $config['proxy_ips'] = ''; +/* +| ------------------------------------------------------------------- +| 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; + } + } +} +