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


Viewing file:     BaseRule.php (3.62 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * @author Andreas Åkre Solberg <andreas.solberg@uninett.no>
 * @package simpleSAMLphp
 * @version $Id: BaseRule.php 1535 2009-06-23 08:15:13Z andreassolberg $
 */
class sspmod_statistics_Statistics_Rulesets_BaseRule {

    protected 
$statconfig;
    protected 
$ruleconfig;
    protected 
$ruleid;
    protected 
$available;

    
/**
     * Constructor
     */
    
public function __construct($statconfig$ruleconfig$ruleid$available) {
        
assert('$statconfig instanceof SimpleSAML_Configuration');
        
assert('$ruleconfig instanceof SimpleSAML_Configuration');
        
$this->statconfig $statconfig;
        
$this->ruleconfig $ruleconfig;
        
$this->ruleid $ruleid;
        
        
$this->available NULL;
        if (
array_key_exists($ruleid$available)) $this->available $available[$ruleid];    
    }
    
    public function 
getRuleID() {
        return 
$this->ruleid;
    }
    
    public function 
init() {

    }
    
    public function 
availableTimeRes() {
        
$timeresConfigs $this->statconfig->getValue('timeres');
        
$available_times = array(); 
        foreach (
$timeresConfigs AS $tres => $tresconfig) {
            if (
array_key_exists($tres$this->available))
                
$available_times[$tres] = $tresconfig['name'];
        }
        
// echo('<pre>'); print_r($available_times); exit;
        
return $available_times;
    }

    
    public function 
availableFileSlots($timeres) {
        
$timeresConfigs $this->statconfig->getValue('timeres');
        
$timeresConfig $timeresConfigs[$timeres];
        
        if (isset(
$timeresConfig['customDateHandler']) && $timeresConfig['customDateHandler'] == 'month') {
            
$datehandler = new sspmod_statistics_DateHandlerMonth(0);
        } else {
            
$datehandler = new sspmod_statistics_DateHandler($this->statconfig->getValue('offset'0));
        }
        
        
        
/*
         * Get list of avaiable times in current file (rule)
         */
        
$available_times = array(); 
        foreach (
$this->available[$timeres] AS $slot) {
            
$available_times[$slot] = $datehandler->prettyHeader($slot$slot+1$timeresConfig['fileslot'], $timeresConfig['dateformat-period']);
        }
        return 
$available_times;
    }

    protected function 
resolveTimeRes($preferTimeRes) {
        
$timeresavailable array_keys($this->available);
        
$timeres $timeresavailable[0];

        
// Then check if the user have provided one that is valid.
        
if (in_array($preferTimeRes$timeresavailable)) {
            
$timeres $preferTimeRes;
        }
        return 
$timeres;
    }
    
    protected function 
resolveFileSlot($timeres$preferTime) {

        
// Get which time (fileslot) to use.. First get a default, which is the most recent one.
        
$fileslot $this->available[$timeres][count($this->available[$timeres])-1];
        
// Then check if the user have provided one.
        
if (in_array($preferTime$this->available[$timeres])) {
            
$fileslot $preferTime;
        }
        return 
$fileslot;
    }
    
    
    public function 
getTimeNavigation($timeres$preferTime) {
        
$fileslot $this->resolveFileSlot($timeres$preferTime);
        
        
// Extract previous and next time slots...
        
$available_times_prev NULL$available_times_next NULL;

        
$timeslots array_values($this->available[$timeres]);
        
sort($timeslotsSORT_NUMERIC);
        
$timeslotindex array_flip($timeslots);

        if (
$timeslotindex[$fileslot] > 0
            
$available_times_prev $timeslots[$timeslotindex[$fileslot]-1];
        if (
$timeslotindex[$fileslot] < (count($timeslotindex)-1) ) 
            
$available_times_next $timeslots[$timeslotindex[$fileslot]+1];
        return array(
'prev' => $available_times_prev'next' => $available_times_next);
    }
    
    public function 
getDataSet($preferTimeRes$preferTime) {
        
$timeres $this->resolveTimeRes($preferTimeRes);
        
$fileslot $this->resolveFileSlot($timeres$preferTime);
        
$dataset = new sspmod_statistics_StatDataset($this->statconfig$this->ruleconfig$this->ruleid$timeres$fileslot);
        return 
$dataset;
    }
    

}


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