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(); }