$59 GRAYBYTE WORDPRESS FILE MANAGER $34

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/usr/local/lsws/add-ons/webcachemgr/src/

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

/** *********************************************
 * LiteSpeed Web Server Cache Manager
 *
 * @author    Michael Alegre
 * @copyright 2019-2025 LiteSpeed Technologies, Inc.
 * @since     1.9
 * *******************************************
 */

namespace Lsc\Wp;

/**
 * @since 1.9
 */
class AjaxResponse
{

    /**
     * @since 1.9
     * @var   AjaxResponse
     */
    protected static $instance;

    /**
     * @since 1.9
     * @var   string
     */
    protected $ajaxContent;

    /**
     * @since 1.9
     * @var   string
     */
    protected $headerContent;

    /**
     *
     * @since 1.9
     */
    private function __construct()
    {

    }

    /**
     *
     * @since 1.9
     *
     * @return AjaxResponse
     */
    private static function me()
    {
        if ( self::$instance == null ) {
            self::$instance = new self();
        }

        return self::$instance;
    }

    /**
     *
     * @since 1.9
     *
     * @throws LSCMException
     */
    public static function outputAndExit()
    {
        $output = '';

        if ( self::$instance == null ) {
            throw new LSCMException('AjaxResponse object never created!');
        }

        $m = self::me();

        if ( !empty($m->headerContent) ) {
            $output .= "{$m->headerContent}\n\n";
        }

        $output .= $m->ajaxContent;

        ob_clean();
        echo $output;
        exit;
    }

    /**
     *
     * @since 1.9
     *
     * @param string $ajaxContent
     */
    public static function setAjaxContent( $ajaxContent )
    {
        self::me()->ajaxContent = $ajaxContent;
    }

    /**
     *
     * @since 1.9
     *
     * @param string $headerContent
     */
    public static function setHeaderContent( $headerContent )
    {
        self::me()->headerContent = $headerContent;
    }

}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
13 Mar 2026 2.21 AM
root / root
0775
Context
--
12 Mar 2026 10.37 PM
root / root
0775
Panel
--
12 Mar 2026 10.37 PM
root / root
0775
ThirdParty
--
12 Mar 2026 10.37 PM
root / root
0775
View
--
12 Mar 2026 10.37 PM
root / root
0775
WpWrapper
--
12 Mar 2026 10.37 PM
root / root
0775
AjaxResponse.php
1.792 KB
12 Mar 2026 10.37 PM
root / root
0664
CliController.php
40.767 KB
12 Mar 2026 10.37 PM
root / root
0664
DashNotifier.php
9.892 KB
12 Mar 2026 10.37 PM
root / root
0664
LSCMException.php
0.636 KB
12 Mar 2026 10.37 PM
root / root
0664
LogEntry.php
1.721 KB
12 Mar 2026 10.37 PM
root / root
0664
Logger.php
17.947 KB
12 Mar 2026 10.37 PM
root / root
0664
PanelController.php
56.12 KB
12 Mar 2026 10.37 PM
root / root
0664
PluginVersion.php
22.579 KB
12 Mar 2026 10.37 PM
root / root
0664
RedefineGlobalFuncs.php
0.845 KB
12 Mar 2026 10.37 PM
root / root
0664
UserCommand.php
28.722 KB
12 Mar 2026 10.37 PM
root / root
0664
Util.php
18.154 KB
12 Mar 2026 10.37 PM
root / root
0664
WPCaller.php
54.405 KB
12 Mar 2026 10.37 PM
root / root
0664
WPDashMsgs.php
4.751 KB
12 Mar 2026 10.37 PM
root / root
0664
WPInstall.php
16.813 KB
12 Mar 2026 10.37 PM
root / root
0664
WPInstallStorage.php
33.236 KB
12 Mar 2026 10.37 PM
root / root
0664

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF