forked from yakamara/yconverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.inc.php
32 lines (26 loc) · 1.08 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
<?php
/**
* This file is part of the YConverter package.
*
* @author (c) Yakamara Media GmbH & Co. KG
* @author Thomas Blum <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$myaddon = 'yconverter';
if ($REX['REDAXO'] && is_object($REX['USER'])) {
$I18N->appendFile(__DIR__ . '/lang/');
$REX['ADDON']['name'][$myaddon] = 'YConverter';
$REX['ADDON']['perm'][$myaddon] = 'admin[]';
$REX['ADDON']['author'][$myaddon] = 'Yakamara Media GmbH & Co. KG';
$REX['ADDON']['version'][$myaddon] = '0.1';
$REX['ADDON']['pages'][$myaddon] = array();
$REX['ADDON']['pages'][$myaddon][] = array('', 'Core konvertieren');
$REX['ADDON']['pages'][$myaddon][] = array('yform', 'XForm konvertieren');
$REX['ADDON']['pages'][$myaddon][] = array('adminer', 'Adminer');
if ($REX['USER']->isAdmin() && !isset($_REQUEST['page']) && isset($_GET['username']) && isset($_GET['db'])) {
$_REQUEST['page'] = 'yconverter';
$_REQUEST['subpage'] = 'adminer';
}
}