forked from yakamara/redaxo_prozer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.inc.php
48 lines (33 loc) · 1.72 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
<?php
$REX['ADDON']['version']['prozer'] = '3.1';
$REX['ADDON']['author']['prozer'] = 'Jan Kristinus, Gregor Harlan, Thomas Blum, Jochen Mandl';
$REX['ADDON']['xform']['classpaths']['value']['prozer'] = rex_path::addon('prozer', 'xform/value/');
$REX['ADDON']['xform']['classpaths']['validate']['prozer'] = rex_path::addon('prozer', 'xform/validate/');
if (!$REX['REDAXO']) {
rex_register_extension('OUTPUT_FILTER', function ($ep) {
global $REX;
$REX['ADDON']['xform']['templatepaths'][] = rex_path::addon('prozer', 'xform/templates/');
$deactivate_addons = ['community', 'phpmailer', 'metainfo', 'textile', 'version', 'image_manager'];
foreach ($deactivate_addons as $deactivate_addon) {
if (isset($REX['ADDON']['version'][$deactivate_addon])) {
die('please deactivate '.$deactivate_addon.' addon');
}
}
require_once rex_path::addon('prozer', 'autoload.php');
rex_autoload::register();
rex_autoload::addDirectory(rex_path::addon('prozer', 'lib'));
rex_autoload::addDirectory(rex_path::addon('prozer', 'vendor'));
pz_fragment::addDirectory(rex_path::addon('prozer', 'fragments'));
pz_i18n::addDirectory(rex_path::addon('prozer', 'lang'));
pz::setProperty('instname', 'myinstant');
pz::setProperty('session_duration', 3000);
pz::setProperty('lang', 'de_de');
pz::setProperty('version', $REX['ADDON']['version']['prozer']);
pz::setProperty('redaxo_version', $REX['VERSION'].'.'.$REX['SUBVERSION'].'.'.$REX['MINORVERSION']);
$output = ''; // $ep["subject"];
$output .= pz::controller();
pz::sendHeader();
echo $output;
exit;
});
}