X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fconfig%2Fconfig.php;h=a96f37b961e481222c68f950c78e71b27992bcf5;hb=e1f154780b5b004e047977b6582dd19bf85d4e4d;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..a96f37b --- 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~%.:_\-+&'; /* @@ -224,7 +224,7 @@ $config['cache_path'] = ''; | MUST set an encryption key. See the user guide for info. | */ -$config['encryption_key'] = ''; +$config['encryption_key'] = '328pgYhL6Fc87WC46UHIaaxHBYeutR5u'; /* |-------------------------------------------------------------------------- @@ -244,13 +244,13 @@ $config['encryption_key'] = ''; | 'sess_time_to_update' = how many seconds between CI refreshing Session Information | */ -$config['sess_cookie_name'] = 'ci_session'; +$config['sess_cookie_name'] = 'p2ptube_session'; $config['sess_expiration'] = 7200; $config['sess_expire_on_close'] = FALSE; $config['sess_encrypt_cookie'] = FALSE; -$config['sess_use_database'] = FALSE; -$config['sess_table_name'] = 'ci_sessions'; -$config['sess_match_ip'] = FALSE; +$config['sess_use_database'] = TRUE; +$config['sess_table_name'] = 'sessions'; +$config['sess_match_ip'] = TRUE; $config['sess_match_useragent'] = TRUE; $config['sess_time_to_update'] = 300; @@ -328,7 +328,7 @@ $config['compress_output'] = FALSE; | regarding date handling. | */ -$config['time_reference'] = 'local'; +$config['time_reference'] = 'gmt'; /* @@ -358,3 +358,29 @@ $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; + } + } +}