Exemple #1
0
        for ($i = $ListSize - 3; $i <= $ListSize; $i++) {
            //List of Numbers
            if ($i == $CurPos) {
                WriteLI($i, $ItemsPerPage * ($i - 1), true);
            } else {
                WriteLI($i, $ItemsPerPage * ($i - 1), false);
            }
        }
    } else {
        // < 1 c-1 [c] c+1 T >
        for ($i = $CurPos - 1; $i <= $CurPos + 1; $i++) {
            //List of Numbers
            if ($i == $CurPos) {
                WriteLI($i, $ItemsPerPage * ($i - 1), true);
            } else {
                WriteLI($i, $ItemsPerPage * ($i - 1), false);
            }
        }
        WriteLI($ListSize, ($ListSize - 1) * $ItemsPerPage, false);
    }
    if ($CurPos < $ListSize) {
        // >> Symbol for Next
        WriteLI('&#x00BB;', $ItemsPerPage * $CurPos, false);
    }
    echo "</ul></div>\n";
}
?>
</div>
</body>
</html>
Exemple #2
0
function DisplayPagination($LS)
{
    //$LS = List Site
    global $RowsPerPage, $StartPoint;
    $ListSize = ceil($LS / $RowsPerPage);
    //Calculate List Size
    $CurPos = floor($StartPoint / $RowsPerPage) + 1;
    //Calculate Current Position
    echo '<div class="pag-nav"><ul>' . PHP_EOL;
    if ($CurPos == 1) {
        //At the beginning display blank box
        echo '<li><span>&nbsp;&nbsp;</span></li>' . PHP_EOL;
        WriteLI('1', 0, true);
    } else {
        // << Symbol & Print Box 1
        WriteLI('&#x00AB;', $RowsPerPage * ($CurPos - 2), false);
        WriteLI('1', 0, false);
    }
    if ($ListSize <= 4) {
        //Small Lists don't need fancy effects
        for ($i = 2; $i <= $ListSize; $i++) {
            //List of Numbers
            if ($i == $CurPos) {
                WriteLI($i, $RowsPerPage * ($i - 1), true);
            } else {
                WriteLI($i, $RowsPerPage * ($i - 1), false);
            }
        }
    } elseif ($ListSize > 4 && $CurPos == 1) {
        // < [1] 2 3 4 T >
        WriteLI('2', $RowsPerPage, false);
        WriteLI('3', $RowsPerPage * 2, false);
        WriteLI('4', $RowsPerPage * 3, false);
        WriteLI($ListSize, ($ListSize - 1) * $RowsPerPage, false);
    } elseif ($ListSize > 4 && $CurPos == 2) {
        // < 1 [2] 3 4 T >
        WriteLI('2', $RowsPerPage, true);
        WriteLI('3', $RowsPerPage * 2, false);
        WriteLI('4', $RowsPerPage * 3, false);
        WriteLI($ListSize, ($ListSize - 1) * $RowsPerPage, false);
    } elseif ($ListSize > 4 && $CurPos > $ListSize - 2) {
        // < 1 T-3 T-2 T-1 T >
        for ($i = $ListSize - 3; $i <= $ListSize; $i++) {
            //List of Numbers
            if ($i == $CurPos) {
                WriteLI($i, $RowsPerPage * ($i - 1), true);
            } else {
                WriteLI($i, $RowsPerPage * ($i - 1), false);
            }
        }
    } else {
        // < 1 c-1 [c] c+1 T >
        for ($i = $CurPos - 1; $i <= $CurPos + 1; $i++) {
            //List of Numbers
            if ($i == $CurPos) {
                WriteLI($i, $RowsPerPage * ($i - 1), true);
            } else {
                WriteLI($i, $RowsPerPage * ($i - 1), false);
            }
        }
        WriteLI($ListSize, ($ListSize - 1) * $RowsPerPage, false);
    }
    if ($CurPos < $ListSize) {
        // >> Symbol for Next
        WriteLI('&#x00BB;', $RowsPerPage * $CurPos, false);
    }
    echo '</ul></div>' . PHP_EOL;
}
Exemple #3
0
        }
    } else {
        // < 1 c-1 [c] c+1 T >
        for ($i = $CurPos - 1; $i <= $CurPos + 1; $i++) {
            //List of Numbers
            if ($i == $CurPos) {
                WriteLI($i, $RowsPerPage * ($i - 1), true);
            } else {
                WriteLI($i, $RowsPerPage * ($i - 1), false);
            }
        }
        WriteLI($ListSize, ($ListSize - 1) * $RowsPerPage, false);
    }
    if ($CurPos < $ListSize) {
        // >> Symbol for Next
        WriteLI('&#x00BB;', $RowsPerPage * $CurPos, false);
    }
    echo '</ul></div></div>' . PHP_EOL;
}
?>
</div>

<div id="scrollup" class="button-scroll" onclick="ScrollToTop()"><img src="./svg/arrow-up.svg" alt="up"></div>
<div id="scrolldown" class="button-scroll" onclick="ScrollToBottom()"><img src="./svg/arrow-down.svg" alt="down"></div>

<div id="stats-box">
<div class="dialog-bar">Report</div>
<span id="sitename">site</span>
<span id="statsmsg">something</span>
<span id="statsblock1"><a class="button-blue" href="#">Block Whole</a> Block whole domain</span>
<span id="statsblock2"><a class="button-blue" href="#">Block Sub</a> Block just the subdomain</span>
    die("Error unable to open /etc/notrack/tracker-quick.list");
}
//Character Select----------------------------------------------------
echo '<div class="pag-nav">';
echo "<br /><ul>\n";
if ($Show == 'all') {
    WriteLI('All', true);
} else {
    WriteLI('All', false);
}
WriteLI('Num', $SingleNumber);
foreach ($Letters as $Val) {
    if ($Val == $Show) {
        WriteLI(strtoupper($Val), true);
    } else {
        WriteLI(strtoupper($Val), false);
    }
}
echo "</ul></div>\n";
echo '<div class="row"><br /></div>';
//Load Blocklist------------------------------------------------------
$TrackerBlockList = file('/etc/notrack/tracker-quick.list');
echo '<div class="row-padded">' . "\n";
foreach ($TrackerBlockList as $Site) {
    if ($SingleLetter || $SingleNumber) {
        $Char1 = substr($Site, 0, 1);
        if (SingleLetter) {
            if ($Char1 == $Show) {
                echo $Site . '<br />' . "\n";
            }
        }