コード例 #1
0
ファイル: stats.php プロジェクト: bizanto/Hooked
    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 . "class.ip2country.php";
$joomlaWatch = new JoomlaWatch();
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "lang" . DS . $joomlaWatch->config->getLanguage() . ".php";
$joomlaWatchHTML = new JoomlaWatchHTML("/components/com_joomlawatch");
$joomlaWatch->config->checkPermissions();
$t1 = $joomlaWatch->helper->getServerTime() + microtime();
$last = $joomlaWatch->visit->getLastVisitId();
//$params = new MosParameters("");
$thisWeek = $joomlaWatch->helper->getWeekByTimestamp($joomlaWatch->helper->getServerTime());
if (@$_GET['day']) {
    $day = @$_GET['day'];
} else {
    $day = $joomlaWatch->helper->jwDateToday();
}
if (@$_GET['week']) {
    $week = @$_GET['week'];
} else {
    $week = $joomlaWatch->helper->getWeekByTimestamp($joomlaWatch->helper->getServerTime());
}
コード例 #2
0
ファイル: admin.joomlawatch.php プロジェクト: bizanto/Hooked
}
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;
    case "credits":
        $adminJoomlaWatchHTML->renderAdminStyles();
コード例 #3
0
ファイル: joomlawatch.css.php プロジェクト: bizanto/Hooked
}
if (JOOMLAWATCH_JOOMLA_15) {
    if (!defined('JPATH_ROOT')) {
        require_once JPATH_BASE . DS . 'includes' . DS . 'defines.php';
    }
    if (!defined('JDEBUG')) {
        require_once JPATH_BASE . DS . 'includes' . DS . 'framework.php';
    }
    require_once JPATH_BASE . DS . 'libraries' . DS . 'joomla' . DS . 'application' . DS . 'module' . DS . 'helper.php';
    $mainframe =& JFactory::getApplication('site');
    $mainframe->initialise();
} 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 . "class.ip2country.php";
$joomlaWatch = new JoomlaWatch();
$joomlaWatchHTML = new JoomlaWatchHTML("/components/com_joomlawatch/css/");
$joomlaWatchHTML->renderAdminStyles();
コード例 #4
0
 function renderBots()
 {
     $rows = $this->joomlaWatch->visit->getBots();
     $this->lastDate = "";
     $output = JoomlaWatchHTML::renderTable($rows, true);
     return $output;
 }
コード例 #5
0
    function renderGoalForm($action, $values = "")
    {
        ?>
<center>

<form action='<?php 
        echo $this->mosConfig_live_site;
        ?>
/administrator/index2.php?option=com_joomlawatch&task=goals&action=save' method='POST'>
<?php 
        $color = "";
        ?>
<table width='80%' cellpadding='3'>
<tr><td valign='top' align='left' colspan='3'>
<h2><?php 
        echo $action;
        echo JoomlaWatchHTML::renderOnlineHelp("goals-form");
        ?>
</h2>
<div align='center' style='border:1px solid black; width:600px; text-align: justify; text-justify: distribute; padding: 5px;'>
<?php 
        echo _JW_DESC_GOALS_INSERT;
        ?>
</div>
<br/>
</td></tr>
<tr>
<tr><?php 
        echo $this->renderInputField("NAME", $values, $color);
        ?>
</tr>
<tr><?php 
        echo $this->renderInputField("URI_CONDITION", $values, $color);
        ?>
</tr>
<tr><?php 
        echo $this->renderInputField("TITLE_CONDITION", $values, $color);
        ?>
</tr>
<tr><?php 
        echo $this->renderInputField("USERNAME_CONDITION", $values, $color);
        ?>
</tr>
<tr><?php 
        echo $this->renderInputField("IP_CONDITION", $values, $color);
        ?>
</tr>
<tr><?php 
        echo $this->renderInputField("CAME_FROM_CONDITION", $values, $color);
        ?>
</tr>
<tr><?php 
        echo $this->renderInputField("COUNTRY_CONDITION", $values, $color);
        ?>
</tr>
<tr><td></td></tr>
<tr><td align='right' style='color: gray;'><b><?php 
        echo _JW_GOALS_ADVANCED . "&nbsp;:";
        ?>
</b></td></tr>
<tr><?php 
        echo $this->renderInputField("GET_VAR", $values, $color);
        ?>
</tr>
<tr><?php 
        echo $this->renderInputField("GET_CONDITION", $values, $color);
        ?>
</tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><?php 
        echo $this->renderInputField("POST_VAR", $values, $color);
        ?>
</tr>
<tr><?php 
        echo $this->renderInputField("POST_CONDITION", $values, $color);
        ?>
</tr>
<tr></tr>
<tr><td align='right' style='color: gray;'><b><?php 
        echo _JW_GOALS_ACTION . "&nbsp;:";
        ?>
</b></td></tr>
<tr><?php 
        echo $this->renderInputField("BLOCK", $values, $color);
        ?>
</tr>
<tr><?php 
        echo $this->renderInputField("REDIRECT", $values, $color);
        ?>
</tr>
<tr><td></td></tr>
<tr><td></td></tr>
</tr>
<tr><td colspan='3' align='center'>
<br/><br/>
<input type='submit' value='<?php 
        echo $action;
        ?>
' />
<?php 
        if (@$values) {
            ?>
<input type='hidden' name='id' value='<?php 
            echo @$values['id'];
            ?>
' />
<?php 
        }
        ?>
</td>
</table>
</form>
</center>
<?php 
    }
コード例 #6
0
ファイル: visits.php プロジェクト: bizanto/Hooked
}
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 . "class.ip2country.php";
//for joomla 1.0 only if (file_exists($mosConfig_absolute_path."/language/english.php")) require_once ("../../language/english.php");
$joomlaWatch = new JoomlaWatch();
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "lang" . DS . $joomlaWatch->config->getLanguage() . ".php";
$joomlaWatchHTML = new JoomlaWatchHTML("/components/com_joomlawatch");
$joomlaWatch->config->checkPermissions();
$t1 = $joomlaWatch->helper->getServerTime() + microtime();
$last = $joomlaWatch->visit->getLastVisitId();
echo "{$last}\n\n";
if (JOOMLAWATCH_JOOMLA_15) {
    require_once JPATH_BASE . DS . 'administrator' . DS . 'includes' . DS . 'helper.php';
    $params = new JParameter('');
    include JPATH_BASE . DS . "modules" . DS . "mod_whosonline" . DS . "mod_whosonline.php";
} else {
    if (@file_exists(JPATH_BASE . DS . "language" . DS . "english.php")) {
        require_once JPATH_BASE . DS . "language" . DS . "english.php";
    }
    $params = new MosParameters('');
    echo "<span style='color: gray;'>";
    include JPATH_BASE . DS . "modules" . DS . "mod_whosonline.php";
コード例 #7
0
ファイル: tooltip.php プロジェクト: bizanto/Hooked
    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 . "class.ip2country.php";
$joomlaWatch = new JoomlaWatch();
require_once JPATH_BASE . DS . "components" . DS . "com_joomlawatch" . DS . "lang" . DS . $joomlaWatch->config->getLanguage() . ".php";
$joomlaWatchHTML = new JoomlaWatchHTML("/components/com_joomlawatch");
$joomlaWatch->config->checkPermissions();
echo $joomlaWatchHTML->renderCloseWindow();
?>
<iframe width="<?php 
echo $joomlaWatch->config->getConfigValue('JOOMLAWATCH_TOOLTIP_WIDTH');
?>
" height="<?php 
echo $joomlaWatch->config->getConfigValue('JOOMLAWATCH_TOOLTIP_HEIGHT');
?>
" frameborder="0" marginwidth="0" marginheight="0" src="<?php 
echo $joomlaWatch->helper->getIP2LocationURL(@$_GET['ip']);
?>
" />

コード例 #8
0
ファイル: trendtooltip.php プロジェクト: bizanto/Hooked
} 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();
?>