芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/site/components/com_joomlawatch/class.joomlawatch.html.php
joomlaWatch = new JoomlaWatch(); } function renderInputElement($key, & $color, $addToDescription = "") { if (!@ $color) { $color = "#f7f7f7"; } else { $color = ""; } $value = ""; $value = $this->joomlaWatch->config->getConfigValue("JOOMLAWATCH_" . $key); $defaultValue = @ constant("JOOMLAWATCH_" . $key); $type = @ constant("TYPE_JOOMLAWATCH_" . $key); if ((strcmp($value, $defaultValue)) && ($type != "checkbox") && ($type != "largetext")) { $changed = "
(" . _JW_SETTINGS_DEFAULT . ":
$defaultValue
" . ")
"; } $desc = ""; if ($type == "number" && !(is_numeric($value))) { $desc .= "
WARNING: The value you entered is not a number. JoomlaWatch will not work properly!
"; } $desc .= constant("_JW_DESC_" . $key); $desc .= $addToDescription; $keyShortened = str_replace("JOOMLAWATCH_", "", $key); $output = "
$keyShortened
"; $key = "JOOMLAWATCH_" . $key; switch ($type) { case "select": { if ($value && $value != "Off") $checked = "checked"; else $checked = ""; $output .= "
"; $languages = $this->joomlaWatch->helper->getAvailableLanguages(); foreach ($languages as $language) { if ($value == $language) { $selected = "selected"; } else { $selected = ""; } $output .= "
$language
"; } $output .= "
"; break; } case "checkbox": { if ($value && $value != "Off") $checked = "checked"; else $checked = ""; $output .= "
"; break; } case "text": { $output .= "
$value</textarea>"; break; } case "largetext": { $output .= "
$value</textarea>"; break; } default: { $output .= "
"; break; } } $output .= "
" . @ $changed . " $desc
"; return $output; } function renderPrint() { $group = @ JoomlaWatchHelper::requestGet('group'); $name = @ JoomlaWatchHelper::requestGet('name'); $date = @ JoomlaWatchHelper::requestGet('date'); $task = @ JoomlaWatchHelper::requestGet('task'); $action = @ JoomlaWatchHelper::requestGet('action'); $print = @ JoomlaWatchHelper::requestGet('print'); if (@ $print) { $output = ""; } else { $output = ("
"); } return $output; } function renderOnlineHelp($id) { //TODO: should be done separated if (@$this->joomlaWatch) { $liveSite = $this->joomlaWatch->config->getLiveSite(); } else { $liveSite = $this->joomlaWatch->config->getLiveSite(); } $output = "
"; return $output; } function renderCloseWindow() { $output = "
X " . _JW_TOOLTIP_WINDOW_CLOSE . "
"; return $output; } function renderInputField($id, $values, & $color, $required = false) { if (!@ $values) $values = ""; if (!@ $color) $color = ""; $name = @constant("_JW_GOALS_" . $id); if ($values) $value = @ $values[strtolower($id)]; if (!@ $color) $color = "#f7f7f7"; else $color = ""; $desc = @constant("_JW_DESC_GOALS_" . $id); if ($required == true) { $requiredText = "
(* required)
"; } else { $requiredText = ""; } $output = "
$name :
$requiredText
$desc
"; return $output; } function renderDateControl() { if (@ JoomlaWatchHelper::requestGet('day')) { $day = @ JoomlaWatchHelper::requestGet('day'); } else { $day = $this->joomlaWatch->helper->jwDateToday(); } $prev = $day -1; $next = $day +1; $today = $this->joomlaWatch->helper->jwDateToday(); include ("view".DS."datecontrol.php"); } function renderAdminStyles() { require_once ("lang" . DS . $this->joomlaWatch->config->getLanguage().".php"); include("view".DS."adminstyles.php"); } function renderResetData($result = "") { if ($result) { echo ("
" . _JW_RESET_SUCCESS . "
"); } else { echo ("
" . _JW_RESET_ERROR . "
"); } } function renderHeader() { // if ($this->joomlaWatch->config->getTrialVersionTimeLeft() > 0 || $this->joomlaWatch->config->isAdFree()) { include("view".DS."adminheader.php"); // } } function renderBody($option) { include("view".DS."adminbody.php"); } function renderSettings($result = "") { include("view".DS."settings.php"); } function renderCredits() { include("view".DS."credits.php"); } function renderAcceptLicense() { include("view".DS."license.php"); } function renderAdFreeLicense() { if ($this->joomlaWatch->config->isAdFree()) { include("view".DS."license-commercial.php"); } else { include("view".DS."license-free.php"); } } function renderAntiSpam() { $joomlaWatchBlockHTML = new JoomlaWatchBlockHTML($this->joomlaWatch); include("view".DS."antispam.php"); } function renderStatus() { include("view".DS."status.php"); } function renderVisitsHistory() { $joomlaWatchVisitHistoryHTML = new JoomlaWatchVisitHistoryHTML($this->joomlaWatch); include("view".DS."history.php"); } function renderEmails() { if ($this->joomlaWatch->config->getConfigValue("JOOMLAWATCH_EMAIL_REPORTS_ADDRESS") == "@") { $user = JoomlaWatchHelper::getUser(); $userEmail = $user->email; $this->joomlaWatch->config->saveConfigValue("JOOMLAWATCH_EMAIL_REPORTS_ADDRESS", $userEmail); } $joomlaWatchStatHTML = new JoomlaWatchStatHTML($this->joomlaWatch); include("view".DS."emails.php"); } function renderTrialVersionInfo() { if (!$this->joomlaWatch->config->isAdFree()) { $timeLeft = $this->joomlaWatch->config->getTrialVersionTimeLeft(); if ($timeLeft > 0) { $output = sprintf("
This is a 30-day Evaluation Version. Days Left:
%d
. Please purchase the lifetime
JoomlaWatch license for your domain
for this and upcoming versions.
", $timeLeft); } else { echo "
Your trial version has expired. Please purchase JoomlaWatch
"; include ("view".DS."license-free.php"); return; } } return $output; } } ?>