mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 12:16:57 +00:00
fix counts
This commit is contained in:
parent
99e101f9cf
commit
063dd7c24c
3 changed files with 21 additions and 18 deletions
|
@ -2,16 +2,17 @@
|
|||
function DisplayCSVNEW($csvfile, $query, $sensitive) {
|
||||
$resultcount=0;
|
||||
$row = 1;
|
||||
$rowcount=0;
|
||||
echo "<center><table>\n\n"; //begin html table formatting
|
||||
if (($handle = fopen($csvfile, "r")) !== FALSE) {
|
||||
|
||||
|
||||
$oldcatname="";
|
||||
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
|
||||
$row++;
|
||||
$num = count($data);
|
||||
//echo "<p>" . $data[1] . "</p>";
|
||||
//echo "<p> $num fields in line $row: <br /></p>\n";
|
||||
$row++;
|
||||
//echo $row;
|
||||
|
||||
if ( $row == "2") {
|
||||
|
@ -35,6 +36,7 @@ if (!preg_match("~^(?:f|ht)tps?://~i", $data[3])) {
|
|||
//if ((($sensitive == 1) and ($data[4] == "✔️")) or (($sensitive == 0) and ($data[4] != "✔️")) ){
|
||||
// ONLY display links if (sensitive equals to 1 and sensitiveCOLUMN equals to V) OR (sensitive equals to 0 and sensitiveCOLUMN is NOT equal to V)
|
||||
if (($data[4] != "✔️") or (($sensitive == 1) and ($data[4] == "✔️"))){
|
||||
$rowcount++;
|
||||
|
||||
|
||||
if ($oldcatname != $data[1]){
|
||||
|
@ -66,7 +68,7 @@ if (!preg_match("~^(?:f|ht)tps?://~i", $data[3])) {
|
|||
echo "\n</table></center>";
|
||||
fclose($handle);
|
||||
}
|
||||
echo "<p>" . $resultcount . " Result(s) found.</p>";
|
||||
echo "<p>" . $rowcount . " Result(s) found.</p>";
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue