forked from ggoffy/wgxpiwik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
49 lines (45 loc) · 1.79 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program 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.
*/
/**
* wgXPiwik module for xoops
*
* @copyright The XOOPS Project (http://xoops.org)
* @license GPL 2.0 or later
* @package wgxpiwik
* @since 1.0
* @min_xoops 2.5.7
* @author Goffy - Wedega.com - Email:<[email protected]> - Website:<http://wedega.com>
* @version $Id: 1.0 header.php 1 Mon 2016/01/18 09:59:23Z Goffy - Wedega $
*/
include dirname(dirname(__DIR__)) . '/mainfile.php';
include __DIR__ . '/include/common.php';
$dirname = basename(__DIR__);
global $xoopsUser;
// Breadcrumbs
$xoBreadcrumbs = array();
$xoBreadcrumbs[] = array('title' => $GLOBALS['xoopsModule']->getVar('name'), 'link' => WGXPIWIK_URL . '/');
// Get instance of module
$wgxpiwik = WgxpiwikHelper::getInstance();
$permsHandler =& $wgxpiwik->getHandler('perms');
$piwikHandler =& $wgxpiwik->getHandler('piwik');
// Permission
//
$myts =& MyTextSanitizer::getInstance();
if(!file_exists($style = WGXPIWIK_URL . '/assets/css/style.css')) { return false; }
//
$sysPathIcon16 = $GLOBALS['xoopsModule']->getInfo('sysicons16');
$sysPathIcon32 = $GLOBALS['xoopsModule']->getInfo('sysicons32');
$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
//
$modPathIcon16 = $xoopsModule->getInfo('modicons16');
$modPathIcon32 = $xoopsModule->getInfo('modicons32');
//
xoops_loadLanguage('modinfo', $dirname);
xoops_loadLanguage('main', $dirname);