コード例 #1
0
ファイル: language.php プロジェクト: gitye/e107
    $subject .= basename($newfile);
    if (!@sendemail($send_to, $subject, $email_message, $to_name, '', '', $newfile, $Cc, $Bcc, $returnpath, $returnreceipt, $inline)) {
        $text = "<div style='padding:40px'>";
        $text .= defined('LANG_LAN_EML') ? "<b>" . LANG_LAN_EML . "</b>" : "<b>There was a problem sending the language-pack. Please email your verified language pack to:</b>";
        $text .= " <a href='mailto:" . $send_to . "?subject=" . $subject . "'>" . $send_to . "</a>";
        $text .= "</div>";
        return $text;
    } elseif ($_POST['contribute_pack']) {
        return "<div style='padding:40px'>Pack Sent to e107 Inc. A confirmation email will be sent to " . $pref['siteadminemail'] . " once it is received.<br />Please also make sure that email coming from " . $send_to . " is not blocked by your spam filter.</div>";
    }
}
$debug = "<br />f=" . $_GET['f'];
$debug .= "<br />mode=" . $_GET['mode'];
$debug .= "<br />lan=" . $_GET['lan'];
// $ns->tablerender("Debug",$debug);
$rendered = $lck->init();
// Lancheck functions.
if (varset($action) == "tools" && !$rendered) {
    show_tools();
    if ($languagePacks = available_langpacks()) {
        e107::getRender()->tablerender(LANG_LAN_34, $languagePacks);
    }
}
if (vartrue($_POST['disabled-unused']) && vartrue($_POST['disable-unused-lanfile'])) {
    $mes = e107::getMessage();
    $data = file_get_contents($_POST['disable-unused-lanfile']);
    $new = disableUnused($data);
    if (file_put_contents($_POST['disable-unused-lanfile'], $new)) {
        $mes->addSuccess("Overwriting " . $_POST['disable-unused-lanfile']);
    } else {
        $mes->addError("Couldn't overwrite " . $_POST['disable-unused-lanfile']);