!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/test/Pager/tests/   drwxr-xr-x
Free 13.58 GB of 61.93 GB (21.92%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pager_jumping_test.php (3.2 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// $Id: pager_jumping_test.php,v 1.4 2004/05/11 09:14:22 quipo Exp $

require_once 'simple_include.php';
require_once 
'pager_include.php';

class 
TestOfPagerJumping extends UnitTestCase {
    var 
$pager;
    function 
TestOfPagerJumping($name='Test of Pager_Jumping') {
        
$this->UnitTestCase($name);
    }
    function 
setUp() {
        
$options = array(
            
'itemData' => array(123456789101112),
            
'perPage'  => 5,
            
'mode'     => 'Jumping',
            
'delta'    => 2
        
);
        
$this->pager Pager::factory($options);
    }
    function 
tearDown() {
        unset(
$this->pager);
    }
    function 
testPageIdByOffset1() {
        
$this->assertEqual(1$this->pager->getPageIdByOffset(1));
    }
    function 
testPageIdByOffset5() {
        
$this->assertEqual(1$this->pager->getPageIdByOffset(5));
    }
    function 
testPageIdByOffset6() {
        
$this->assertEqual(2$this->pager->getPageIdByOffset(6));
    }
    function 
testPageRangeByPageId1() {
        
$this->assertEqual(array(12), $this->pager->getPageRangeByPageId(1));
    }
    function 
testPageRangeByPageId2() {
        
$this->assertEqual(array(12), $this->pager->getPageRangeByPageId(2));
    }
    function 
testPageRangeByPageId3() {
        
$this->assertEqual(array(33), $this->pager->getPageRangeByPageId(3));
    }
    function 
testPageRangeByPageId_outOfRange() {
        
$this->assertEqual(array(00), $this->pager->getPageRangeByPageId(20));
    }
    function 
testGetPageData() {
        
$this->assertEqual(array(0=>11=>22=>33=>44=>5), $this->pager->getPageData());
    }
    function 
testGetPageData2() {
        
$this->assertEqual(array(5=>66=>77=>88=>99=>10), $this->pager->getPageData(2));
    }
    function 
testGetPageData_OutOfRange() {
        
$this->assertEqual(false$this->pager->getPageData(4));
    }
    
/**
     * Returns offsets for given pageID. Eg, if you pass pageID=5 and your
     * delta is 2, it will return 3 and 7. A pageID of 6 would give you 4 and 8
     * If the method is called without parameter, pageID is set to currentPage#.
     *
     * Given a PageId, it returns the limits of the range of pages displayed.
     * While getOffsetByPageId() returns the offset of the data within the current
     * page, this method returns the offsets of the page numbers interval.
     * E.g., if you have perPage=10 and pageId=3, it will return you 1 and 10.
     * PageID of 8 would give you 1 and 10 as well, because 1 <= 8 <= 10.
     * PageID of 11 would give you 11 and 20.
     *
     * @param pageID PageID to get offsets for
     * @return array  First and last offsets
     * @access public
     */
    /**
     * Given a PageId, it returns the limits of the range of pages displayed.
     * While getOffsetByPageId() returns the offset of the data within the
     * current page, this method returns the offsets of the page numbers interval.
     * E.g., if you have perPage=10 and pageId=3, it will return you 1 and 10.
     * PageID of 8 would give you 1 and 10 as well, because 1 <= 8 <= 10.
     * PageID of 11 would give you 11 and 20.
     *
     * @param pageID PageID to get offsets for
     * @return array  First and last offsets
     * @access public
     */
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4738 ]--