get_results("SELECT ID, user_login, user_email FROM {$wpdb->prefix}users ORDER BY user_login"); echo (new \alpha_cache\View('main-page')) ->setParams([ 'acs' => $acs, 'users' => $users, ]) ->render(); $isHtaccessWritable = \alpha_cache\HtAccess::isHtaccessWritable(); echo (new \alpha_cache\View('booster-page')) ->setParams([ 'acs' => $acs, 'isHtaccessWritable' => $isHtaccessWritable, ]) ->render(); $stats = []; if (is_dir($this->ac_set['cache-dir']) && $hdir = opendir($this->ac_set['cache-dir'])) { while (false !== ($entry = readdir($hdir))) { $dname = $this->ac_set['cache-dir'] . '/' . $entry; if ($entry != "." && $entry != ".." && is_dir($dname) && $hcache = opendir($dname)) { $stats[$entry] = array('total' => 0); while (false !== ($entry_file = readdir($hcache))) { $fname = $dname . '/' . $entry_file; if ($entry_file != "." && $entry_file != ".." && !is_dir($fname) ) { $spl = explode('.', $entry_file); $userID = array_pop($spl); $filesize = filesize($fname); if (!isset($stats[$entry][$userID])) { $stats[$entry][$userID]['cnt'] = 1; $stats[$entry][$userID]['size'] = $filesize; } else { $stats[$entry][$userID]['cnt'] ++; $stats[$entry][$userID]['size'] += $filesize; } $stats[$entry]['total'] += $filesize; } } closedir($hcache); } } closedir($hdir); } echo (new \alpha_cache\View('cache-page')) ->setParams([ 'acs' => $acs, 'stats' => $stats, ]) ->render(); $checkWritting = alpha_cache\Log::checkForWritting(); $recs = alpha_cache\Log::readLogRecs(); echo (new \alpha_cache\View('log-page')) ->setParams([ 'acs' => $acs, 'check' => $checkWritting, 'logUrl' => alpha_cache\Log::getLogUrl(), 'plugin_directory' => __DIR__, 'logSizeMb' => AlphaCacheClass::inttoMB(alpha_cache\Log::getLogSize()), 'recs' => $recs, ]) ->render(); ?>
setParams([ 'version' => AlphaCacheClass::version(), 'BTC_IMAGE' => AlphaCacheClass::getAssetPath('btc-wallet.jpg') ]) ->render(); ?>
setParams([ 'activeSection' => empty($_POST['active-section']) ? false : $_POST['active-section'] ]) ->render(); ?>