cis notified web server of a job completion; upload form interface and validation...
[living-lab-site.git] / application / config / config.php
index 1402953..a96f37b 100644 (file)
@@ -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;
+        }
+    }
+}