Linux evo.fastest-server.com 5.14.0-284.1101.el9.tuxcare.11.els11.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 14 13:30:35 UTC 2026 x86_64
LiteSpeed
Server IP : 103.249.112.113 & Your IP : 216.73.217.135
Domains : 988 Domain
User : tanishks
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
lsws /
lsws-6.1.2 /
add-ons /
webcachemgr /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Context
[ DIR ]
drwxr-xr-x
2023-06-16 14:26
Panel
[ DIR ]
drwxr-xr-x
2023-06-16 14:26
View
[ DIR ]
drwxr-xr-x
2023-06-16 14:26
AjaxResponse.php
1.9
KB
-rw-r--r--
2019-10-18 16:45
CliController.php
30.49
KB
-rw-r--r--
2021-12-08 15:14
DashNotifier.php
8.01
KB
-rw-r--r--
2020-11-18 22:34
LSCMException.php
651
B
-rw-r--r--
2020-08-18 20:02
LogEntry.php
1.72
KB
-rw-r--r--
2020-11-18 22:34
Logger.php
16.57
KB
-rw-r--r--
2020-11-18 22:34
PanelController.php
43.2
KB
-rw-r--r--
2020-10-07 17:23
PluginVersion.php
17.47
KB
-rw-r--r--
2021-02-24 21:19
UserCommand.php
24.62
KB
-rw-r--r--
2020-11-18 22:34
Util.php
11.21
KB
-rw-r--r--
2020-11-18 22:34
WPCaller.php
48.71
KB
-rw-r--r--
2021-12-08 15:14
WPDashMsgs.php
4.49
KB
-rw-r--r--
2019-12-05 16:18
WPInstall.php
15.27
KB
-rw-r--r--
2021-12-08 15:14
WPInstallStorage.php
26.7
KB
-rw-r--r--
2021-12-08 15:14
Save
Rename
<?php /* * ********************************************* * LiteSpeed Web Server WordPress Dash Notifier * * @author LiteSpeed Technologies, Inc. (https://www.litespeedtech.com) * @copyright (c) 2019 * ******************************************* */ namespace Lsc\Wp; class WPDashMsgs { const MSG_TYPE_RAP = 'rap'; const MSG_TYPE_BAM = 'bam'; const KEY_RAP_MSGS = 'rapMsgs'; const KEY_BAM_MSGS = 'bamMsgs'; /** * Do not change these values, substr 'msg' is used in PanelController to * determine action. */ const ACTION_GET_MSG = 'msgGet'; const ACTION_ADD_MSG = 'msgAdd'; const ACTION_DELETE_MSG = 'msgDelete'; /** * @var string */ protected $dataFile; /** * @var string[][] */ protected $msgData = array(); /** * * @param string $dataFile */ public function __construct( ) { $this->dataFile = realpath(__DIR__ . '/../../..') . '/admin/lscdata/wpDashMsgs.data'; $this->init(); } protected function init() { if ( file_exists($this->dataFile) ) { $data = json_decode(file_get_contents($this->dataFile), true); if ( $data != false && is_array($data) ) { $this->msgData = $data; } } if ( !isset($this->msgData[self::KEY_RAP_MSGS]) ) { $this->msgData[self::KEY_RAP_MSGS] = array(); } if ( !isset($this->msgData[self::KEY_BAM_MSGS]) ) { $this->msgData[self::KEY_BAM_MSGS] = array(); } /** * Set default rap message and plugin slug. */ $defaultRap = array( 'default' => array( 'msg' => 'Greetings! This is your hosting company encouraging you to click the button ' . 'to install the LiteSpeed Cache plugin. This plugin will speed up your ' . 'WordPress site dramatically. Please contact us with any questions.', 'slug' => 'litespeed-cache') ); $this->msgData[self::KEY_RAP_MSGS] = array_merge($defaultRap, $this->msgData[self::KEY_RAP_MSGS]); } /** * * @param string $type * @return sting[]|string[][] */ public function getMsgData( $type = '' ) { switch ($type) { case self::MSG_TYPE_RAP: return $this->msgData[self::KEY_RAP_MSGS]; case self::MSG_TYPE_BAM: return $this->msgData[self::KEY_BAM_MSGS]; default: return $this->msgData; } } /** * * @param string $type * @param string $msgId * @param string $msg * @param string $slug * @return boolean */ public function addMsg( $type, $msgId, $msg, $slug = '' ) { if ( $msgId === '' || $msgId === NULL || ($msgId == 'default' && $type == self::MSG_TYPE_RAP) || strlen($msgId) > 50 || preg_match('/[^a-zA-Z0-9_-]/', $msgId) ) { return false; } switch ($type) { case self::MSG_TYPE_RAP: $this->msgData[self::KEY_RAP_MSGS][$msgId] = array( 'msg' => $msg, 'slug' => $slug ); break; case self::MSG_TYPE_BAM: $this->msgData[self::KEY_BAM_MSGS][$msgId] = array( 'msg' => $msg ); break; default: return false; } $this->saveDataFile(); return true; } /** * * @param string $type * @param string $msgId * @return boolean */ public function deleteMsg( $type, $msgId ) { if ( $msgId === '' || $msgId === NULL ) { return false; } switch ($type) { case self::MSG_TYPE_RAP: if ( $msgId == 'default' ) { return false; } $key = self::KEY_RAP_MSGS; break; case self::MSG_TYPE_BAM: $key = self::KEY_BAM_MSGS; break; default: return false; } if ( isset($this->msgData[$key][$msgId]) ) { unset($this->msgData[$key][$msgId]); $this->saveDataFile(); return true; } return false; } protected function saveDataFile() { $jsonData = json_encode($this->msgData); file_put_contents($this->dataFile, $jsonData); } }