raspisms/console.php

20 lines
582 B
PHP
Raw Normal View History

2019-10-29 14:57:13 +01:00
#!/usr/bin/php
<?php
2019-10-29 18:34:37 +01:00
require_once(__DIR__ . '/descartes/load.php');
2019-10-29 14:57:13 +01:00
2019-10-29 18:34:37 +01:00
#####################
# RASPISMS SETTINGS #
#####################
$bdd = descartes\Model::connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD);
$internal_setting = new \controllers\internals\Setting($bdd);
2019-10-29 14:57:13 +01:00
2019-10-29 18:34:37 +01:00
$settings = $internal_setting->all();
2019-10-29 14:57:13 +01:00
foreach ($settings as $setting)
{
define('RASPISMS_SETTINGS_' . mb_convert_case($setting['name'], MB_CASE_UPPER), $setting['value']);
}
2019-10-29 18:34:37 +01:00
//Execute command
descartes\Console::execute_command($argv);