Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- class Spintax
- {
- public function process($text)
- {
- return preg_replace_callback('/\\{(((?>[^\\{\\}]+)|(?R))*)\\}/x', [$this, 'replace'], $text);
- }
- public function replace($text)
- {
- $text = $this->process($text[1]);
- $parts = explode('|', $text);
- return $parts[array_rand($parts)];
- }
- }
- class CSSPagination
- {
- private $totalrows;
- private $rowsperpage;
- private $website;
- private $separate;
- private $page;
- public function __construct($totalrows, $rowsperpage, $website, $separate = '&')
- {
- $this->totalrows = $totalrows;
- $this->website = $website;
- $this->rowsperpage = $rowsperpage;
- $this->separate = $separate;
- }
- public function setPage($page)
- {
- if (!$page) {
- $this->page = 1;
- }
- else {
- $this->page = $page;
- }
- }
- public function getLimit()
- {
- return ($this->page - 1) * $this->rowsperpage;
- }
- private function getLastPage()
- {
- return ceil($this->totalrows / $this->rowsperpage);
- }
- public function showPage()
- {
- $pagination = '';
- $lpm1 = $this->getLastPage() - 1;
- $page = $this->page;
- $prev = $this->page - 1;
- $next = $this->page + 1;
- $pagination .= '<ul class="pagination justify-content-center pagination-lg">';
- if (1 < $this->getLastPage()) {
- if (1 < $page) {
- }
- if ($this->getLastPage() < 9) {
- for ($counter = 1; $counter <= $this->getLastPage(); $counter++) {
- if ($counter == $page) {
- $pagination .= ' <li class="page-item active"><a class="page-link" rel="nofollow" href="#">' . $counter . '</a></li>';
- continue;
- }
- $pagination .= '<li class="page-item"><a rel="nofollow\\" class="page-link" href=' . $this->website . $this->separate . 'page=' . $counter . '>' . $counter . '</a></li>';
- }
- }
- else if (9 <= $this->getLastPage()) {
- if ($page < 4) {
- for ($counter = 1; $counter < 6; $counter++) {
- if ($counter == $page) {
- $pagination .= '<li class="page-item active"><a rel="nofollow" class="page-link" href="#">' . $counter . '</a></li>';
- continue;
- }
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="' . $this->website . $this->separate . 'page=' . $counter . '">' . $counter . '</a></li>';
- }
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="' . $this->website . $this->separate . 'page=' . $lpm1 . '">' . $lpm1 . '</a></li>';
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="' . $this->website . $this->separate . 'page=' . $this->getLastPage() . '">' . $this->getLastPage() . '</a></li>';
- }
- else if (($page < ($this->getLastPage() - 3)) && (1 < $page)) {
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="' . $this->website . $this->separate . 'page=1">1</a></li>';
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="' . $this->website . $this->separate . 'page=2">2</a></li>';
- for ($counter = $page - 1; $counter <= $page + 1; $counter++) {
- if ($counter == $page) {
- $pagination .= '<li class="page-item active"><a rel="nofollow" class="page-link" href="#">' . $counter . '</a></li>';
- continue;
- }
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="' . $this->website . $this->separate . 'page=' . $counter . '">' . $counter . '</a></li>';
- }
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="#">...</a></li>';
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="' . $this->website . $this->separate . 'page=' . $lpm1 . '">' . $lpm1 . '</a></li>';
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="' . $this->website . $this->separate . 'page=' . $this->getLastPage() . '">' . $this->getLastPage() . '</a></li>';
- }
- else {
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="' . $this->website . $this->separate . 'page=1">1</a></li>';
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="' . $this->website . $this->separate . 'page=2">2</a></li>';
- $pagination .= '<li class=\'page-item\'><a rel="nofollow" class="page-link" href=\'#\'>...</a></li>';
- for ($counter = $this->getLastPage() - 4; $counter <= $this->getLastPage(); $counter++) {
- if ($counter == $page) {
- $pagination .= '<li class="page-item active"><a rel="nofollow" class="page-link" href="#">' . $counter . '</a></li>';
- continue;
- }
- $pagination .= '<li class="page-item"><a rel="nofollow" class="page-link" href="' . $this->website . $this->separate . 'page=' . $counter . '">' . $counter . '</a>';
- }
- }
- }
- if ($page < ($counter - 1)) {
- }
- }
- $pagination .= '</ul>' . "\n";
- return $pagination;
- }
- }
- class Sitemap_Pagination
- {
- private $totalrows;
- private $rowsperpage;
- private $website;
- private $totalpages;
- private $page;
- public function __construct($totalrows, $rowsperpage, $website, $totalpages)
- {
- $this->totalrows = $totalrows;
- .................................................................................
- ...............................................
- ......................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement