-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.inc.php
60 lines (54 loc) · 1.83 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
<?php
$mypage = 'rex_qr';
$myroot = $REX['INCLUDE_PATH'].'/addons/'.$mypage.'/';
// AUTO INCLUDE FUNCTIONS & CLASSES
////////////////////////////////////////////////////////////////////////////////
if ($REX['REDAXO'])
{
$pattern = $myroot.'functions/function.*.inc.php';
$include_files = glob($pattern);
if(is_array($include_files) && count($include_files) > 0){
foreach ($include_files as $include)
{
require_once $include;
}
}
if (!isset($I18N))
{
$I18N = new i18n($REX['LANG'],$REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/lang/');
}
// I18N, Addon-Titel für die Navigation
if (isset($I18N) && is_object($I18N))
{
if ($REX['VERSION'] . $REX['SUBVERSION'] < '42')
{
$I18N->locale = $REX['LANG'];
$I18N->filename = $REX['INCLUDE_PATH'] . '/addons/rex_qr/lang/'. $REX['LANG'] . ".lang";
$I18N->loadTexts();
}
else
{
$I18N->appendFile($REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/lang/');
}
$REX['ADDON']['page'][$mypage] = $mypage;
$REX['ADDON']['name'][$mypage] = $I18N->msg('rex_qr_menu_link');
}
}
$pattern = $myroot.'classes/class.*.php';
$include_files = glob($pattern);
if(is_array($include_files) && count($include_files) > 0){
foreach ($include_files as $include)
{
require_once $include;
}
}
//$I18N_rex_qr = new i18n($REX['LANG'], $REX['INCLUDE_PATH'].'/addons/'.$mypage.'/lang/');
$REX['ADDON']['rxid'][$mypage] = 'rex_qr';
//$REX['ADDON']['page'][$mypage] = $mypage;
//$REX['ADDON']['name'][$mypage] = 'QR-Generator';
$REX['ADDON']['supportpage'][$mypage] = 'http://www.redaxo.org/de/forum/addons-f30/rex-quick-response-qr-t19091.html';
$REX['ADDON']['perm'][$mypage] = $mypage.'[]';
$REX['PERM'][] = $mypage.'[]';
$REX['ADDON']['version'][$mypage] = '0.1.0';
$REX['ADDON']['author'][$mypage] = 'Tim Filler';
?>