!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/core/lib/Stats/Output/   drwxr-xr-x
Free 13.6 GB of 61.93 GB (21.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * Statistics logger that writes to a set of log files
 *
 * @package simpleSAMLphp
 * @version $Id$
 */
class sspmod_core_Stats_Output_File extends SimpleSAML_Stats_Output {

    
/**
     * The log directory.
     * @var string
     */
    
private $logDir;


    
/**
     * The file handle for the current file.
     * @var resource
     */
    
private $file NULL;

    
/**
     * The current file date.
     * @var string
     */
    
private $fileDate NULL;


    
/**
     * Initialize the output.
     *
     * @param SimpleSAML_Configuration $config  The configuration for this output.
     */
    
public function __construct(SimpleSAML_Configuration $config) {

        
$this->logDir $config->getPathValue('directory');
        if (
$this->logDir === NULL) {
            throw new 
Exception('Missing "directory" option for core:File');
        }
        if (!
is_dir($this->logDir)) {
            throw new 
Exception('Could not find log directory: ' var_export($this->logDirTRUE));
        }

    }


    
/**
     * Open a log file.
     *
     * @param string $date  The date for the log file.
     */
    
private function openLog($date) {
        
assert('is_string($date)');

        if (
$this->file !== NULL && $this->file !== FALSE) {
            
fclose($this->file);
            
$this->file NULL;
        }

        
$fileName $this->logDir '/' $date '.log';
        
$this->file = @fopen($fileName'a');
        if (
$this->file === FALSE) {
            throw new 
SimpleSAML_Error_Exception('Error opening log file: ' var_export($fileNameTRUE));
        }

        
/* Disable output buffering. */
        
stream_set_write_buffer($this->file0);

        
$this->fileDate $date;
    }


    
/**
     * Write a stats event.
     *
     * @param array $data  The event.
     */
    
public function emit(array $data) {
        
assert('isset($data["time"])');

        
$time $data['time'];
        
$milliseconds = (int)(($time - (int)$time) * 1000);

        
$timestamp gmdate('Y-m-d\TH:i:s'$time) . sprintf('.%03dZ'$milliseconds);

        
$outDate substr($timestamp010); /* The date-part of the timstamp. */

        
if ($outDate !== $this->fileDate) {
            
$this->openLog($outDate);
        }

        
$line $timestamp ' ' json_encode($data) . "\n";
        
fwrite($this->file$line);
    }

}

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