File manager - Edit - /home/newsbmcs.com/public_html/static/img/logo/View.zip
Back
PK �S�ZF�C� AjaxView.phpnu �[��� <?php /** ****************************************** * LiteSpeed Web Server Cache Manager * * @author LiteSpeed Technologies, Inc. (https://www.litespeedtech.com) * @copyright (c) 2018-2020 * ******************************************* */ namespace Lsc\Wp\View; use \Lsc\Wp\LSCMException; class AjaxView { /** * @var object */ private $viewModel; /** * @var string */ private $sharedTplDir = __DIR__; /** * * @param object $viewModel */ public function __construct( $viewModel ) { $this->viewModel = $viewModel; } /** * * @param string $tplID * @return string * @throws LSCMException Thrown directly and indirectly. */ public function getAjaxContent( $tplID = '' ) { ob_start(); try { $this->loadAjaxTpl($this->viewModel->getTpl($tplID)); } catch ( LSCMException $e ) { ob_clean(); throw $e; } return ob_get_clean(); } /** * * @param string $tplPath * @throws LSCMException */ private function loadAjaxTpl( $tplPath ) { $tplFile = basename($tplPath); $custTpl = "{$this->sharedTplDir}/Cust/{$tplFile}"; if ( file_exists($custTpl) ) { include $custTpl; } elseif ( file_exists($tplPath) ) { include $tplPath; } else { throw new LSCMException("Could not load ajax template {$tplPath}."); } } } PK �S�Z6Y��v v Tpl/MassEnableDisable.tplnu �[��� <input type="hidden" name="act" /> <?php use \Lsc\Wp\View\Model\MassEnableDisableViewModel as ViewModel; $icon = $this->viewModel->getTplData(ViewModel::FLD_ICON); $activeVer = $this->viewModel->getTplData(ViewModel::FLD_ACTIVE_VER); $state = $this->viewModel->getTplData(ViewModel::FLD_STATE); $d = array( 'title' => 'Mass Enable/Disable LiteSpeed Cache', 'icon' => $icon ); $this->loadTplBlock('Title.tpl', $d); if ( $state == ViewModel::ST_INSTALLS_DISCOVERED ): ?> <p> The following operations will affect all WordPress installations not currently flagged. </p> <p> To exclude a WordPress installation from mass operations, flag it in <a href="?do=lscwp_manage" title="Go to Manage Cache Installations"> Manage Cache Installations </a> . </p> <br /> <fieldset class="mass-box"> <legend><b>Mass Enable</b></legend> <?php if ( $activeVer == false ): ?> <div> [Feature Disabled] No active LSCWP version set! Cannot Mass Enable. <br /><br /> </div> <?php else: ?> <div> LiteSpeed Cache will be enabled for all WordPress installations not currently flagged. For WordPress installations that do not already have the plugin, <b> LiteSpeed Cache for WordPress <?php echo htmlspecialchars($activeVer); ?> will be installed. </b> This can be changed anytime in the <a href="?do=lscwpVersionManager" title="Go to Version Manager">Version Manager</a>. <br /><br /> <button class="lsws-primary-btn" type="button" title="Mass Enable LiteSpeed Cache for all unflagged installations." onclick="javascript:actionset('enable');"> Start </button> </div> <?php endif; ?> </fieldset> <br /><br /> <fieldset class="mass-box"> <legend><b>Mass Disable</b></legend> <div> LiteSpeed Cache will be disabled for all WordPress installations not currently flagged. <br /><br /> <button class="lsws-primary-btn" type="button" title="Mass Disable LiteSpeed Cache for all unflagged installations." onclick="javascript:actionset('disable');"> Start </button> </div> </fieldset> <?php elseif ( $state == ViewModel::ST_NO_INSTALLS_DISCOVERED ): ?> <div> <p> No WordPress installations discovered in the previous scan. If you have any newly installed WordPress installations, please go to <a href="?do=lscwp_manage" title="Go to Manage Cache Installations"> Manage Cache Installations </a> and Re-scan/Discover New. </p> </div> <?php else: ?> <div> <p> Please go to <a href="?do=lscwp_manage" title="Go to Manage Cache Installations"> Manage Cache Installations </a> and click Scan to discover all active WordPress installations before attempting to Mass Enable/Disable Cache. </p> </div> <?php endif; $d = array( 'back' => 'Back' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); PK �S�Z�T�� � Tpl/MassDashNotifyProgress.tplnu �[��� <?php use \Lsc\Wp\View\Model\MassDashNotifyProgressViewModel as ViewModel; $icon = $this->viewModel->getTplData(ViewModel::FLD_ICON); $installsCount = $this->viewModel->getTplData(ViewModel::FLD_INSTALLS_COUNT); $d = array( 'title' => 'Mass Notifying All Discovered WordPress Installations...', 'icon' => $icon ); $this->loadTplBlock('Title.tpl', $d); ?> <div id="progress-box" class="msg-box"> Attempting to notify <span id="currIndex">0</span> out of <span id="totalCount"><?php echo $installsCount; ?></span> ... </div> <div> Currently attempting to notify all discovered WordPress installations. Installations detected with "Error" status or containing a '.dash_notifier_bypass' file will be bypassed. Please be patient. </div> <?php $msgs = array( "<span id=\"bypassedCount\"><b>0</b></span> WordPress installation(s) bypassed.", "Dash Notifier notified <span id=\"succCount\"><b>0</b></span> WordPress installation(s).", "Dash Notifier failed to notify <span id=\"failCount\" class=\"red\"><b>0</b></span> WordPress " . "installation(s)." ); $d = array( 'msgs' => $msgs, 'class' => 'msg-info', ); $this->loadTplBlock('DivMsgBox.tpl', $d); $d = array( 'back' => 'OK', 'backDo' => 'dash_notifier', 'visibility' => 'hidden' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); ?> <button class="accordion accordion-error" type="button" style="display: none"> Error Messages <span id ="errMsgCnt" class="badge errMsg-badge">0</span> </button> <div class="panel panel-error"> <?php $d = array( 'id' => 'errMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <button class="accordion accordion-success" type="button" style="display: none"> Success Messages <span id="succMsgCnt" class="badge succMsg-badge">0</span> </button> <div class="panel panel-success"> <?php $d = array( 'id' => 'succMsgs', 'class' => 'scrollable', 'title' => 'Success Messages:', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <script type="text/javascript">lswsInitDropdownBoxes();</script> <script type="text/javascript">dashMassNotifyUpdate();</script>PK �S�Z]Z Tpl/RefreshStatusProgress.tplnu �[��� <?php use \Lsc\Wp\View\Model\RefreshStatusProgressViewModel as ViewModel; $icon = $this->viewModel->getTplData(ViewModel::FLD_ICON); $installCount = $this->viewModel->getTplData(ViewModel::FLD_INSTALLS_COUNT); $d = array( 'title' => 'Refreshing Status of WordPress Installations...', 'icon' => $icon ); $this->loadTplBlock('Title.tpl', $d); ?> <div id="progress-box" class="msg-box"> Refreshing Status for <span id ="currIndex">0</span> out of <span id="totalCount"><?php echo $installCount; ?></span> ... </div> <?php $d = array( 'back' => 'Back', 'backDo' => 'lscwp_manage', 'visibility' => 'hidden' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); ?> <button class="accordion accordion-error" type="button" style="display: none"> Error Messages <span id ="errMsgCnt" class="badge errMsg-badge">0</span> </button> <div class="panel panel-error"> <?php $d = array( 'id' => 'errMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <script type="text/javascript">lswsInitDropdownBoxes();</script> <script type="text/javascript">lscwpRefreshStatusUpdate();</script>PK �S�Z���� � Tpl/ScanProgressStep2.tplnu �[��� <?php /** * @since 1.13.3 */ use \Lsc\Wp\View\Model\ScanProgressStepViewModel as ViewModel; $title = $this->viewModel->getTplData(ViewModel::FLD_TITLE); $icon = $this->viewModel->getTplData(ViewModel::FLD_ICON); $totalCount = $this->viewModel->getTplData(ViewModel::FLD_TOTAL_COUNT); $mgrStep = $this->viewModel->getTplData(ViewModel::FLD_MGR_STEP); $d = array( 'title' => $title, 'icon' => $icon ); $this->loadTplBlock('Title.tpl', $d); ?> <div id="progress-box" class="msg-box"> Scanning <span id="currIndex">0</span> out of <span id="totalCount"><?php echo $totalCount; ?></span> ... </div> <div> Currently attempting to refresh status for all WordPress installations found in the previous discovery step. <br /> If performing a <b>Scan/Re-scan</b>, all installations will be found and added to the Cache Manager list. <br /> If <b>Discovering New</b>, only installations belonging to users not already in the Cache Manager list will be discovered. </div> <br /> <?php $d = array( 'back' => 'Back', 'backDo' => 'lscwp_manage', 'visibility' => 'hidden' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); ?> <button class="accordion accordion-error" type="button" style="display: none"> Error Messages <span id ="errMsgCnt" class="badge errMsg-badge">0</span> </button> <div class="panel panel-error"> <?php $d = array( 'id' => 'errMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <script type="text/javascript">lswsInitDropdownBoxes();</script> <script type="text/javascript"> lscwpScanProgressStep1Update('<?php echo $mgrStep; ?>'); </script>PK �S�Zڮ�Z2 Z2 Tpl/Manage.tplnu �[��� <?php use \Lsc\Wp\View\Model\ManageViewModel as ViewModel; $iconDir = $this->viewModel->getTplData(ViewModel::FLD_ICON_DIR); $scanBtnName = $this->viewModel->getTplData(ViewModel::FLD_SCAN_BTN_NAME); $btnState = $this->viewModel->getTplData(ViewModel::FLD_BTN_STATE); $activeVer = $this->viewModel->getTplData(ViewModel::FLD_ACTIVE_VER); $listData = $this->viewModel->getTplData(ViewModel::FLD_LIST_DATA); $countData = $this->viewModel->getTplData(ViewModel::FLD_COUNT_DATA); $showList = $this->viewModel->getTplData(ViewModel::FLD_SHOW_LIST); $warnMsgs = $this->viewModel->getTplData(ViewModel::FLD_WARN_MSGS); $infoMsgs = $this->viewModel->getTplData(ViewModel::FLD_INFO_MSGS); $errMsgs = $this->viewModel->getTplData(ViewModel::FLD_ERR_MSGS); $succMsgs = $this->viewModel->getTplData(ViewModel::FLD_SUCC_MSGS); ?> <div id="manager"> <?php $d = array( 'title' => 'Manage All LiteSpeed Cache for WordPress Installations', 'icon' => "{$iconDir}/manageCacheInstallations.svg" ); $this->loadTplBlock('Title.tpl', $d); ?> <div id="display-msgs"> <?php if ( !empty($warnMsgs) ) { $d = array( 'msgs' => $warnMsgs, 'class' => 'msg-warn', ); $this->loadTplBlock('DivMsgBox.tpl', $d); } if ( !empty($infoMsgs) ) { $d = array( 'msgs' => $infoMsgs, 'class' => 'msg-info', ); $this->loadTplBlock('DivMsgBox.tpl', $d); } $errMsgCnt = count($errMsgs); $succMsgCnt = count($succMsgs); ?> <button class="accordion accordion-error" type="button" style="display: <?php echo ($errMsgCnt > 0) ? 'initial' : 'none'; ?>"> Error Messages <span id ="errMsgCnt" class="badge errMsg-badge"> <?php echo $errMsgCnt; ?> </span> </button> <div class="panel panel-error"> <?php $d = array( 'id' => 'errMsgs', 'msgs' => $errMsgs, 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <button class="accordion accordion-success" type="button" style="display: <?php echo ($succMsgCnt > 0) ? 'initial' : 'none'; ?>"> Success Messages <span id="succMsgCnt" class="badge succMsg-badge"> <?php echo $succMsgCnt; ?> </span> </button> <div class="panel panel-success"> <?php $d = array( 'id' => 'succMsgs', 'msgs' => $succMsgs, 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> </div> <div align="left" > <?php $classes = ''; $addClass = 'lsws-primary-btn'; $d = array( 'name' => 're-scan', 'value' => $scanBtnName, 'title' => 'Scan filesystem for WordPress installations', 'confirm' => "{$scanBtnName} will scan your filesystem for WordPress installations. This may " . "take up to a few minutes to complete. {$scanBtnName} now?", 'class' => "{$classes} {$addClass}" ); $this->loadTplBlock('InputSubmitBtn.tpl', $d, true); if ( $btnState == 'disabled' ) { $addClass = 'disabled-btn'; } $d = array( 'name' => 'scan_more', 'value' => 'Discover New', 'title' => 'Discover new WordPress installations since the last scan', 'confirm' => 'Discover new WordPress installations since the last scan.This will not update ' . 'information for existing installations. This may take up to a few minutes to ' . 'complete. Continue?', 'state' => $btnState, 'class' => "{$classes} {$addClass}", ); $this->loadTplBlock('InputSubmitBtn.tpl', $d, true); $d = array( 'name' => 'refresh_status', 'value' => 'Refresh Status', 'title' => 'Check the cache status for all WordPress installations currently listed', 'confirm' => 'Refresh Status will check the cache status for all WordPress installations currently ' . 'listed. If you have many installations, this may take up to a few minutes to ' . 'complete. Refresh Status now?', 'state' => $btnState, 'class' => "{$classes} {$addClass}", ); $this->loadTplBlock('InputSubmitBtn.tpl', $d, true); $d = array( 'name' => 'mass_unflag', 'value' => 'Unflag All', 'title' => 'Unflag all currently discovered installations', 'confirm' => 'Unflag all currently discovered installations?', 'state' => $btnState, 'class' => "{$classes} {$addClass}", ); $this->loadTplBlock('InputSubmitBtn.tpl', $d, true); ?> </div> <div align="left" class="pad-bottom-small"> <?php $classes = 'lsws-secondary-btn'; if ( $activeVer == false ) { $dTitle = '[Feature Disabled] No active LSCWP version set!'; $dState = 'disabled'; } else { $dTitle = 'Enable cache for all selected WordPress installations (Ignores Flag)'; $dState = $btnState; } if ( $btnState == 'disabled' ) { $classes = 'disabled-btn'; $dclasses = $classes; } else { $dclasses = ($dState != 'disabled') ? $classes : 'disabled-btn'; } ob_start(); ?> With Selected: <button type="button" name="enable_sel" value="Enable Selected" class="<?php echo $dclasses; ?>" title="<?php echo $dTitle; ?>" onclick="javascript:lscwpValidateSelectFormSubmit(this.name, this.value);" <?php echo $dState; ?> > Enable </button> <button type="button" name="disable_sel" value="Disable Selected" class="<?php echo $classes; ?>" title="Disable cache for all selected WordPress installations (Ignores Flag)" onclick="javascript:lscwpValidateSelectFormSubmit(this.name, this.value);" <?php echo $btnState; ?> > Disable </button> <button type="button" name="flag_sel" value="Flag Selected" class="<?php echo $classes; ?>" title="Flag all selected WordPress installations" onclick="javascript:lscwpValidateSelectFormSubmit(this.name, this.value);" <?php echo $btnState; ?> > Flag </button> <button type="button" name="unflag_sel" value="Unflag Selected" class="<?php echo $classes; ?>" title="Unflag all selected WordPress installations" onclick="javascript:lscwpValidateSelectFormSubmit(this.name, this.value);" <?php echo $btnState; ?> > Unflag </button> <?php $btn_row = ob_get_clean(); echo $btn_row; ?> </div> <table class="plugin-ver"> <tbody> <tr> <td align="right"> LiteSpeed Cache Plugin Version: <a href="?do=lscwpVersionManager" title="Go to Version Manager"> <?php echo ($activeVer) ? htmlspecialchars($activeVer) : 'Not Set'; ?> </a> </td> </tr> </tbody> </table> <br/> <div id="mask-container"> <div id="hover-mask"> <svg version="1.1" id="L9" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0" xml:space="preserve"> <path fill="#fff" d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"> <animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="1s" from="0 50 50" to="360 50 50" repeatCount="indefinite" /> </path> </svg> </div> <table id="lsws-data-table" class="datatable cachemgr hover"> <thead> <tr> <?php $discoveredCnt = $countData[ViewModel::COUNT_DATA_INSTALLS]; $enabledCnt = $countData[ViewModel::COUNT_DATA_ENABLED]; $warnCnt = $countData[ViewModel::COUNT_DATA_WARN]; $errCnt = $countData[ViewModel::COUNT_DATA_ERROR]; $flagCnt = $countData[ViewModel::COUNT_DATA_FLAGGED]; ?> <th width="20px"></th> <th> Discovered WordPress Installations <span id="total-badge" class="badge primary-badge" data-uk-tooltip title="<?php echo $discoveredCnt; ?> installations discovered"> <?php echo $countData[ViewModel::COUNT_DATA_INSTALLS]; ?> </span> | <span id="enabled-badge" class="badge" data-uk-tooltip title="LSCWP is enabled for <?php echo $enabledCnt; ?> installations "> <?php echo $countData[ViewModel::COUNT_DATA_ENABLED]; ?> </span> <span id="warning-badge" class="badge" data-uk-tooltip title="LSCWP partially enabled for <?php echo $warnCnt; ?> installations"> <?php echo $countData[ViewModel::COUNT_DATA_WARN]; ?> </span> <span id="error-badge" class="badge" data-uk-tooltip title="<?php echo $errCnt; ?> installations encountered a fatal error"> <?php echo $countData[ViewModel::COUNT_DATA_ERROR]; ?> </span> </th> <th class="action-th">Actions</th> <th> Cache Status </th> <th> Flag <span id="flagged-badge" class="badge" data-uk-tooltip title="<?php echo $flagCnt; ?> installations flagged (excluded from mass operations)"> <?php echo $countData[ViewModel::COUNT_DATA_FLAGGED]; ?> </span> </th> </tr> </thead> <tfoot> <tr> <th></th> <th></th> <th></th> <th></th> <th></th> </tr> </tfoot> <tbody> <?php if ( $showList ) : $classes = 'icon-btn'; foreach ( $listData as $path => $info ): $statusData = $info['statusData']; $flagData = $info['flagData']; $siteUrl = $info['siteUrl']; $safePath = htmlspecialchars($path); ?> <tr> <td> <input type="checkbox" name="installations[]" value="<?php echo $path; ?>" onclick="javascript:lscwpManageCheckboxSelect(this);" /> </td> <td class="path-box"> <?php echo htmlspecialchars($siteUrl); ?> <br /> <small class="install-path"><?php echo $safePath; ?></small> </td> <td align="center"> <span class="action-btns"> <button type="button" value="<?php echo $path; ?>" class="<?php echo $classes; ?>" title="<?php echo $statusData['btn_title']; ?>" <?php echo ($statusData['onclick']) ? $statusData['onclick'] : ''; ?> <?php echo $statusData['btn_attributes']; ?> <?php echo $statusData['btn_state']; ?> > <?php echo $statusData['btn_content']; ?> </button> <button type="button" value="<?php echo $path; ?>" class="<?php echo $classes; ?>" title="Click to refresh status" onclick="javascript:lscwpRefreshSingle(this);" data-uk-tooltip > <span class="refresh_btn"></span> </button> </span> </td> <td align="center" data-search="<?php echo $statusData['sort']; ?>" data-sort="<?php echo $statusData['sort']; ?>"> <?php echo $statusData['state']; ?> <a class="msg-alert" href="#display-msgs" data-uk-tooltip title="Click to go to messages"> </a> </td> <td align="center" data-search="<?php echo ($flagData['sort'] == 'flagged') ? 'f' : 'u'; ?>" data-sort="<?php echo $flagData['sort']; ?>"> <button type="button" value="<?php echo $path; ?>" class="<?php echo $classes; ?>" title="<?php echo $flagData['btn_title']; ?>" <?php echo $flagData['onclick']?> <?php echo $flagData['btn_attributes']; ?> > <?php echo $flagData['icon']; ?> </button> </td> </tr> <?php endforeach; endif; ?> </tbody> </table> </div> <?php echo $btn_row; ?> <br /><br /> <div> <small> *Flagging an installation will cause it to be excluded from Mass Enable/Disable operations. </small> </div> <br /> </div> <script type="text/javascript">lswsInitDropdownBoxes();</script> <script type="text/javascript">lswsInitDataTable();</script>PK �S�Z�?�ӛ � Tpl/CacheRootNotSet.tplnu �[��� <?php $d = array( 'title' => 'Cache Root Not Set', ); $this->loadTplBlock('Title.tpl', $d); ?> <div> <p> Server and/or Virtual Host cache root has not yet been set. Please go to <a href="?do=cacheRootSetup" title="Go to Cache Root Setup">Cache Root Setup</a> and set these first. </p> </div> <?php $d = array( 'back' => 'Back' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); PK �S�Z���I= = Tpl/ScanProgress.tplnu �[��� <?php /** * @deprecated 1.13.3 This template file has been deprecated and will be * removed in a future update. Please use new templates * ScanProgressStep1.tpl and ScanProgressStep2.tpl instead. */ use \Lsc\Wp\View\Model\ScanProgressViewModel as ViewModel; $title = $this->viewModel->getTplData(ViewModel::FLD_TITLE); $icon = $this->viewModel->getTplData(ViewModel::FLD_ICON); $homeDirCount = $this->viewModel->getTplData(ViewModel::FLD_HOME_DIR_COUNT); $mgrStep = $this->viewModel->getTplData(ViewModel::FLD_MGR_STEP); $d = array( 'title' => $title, 'icon' => $icon ); $this->loadTplBlock('Title.tpl', $d); ?> <div id="progress-box" class="msg-box"> Scanning <span id="currIndex">0</span> out of <span id="totalCount"><?php echo $homeDirCount; ?></span> ... </div> <div> Currently scanning for all WordPress Installations located under a /public_html/ directory. <br /> If performing a <b>Scan/Re-scan</b>, all installations will be found and added to the Cache Manager list. <br /> If <b>Discovering New</b>, only installations belonging to users not already in the Cache Manager list will be discovered. </div> <br /> <?php $d = array( 'back' => 'Back', 'backDo' => 'lscwp_manage', 'visibility' => 'hidden' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); ?> <button class="accordion accordion-error" type="button" style="display: none"> Error Messages <span id ="errMsgCnt" class="badge errMsg-badge">0</span> </button> <div class="panel panel-error"> <?php $d = array( 'id' => 'errMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <script type="text/javascript">lswsInitDropdownBoxes();</script> <script type="text/javascript"> lscwpScanProgressUpdate('<?php echo $mgrStep; ?>'); </script>PK �S�Z����� � ! Tpl/MassEnableDisableProgress.tplnu �[��� <?php use \Lsc\Wp\View\Model\MassEnableDisableProgressViewModel as ViewModel; $icon = $this->viewModel->getTplData(ViewModel::FLD_ICON); $action = $this->viewModel->getTplData(ViewModel::FLD_ACTION); $installsCount = $this->viewModel->getTplData(ViewModel::FLD_INSTALLS_COUNT); $activeVer = $this->viewModel->getTplData(ViewModel::FLD_ACTIVE_VER); $actionUpper = ucfirst($action); $d = array( 'title' => 'Mass ' . substr($actionUpper, 0, -1) . 'ing All LiteSpeed Cache Plugins...', 'icon' => $icon ); $this->loadTplBlock('Title.tpl', $d); if ( $action == 'enable' && $activeVer == false ): ?> <div> No active LSCWP version set! Mass Enable aborted. </div> <?php $d = array( 'back' => 'OK' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); else: ?> <div id="progress-box" class="msg-box"> Attempting to <?php echo $action; ?> <span id="currIndex">0</span> out of <span id="totalCount"><?php echo $installsCount; ?></span> ... </div> <div> Currently attempting to <?php echo $action; ?> all LiteSpeed Cache plugin installations. <?php if ( $action == 'enable' ) : ?> If the LiteSpeed Cache Plugin is not installed, version <b><?php echo htmlspecialchars($activeVer); ?></b> will be used. <?php endif; ?> Please be patient. </div> <?php $msgs = array( "<span id=\"bypassedCount\"><b>0</b></span> flagged/error WordPress installation(s) bypassed.", "LSCWP newly {$action}d for <span id=\"succCount\"><b>0</b></span> WordPress installation(s).", "LSCWP {$action} failed for <span id=\"failCount\" class=\"red\"><b>0</b></span> WordPress " . "installation(s)." ); $d = array( 'msgs' => $msgs, 'class' => 'msg-info', ); $this->loadTplBlock('DivMsgBox.tpl', $d); $d = array( 'back' => 'OK', 'visibility' => 'hidden' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); ?> <button class="accordion accordion-error" type="button" style="display: none"> Error Messages <span id ="errMsgCnt" class="badge errMsg-badge">0</span> </button> <div class="panel panel-error"> <?php $d = array( 'id' => 'errMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <button class="accordion accordion-success" type="button" style="display: none"> Success Messages <span id="succMsgCnt" class="badge succMsg-badge">0</span> </button> <div class="panel panel-success"> <?php $d = array( 'id' => 'succMsgs', 'class' => 'scrollable', 'title' => 'Success Messages:', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <script type="text/javascript">lswsInitDropdownBoxes();</script> <script type="text/javascript"> lscwpEnableDisableUpdate('<?php echo $action; ?>'); </script> <?php endif;PK �S�Z�Mt t Tpl/DataFileMsg.tplnu �[��� <?php use \Lsc\Wp\View\Model\DataFileMsgViewModel as ViewModel; $title = $this->viewModel->getTplData(ViewModel::FLD_TITLE); $discover = $this->viewModel->getTplData(ViewModel::FLD_DISCOVER); $d = array( 'title' => $title ); $this->loadTplBlock('Title.tpl', $d); ?> <div> <p> Please go to <a href="?do=lscwp_manage" title="Go to Manage Cache Installations"> Manage Cache Installations </a> and Scan to <?php echo $discover; ?> all active WordPress installations before continuing. </p> </div> <?php $d = array( 'back' => 'Back' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); PK �S�Z�G�U� � Tpl/UnflagAllProgress.tplnu �[��� <?php use \Lsc\Wp\View\Model\UnflagAllProgressViewModel as ViewModel; $icon = $this->viewModel->getTplData(ViewModel::FLD_ICON); $installCount = $this->viewModel->getTplData(ViewModel::FLD_INSTALLS_COUNT); $d = array( 'title' => 'Unflagging WordPress Installations...', 'icon' => $icon ); $this->loadTplBlock('Title.tpl', $d); ?> <div id="progress-box" class="msg-box"> Unflagging <span id ="currIndex">0</span> out of <span id="totalCount"><?php echo $installCount; ?></span> ... </div> <?php $d = array( 'back' => 'Back', 'backDo' => 'lscwp_manage', 'visibility' => 'hidden' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); ?> <button class="accordion accordion-error" type="button" style="display: none"> Error Messages <span id ="errMsgCnt" class="badge errMsg-badge">0</span> </button> <div class="panel panel-error"> <?php $d = array( 'id' => 'errMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <button class="accordion accordion-success" type="button" style="display: none"> Success Messages <span id="succMsgCnt" class="badge succMsg-badge">0</span> </button> <div class="panel panel-success"> <?php $d = array( 'id' => 'succMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <script type="text/javascript">lswsInitDropdownBoxes();</script> <script type="text/javascript">lscwpUnflagAllUpdate();</script>PK �S�Z��(� � Tpl/Ajax/CacheMgrStatusCol.tplnu �[��� <?php use Lsc\Wp\View\Model\Ajax\CacheMgrRowViewModel as ViewModel; $listData = $this->viewModel->getTplData(ViewModel::FLD_LIST_DATA); foreach ( $listData as $path => $info ): $statusData = $info['statusData']; ?> <td align="center" data-search="<?php echo $statusData['sort']; ?>" data-sort="<?php echo $statusData['sort']; ?>"> <?php echo $statusData['state']; ?> <a class="msg-alert" href="#display-msgs" data-uk-tooltip title="Click to go to messages"> </a> </td> <?php endforeach;PK �S�Zq�I Tpl/Ajax/CacheMgrActionsCol.tplnu �[��� <?php use Lsc\Wp\View\Model\Ajax\CacheMgrRowViewModel as ViewModel; $listData = $this->viewModel->getTplData(ViewModel::FLD_LIST_DATA); $classes = 'icon-btn'; foreach ( $listData as $path => $info ): $statusData = $info['statusData']; ?> <td align="center"> <span class="action-btns"> <button type="button" value="<?php echo $path; ?>" class="<?php echo $classes; ?>" title="<?php echo $statusData['btn_title']; ?>" <?php echo ($statusData['onclick']) ? $statusData['onclick'] : ''; ?> <?php echo $statusData['btn_attributes']; ?> <?php echo $statusData['btn_state']; ?> > <?php echo $statusData['btn_content']; ?> </button> <?php if ( $statusData['sort'] == 'removed' ) : ?> <button type="button" value="<?php echo $path; ?>" class="<?php echo $classes; ?>" > <span class="inactive-refresh-btn"></span> </button> <?php else: ?> <button type="button" value="<?php echo $path; ?>" class="<?php echo $classes; ?>" title="Click to refresh status" onclick="javascript:lscwpRefreshSingle(this);" data-uk-tooltip > <span class="refresh_btn"></span> </button> <?php endif; ?> </span> </td> <?php endforeach;PK �S�Z+B�[� � Tpl/Ajax/CacheMgrFlagCol.tplnu �[��� <?php use Lsc\Wp\View\Model\Ajax\CacheMgrRowViewModel as ViewModel; $listData = $this->viewModel->getTplData(ViewModel::FLD_LIST_DATA); $classes = 'icon-btn'; foreach ( $listData as $path => $info ): $flagData = $info['flagData']; ?> <td align="center" data-search="<?php echo ($flagData['sort'] == 'flagged') ? 'f' : 'u'; ?>" data-sort="<?php echo $flagData['sort']; ?>"> <button type="button" value="<?php echo $path; ?>" class="<?php echo $classes; ?>" title="<?php echo $flagData['btn_title']; ?>" <?php echo $flagData['onclick']?> <?php echo $flagData['btn_attributes']; ?> > <?php echo $flagData['icon']; ?> </button> </td> <?php endforeach;PK �S�Z�W��] ] Tpl/DashNotifier.tplnu �[��� <?php use Lsc\Wp\View\Model\DashNotifierViewModel as ViewModel; $iconDir = $this->viewModel->getTplData(ViewModel::FLD_ICON_DIR); $discoveredCnt = $this->viewModel->getTplData(ViewModel::FLD_DISCOVERED_COUNT); $rapMsgIds = $this->viewModel->getTplData(ViewModel::FLD_RAP_MSG_IDS); $bamMsgIds = $this->viewModel->getTplData(ViewModel::FLD_BAM_MSG_IDS); /** * Close usual "lswsform" to allow the following page to have multiple forms * based on selected tab. */ echo '</form>'; ?> <div id="heading"> <h1 class="uk-margin-top-remove"> <?php if ( $iconDir != '' ) : ?> <span> <img src="<?php echo $iconDir; ?>/wpNotifier.svg" alt="wp_dash_notifier_icon" /> </span> <?php endif; ?> WordPress Dashboard Notification </h1> <p class="uk-width-medium-2-3 uk-width-small-1-1 uk-text-dark" style="font-size: 15px; margin-left: 0px;"> This tool deploys and activates the <a href="https://wordpress.org/plugins/dash-notifier/" target='_blank'>WP Dash Notifier</a> WordPress plugin on all of the server's WordPress installations. </p> </div> <div id="display-msgs"> <button class="accordion accordion-error" type="button" style="display: none"> Error Messages <span id ="errMsgCnt" class="badge errMsg-badge">0</span> </button> <div class="panel panel-error"> <?php $d = array( 'id' => 'errMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <button class="accordion accordion-success" type="button" style="display: none"> Success Messages <span id="succMsgCnt" class="badge succMsg-badge">0</span> </button> <div class="panel panel-success"> <?php $d = array( 'id' => 'succMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> </div> <ul class="uk-tab uk-tab-grid" data-uk-tab="{connect:'#notify'}"> <li> <a href="#"> <i class="fa fa-puzzle-piece fa-1x uk-margin-small-right"></i>Recommend A Plugin </a> </li> <li> <a href="#"> <i class="fa fa-paper-plane fa-1x uk-margin-small-right"></i>Broadcast A Message </a> </li> </ul> <ul id="notify" class="uk-switcher uk-margin"> <li> <form name="rap-form" accept-charset="utf-8"> <input type="hidden" name="step" value="1"/> <input type="hidden" name="do" value="dash_notifier"/> <div class="uk-block uk-block-default uk-panel-space uk-padding-top-remove uk-padding-bottom-remove"> <div> <div class="uk-margin-bottom uk-margin-top uk-text-dark"> Broadcast a notification message recommending a particular plugin, complete with an install/activate button for that plugin. </div> </div> <button class="accordion uk-margin-bottom button-primary" type="button"> <i class="fa fa-info-circle fa-1x uk-margin-small-right uk-text-primary"></i> Recommending A Plugin </button> <div class="panel uk-accordion-content-background"> <div class="uk-margin uk-margin-top"> <p> On this page, a plugin can be recommended to all <a href="?do=lscwp_manage">discovered WordPress installations</a> by providing both the plugin's slug and a dashboard message. The following illustrates possible dashboard messages shown to WordPress users when recommending a plugin with plugin slug 'litespeed-cache' with a simple plain text message. </p> <ol> <li class="uk-margin-top"> <span> User does not have the 'litespeed-cache' plugin installed </span> <figure class="uk-margin-small uk-margin-small-top"> <img src="<?php echo $iconDir; ?>/../images/dash-notify-install.png" alt="recommend_new_plugin_img" class="uk-border-rounded"/> </figure> </li> <li class="uk-margin-top"> <span> User has 'litespeed-cache' plugin installed, but deactivated </span> <figure class="uk-margin-small uk-margin-small-top"> <img src="<?php echo $iconDir; ?>/../images/dash-notify-activate.png" alt="recommend_disabled_plugin_img" class="uk-border-rounded" /> </figure> </li> <li class="uk-margin-top"> <span> User has 'litespeed-cache' plugin installed and active <br /> * No message will be displayed </span> </li> </ol> <h3>Other Info</h3> <ul class="uk-list-space"> <li> WordPress users who click the "Dismiss" button will not be re-notified if the provided dashboard message and plugin slug match those of the dismissed message. </li> <li> WordPress users who click the "Never Notify Me Again" button will have the Dash Notifier plugin uninstalled and a '.dash_notifier_bypass' file created in their installation's root directory. These users will not be notified of any further messages while this file exists. </li> </ul> </div> </div> <ul class="uk-grid uk-grid-width-large-1-2 uk-grid-width-medium-1-1 uk-grid-small"> <li class="uk-panel uk-panel-space"> <div class=""> <span>Plugin Slug</span> <span class="far fa-question-circle uk-margin-small-right uk-text-muted" style="font-size: 14px;" title="A plugin's unique identifier. This can be found by finding the plugin's page on wordpress.org/plugins and taking the last part of the URL. For example, the URL for the LiteSpeed Cache plugin for WordPress is wordpress.org/plugins/litespeed-cache, making the plugin slug 'litespeed-cache'." data-uk-tooltip></span> <input id="pluginSlug" class="uk-margin-right" type="text" name="notify_slug" size="30" value=""/> <button class="nowrap lsws-muted-btn" type="button" name="verify_slug" value="Verify Plugin Slug" title="Verify provided WordPress plugin slug" onclick="javascript:dashVerifySlug( document.getElementById('pluginSlug').value);"> Verify </button> <br /> <span id="verify-output" class="uk-text-small"></span> </div> <div> <div> <span>WordPress Dashboard Message</span> <span class="far fa-question-circle uk-text-muted" style="font-size: 14px;" title="Message to be displayed as a Dash Notifier message. Both plain text and HTML are allowed. Newlines will be ignored in plain text." data-uk-tooltip></span> <button type="button" class="uk-margin-left uk-button-link" name="clear_msg" value="Clear Current Message" title="Clear current WordPress Dashboard Message" onclick="javascript:clearDashMsg('rap');" data-uk-tooltip> <i class="fa fa-times" style="color: #FF5C85; font-size: 18px;"></i> </button> </div> <div> <textarea id="rap-dashMsg" class="uk-margin-small-top" rows="10" name="notify_msg" style="width: 90%; resize: vertical;"></textarea> </div> </div> </li> <li class="uk-panel uk-panel-space"> <div class="uk-margin-bottom"> <div class="uk-margin-small-right"> <span>Stored Messages</span> <span class="far fa-question-circle uk-text-muted" style="font-size: 14px;" title="Load or delete previously saved dashboard message + plugin slug combinations" data-uk-tooltip></span> </div> <div> <select id="rap-msgIds" style="min-width: 200px;border-color: #bbb; border-radius: 5px;"> <?php foreach ( $rapMsgIds as $id ): $safeId = htmlspecialchars($id); ?> <option value ="<?php echo $safeId; ?>"> <?php echo $safeId; ?> </option> <?php endforeach; ?> </select> <span id="savedMsgsBtnsRap"> <button type="button" class="nowrap lsws-muted-btn" title="Load the selected version" onclick="javascript:loadSavedDashMsg('rap');"> Load </button> <button type="button" class="nowrap lsws-muted-btn" title="Delete the selected version" onclick="javascript:deleteSavedDashMsg('rap');"> Delete </button> </span> </div> </div> <div class="uk-margin-large-bottom"> <div class="uk-margin-small-right"> <span>Save As</span> <span class="far fa-question-circle uk-text-muted" style="font-size: 14px;" title="Save the entered Dashbaord Message and Plugin Slug combination. Maximum of 50 characters (a-zA-Z0-9_-)." data-uk-tooltip></span> </div> <div> <input id="rap-saveKey" type="text" name="save_key" value=""/> <button class="nowrap lsws-muted-btn" type="button" name="save_msg" value="Save Message As" title="Save current message with the provided ID" onclick="javascript:saveDashMsg( document.getElementById('rap-saveKey').value, 'rap');"> Save </button> </div> </div> </li> </ul> <button class="accordion uk-margin-bottom button-primary" type="button"> <span class="uk-margin-small-left">Testing / Preview</span> </button> <div class="panel uk-padding-top uk-accordion-content-background" style="border-radius: 0 0 5px 5px;"> <div class="uk-margin uk-margin-top"> <span> Use this option to test enabling/disabling notifications on a single WordPress installation by providing it's path. </span> <br /><br /> <span class="uk-margin-small-right"> Specify a WordPress installation path </span> <input class="uk-margin-right" id="rap-wpPath" type="text" name="wpPath" size="40" value=""/> <span id="rap-notifySingleBtn"> <button class="lsws-primary-btn" type="button" name="notify_single" value="Notify Installation" title="Notify provided WordPress installation" onclick="javascript:dashNotifySingle( document.getElementById('rap-wpPath').value, document.getElementById('rap-dashMsg').value .replace(/^\s+|\s+$/g, ''), 'rap');"> Deploy / Notify </button> </span> <span id="rap-disableSingleBtn"> <button class="lsws-primary-btn" type="button" name="disable_single" value="Disable for Installation" title="Disable Dash Notifier for provided WordPress installation" onclick="javascript:dashDisableSingle( document.getElementById('rap-wpPath').value, 'rap');"> Remove </button> </span> <br /> </div> </div> <div class="uk-block uk-margin-top uk-padding-top uk-padding-bottom"> <span> Discovered WordPress installations <a href="?do=lscwp_manage"> (<b><?php echo $discoveredCnt; ?></b> Discovered )</a> </span> <br /><br /> <button type="button" name="mass-notify" value="Deploy / Notify All" class="lsws-primary-btn" title="Notify all WordPress installations discovered in 'Manage Cache Installations' using the Dashboard Notifier plugin." onclick="javascript:dashMassActionSubmit(this.name, this.value, 'rap');" > Mass Deploy / Notify </button> <button type="button" name="mass-disable-dash-notifier" value="Remove All" class="lsws-primary-btn" title="Disable and remove Dashboard Notifier Wordpress plugin from all WordPress installations discovered in 'Manage Cache Installations'." onclick="javascript:dashMassActionSubmit(this.name, this.value, 'rap');" > Mass Remove </button> </div> </div> </form> <hr /> </li> <li> <form name="bam-form" accept-charset="utf-8"> <input type="hidden" name="step" value="1"/> <input type="hidden" name="do" value="dash_notifier"/> <div class="uk-block uk-block-default uk-panel-space uk-padding-top-remove uk-padding-bottom-remove"> <div> <div class="uk-margin-bottom uk-margin-top uk-text-dark"> Broadcast simple informational messages. </div> </div> <button class="accordion uk-margin-bottom button-primary" type="button"> <i class="fa fa-info-circle fa-1x uk-margin-small-right uk-text-primary"></i> Broadcasting A Message </button> <div class="panel uk-accordion-content-background"> <div class="uk-margin uk-margin-top"> <p> On this page, a message can be sent to all <a href="?do=lscwp_manage">discovered WordPress installations</a> by providing a dashboard message. The following illustrates the dashboard messages shown to WordPress users when sending a simple plain text message. </p> <ol> <li class="uk-margin-top"> <figure class="uk-margin-small uk-margin-small-top"> <img src="<?php echo $iconDir; ?>/../images/dash-notify-simple.png" alt="send_a_message_img" class="uk-border-rounded"/> </figure> </li> </ol> <h3>Other Info</h3> <ul class="uk-list-space"> <li> WordPress users who click the "Dismiss" button will not be re-notified if the provided dashboard message matches that of the last dismissed message. </li> <li> WordPress users who click the "Never Notify Me Again" button will have the Dash Notifier plugin uninstalled and a '.dash_notifier_bypass' file created in their installation's root directory. These users will not be notified of any further messages while this file exists. </li> </ul> </div> </div> <ul class="uk-grid uk-grid-width-large-1-2 uk-grid-width-medium-1-1 uk-grid-small"> <li class="uk-panel uk-panel-space"> <div> <div> <span>WordPress Dashboard Message</span> <span class="far fa-question-circle uk-text-muted" style="font-size: 14px;" title="Message to be displayed as a Dash Notifier message. Both plain text and HTML are allowed. Newlines will be ignored in plain text." data-uk-tooltip></span> <button class="uk-margin-left uk-button-link" type="button" name="clear_msg" value="Clear Current Message" title="Clear current WordPress Dashboard Message" onclick="javascript:clearDashMsg('bam');" data-uk-tooltip> <i class="fa fa-times" style="color: #FF5C85; font-size: 18px;"></i> </button> </div> <div> <textarea id="bam-dashMsg" class="uk-margin-small-top" rows="10" name="notify_msg" style="width: 90%; resize: vertical;"></textarea> </div> </div> </li> <li class="uk-panel uk-panel-space"> <div class="uk-margin-bottom"> <div class="uk-margin-small-right"> <span>Stored Messages</span> <span class="far fa-question-circle uk-text-muted" style="font-size: 14px;" title="Load or delete previously saved dashboard message + plugin slug combinations" data-uk-tooltip></span> </div> <div> <select id="bam-msgIds" style="min-width: 200px; border-color: #bbb; border-radius: 5px;"> <?php foreach ( $bamMsgIds as $id ): $safeId = htmlspecialchars($id); ?> <option value ="<?php echo $safeId; ?>"> <?php echo $safeId; ?> </option> <?php endforeach; ?> </select> <span id="savedMsgsBtnsBam"> <button type="button" class="nowrap lsws-muted-btn" title="Load the selected version" onclick="javascript:loadSavedDashMsg('bam');"> Load </button> <button type="button" class="nowrap lsws-muted-btn" title="Delete the selected version" onclick="javascript:deleteSavedDashMsg('bam');"> Delete </button> </span> </div> </div> <div> <div class="uk-margin-small-right"> <span>Save As</span> <span class="far fa-question-circle uk-text-muted" style="font-size: 14px;" title="Save the entered Dashbaord Message and Plugin Slug combination. Maximum of 50 characters (a-zA-Z0-9_-)." data-uk-tooltip></span> </div> <div> <input id="bam-saveKey" type="text" name="save_key" value=""/> <button class="nowrap lsws-muted-btn" type="button" name="save_msg" value="Save Message As" title="Save current message with the provided ID" onclick="javascript:saveDashMsg( document.getElementById('bam-saveKey').value, 'bam');"> Save </button> </div> </div> </li> </ul> <button class="accordion uk-margin-bottom button-primary" type="button"> <span class="uk-margin-small-left">Testing / Preview</span> </button> <div class="panel uk-padding-top uk-accordion-content-background" style="border-radius: 0 0 5px 5px;"> <div class="uk-margin uk-margin-top"> <span> Use this option to test enabling/disabling notifications on a single WordPress installation by providing it's path. </span> <br /><br /> <span class="uk-margin-small-right"> Specify a WordPress installation path </span> <input class="uk-margin-right" id="bam-wpPath" type="text" name="wpPath" size="40" value=""/> <span id="bam-notifySingleBtn"> <button class="lsws-primary-btn" type="button" name="notify_single" value="Notify Installation" title="Notify provided WordPress installation" onclick="javascript:dashNotifySingle( document.getElementById('bam-wpPath').value, document.getElementById('bam-dashMsg').value .replace(/^\s+|\s+$/g, ''), 'bam');"> Deploy / Notify </button> </span> <span id="bam-disableSingleBtn"> <button class="lsws-primary-btn" type="button" name="disable_single" value="Disable for Installation" title="Disable Dash Notifier for provided WordPress installation" onclick="javascript:dashDisableSingle( document.getElementById('bam-wpPath').value, 'bam');"> Remove </button> </span> <br /> </div> </div> <div class="uk-block uk-margin-top uk-padding-top uk-padding-bottom"> <span> Discovered WordPress installations <a href="?do=lscwp_manage"> (<b><?php echo $discoveredCnt; ?></b> Discovered) </a> </span> <br /><br /> <button type="button" name="mass-notify" value="Deploy / Notify All" class="lsws-primary-btn" title="Notify all WordPress installations discovered in 'Manage Cache Installations' using the Dashboard Notifier plugin." onclick="javascript:dashMassActionSubmit(this.name, this.value, 'bam');" > Mass Deploy / Notify </button> <button type="button" name="mass-disable-dash-notifier" value="Remove All" class="lsws-primary-btn" title="Disable and remove Dashboard Notifier Wordpress plugin from all WordPress installations discovered in 'Manage Cache Installations'." onclick="javascript:dashMassActionSubmit(this.name, this.value, 'bam');" > Mass Remove </button> <br /> </div> </div> </form> <hr /> </li> </ul> <?php $d = array( 'back' => 'Back' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); ?> <script type="text/javascript">lswsInitDropdownBoxes();</script> PK �S�Z���� � Tpl/MassDashDisableProgress.tplnu �[��� <?php use \Lsc\Wp\View\Model\MassDashDisableProgressViewModel as ViewModel; $icon = $this->viewModel->getTplData(ViewModel::FLD_ICON); $installsCount = $this->viewModel->getTplData(ViewModel::FLD_INSTALLS_COUNT); $d = array( 'title' => 'Mass Notifying All Discovered WordPress Installations...', 'icon' => $icon ); $this->loadTplBlock('Title.tpl', $d); ?> <div id="progress-box" class="msg-box"> Attempting to disable Dash Notifier for <span id="currIndex">0</span> out of <span id="totalCount"><?php echo $installsCount; ?></span> ... </div> <div> Currently attempting to disable Dash Notifier for all discovered WordPress installations. Installations detected with "Error" status will be bypassed. Please be patient. </div> <?php $msgs = array( "<span id=\"bypassedCount\"><b>0</b></span> WordPress installation(s) bypassed.", "Dash Notifier disabled for <span id=\"succCount\"><b>0</b></span> WordPress installation(s).", "Dash Notifier failed to disable for <span id=\"failCount\" class=\"red\"><b>0</b></span> WordPress " . "installation(s)." ); $d = array( 'msgs' => $msgs, 'class' => 'msg-info', ); $this->loadTplBlock('DivMsgBox.tpl', $d); $d = array( 'back' => 'OK', 'backDo' => 'dash_notifier', 'visibility' => 'hidden' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); ?> <button class="accordion accordion-error" type="button" style="display: none"> Error Messages <span id ="errMsgCnt" class="badge errMsg-badge">0</span> </button> <div class="panel panel-error"> <?php $d = array( 'id' => 'errMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <button class="accordion accordion-success" type="button" style="display: none"> Success Messages <span id="succMsgCnt" class="badge succMsg-badge">0</span> </button> <div class="panel panel-success"> <?php $d = array( 'id' => 'succMsgs', 'class' => 'scrollable', 'title' => 'Success Messages:', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <script type="text/javascript">lswsInitDropdownBoxes();</script> <script type="text/javascript">dashMassDisableUpdate();</script> PK �S�Z�O|�� � Tpl/Blocks/InputSubmitBtn.tplnu �[��� <?php /** * Expects: $d['name'], $d['value'] * Optional: $d['class'], $d['title'], $d['confirm'], $d['onclick'], * $d['attributes'], $d['state'], and $d['text'] */ ?> <button type="submit" name="<?php echo $d['name']; ?>" value="<?php echo $d['value']; ?>" <?php if ( isset($d['class']) ) : ?> class="<?php echo $d['class']; ?>" <?php endif; if ( isset($d['title']) ): ?> title="<?php echo $d['title']; ?>" <?php endif; if ( isset($d['confirm']) ) : ?> onclick="return confirm('<?php echo $d['confirm']; ?>')" <?php elseif ( isset($d['onclick']) ): ?> onclick="return <?php echo $d['onclick']; ?>" <?php endif; echo (isset($d['attributes'])) ? " {$d['attributes']}" : ''; echo (isset($d['state'])) ? " {$d['state']}" : ''; ?> > <?php echo (isset($d['text'])) ? $d['text'] : $d['value']; ?> </button> PK �S�Z�� `� � Tpl/ScanProgressStep1.tplnu �[��� <?php /** * @since 1.13.3 */ use \Lsc\Wp\View\Model\ScanProgressStepViewModel as ViewModel; $title = $this->viewModel->getTplData(ViewModel::FLD_TITLE); $icon = $this->viewModel->getTplData(ViewModel::FLD_ICON); $totalCount = $this->viewModel->getTplData(ViewModel::FLD_TOTAL_COUNT); $mgrStep = $this->viewModel->getTplData(ViewModel::FLD_MGR_STEP); $d = array( 'title' => $title, 'icon' => $icon ); $this->loadTplBlock('Title.tpl', $d); ?> <div id="progress-box" class="msg-box"> Scanning <span id="currIndex">0</span> out of <span id="totalCount"><?php echo $totalCount; ?></span> ... </div> <div> Currently scanning known document roots for all WordPress Installations. <br /> If performing a <b>Scan/Re-scan</b>, all installations will be found and added to the Cache Manager list. <br /> If <b>Discovering New</b>, only installations belonging to users not already in the Cache Manager list will be discovered. </div> <br /> <?php $d = array( 'back' => 'Back', 'backDo' => 'lscwp_manage', 'visibility' => 'hidden' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); ?> <button class="accordion accordion-error" type="button" style="display: none"> Error Messages <span id ="errMsgCnt" class="badge errMsg-badge">0</span> </button> <div class="panel panel-error"> <?php $d = array( 'id' => 'errMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <script type="text/javascript">lswsInitDropdownBoxes();</script> <script type="text/javascript"> lscwpScanProgressStep1Update('<?php echo $mgrStep; ?>'); </script>PK �S�Z���n n Tpl/VersionChange.tplnu �[��� <?php use \Lsc\Wp\View\Model\VersionChangeViewModel as ViewModel; $icon = $this->viewModel->getTplData(ViewModel::FLD_ICON); $installsCount = $this->viewModel->getTplData(ViewModel::FLD_INSTALLS_COUNT); $verNum = $this->viewModel->getTplData(ViewModel::FLD_VER_NUM); $d = array( 'title' => 'Updating LiteSpeed Cache Plugins...', 'icon' => $icon ); $this->loadTplBlock('Title.tpl', $d); ?> <div id="progress-box" class="msg-box"> Attempting to upgrade <span id="currIndex">0</span> out of <span id="totalCount"><?php echo $installsCount; ?></span> ... </div> <div> Currently upgrading all known LiteSpeed Cache plugin installations to version <b><?php echo htmlspecialchars($verNum); ?></b>. Please be patient. </div> <br /> <?php $d = array( 'back' => 'Back', 'backDo' => 'lscwpVersionManager', 'visibility' => 'hidden' ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); ?> <button class="accordion accordion-error" type="button" style="display: none"> Error Messages <span id ="errMsgCnt" class="badge errMsg-badge">0</span> </button> <div class="panel panel-error"> <?php $d = array( 'id' => 'errMsgs', 'class' => 'scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); ?> </div> <script type="text/javascript">lswsInitDropdownBoxes();</script> <script type="text/javascript">lscwpVersionChangeUpdate();</script>PK �S�Zn�� � Tpl/VersionManage.tplnu �[��� <input type="hidden" name="act" /> <input type="hidden" name="version_num" /> <?php use \Lsc\Wp\View\Model\VersionManageViewModel as ViewModel; $icon = $this->viewModel->getTplData(ViewModel::FLD_ICON); $activeVer = $this->viewModel->getTplData(ViewModel::FLD_ACTIVE_VER); $verList = $this->viewModel->getTplData(ViewModel::FLD_VERSION_LIST); $allowedList = $this->viewModel->getTplData(ViewModel::FLD_ALLOWED_VER_LIST); $state = $this->viewModel->getTplData(ViewModel::FLD_STATE); $errMsgs = $this->viewModel->getTplData(ViewModel::FLD_ERR_MSGS); $d = array( 'title' => 'LiteSpeed Cache Plugin Version Manager', 'icon' => $icon ); $this->loadTplBlock('Title.tpl', $d); if ( !empty($errMsgs) ) { $d = array( 'msgs' => $errMsgs, 'class' => 'msg-error scrollable', ); $this->loadTplBlock('DivMsgBox.tpl', $d); } $d = array( 'title' => '<b>Set Active Version</b>' ); $this->loadTplBlock('SectionTitle.tpl', $d); ?> <?php if ( empty($allowedList) ): ?> <div> <p> [Feature Disabled] Unable to find/retrieve LSCWP version list. </p> </div> <?php else: ?> <div> <span class="hint"> Sets the LiteSpeed Cache plugin version to be used in all future "Enable" operations. </span> </div> <br /> <table class="vermgr"> <tbody> <tr> <td style="padding-top: 2px;"> Current Active Version: <span style="color: #0066CC;"> <?php echo ($activeVer) ? htmlspecialchars($activeVer) : 'Not Selected'; ?> </span> </td> <td> New Active Version <select id="lscwpActiveSelector"> <?php foreach ( $allowedList as $ver ): $safeVer = htmlspecialchars($ver); ?> <option value ="<?php echo $safeVer; ?>"> <?php echo $safeVer; ?> </option> <?php endforeach; ?> </select> </td> <td id="switchVerBtn"> <button type="button" class="nowrap lsws-primary-btn" title="Switch LiteSpeed Cache plugin to the version selected" onclick="javascript:lscwpVermgr('switchTo');"> Switch Version </button> </td> </tr> </tbody> </table> <?php endif; ?> <br /> <?php $d = array( 'title' => '<b>Force Version Change For All Existing Installations</b>' ); $this->loadTplBlock('SectionTitle.tpl', $d); if ( $state == ViewModel::ST_SCAN_NEEDED ): ?> <div> <p> Cache Management list could not be read. Please go to <a href="?do=lscwp_manage" title="Go to Manage Cache Installations"> Manage Cache Installations </a> and Scan/Re-scan to discover active WordPress installations. </p> </div> <?php elseif ( $state == ViewModel::ST_NO_NON_ERROR_INSTALLS_DISCOVERED): ?> <div> <p> No WordPress installations with a non-error status discovered in the previous scan (Installations with a Cache Status of "Error" are not counted). If you have any newly installed WordPress installations, please go to <a href="?do=lscwp_manage" title="Go to Manage Cache Installations"> Manage Cache Installations </a> and Re-scan/Discover New. </p> </div> <?php elseif ( empty($verList) ): ?> <div> <p> [Feature Disabled] Unable to find/retrieve LSCWP version list. </p> </div> <?php else: ?> <div> <span class="hint"> Upgrades active LiteSpeed Cache plugins matching the selection in the "From Version" list to the version chosen under "Upgrade To". <br /> Flagged installations will be skipped. </span> </div> <br /><br /> <table id="lscwp-upgrade-mgr"> <tbody> <tr> <td valign="top" style="margin-top: 9px;">From Version(s):</td> <td align="center"> <table class="datatable nowrap"> <thead> <tr> <th style="text-align: center;"> <input type="checkbox" onClick="selectAll(this)" /> Select All </th> </tr> </thead> <tbody> <?php foreach ( $verList as $ver ): $safeVer = htmlspecialchars($ver); ?> <tr> <td> <input type="checkbox" name="selectedVers[]" value="<?php echo $safeVer; ?>" /> <?php echo $safeVer; ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </td> <td valign="top"> Upgrade To: <select id="lscwpUpgradeSelector"> <?php foreach ( $allowedList as $ver ): $safeVer = htmlspecialchars($ver); ?> <option value ="<?php echo $safeVer; ?>"> <?php echo $safeVer; ?> </option> <?php endforeach; ?> </select> </td> <td valign="top" align="center"> <button type="button" title="Force version change for all matching selections" onclick="javascript:lscwpVermgr('upgradeTo');" class="upgrade-btn lsws-primary-btn"> Upgrade </button> </td> </tr> </tbody> </table> <?php endif; $d = array( 'back' => 'Back', ); $this->loadTplBlock('ButtonPanelBackNext.tpl', $d); PK �S�Zc��۱ � Tpl/MissingTpl.tplnu �[��� <?php use \Lsc\Wp\View\Model\MissingTplViewModel as ViewModel; $msg = $this->viewModel->getTplData(ViewModel::FLD_MSG); ?> <div> <p> <?php echo $msg; ?> </p> </div> PK �S�ZW�] ] "