Exemplo n.º 1
0
function demo_check()
{
    // demo protection
    if (is_demo()) {
        \Meta\Flash::warning(demo_msg());
        redirect(current_path());
    }
}
Exemplo n.º 2
0
 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>'));
     }
 }