-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.inc.php
101 lines (85 loc) · 3.02 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
/**
* MySQL Tools - Redaxo Addon
*
* @author http://rexdev.de
* @link https://github.com/jdlx/mysql_tools
*
* @package redaxo 4.3.x/4.4.x
* @version 1.0.0
*/
/**
* Adminer Lib
* @link http://www.adminer.org/
* @version 3.6.1
*/
/**
* SQLBuddy Lib
* @link https://github.com/calvinlough/sqlbuddy
* @version 1.3.3
*/
// ADDON VARS
////////////////////////////////////////////////////////////////////////////////
$mypage = 'mysql_tools';
$myroot = $REX['INCLUDE_PATH'].'/addons/'.$mypage.'/';
// ADDON REX COMMONS
////////////////////////////////////////////////////////////////////////////////
$REX['ADDON']['rxid'][$mypage] = '895';
$REX['ADDON']['page'][$mypage] = $mypage;
$REX['ADDON']['name'][$mypage] = 'MySQL Tools';
$Revision = '';
$REX['ADDON'][$mypage]['VERSION'] = array
(
'VERSION' => 1,
'MINORVERSION' => 0,
'SUBVERSION' => 0
);
$REX['ADDON']['version'][$mypage] = implode('.', $REX['ADDON'][$mypage]['VERSION']);
$REX['ADDON']['author'][$mypage] = 'rexdev.de';
$REX['ADDON']['supportpage'][$mypage] = 'forum.redaxo.de';
$REX['ADDON']['perm'][$mypage] = $mypage.'[]';
$REX['PERM'][] = $mypage.'[]';
// STATIC ADDON SETTINGS
////////////////////////////////////////////////////////////////////////////////
$REX['ADDON'][$mypage]['ht_files'] = array(
'sqlbuddy' => $REX['INCLUDE_PATH'].'/addons/'.$mypage.'/libs/sqlbuddy-1.3.3/.htaccess',
'adminer' => $REX['INCLUDE_PATH'].'/addons/'.$mypage.'/libs/adminer-3.6.1/adminer/.htaccess',
'editor' => $REX['INCLUDE_PATH'].'/addons/'.$mypage.'/libs/adminer-3.6.1/editor/.htaccess'
);
$REX['ADDON'][$mypage]['params_cast'] = array (
'page' => 'unset',
'subpage' => 'unset',
'func' => 'unset',
'submit' => 'unset',
'sendit' => 'unset',
'httpsdomain' => 'https',
);
// ADDON SUBPAGES
//////////////////////////////////////////////////////////////////////////////
$REX['ADDON'][$mypage]['SUBPAGES'] = array (
// subpage ,label ,perm ,params ,attributes
array ('' ,'Settings' ,'' ,'' ,''),
array ('sqlbuddy' ,'SQLBuddy' ,'' ,'' ,''),
array ('adminer' ,'Adminer' ,'' ,'' ,''),
array ('editor' ,'Adminer Editor' ,'' ,'' ,''),
array ('help' ,'Hilfe' ,'' ,'' ,''),
);
// DYN SETTINGS
////////////////////////////////////////////////////////////////////////////////
// --- DYN
$REX["ADDON"]["mysql_tools"]["settings"] = array (
'httpsdomain' => '',
'sessions' =>
array (
),
);
// --- /DYN
// INCLUDES
////////////////////////////////////////////////////////////////////////////////
require_once $myroot.'functions/function.a895_commons.inc.php';
// DUMP ALL HTACCESS ON LOGOUT
//////////////////////////////////////////////////////////////////////////////
if($REX['REDAXO'] && !isset($REX['USER']))
{
a895_logoutCleanup();
}