mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Update index and create is_connected
This commit is contained in:
parent
32ef6b7c90
commit
a99e159b1f
5 changed files with 11 additions and 420 deletions
12
index.php
12
index.php
|
@ -13,17 +13,5 @@
|
|||
$_SESSION['csrf'] = str_shuffle(uniqid().uniqid());
|
||||
}
|
||||
|
||||
#####################
|
||||
# RASPISMS SETTINGS #
|
||||
#####################
|
||||
$bdd = \descartes\Model::_connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD);
|
||||
$internal_setting = new \controllers\internals\Setting($bdd);
|
||||
|
||||
$settings = $internal_setting->get_all();
|
||||
foreach ($settings as $setting)
|
||||
{
|
||||
define('RASPISMS_SETTINGS_' . mb_convert_case($setting['name'], MB_CASE_UPPER), $setting['value']);
|
||||
}
|
||||
|
||||
//Routing current query
|
||||
descartes\Router::route(ROUTES, $_SERVER['REQUEST_URI']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue