* @author Johan Cwiklinski <johan@x-tnd.be>
* @copyright 2007-2018 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
- * @version SVN: $Id$
* @link http://galette.tuxfamily.org
* @since Available since 0.7-dev - 2007-10-07
*/
// check required PHP version...
if (version_compare(PHP_VERSION, GALETTE_PHP_MIN, '<')) {
echo 'Galette is NOT compliant with your current PHP version. ' .
- 'Galette requires PHP ' . GALETTE_PHP_MIN .
+ 'Galette requires PHP ' . GALETTE_PHP_MIN .
' minimum and current version is ' . phpversion();
die(1);
}
die();
}
-if (file_exists(GALETTE_CONFIG_PATH . 'behavior.inc.php')
+if (
+ file_exists(GALETTE_CONFIG_PATH . 'behavior.inc.php')
&& !defined('GALETTE_TESTS') && !$cron
) {
include_once GALETTE_CONFIG_PATH . 'behavior.inc.php';
require GALETTE_ROOT . '/vendor/autoload.php';
//start profiling
-if (defined('GALETTE_XHPROF_PATH')
+if (
+ defined('GALETTE_XHPROF_PATH')
&& function_exists('xhprof_enable')
) {
include_once __DIR__ . '/../lib/Galette/Common/XHProf.php';
$profiler->start();
}
-define('GALETTE_VERSION', 'v0.9.4-dev');
+define('GALETTE_NIGHTLY', false);
+define('GALETTE_VERSION', 'v0.9.4.2');
//Version to display
if (!defined('GALETTE_HIDE_VERSION')) {
setcookie(
'show_galette_dashboard',
true,
- time()+31536000 //valid for a year
+ time() + 31536000 //valid for a year
);
}
if (GALETTE_LOG_LVL >= Analog::INFO) {
$now = new \DateTime();
$dbg_log_path = GALETTE_LOGS_PATH . 'galette_debug_' .
- $now->format('Y-m-d') . '.log';
+ $now->format('Y-m-d') . '.log';
$galette_debug_log = LevelName::init(Handler\File::init($dbg_log_path));
} else {
$galette_debug_log = Handler\Ignore::init();
Analog::handler(
Handler\Multi::init(
- array (
+ array(
Analog::NOTICE => Handler\Threshold::init(
$galette_run_log,
GALETTE_LOG_LVL