Viewing File: /usr/local/cpanel/base/frontend/jupiter/ls_web_cache_manager/core/View/Tpl/Settings.tpl
<?php
use LsUserPanel\View\Model\SettingsViewModel as ViewModel;
$logFile = $this->viewModel->getTplData(ViewModel::FLD_LOG_FILE);
$currLogLvl = $this->viewModel->getTplData(ViewModel::FLD_CURR_LOG_LVL);
$logLvls = $this->viewModel->getTplData(ViewModel::FLD_LOG_LVLS);
$redisOnly = $this->viewModel->getTplData(ViewModel::FLD_REDIS_ONLY);
$errMsgs = $this->viewModel->getTplData(ViewModel::FLD_ERR_MSGS);
$succMsgs = $this->viewModel->getTplData(ViewModel::FLD_SUCC_MSGS);
$errMsgCnt = count($errMsgs);
$succMsgCnt = count($succMsgs);
$msgsDisplay = ($errMsgCnt > 0 || $succMsgCnt > 0) ? 'initial' : 'none';
?>
<input type="hidden" name="lsredis" value='0'/>
<div class="uk-container">
<div id="display-msgs" style="display:<?php echo $msgsDisplay; ?>;">
<button
class="accordion accordion-error"
type="button"
style="display: <?php echo ($errMsgCnt > 0) ? 'initial' : 'none'; ?>"
>
<?php echo _('Error Messages'); ?>
<span id ="errMsgCnt" class="badge errMsg-badge">
<?php echo $errMsgCnt; ?>
</span>
</button>
<div class="panel panel-error">
<?php
$this->loadTplBlock(
'DivMsgBox.tpl',
[
'id' => 'errMsgs',
'msgs' => $errMsgs,
'class' => 'scrollable'
]
);
?>
</div>
<div
id="succMsgs"
style="display: <?php echo ($succMsgCnt > 0) ? 'initial' : 'none'; ?>"
>
<ul>
<?php
if ( !is_array($succMsgs) ) {
$succMsgs = [ $succMsgs ];
}
foreach ( array_map('htmlspecialchars', $succMsgs) as $succMsg ) :
?>
<li><?php echo $succMsg; ?></li>
<?php endforeach; ?>
</ul>
</div>
</div>
<h2 class="uk-margin-bottom-remove ls-text-bold ls-text-slateblue">
<i class="uk-icon uk-icon-cog ls-text-skyblue"> </i>
<?php echo _('Settings'); ?>
</h2>
<hr
class="uk-margin-top-remove uk-width-large-3-10 uk-width-medium-1-1
uk-width-small-1-1 ls-border"
/>
<div id="settings">
<span class="setting-title"><?php echo _('Log File Level'); ?></span>
<label for="lscmLogLvl"></label>
<select id="lscmLogLvl">
<?php foreach ( $logLvls as $lvl => $val ) : ?>
<option
value="<?php echo $val; ?>"
<?php if ( $val == $currLogLvl ) { echo 'selected="selected"'; } ?>
>
<?php echo $lvl; ?>
</option>
<?php endforeach; ?>
</select>
<div class="setting-descr">
<?php echo _('Log file location:') . " $logFile"; ?>
</div>
</div>
<!--suppress JSUnresolvedReference -->
<button
class="uk-button uk-button-muted uk-margin uk-margin-large
uk-width-medium-1-10 uk-width-small-1-5"
onclick="lswsform.do.value = 'main';
lswsform.lsredis.value = (ls_redis ? '1' : '0');
lswsform.submit();"
>
<?php echo _('Back'); ?>
</button>
<button
type="button"
class="uk-button uk-button-primary ls-button-padding"
title="Switch LiteSpeed Cache plugin to the version selected"
onclick="lscmSaveSettings();"
>
<?php echo _('Save'); ?>
</button>
</div>
<script type="text/javascript">lswsInitDropdownBoxes();</script>
Back to Directory
File Manager