Example #1
0
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.cache.php";
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.config.php";
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.goal.php";
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.helper.php";
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.stat.php";
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.visit.php";
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.html.php";
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "admin.joomlawatch.html.php";
$adminJoomlaWatchHTML = new AdminJoomlaWatchHTML("/administrator");
$joomlaWatch = new JoomlaWatch();
$joomlaWatchHTML = new JoomlaWatchHTML("/administrator");
$action = @$_GET['action'];
switch ($task) {
    case "licenseAccepted":
        $joomlaWatch->config->setLicenseAccepted();
        $adminJoomlaWatchHTML->renderAdminStyles();
        $adminJoomlaWatchHTML->renderHeader();
        $adminJoomlaWatchHTML->renderBody($option);
        break;
    case "trends":
        $adminJoomlaWatchHTML->renderAdminStyles();
        $adminJoomlaWatchHTML->renderHeader();
        echo $joomlaWatchHTML->renderTrends();
        break;
    case "credits":
        $adminJoomlaWatchHTML->renderAdminStyles();
        $adminJoomlaWatchHTML->renderHeader();
        echo $adminJoomlaWatchHTML->renderCredits();
        break;
    case "goals":
        switch ($action) {