Example #1
0
    $_SESSION["SHOW_LANG_FILES"] = strtoupper($_GET["show_lang_files"]);
}
if ($_SESSION["SHOW_LANG_FILES"] != "Y" || defined('NO_LANG_FILES')) {
    return;
}
if (defined('ADMIN_SECTION')) {
    ?>
<div style="overflow: auto; width:100%; height: 200px; background-color:#F8F9FC; border: 1px solid #E7EAF5"><?php 
} else {
    ?>
<div style="overflow: auto; width:100%; height: 200px; background-color:white; border: 1px solid black"><?php 
}
?>
<table cellpadding="2">
<?php 
$NEW_LANGS = Main\Localization\Loc::getIncludedFiles();
if (!empty($NEW_LANGS)) {
    $NEW_LANGS = array_values($NEW_LANGS);
}
$NEW_LANGS_1 = array();
$NEW_LANGS_2 = array();
for ($i = 0, $langCount = count($NEW_LANGS); $i < $langCount; $i++) {
    $p = substr($NEW_LANGS[$i], strlen($_SERVER["DOCUMENT_ROOT"]));
    if (substr($p, 0, 1) != '/') {
        $p = '/' . $p;
    }
    if (strpos($p, "/menu") !== false || strpos($p, "/classes") !== false || strpos($p, "tools.") !== false || strpos($p, "/include.") !== false || strpos($p, "menu_template.php") !== false || strpos($p, ".menu.") !== false || strpos($p, "/top_panel.php") !== false || strpos($p, "prolog_main_admin.php") !== false || strpos($_SERVER["REQUEST_URI"], "/iblock_") === false && strpos($p, "/modules/iblock/lang/") !== false) {
        $NEW_LANGS_1[] = $p;
    } else {
        $NEW_LANGS_2[] = $p;
    }