GRAYBYTE WORDPRESS FILE MANAGER7690

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/local/lsws/add-ons/webcachemgr/src/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/local/lsws/add-ons/webcachemgr/src//LogEntry.php
<?php

/** *********************************************
 * LiteSpeed Web Server Cache Manager
 *
 * @author LiteSpeed Technologies, Inc. (https://www.litespeedtech.com)
 * @copyright (c) 2018-2019
 * *******************************************
 */

namespace Lsc\Wp;

class LogEntry
{

    /**
     * @var int
     */
    protected $lvl;

    /**
     * @var string
     */
    protected $msg;

    /**
     *
     * @var null|string
     */
    protected $prefix;

    /**
     *
     * @var int[]
     */
    protected $timestamp;

    /**
     *
     * @param string  $msg
     * @param int     $lvl
     */
    public function __construct( $msg, $lvl )
    {
        $this->msg = $msg;
        $this->lvl = $lvl;
        $this->timestamp = time();
    }

    /**
     *
     * @param string  $msg
     */
    public function append( $msg )
    {
        $this->msg .= $msg;
    }

    /**
     *
     * @return int
     */
    public function getLvl()
    {
        return $this->lvl;
    }

    /**
     *
     * @return string
     */
    public function getMsg()
    {
        $msg = ($this->prefix == null) ? '' : "{$this->prefix} ";

        if ( $this->msg ) {
            $msg .= $this->msg;
        }

        return $msg;
    }

    /**
     *
     * @param int  $logLvl
     * @return string
     * @throws LSCMException  Thrown indirectly.
     */
    public function getOutput( $logLvl )
    {
        if ( $this->lvl > $logLvl ) {
            return '';
        }


        $timestamp = date('Y-m-d H:i:s', $this->timestamp);
        $addTagInfo = Logger::getAdditionalTagInfo();
        $lvl = '[' . Logger::getLvlDescr($this->lvl) . ']';
        $msg = $this->getMsg();

        return "{$timestamp} {$addTagInfo} {$lvl}  {$msg}\n";
    }

}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 13 2025 13:48:22
root / root
0775
Context
--
April 30 2025 22:14:03
root / root
0775
Panel
--
April 30 2025 22:14:03
root / root
0775
ThirdParty
--
April 30 2025 22:14:03
root / root
0775
View
--
April 30 2025 22:14:03
root / root
0775
WpWrapper
--
April 30 2025 22:14:03
root / root
0775
AjaxResponse.php
1.792 KB
April 30 2025 22:14:03
root / root
0664
CliController.php
40.767 KB
April 30 2025 22:14:03
root / root
0664
DashNotifier.php
9.892 KB
April 30 2025 22:14:03
root / root
0664
LSCMException.php
0.636 KB
April 30 2025 22:14:03
root / root
0664
LogEntry.php
1.721 KB
April 30 2025 22:14:03
root / root
0664
Logger.php
17.947 KB
April 30 2025 22:14:03
root / root
0664
PanelController.php
50.979 KB
April 30 2025 22:14:03
root / root
0664
PluginVersion.php
21.911 KB
April 30 2025 22:14:03
root / root
0664
RedefineGlobalFuncs.php
0.845 KB
April 30 2025 22:14:03
root / root
0664
UserCommand.php
28.722 KB
April 30 2025 22:14:03
root / root
0664
Util.php
18.154 KB
April 30 2025 22:14:03
root / root
0664
WPCaller.php
53.732 KB
April 30 2025 22:14:03
root / root
0664
WPDashMsgs.php
4.751 KB
April 30 2025 22:14:03
root / root
0664
WPInstall.php
16.813 KB
April 30 2025 22:14:03
root / root
0664
WPInstallStorage.php
32.222 KB
April 30 2025 22:14:03
root / root
0664

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF