final
This commit is contained in:
parent
53603ec59a
commit
86beb2f530
7
.env
7
.env
@ -15,13 +15,14 @@
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
CI_ENVIRONMENT = production
|
||||
|
||||
#CI_ENVIRONMENT = development
|
||||
#LOCAL_FOLDER = 'donation'
|
||||
#--------------------------------------------------------------------
|
||||
# APP
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
#app.baseURL = 'http://localhost/donation/'
|
||||
app.baseURL ='https://venbainfotech.com/donr/'
|
||||
# app.baseURL = 'http://localhost/donation/'
|
||||
# app.baseURL ='https://venbainfotech.com/donr/'
|
||||
# app.forceGlobalSecureRequests = false
|
||||
|
||||
# app.sessionDriver = 'CodeIgniter\Session\Handlers\FileHandler'
|
||||
|
||||
@ -21,7 +21,8 @@ class App extends BaseConfig
|
||||
| environments.
|
||||
|
|
||||
*/
|
||||
public $baseURL='';
|
||||
public $baseURL = BASESEURL;
|
||||
//public $baseURL;
|
||||
// public $baseURL;
|
||||
// public function __construct()
|
||||
// {
|
||||
|
||||
@ -75,3 +75,18 @@ defined('EXIT_USER_INPUT') || define('EXIT_USER_INPUT', 7); // invalid user
|
||||
defined('EXIT_DATABASE') || define('EXIT_DATABASE', 8); // database error
|
||||
defined('EXIT__AUTO_MIN') || define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
|
||||
defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|
||||
|
||||
|
||||
if ( (! empty($_SERVER['REQUEST_SCHEME']) && $_SERVER['REQUEST_SCHEME'] == 'https') ||
|
||||
(! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ||
|
||||
(! empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443') ) {
|
||||
$protocole = 'https://';
|
||||
} else {
|
||||
$protocole = 'http://';
|
||||
}
|
||||
|
||||
$host = $_SERVER['HTTP_HOST'] . '/';
|
||||
$project = explode('/', $_SERVER['REQUEST_URI']);
|
||||
$baseurl = $protocole . $host . $project[1];
|
||||
$myappBaseUrl = $baseurl.'/';
|
||||
defined('BASESEURL') || define('BASESEURL',$myappBaseUrl);
|
||||
@ -30,6 +30,7 @@ $routes->setAutoRoute(true);
|
||||
|
||||
// We get a performance increase by specifying the default
|
||||
// route since we don't have to scan directories.
|
||||
|
||||
$routes->get('/', 'Donor_controller::index');
|
||||
$routes->match(['get','post'],'donor_register','My_controller::donor_register');
|
||||
$routes->match(['get','post'],'all_donor','My_controller::all_donor');
|
||||
|
||||
@ -0,0 +1 @@
|
||||
__ci_last_regenerate|i:1609590493;_ci_previous_url|s:31:"https://venbainfotech.com/donr/";
|
||||
@ -1 +1 @@
|
||||
__ci_last_regenerate|i:1609571565;_ci_previous_url|s:31:"https://venbainfotech.com/donr/";
|
||||
__ci_last_regenerate|i:1609574028;_ci_previous_url|s:31:"https://venbainfotech.com/donr/";
|
||||
@ -0,0 +1 @@
|
||||
__ci_last_regenerate|i:1609585660;_ci_previous_url|s:31:"https://venbainfotech.com/donr/";
|
||||
@ -0,0 +1 @@
|
||||
__ci_last_regenerate|i:1609580377;_ci_previous_url|s:31:"https://venbainfotech.com/donr/";
|
||||
@ -0,0 +1 @@
|
||||
__ci_last_regenerate|i:1609590493;_ci_previous_url|s:31:"https://venbainfotech.com/donr/";
|
||||
@ -0,0 +1 @@
|
||||
__ci_last_regenerate|i:1609602427;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||
@ -0,0 +1 @@
|
||||
__ci_last_regenerate|i:1609579247;_ci_previous_url|s:31:"https://venbainfotech.com/donr/";
|
||||
Loading…
Reference in New Issue
Block a user