This commit is contained in:
2020-01-25 13:11:19 -05:00
parent eb8198e79f
commit d89446c636
8 changed files with 228 additions and 9 deletions
+16 -4
View File
@@ -1,6 +1,17 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
//COREGRADE
//function __autoload($classname) {
function my_autoload($classname) {
if (strpos($classname, 'CL_') !== 0) {
$file = APPPATH . 'libraries/' . $classname . '.php';
if (file_exists($file) && is_file($file)) {
@include_once($file);
}
}
}
spl_autoload_register('my_autoload');
/*
|--------------------------------------------------------------------------
| Base Site URL
@@ -23,7 +34,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own.
|
*/
$config['base_url'] = '';
//$config['base_url'] = '';
$config['base_url'] = 'https://'.$_SERVER['SERVER_NAME'].'/';
/*
|--------------------------------------------------------------------------
@@ -35,7 +47,7 @@ $config['base_url'] = '';
| variable so that it is blank.
|
*/
$config['index_page'] = 'index.php';
$config['index_page'] = '';
/*
|--------------------------------------------------------------------------
@@ -114,7 +126,7 @@ $config['enable_hooks'] = FALSE;
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
*/
$config['subclass_prefix'] = 'MY_';
$config['subclass_prefix'] = 'COR_';
/*
|--------------------------------------------------------------------------
@@ -223,7 +235,7 @@ $config['allow_get_array'] = TRUE;
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 0;
$config['log_threshold'] = 4;
/*
|--------------------------------------------------------------------------