예제 #1
0
파일: core.php 프로젝트: moiseh/codegen
function demo_check()
{
    // demo protection
    if (is_demo()) {
        \Meta\Flash::warning(demo_msg());
        redirect(current_path());
    }
}
예제 #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>'));
     }
 }