pdo; $subscrs = array(); if (isset($_GET["all"])) $all = true; if ($options['fetcher']) { $STH = $pdo->query ("SELECT `name` FROM `subscriptions` WHERE `active` = 1"); $subscrs = $STH->fetchAll(PDO::FETCH_ASSOC); } $STH = $pdo->query ("SELECT COUNT(*) FROM `hosts` WHERE `blacklisted` = 1"); $blackcnt = $STH->fetchColumn(); $vars = array( 'activation' => $options['approval'], 'actdelay' => $options['approvedelay'], 'actseen' => $options['approveseen'], 'newdays' => $options['newdays'], 'olddays' => $options['olddays'], 'delnewdays' => $options['delnewdays'], 'delactdays' => $options['delapprdays'], 'delstabdays' => $options['delstabdays'], 'hidedays' => $options['hidedays'], 'fullhour' => $options['fullhour'], 'fetcher' => $options['fetcher'], 'exportperiod' => $options['exportperiod'], 'subscrs' => $subscrs, 'blackcnt' => $blackcnt, 'all' => $all ); $template = $twig->load('home.twig'); echo $template->render($vars);