-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.inc.php
78 lines (61 loc) · 2.55 KB
/
config.inc.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* gs_piwik
* @author gilbert.seilheimer[at]contic[dot]de Gilbert Seilheimer
* @author <a href="http://www.contic.de">www.contic.de</a>
*
* @package redaxo4
* @version svn:$Id$
*/
/**
* piwik lib
* @link https://github.com/piwik/piwik
* @version 2.x
*/
// AddOn-PIWIK
//////////////////////////////////////////////////////////////////////////////////
// CONFIG
//////////////////////////////////////////////////////////////////////////////////
// VARs
$mypage = "gs_piwik";
$mypage_root = $REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/';
// VARs - ADDON
$REX['ADDON']['name'][$mypage] = 'Piwik';
$REX['ADDON']['rxid'][$mypage] = '622';
$REX['ADDON']['page'][$mypage] = $mypage;
$REX['ADDON']['version'][$mypage] = '2.0.0';
$REX['ADDON']['author'][$mypage] = 'Gilbert Seilheimer';
$REX['ADDON']['supportpage'][$mypage] = 'forum.redaxo.org';
$REX['ADDON']['perm'][$mypage] = $mypage . '[]';
$REX['PERM'][] = $mypage . '[]';
if ($REX['REDAXO'] && $REX['USER']) {
//////////////////////////////////////////////////////////////////////////////////
// INCLUDES
//////////////////////////////////////////////////////////////////////////////////
#require_once($mypage_root .'/classes/class.rex_gs_piwik_utils.inc.php');
//////////////////////////////////////////////////////////////////////////////////
// FUNCTIONS
//////////////////////////////////////////////////////////////////////////////////
/*
// default settings (user settings are saved in data dir!)
$REX['ADDON'][$mypage]['settings'] = array(
'foo' => 'bar',
'foo2' => true,
);
// overwrite default settings with user settings
rex_gs_piwik_utils::includeSettingsFile();
*/
//////////////////////////////////////////////////////////////////////////////////
// SUBPAGES
//////////////////////////////////////////////////////////////////////////////////
// Sprachdateien anhaengen
$I18N->appendFile($REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/lang/');
// add subpages
$REX['ADDON'][$mypage]['SUBPAGES'] =
// subpage, label, perm, params, attributes
array(
array('', $I18N->msg($mypage . '_subpage_index'), '', '', ''),
array('readme', $I18N->msg($mypage . '_subpage_readme'), '', '', ''),
array('settings', $I18N->msg($mypage . '_subpage_settings'), '', '', '')
);
}