function demo_check() { // demo protection if (is_demo()) { \Meta\Flash::warning(demo_msg()); redirect(current_path()); } }
public static function init() { if (!is_writable(\Meta\FileSystem::getFilesPath())) { \Meta\Flash::warning(t('The file system directory is not writable. To set permission, type: <b>chmod 777 ' . \Meta\FileSystem::getFilesPath() . ' -R</b>')); } }