芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/site/components/com_joomlawatch/class.joomlawatch.goal.html.php
joomlaWatch = $joomlaWatch; $this->joomlaWatchHTML = new JoomlaWatchHTML($joomlaWatch); $this->visitHistory = new JoomlaWatchVisitHistory($joomlaWatch); } /* goal */ function renderActionButtons($id) { $output = ""; $output .= "
"; $output .= " "; $output .= "
"; return $output; } /* goal */ function renderCell($style, $content, $doNotTruncate = false) { if (!$doNotTruncate) $content = $this->joomlaWatch->helper->truncate($content, $this->joomlaWatch->config->getConfigValue('JOOMLAWATCH_TRUNCATE_GOALS')); $output = "
$content
"; return $output; } /* goal */ function renderGoals($result = "") { echo ("
" . _JW_GOALS_TITLE . JoomlaWatchHTML :: renderOnlineHelp(DB_KEY_GOALS) . "
"); if ($result) { echo (_JW_SUCCESS . "
"); } include("view".DS."goals.php"); } /* goal */ function renderEnabled($id, $disabled) { if ($disabled) $output = "
"; else $output = "
"; return $output; } /* goal */ function renderBackToGoals($result = "") { $output = "
<< " . _JW_BACK . "
"; return $output; } /* goal */ function renderGoalEdit($id) { $values = $this->joomlaWatch->goal->getGoalById((int) $id); $this->renderGoalForm(_JW_GOALS_UPDATE . " $id", $values); } /* goal */ function renderGoalsInsert($id = null) { $values = ""; if (isset($id)) { $rows = $this->joomlaWatch->visit->getJoinedURIRowById($id); if (!$rows) { $rows = $this->visitHistory->getJoinedURIRowById($id); } $row = $rows[0]; $values['uri_condition'] = $row->uri; $values['title_condition'] = $row->title; $values['username_condition'] = $row->username; $values['ip_condition'] = $row->ip; /* if(sizeof($rows) > 1) { $previousUriRow = $rows[1]; $values['came_from_condition'] = $previousUriRow->uri; } */ $values['came_from_condition'] = $row->referer; $values['country_condition'] = $this->joomlaWatch->helper->countryByIp($row->ip); } else if (@JoomlaWatchHelper::requestGet('country')) { $country = urldecode(@JoomlaWatchHelper::requestGet('country')); $values['name'] = _JW_GOALS_COUNTRY.": $country"; $values['country_condition'] = $country; } else if (@JoomlaWatchHelper::requestGet('from') && @JoomlaWatchHelper::requestGet('uri')) { $from = urldecode(@JoomlaWatchHelper::requestGet('from')); $to = urldecode(@JoomlaWatchHelper::requestGet('uri')); $fromTitle = $this->joomlaWatch->visit->getTitleByUri($from); if (@!$fromTitle) { $fromTitle = $from; } $toTitle = $this->joomlaWatch->visit->getTitleByUri($to); if (@!$toTitle) { $toTitle = $to; } $values['name'] = _JW_STATS_FROM.": $fromTitle "." "._JW_STATS_TO.": $toTitle"; $values['came_from_condition'] = $from; $values['uri_condition'] = $to; } else if (@JoomlaWatchHelper::requestGet('uri')) { $to = urldecode(@JoomlaWatchHelper::requestGet('uri')); $toTitle = $this->joomlaWatch->visit->getTitleByUri($to); if (!$toTitle) { $toTitle = $to; } $values['name'] = _JW_STATS_TO.": $toTitle"; $values['uri_condition'] = $to; } $this->renderGoalForm(_JW_GOALS_INSERT, $values); } function renderGoalForm($action, $values = "") { include("view".DS."goal.php"); } }