$mandator, 'link' => forceslash($mandator), 'active' => !$conf->isClosed(), 'title' => $conf->getTitle(), 'description' => $conf->getDescription(), 'CONFIG' => $GLOBALS['CONFIG'], ]; unset($GLOBALS['CONFIG']); if(isset($saved_config)) $GLOBALS['CONFIG'] = $saved_config; return $info; } public static function hasCustomStyles($mandator) { return file_exists(Conferences::getCustomStyles($mandator)); } public static function getCustomStyles($mandator) { return forceslash(Conferences::getCustomStylesDir($mandator)).'main.less'; } public static function getCustomStylesDir($mandator) { return forceslash(Conferences::MANDATOR_DIR).forceslash($mandator); } public static function load($mandator) { include(forceslash(Conferences::MANDATOR_DIR).forceslash($mandator).'config.php'); return isset($GLOBALS['CONFIG']); } }