예제 #1
0
 *	(at your option) any later version.
 *
 *	N/X is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with N/X; if not, write to the Free Software
 *	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 **********************************************************************/
require_once "../../../config.inc.php";
$auth = new auth("TRAFFIC");
require_once $c["path"] . "modules/stats/statsinfo.php";
require_once $c["path"] . "modules/stats/phpOpenTracker.php";
$statsinfo = new Statsinfo();
$diagram = value("diagram", "NOSPACES");
$width = value("width", "NUMERIC", 600);
$height = value("height", "NUMERIC", 250);
$hours = false;
$weekday = false;
if (substr($diagram, 0, 8) == "nxhours:") {
    $hours = true;
    $diagram = substr($diagram, 8);
}
if (substr($diagram, 0, 11) == "nxweekdays:") {
    $weekdays = true;
    $diagram = substr($diagram, 11);
}
if (substr($diagram, 0, 4) == "top:") {
    $top = true;
예제 #2
0
require_once "statsmenu.php";
require_once "widgets/statsdiagram.php";
require_once "widgets/statssummary.php";
require_once "widgets/print_button.php";
require_once "phpOpenTracker.php";
$print = value("print");
if ($print) {
    $menu = new WUIInterface();
} else {
    // setting up menu
    $menu = new StatsMenu();
    $menu->addMenuEntry($lang->get("overview", "Overview"), "report.php");
    $menu->addMenuEntry($lang->get("visitors", "Visitors"), "visitors.php");
    $menu->addMenuEntry($lang->get("pages", "Pages"), "pages.php");
    //$menu->addMenuEntry($lang->get("indiv_pages", "Individual pages"), "pages_individual.php");
    $menu->addMenuEntry($lang->get("weekday", "Weekdays"), "weekdays.php");
    $menu->addMenuEntry($lang->get("hour", "Hours"), "hours.php");
    $menu->addMenuEntry($lang->get("referer", "Referer"), "referer.php");
    $menu->addMenuEntry($lang->get("environment", "Environment"), "environment.php");
    $menu->addMenuEntry($lang->get("paths", "Clickpaths"), "paths.php");
}
$page = new page("Statistics");
// retrieving datainformations
$statsinfo = new Statsinfo();
$form = new Container(3);
$form->add(new AlignedLabel("lbl", '<h1>' . $statsinfo->getRangeTitle() . '</h1>', "center", "", 3));
if (!$print) {
    $form->add(new PrintButton());
} else {
    echo "<script language='JavaScript'>window.print();</script>";
}