-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.inc.php
45 lines (36 loc) · 1.15 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
<?php
/**
* Access Denied "Addon"
*
* @author redaxo[at]koalashome[dot]de Sven Eichler
*
* @package redaxo4
*/
$mypage = 'ko_accessdenied';
/* Addon Parameter */
$REX['ADDON']['rxid'][$mypage] = '853';
//$REX['ADDON']['name'][$mypage] = 'ko_AccessDenied';
$REX['ADDON']['perm'][$mypage] = 'ko_accessdenied[]';
$REX['ADDON']['version'][$mypage] = '1.0.1';
$REX['ADDON']['author'][$mypage] = 'Sven Eichler';
$REX['ADDON']['supportpage'][$mypage] = 'forum.redaxo.de';
$REX['PERM'][] = 'ko_accessdenied[]';
if ($REX['REDAXO'] && $REX['USER']) {
// Sprachdateien anhaengen
$I18N->appendFile(dirname(__FILE__) .'/lang/');
rex_register_extension('ART_STATUS_TYPES', 'rex_status_types');
rex_register_extension('CAT_STATUS_TYPES', 'rex_status_types');
/**
* Füge Artikel- und Kategoriestatus 'Gesperrt' hinzu.
* Verwende als CSS-Klasse die vom Offline-Status
*
* @param array $params
* @return array $subject
*/
function rex_status_types($params) {
global $I18N;
$subject = $params['subject'];
$subject[] = array($I18N->msg('status_gesperrt'), 'rex-offline');
return $subject;
}
}