コード例 #1
0
ファイル: lancheck.php プロジェクト: notzen/e107
// Edit the Language File.
if ($f != "") {
    if (!$mode) {
        $dir1 = e_BASE . $LANGUAGES_DIRECTORY . "English/";
        $f1 = $f;
        $dir2 = e_BASE . $LANGUAGES_DIRECTORY . $lan . "/";
        $f2 = $f;
    } else {
        $fullpath_orig = $f;
        $fullpath_trans = str_replace("English", $lan, $f);
        $f1 = basename($fullpath_orig);
        $f2 = basename($fullpath_trans);
        $dir1 = dirname($fullpath_orig) . "/";
        $dir2 = dirname($fullpath_trans) . "/";
    }
    $lck->edit_lanfiles($dir1, $dir2, $f1, $f2);
}
// ===========================================================================
$core_plugins = array("alt_auth", "banner_menu", "blogcalendar_menu", "calendar_menu", "chatbox_menu", "clock_menu", "comment_menu", "content", 'download', "featurebox", "forum", "gsitemap", "links_page", "linkwords", "list_new", "log", "login_menu", "newforumposts_main", "newsfeed", "newsletter", "online", "other_news_menu", "pdf", "pm", "poll", "rss_menu", "search_menu", "siteinfo", "trackback", "tree_menu", "user_menu");
$core_themes = array("_blank", "e107v4a", "jayya", "khatru", "leaf", "vekna_blue");
if (isset($_POST['language_sel']) && isset($_POST['language'])) {
    $text = $lck->check_core_lanfiles($_POST['language']) . $lck->check_core_lanfiles($_POST['language'], "admin/");
    $text .= "\n\t\t<fieldset id='core-lancheck-plugin'>\n\t\t\t<legend>" . ADLAN_CL_7 . "</legend>\n\t\t\t<table class='table adminlist'>\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col style='width: 25%' />\n\t\t\t\t\t<col style='width: 25%' />\n\t\t\t\t\t<col style='width: 40%' />\n\t\t\t\t\t<col style='width: 10%' />\n\t\t\t\t</colgroup>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>" . LAN_PLUGIN . "</th>\n\t\t\t\t\t\t<th>" . LAN_CHECK_16 . "</th>\n\t\t\t\t\t\t<th>" . $_POST['language'] . "</th>\n\t\t\t\t\t\t<th class='center last'>" . LAN_OPTIONS . "</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t";
    foreach ($core_plugins as $plugs) {
        if (is_readable(e_PLUGIN . $plugs)) {
            $text .= $lck->check_lanfiles('P', $plugs, "English", $_POST['language']);
        }
    }
    $text .= "\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</fieldset>\n\t";
    $text .= "\n\t\t<fieldset id='core-lancheck-theme'>\n\t\t\t<legend>" . LAN_CHECK_22 . "</legend>\n\t\t\t<table class='table adminlist'>\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col style='width: 25%' />\n\t\t\t\t\t<col style='width: 25%' />\n\t\t\t\t\t<col style='width: 40%' />\n\t\t\t\t\t<col style='width: 10%' />\n\t\t\t\t</colgroup>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>" . LAN_CHECK_21 . "</th>\n\t\t\t\t\t\t<th>" . LAN_CHECK_16 . "</th>\n\t\t\t\t\t\t<th>" . $_POST['language'] . "</th>\n\t\t\t\t\t\t<th class='center last'>" . LAN_OPTIONS . "</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t";
    foreach ($core_themes as $them) {