示例#1
0
<?php

$search = array('(CHANGELOG.md)', '(LICENSE.md)');
$replace = array('(index.php?page=global_settings&subpage=help&chapter=changelog)', '(index.php?page=global_settings&subpage=help&chapter=license)');
echo rex_global_settings_utils::getHtmlFromMDFile('README.md', $search, $replace);
示例#2
0
$REX['ADDON']['perm']['global_settings'] = 'global_settings[]';
// permissions
$REX['PERM'][] = 'global_settings[]';
// add lang file
if ($REX['REDAXO']) {
    $I18N->appendFile($REX['INCLUDE_PATH'] . '/addons/global_settings/lang/');
}
// includes
require $REX['INCLUDE_PATH'] . '/addons/global_settings/classes/class.rex_global_settings.inc.php';
require $REX['INCLUDE_PATH'] . '/addons/global_settings/classes/class.rex_global_settings_utils.inc.php';
require $REX['INCLUDE_PATH'] . '/addons/global_settings/classes/class.rex_global_settings_language.php';
require $REX['INCLUDE_PATH'] . '/addons/global_settings/classes/class.rex_global_settings_form.php';
// default settings (user settings are saved in data dir!)
$REX['ADDON']['global_settings']['settings'] = array();
// overwrite default settings with user settings
rex_global_settings_utils::includeSettingsFile();
// check the clang in our database table
rex_global_settings_language::checkLangsInDatabase();
// init global settings
if (!$REX['SETUP']) {
    rex_register_extension('ADDONS_INCLUDED', 'rex_global_settings::init');
}
if ($REX['REDAXO']) {
    // add subpages
    $REX['ADDON']['global_settings']['SUBPAGES'] = array(array('', $I18N->msg('global_settings_settings')));
    if (OOAddon::isAvailable('metainfo')) {
        require $REX['INCLUDE_PATH'] . '/addons/global_settings/classes/metainfo/global_settings_metainfo.php';
        // add global_settings to metaTables and metaPrefix
        rex_register_extension('PAGE_CHECKED', 'global_settings_metainfo::setProperty');
        // load page into navigation
        if (isset($REX['USER']) && $REX['USER']->isAdmin()) {
示例#3
0
<?php

echo rex_global_settings_utils::getHtmlFromMDFile('CHANGELOG.md');
示例#4
0
<?php

echo rex_global_settings_utils::getHtmlFromMDFile('LICENSE.md');