function _enable_datatable($json_string, $data_points) { $columns = getTableColumn($data_points); echo <<<JSSCRIPT <script> jQuery(document).ready( function(\$) { \tvar json = {$json_string}; \tjQuery('#stockflock').dataTable( { \t\t"bProcessing": true, \t "aaData": json.data, \t "bLengthChange": false, \t "bFilter": false, \t "bInfo": false, \t "bPaginate": false, \t "responsive": true, \t "aoColumns": [{$columns}] \t}); }); </script> JSSCRIPT; }
//print $udata->getDatabase()->entryCount(); print '<p> </p>'; print '<b>Proxy count over time</b><br>'; print '<img src="?graph=1">'; print '<p> </p><p> </p>'; print '<a href="/proxy_framework/">Back to main</a><br>'; if (!isset($_GET[showBad])) { print '<a href="?showBad=1">[+] Show quarantined proxies</a>'; } else { print '<a href="/proxy_framework/">[-] Hide quarantined proxies</a>'; } print '<br>'; $types = array('Proxy', 'Socks4', 'Socks5'); $lvls = array('Transparent', 'Anonymous', 'Highly anonymous'); $flags = array('0' => 'N', '1' => 'Y'); print '<table><tr>' . getTableColumn("IP", 0) . getTableColumn("Port", 1) . getTableColumn("Shown IP", 2) . getTableColumn("Country", 3) . getTableColumn("Response time", 4) . getTableColumn("SSL", 5) . getTableColumn("Lvl", 6) . getTableColumn("Type", 7) . getTableColumn("Last checked", 9) . getTableColumn("Times checked", 10) . getTableColumn("Times found working", 11) . getTableColumn("Quarantine retries", 13) . '</tr>'; for ($i = 0; $i < count($proxies); $i++) { if ($proxies[$i][8] == 0) { print '<tr>'; if ($proxies[$i][4] < 20) { $cls = 'fast'; } else { if ($proxies[$i][5] == 1) { $cls = 'ssl'; } else { $cls = 'good'; } } // Fields are, in order: // host, port, shownHost, country, responseTime, sslSupport, anonimityLevel, type, quarantined, // lastChecked, totalChecks, totalPassed, quarantineRetries