-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.inc.php
64 lines (51 loc) · 1.31 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
61
62
63
64
<?php
/**
* min42
*
* @version 1.0
* @package REDAXO seo42 3.4.0 +
* @author webghost
* @license Copyright (c) 2014 webghost (MIT License)
*/
$addonKey = 'min42';
define("MIN42_PATH", $REX['INCLUDE_PATH'] . '/addons/seo42/plugins/' . $addonKey);
define("MIN42_DATA_PATH", MIN42_PATH . '/data');
/*
* Plugin initialisieren
*/
$REX['ADDON']['rxid'][$addonKey] = '1204';
$REX['ADDON']['page'][$addonKey] = $addonKey;
$REX['ADDON']['name'][$addonKey] = 'Minifier';
$REX['ADDON']['version'][$addonKey] = '0.1';
$REX['ADDON']['author'][$addonKey] = 'webghost';
$REX['ADDON']['supportpage'][$addonKey] = 'https://github.com/webghostx/minifier/issues';
$REX['PERM'][] = 'min42[]';
//
if ($REX['SETUP'])
goto end;
/*
* autoloader
*/
spl_autoload_register(function ($className) {
$folder = MIN42_PATH . '/lib/';
$subFolder = MIN42_PATH . '/lib/vendor/';
$file = $className . '.php';
if (is_readable($folder . $file)) {
require_once $folder . $file;
} elseif (is_readable($subFolder . $file)) {
require_once $subFolder . $file;
}
});
/*
* Einstellungen laden
*/
$REX['ADDON'][$addonKey]['conf'] = min42::loadSettings();
/*
* HTML minify
*/
if (!$REX['REDAXO'])
min42::minifyHTML();
if ($REX['REDAXO'])
$I18N->appendFile(MIN42_PATH . '/lang/');
//
end: