<?php require_once "config.php"; require_once WWW_DIR . "/lib/adminpage.php"; require_once WWW_DIR . "/lib/binaries.php"; $page = new AdminPage(); $bin = new Binaries(); $page->title = "Binary Black/Whitelist List"; $binlist = $bin->getBlacklist(false); $page->smarty->assign('binlist', $binlist); $page->content = $page->smarty->fetch('binaryblacklist-list.tpl'); $page->render();
$pspelldict = array(); # Completion Refernece Time in past $completionRef = strtotime("-{$completionSec} seconds"); # Scan header for spelling...; at least 1 word has to match the spelling if ($use_spellCheck && !function_exists('pspell_check')) { echo "Note: Disabling spell checking as it is not available in your PHP installation.\n"; echo " Consider the following to enable it:"; echo " ubuntu #> sudo apt-get install php5-pspell\n"; echo " redhat #> yum install php-pspell\n"; echo " other #> # re-compile php with --with-pspell flag\n"; $use_spellCheck = false; } $binaries = new Binaries(); if ($use_NNRegexDB) { # Over-ride Blacklist up top and use database $blacklist = $binaries->getBlacklist(true); } while ($res = get_block($offset, $batch)) { $subtotal = count($res); $total += $subtotal; $release = new Releases(); $category = new Category(); // Track error count changes $_errcnt = $errcnt; foreach ($res as $header) { // if a white list is detected we now are required to // only accept the entry if it matches at least 1 whitelist // while a blacklist will over-ride all $whitelist = array(); $matches_whitelist = false; foreach ($blacklist as $bl) {