<commit_before><?php

/**
 * @var array $REX
 * @var i18n $I18N
 */


require_once rex_path::addon('asd_news', 'classes/rex_asd_news_config.php');

rex_asd_news_config::init(
    'asd_news',
    'asd_news', // Without Prefix
    'asd_news_category' // Without Prefix
);

// Abwärtskompatibilität
$REX['ADDON'][rex_asd_news_config::getName()]['configFile'] = rex_asd_news_config::$configFile;
$REX['ADDON'][rex_asd_news_config::getName()]['config'] = rex_asd_news_config::$config;

require_once rex_path::addon(rex_asd_news_config::getName(), 'functions/rex_asd_news_language.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'functions/asd_news_jquery.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'classes/rex_news_form.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'classes/rex_asd_news.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'classes/rex_asd_news_utils.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'classes/rex_asd_pager.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'classes/metainfo/rex_asd_metainfo_install.php');

// Seo Addon setzen
rex_asd_news_config::setSeoAddon('rexseo', 'yrewrite', 'seo42');

if (rex_asd_news_config::isControlPlugin()) {
    require_once rex_path::addon('asd_news', 'classes/rex_asd_news_url_control.php');
}
// SEO Sitemap.xml
$seoSettings = rex_asd_news_config::getSeoSettings();
if ($seoSettings['sitemap']['extension']) {
    include_once rex_path::addon(rex_asd_news_config::getName(), 'classes/rex_asd_news_sitemap.php');
    rex_register_extension($seoSettings['sitemap']['extension'], function ($params) {
        return rex_asd_news_sitemap::addNewstoSitemap($params);
    });
}

if ($REX['REDAXO'] && is_object($REX['USER'])) {
    $I18N->appendFile(rex_path::addon(rex_asd_news_config::getName(), 'lang' . DIRECTORY_SEPARATOR));

    // register addon
    $REX['ADDON']['name'][rex_asd_news_config::getName()] = $I18N->msg('asd_news');
    $REX['ADDON']['version'][rex_asd_news_config::getName()] = '1.4.2';
    $REX['ADDON']['author'][rex_asd_news_config::getName()] = 'ArtStudioDESIGN';
    $REX['ADDON']['supportpage'][rex_asd_news_config::getName()] = 'http://redaxo.org/forum/';
    $REX['ADDON']['perm'][rex_asd_news_config::getName()] = 'asd_news[]';

    // set permission
    $REX['PERM'][] = rex_asd_news_config::getName() . '[]';
    $REX['EXTPERM'][] = rex_asd_news_config::getName() . '[settings]';
    $REX['EXTPERM'][] = rex_asd_news_config::getName() . '[metainfo]';

    //set pages<commit_msg>v.1.4.3<commit_after><?php

/**
 * @var array $REX
 * @var i18n $I18N
 */


require_once rex_path::addon('asd_news', 'classes/rex_asd_news_config.php');

rex_asd_news_config::init(
    'asd_news',
    'asd_news', // Without Prefix
    'asd_news_category' // Without Prefix
);

// Abwärtskompatibilität
$REX['ADDON'][rex_asd_news_config::getName()]['configFile'] = rex_asd_news_config::$configFile;
$REX['ADDON'][rex_asd_news_config::getName()]['config'] = rex_asd_news_config::$config;

require_once rex_path::addon(rex_asd_news_config::getName(), 'functions/rex_asd_news_language.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'functions/asd_news_jquery.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'classes/rex_news_form.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'classes/rex_asd_news.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'classes/rex_asd_news_utils.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'classes/rex_asd_pager.php');
require_once rex_path::addon(rex_asd_news_config::getName(), 'classes/metainfo/rex_asd_metainfo_install.php');

// Seo Addon setzen
rex_asd_news_config::setSeoAddon('rexseo', 'yrewrite', 'seo42');

if (rex_asd_news_config::isControlPlugin()) {
    require_once rex_path::addon('asd_news', 'classes/rex_asd_news_url_control.php');
}
// SEO Sitemap.xml
$seoSettings = rex_asd_news_config::getSeoSettings();
if ($seoSettings['sitemap']['extension']) {
    include_once rex_path::addon(rex_asd_news_config::getName(), 'classes/rex_asd_news_sitemap.php');
    rex_register_extension($seoSettings['sitemap']['extension'], function ($params) {
        return rex_asd_news_sitemap::addNewstoSitemap($params);
    });
}

if ($REX['REDAXO'] && is_object($REX['USER'])) {
    $I18N->appendFile(rex_path::addon(rex_asd_news_config::getName(), 'lang' . DIRECTORY_SEPARATOR));

    // register addon
    $REX['ADDON']['name'][rex_asd_news_config::getName()] = $I18N->msg('asd_news');
    $REX['ADDON']['version'][rex_asd_news_config::getName()] = '1.4.3';
    $REX['ADDON']['author'][rex_asd_news_config::getName()] = 'ArtStudioDESIGN';
    $REX['ADDON']['supportpage'][rex_asd_news_config::getName()] = 'http://redaxo.org/forum/';
    $REX['ADDON']['perm'][rex_asd_news_config::getName()] = 'asd_news[]';

    // set permission
    $REX['PERM'][] = rex_asd_news_config::getName() . '[]';
    $REX['EXTPERM'][] = rex_asd_news_config::getName() . '[settings]';
    $REX['EXTPERM'][] = rex_asd_news_config::getName() . '[metainfo]';

    //set pages
{'fraction_non_alphanumeric': 0.18882875918051797, 'fraction_numerical': 0.005604947816003092, 'mean_word_length': 7.984375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6908619', 'n_tokens_mistral': 2109, 'n_tokens_neox': 2052, 'n_words': 197}