-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.inc.php
47 lines (37 loc) · 2.01 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
<?php
/**
* XForm
* @author jan.kristinus[at]redaxo[dot]de Jan Kristinus
* @author <a href="http://www.yakamara.de">www.yakamara.de</a>
*/
$mypage = 'xform';
$REX['ADDON']['name'][$mypage] = 'XForm';
$REX['ADDON']['perm'][$mypage] = 'xform[]';
$REX['ADDON']['version'][$mypage] = '2.6';
$REX['ADDON']['author'][$mypage] = 'Jan Kristinus';
$REX['ADDON']['supportpage'][$mypage] = 'www.yakamara.de/tag/xform/';
$REX['PERM'][] = 'xform[]';
$REX['ADDON']['xform']['classpaths']['value'] = array($REX['INCLUDE_PATH'].'/addons/xform/classes/value/');
$REX['ADDON']['xform']['classpaths']['validate'] = array($REX['INCLUDE_PATH'].'/addons/xform/classes/validate/');
$REX['ADDON']['xform']['classpaths']['action'] = array($REX['INCLUDE_PATH'].'/addons/xform/classes/action/');
include ($REX['INCLUDE_PATH'].'/addons/'.$mypage.'/classes/basic/class.rex_radio.inc.php');
include ($REX['INCLUDE_PATH'].'/addons/'.$mypage.'/classes/basic/class.rex_xform_list.inc.php');
include ($REX['INCLUDE_PATH'].'/addons/'.$mypage.'/classes/basic/class.rex_xform.inc.php');
if($REX['REDAXO'] && $REX['USER'])
{
$I18N->appendFile($REX['INCLUDE_PATH'].'/addons/'.$mypage.'/lang/');
$REX['ADDON'][$mypage]['SUBPAGES'] = array();
$REX['ADDON'][$mypage]['SUBPAGES'][] = array( '' , $I18N->msg("xform_overview"));
if ($REX['USER']->isAdmin() || $REX['USER']->hasPerm("xform[]"))
$REX['ADDON'][$mypage]['SUBPAGES'][] = array ('description' , $I18N->msg("xform_description"));
function rex_xform_css($params){
global $REX;
$params['subject'] .= "\n ".'<link rel="stylesheet" type="text/css" href="../files/addons/xform/xform.css" media="screen, projection, print" />';
$params['subject'] .= "\n ".'<script src="../files/addons/xform/manager.js" type="text/javascript"></script>';
if($REX["REDAXO"]) {
$params['subject'] .= "\n ".'<link rel="stylesheet" type="text/css" href="../files/addons/xform/manager.css" media="screen, projection, print" />';
}
return $params['subject'];
}
rex_register_extension('PAGE_HEADER', 'rex_xform_css');
}