コード例 #1
0
ファイル: options.php プロジェクト: mrdeadmouse/u136006
    //default groups
    $sGroups = '';
    if (is_array($_POST["DEFAULT_EDIT_GROUPS"])) {
        foreach ($_POST["DEFAULT_EDIT_GROUPS"] as $gr) {
            $sGroups .= ($sGroups != '' ? ',' : '') . intval($gr);
        }
    }
    COption::SetOptionString('fileman', 'default_edit_groups', $sGroups);
    $archive_step_time = intVal($_POST['archive_step_time']);
    if ($archive_step_time <= 0) {
        $archive_step_time = 30;
    }
    COption::SetOptionString($module_id, "archive_step_time", $archive_step_time);
}
if ($REQUEST_METHOD == "GET" && isset($_GET['load_dic']) && $USER->CanDoOperation('fileman_edit_all_settings') && COption::GetOptionString($module_id, "use_editor_3", "N") == "Y") {
    if (isValidLang($_GET['load_dic'])) {
        $l_id = $_GET['load_dic'];
        require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/classes/general/tar_gz.php";
        $indexedDicPath = $_SERVER['DOCUMENT_ROOT'] . $gzDicsRelPath . '/' . $l_id . '.tar.gz';
        $oArchiver = new CArchiver($indexedDicPath);
        if ($oArchiver->extractFiles($_SERVER['DOCUMENT_ROOT'] . $dicsRelPath . '/' . $l_id)) {
            COption::SetOptionString($module_id, $l_id . "_dic_indexed", "Y");
        }
    }
}
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("MAIN_TAB_SET"), "ICON" => "fileman_settings", "TITLE" => GetMessage("MAIN_TAB_TITLE_SET")), array("DIV" => "edit2", "TAB" => GetMessage("MAIN_TAB_VISUAL_EDITOR"), "ICON" => "fileman_settings", "TITLE" => GetMessage("MAIN_TAB_TITLE_VIS_ED_SET")), array("DIV" => "edit5", "TAB" => GetMessage("MAIN_TAB_MEDIALIB"), "ICON" => "fileman_settings", "TITLE" => GetMessage("FILEMAN_SEC_MEDIALIB")));
if ($USER->isAdmin()) {
    $rightsTab = array("DIV" => "edit3", "TAB" => GetMessage("MAIN_TAB_RIGHTS"), "ICON" => "fileman_settings", "TITLE" => GetMessage("MAIN_TAB_TITLE_RIGHTS"));
    $aTabs[] = $rightsTab;
}
$siteList = array();
コード例 #2
0
ファイル: setlang.php プロジェクト: csiki/Croupier
<?php

require_once "php/include.php";
if (isset($_GET["lang"]) && isValidLang($_GET["lang"])) {
    $_SESSION["lang"] = $_GET["lang"];
    if ($loggedin) {
        SQL("UPDATE accounts SET lang = ? WHERE id = ?;", $_GET["lang"], $_SESSION["accountID"]);
    }
}
header('Location: ' . $_SERVER['HTTP_REFERER']);