SILENT KILLERPanel

Current Path: > home > ivftiowh > greeceivf.com > wp-content > plugins > duplicator > lib > snaplib


Operation   : Linux premium88.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software     : Apache
Server IP    : 185.61.154.216 | Your IP: 216.73.216.44
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/ivftiowh/greeceivf.com/wp-content/plugins/duplicator/lib/snaplib

NameTypeSizeLast ModifiedActions
class.snaplib.exceptions.php File 126 bytes April 02 2019 23:37:19.
class.snaplib.logger.php File 2986 bytes April 02 2019 23:37:19.
class.snaplib.u.io.php File 9536 bytes April 02 2019 23:37:19.
class.snaplib.u.net.php File 1553 bytes April 02 2019 23:37:19.
class.snaplib.u.os.php File 479 bytes April 02 2019 23:37:19.
class.snaplib.u.stream.php File 537 bytes April 02 2019 23:37:19.
class.snaplib.u.string.php File 1918 bytes April 02 2019 23:37:19.
class.snaplib.u.ui.php File 1011 bytes April 02 2019 23:37:19.
class.snaplib.u.url.php File 1718 bytes April 02 2019 23:37:19.
class.snaplib.u.util.php File 8929 bytes April 02 2019 23:37:19.
class.snaplib.u.wp.php File 4066 bytes April 02 2019 23:37:19.
index.php File 15 bytes April 02 2019 23:37:19.
snaplib.all.php File 685 bytes April 02 2019 23:37:19.
wordpress.core.files.php File 58488 bytes April 02 2019 23:37:19.

Reading File: /home/ivftiowh/greeceivf.com/wp-content/plugins/duplicator/lib/snaplib/class.snaplib.logger.php

<?php
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

if(!class_exists('SnapLibLogger')) {
class SnapLibLogger
{
    public static $logFilepath = null;
    static $logHandle          = null;

    public static function init($logFilepath)
    {
        self::$logFilepath = $logFilepath;
    }

    public static function clearLog()
    {
        if (file_exists(self::$logFilepath)) {
            if (self::$logHandle !== null) {
                fflush(self::$logHandle);
                fclose(self::$logHandle);
                self::$logHandle = null;
            }
            @unlink(self::$logFilepath);
        }
    }

    public static function logObject($s, $o, $flush = false)
    {
        self::log($s, $flush);
        self::log(print_r($o, true), $flush);
    }

    public static function log($s, $flush = false, $callingFunctionOverride = null)
    {
     //   echo "{$s}<br/>";
        $lfp = self::$logFilepath;
      //  echo "logging $s to {$lfp}<br/>";
        if (self::$logFilepath === null) {
            throw new Exception('Logging not initialized');
        }
        
        if(isset($_SERVER['REQUEST_TIME_FLOAT'])){
            $timepart = $_SERVER['REQUEST_TIME_FLOAT'];
        } else {
            $timepart = $_SERVER['REQUEST_TIME'];
        }

        $thread_id = sprintf("%08x", abs(crc32($_SERVER['REMOTE_ADDR'].$timepart.$_SERVER['REMOTE_PORT'])));

        $s = $thread_id.' '.date('h:i:s').":$s";

        if (self::$logHandle === null) {

            self::$logHandle = fopen(self::$logFilepath, 'a');
        }

        fwrite(self::$logHandle, "$s\n");

        if ($flush) {
            fflush(self::$logHandle);

            fclose(self::$logHandle);

            self::$logHandle = fopen(self::$logFilepath, 'a');
        }
    }

    private static $profileLogArray = null;
    private static $prevTS = -1;

    public static function initProfiling()
    {
        self::$profileLogArray = array();
    }

    public static function writeToPLog($s)
    {
        throw new exception('not implemented');
        $currentTime = microtime(true);

        if(array_key_exists($s, self::$profileLogArray))
        {
            $dSame = $currentTime - self::$profileLogArray[$s];
            $dSame = number_format($dSame, 7);
        }
        else
        {
            $dSame = 'N/A';
        }

        if(self::$prevTS != -1)
        {
            $dPrev = $currentTime - self::$prevTS;
            $dPrev = number_format($dPrev, 7);
        }
        else
        {
            $dPrev = 'N/A';
        }



        self::$profileLogArray[$s] = $currentTime;
        self::$prevTS = $currentTime;

        self::log("  {$dPrev}  :  {$dSame}  :  {$currentTime}  :     {$s}");
    }
}
}

SILENT KILLER Tool