示例#1
0
} else {
    // defines for Joomla 1.0
}
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "config.php";
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "class.ip2country.php";
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.php";
require_once JPATH_BASE2 . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.block.php";
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;
示例#2
0
} else {
    define('_VALID_MOS', 1);
    require_once JPATH_BASE . DS . 'globals.php';
    require_once JPATH_BASE . DS . 'configuration.php';
    require_once JPATH_BASE . DS . 'includes' . DS . 'joomla.php';
}
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "config.php";
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.php";
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.block.php";
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.cache.php";
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.config.php";
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.goal.php";
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.helper.php";
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.stat.php";
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.visit.php";
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "class.joomlawatch.html.php";
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "admin.joomlawatch.html.php";
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "class.ip2country.php";
$joomlaWatch = new JoomlaWatch();
$joomlaWatchHTML = new JoomlaWatchHTML("/components/com_joomlawatch");
$adminJoomlaWatchHTML = new AdminJoomlaWatchHTML("/administrator");
$joomlaWatch->config->checkPermissions();
require JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "lang" . DS . $joomlaWatch->config->getLanguage() . ".php";
echo $adminJoomlaWatchHTML->renderAdminStyles();
echo $joomlaWatchHTML->renderPrint();
echo $joomlaWatchHTML->renderCloseWindow();
echo $joomlaWatchHTML->renderTrends();
?>