!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/apex_tdfonline/php/3ros/simplesamlphp/modules/statistics/lib/   drwxr-xr-x
Free 13.82 GB of 61.93 GB (22.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     DateHandler.php (1.6 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * @author Andreas Åkre Solberg <andreas.solberg@uninett.no>
 * @package simpleSAMLphp
 * @version $Id$
 */
class sspmod_statistics_DateHandler {

    private 
$offset;

    
/**
     * Constructor
     *
     * @param array $offset     Date offset
     */
    
public function __construct($offset) {
        
$this->offset $offset;
    }
    
    protected function 
getDST($timestamp) {
        if (
idate('I'$timestamp)) return 3600;
        return 
0;
    }

    public function 
toSlot($epoch$slotsize) {
        
$dst $this->getDST($epoch);
        return 
floor( ($epoch $this->offset $dst) / $slotsize);
    }

    public function 
fromSlot($slot$slotsize) {
        
// echo("slot $slot slotsize $slotsize offset  " . $this->offset);
        // throw new Exception();
        
$temp $slot*$slotsize $this->offset;
        
$dst $this->getDST($temp);
        return 
$slot*$slotsize $this->offset $dst;
    }

    public function 
prettyDateEpoch($epoch$dateformat) {
        return 
date($dateformat$epoch);
    }

    public function 
prettyDateSlot($slot$slotsize$dateformat) {
        return 
$this->prettyDateEpoch($this->fromSlot($slot$slotsize), $dateformat);

    }
    
    public function 
prettyHeader($from$to$slotsize$dateformat) {
        
$text $this->prettyDateSlot($from$slotsize$dateformat);
        
$text .= ' to ';
        
$text .= $this->prettyDateSlot($to$slotsize$dateformat);
        return 
$text;
    }

}

//     $datestr = substr($logline,0,$datenumbers);
//     #$datestr = substr($logline,0,23);
//     $timestamp = parse15($datestr) + $offset;
//     $restofline = substr($logline,$datenumbers+1);
//     $restcols = split(' ', $restofline);
//     $action = $restcols[5];
    
//     print_r($timestamp);
//     print_r($restcols); if ($i++ > 5) exit;


:: 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.9593 ]--