Beispiel #1
0
 /**
  * Purges the files in given directory.
  * @todo use garbage collector
  */
 public static function purge()
 {
     Auth::checkRedirect('admin');
     $tStart = microtime(true);
     if (Framework::$application !== null) {
         self::purgeFolder(Framework::$application->path . 'writable/cache/');
         self::purgeFolder(Framework::$application->path . 'writable/logs/');
     }
     exit('done in ' . number_format(microtime(true) - $tStart, 4) . ' msec.');
 }
Beispiel #2
0
 /**
  * @ignore
  */
 public static function dummy()
 {
     Auth::checkRedirect('user');
     echo 'dummy';
 }
Beispiel #3
0
 /**
  * @ignore
  */
 public static function remove($uAction, $uSlug)
 {
     Auth::checkRedirect('editor');
     Session::set('notification', array('info', 'ok-sign', 'Category removed.'));
     Http::redirect('panel/categories');
 }
Beispiel #4
0
 /**
  * @ignore
  */
 public function index()
 {
     Auth::checkRedirect('user');
     $this->viewFile('{core}views/panel/index.php');
 }