예제 #1
0
파일: Admin.php 프로젝트: sinfocol/gwf3
 private function onRecalcEverything()
 {
     require_once GWF_CORE_PATH . 'module/WeChall/WC_RegAt.php';
     $wc = Module_WeChall::instance();
     $wc->includeClass('WC_Warflag');
     $wc->includeClass('WC_Warflags');
     foreach (WC_Warbox::getAllBoxes() as $box) {
         $box instanceof WC_Warbox;
         $box->recalcPlayersAndScore();
         $box->recalcChallcounts();
     }
     WC_Site::recalcAllSites();
     WC_RegAt::calcTotalscores();
     return $this->templateAdmin();
 }