Beispiel #1
0
 public function ajaxProcessLogged()
 {
     set_time_limit(0);
     Security::checkNonce();
     Security::checkReferer();
     if (!User::currentUserCan('manage_options')) {
         die;
     }
     $mainApi = new MainApi();
     $mainApi->globPhpFiles(ABSPATH, [$this, 'dirnameToDir']);
     die('Done!');
 }