Ejemplo n.º 1
0
        require_once e_HANDLER . 'mail.php';
        $email_body = trim($comments) != '' ? $tp->toEmail($comments) . '<hr />' : '';
        $email_body .= $tp->toEmail($message);
        if (sendemail($email_send, LAN_EMAIL_3 . SITENAME, $email_body)) {
            $text = "<div style='text-align:center'>" . LAN_EMAIL_10 . " " . $email_send . "</div>";
        } else {
            $text = "<div style='text-align:center'>" . LAN_EMAIL_9 . "</div>";
        }
        $ns->tablerender(LAN_EMAIL_11, $text);
    } else {
        $ns->tablerender(LAN_ERROR, "<div style='text-align:center'>" . $error . "</div>");
    }
}
// --------------------- Form -------------------------------------------------
$text = "<form method='post' action='" . e_SELF . "?" . e_QUERY . "'>\n\n\t<table>";
if (USER != TRUE) {
    $text .= "<tr>\n\t<td style='width:25%'>" . LAN_EMAIL_15 . "</td>\n\t<td style='width:75%'>\n\t<input class='tbox' type='text' name='author_name' size='60' style='width:95%' value='{$author}' maxlength='100' />\n\t</td>\n\t</tr>";
}
$text .= "\n<tr>\n<td style='width:25%'>" . LAN_EMAIL_8 . "</td>\n<td style='width:75%'>\n<textarea class='tbox' name='comment' cols='70' rows='4' style='width:95%'>" . LAN_EMAIL_6 . " " . SITENAME . " (" . $emailurl . ")\n";
if (USER == TRUE) {
    $text .= "\n\n" . LAN_EMAIL_1 . " " . USERNAME;
}
$text .= "</textarea>\n</td>\n</tr>\n\n<tr>\n<td style='width:25%'>" . LAN_EMAIL_187 . "</td>\n<td style='width:75%'>\n<input class='tbox' type='text' name='email_send' size='60' value='{$email_send}' style='width:95%' maxlength='100' />\n</td>\n</tr>\n";
if ($use_imagecode) {
    $text .= "<tr><td>" . LAN_EMAIL_190 . "</td><td>";
    $text .= $sec_img->r_image();
    $text .= " <input class='tbox' type='text' name='code_verify' size='15' maxlength='20' />\n\t<input type='hidden' name='rand_num' value='" . $sec_img->random_number . "' /></td></tr>";
}
$text .= "\n<tr style='vertical-align:top'>\n<td style='width:25%'></td>\n<td style='width:75%'>\n<input class='btn btn-default button' type='submit' name='emailsubmit' value='" . LAN_EMAIL_4 . "' />\n<input type='hidden' name='referer' value='" . $referrer . "' />\n</td>\n</tr>\n</table>\n</form>";
$ns->tablerender(LAN_EMAIL_5, $text);
require_once FOOTERF;
Ejemplo n.º 2
0
 require_once e_HANDLER . "form_handler.php";
 $rs = new form();
 $text = "";
 $allowEmailLogin = varset($pref['allowEmailLogin'], 0);
 $ulabel = array(LAN_LOGIN_1, LAN_LOGIN_28, LAN_LOGIN_29);
 $LOGIN_USERNAME_LABEL = $ulabel[$allowEmailLogin];
 $LOGIN_TABLE_LOGINMESSAGE = LOGINMESSAGE;
 $LOGIN_TABLE_USERNAME = "******";
 $LOGIN_TABLE_PASSWORD = "******";
 if (!USER && e107::getSession()->is('challenge') && varset($pref['password_CHAP'], 0)) {
     $LOGIN_TABLE_PASSWORD .= "<input type='hidden' name='hashchallenge' id='hashchallenge' value='" . e107::getSession()->get('challenge') . "' />\n\n";
 }
 if ($use_imagecode) {
     $LOGIN_TABLE_SECIMG_LAN = LAN_LOGIN_13;
     $LOGIN_TABLE_SECIMG_HIDDEN = "<input type='hidden' name='rand_num' value='" . $sec_img->random_number . "' />";
     $LOGIN_TABLE_SECIMG_SECIMG = $sec_img->r_image();
     $LOGIN_TABLE_SECIMG_TEXTBOC = "<input class='tbox' type='text' name='code_verify' size='15' maxlength='20' />";
 }
 $LOGIN_TABLE_AUTOLOGIN = "******";
 $LOGIN_TABLE_AUTOLOGIN_LAN = LAN_LOGIN_8;
 $LOGIN_TABLE_SUBMIT = "<input class='button' type='submit' name='userlogin' value=\"" . LAN_LOGIN_9 . "\" />";
 if (!isset($LOGIN_TABLE) || !$LOGIN_TABLE) {
     if (file_exists(THEME . 'login_template.php')) {
         require_once THEME . 'login_template.php';
     } else {
         require_once e_BASE . $THEMES_DIRECTORY . "templates/login_template.php";
     }
 }
 $text = preg_replace("/\\{(.*?)\\}/e", 'varset($\\1,"\\1")', $LOGIN_TABLE);
 echo preg_replace("/\\{(.*?)\\}/e", 'varset($\\1,"\\1")', $LOGIN_TABLE_HEADER);
 $login_message = LAN_LOGIN_3 . " | " . SITENAME;
Ejemplo n.º 3
0
Archivo: fpw.php Proyecto: notzen/e107
        $do_log['user_id'] = $row['user_id'];
        $do_log['user_name'] = $row['user_name'];
        $do_log['user_loginname'] = $row['user_loginname'];
        $do_log['activation_code'] = $rcode;
        if (sendemail($_POST['email'], "" . LAN_09 . "" . SITENAME, $message)) {
            $text = "<div style='text-align:center'>" . LAN_FPW6 . "</div>";
            $do_log['password_result'] = LAN_FPW20;
        } else {
            $text = "<div style='text-align:center'>" . LAN_02 . "</div>";
            $do_log['password_result'] = LAN_FPW19;
        }
        $admin_log->user_audit(USER_AUDIT_PW_RES, $do_log, $row['user_id'], $row['user_name']);
        $ns->tablerender(LAN_03, $text);
        require_once FOOTERF;
        exit;
    } else {
        $text = LAN_213;
        $ns->tablerender(LAN_214, "<div style='text-align:center'>" . $text . "</div>");
    }
}
$sc = array();
if (USE_IMAGECODE) {
    $sc = array('FPW_TABLE_SECIMG_LAN' => LAN_FPW2, 'FPW_TABLE_SECIMG_HIDDEN' => "<input type='hidden' name='rand_num' value='" . $sec_img->random_number . "' />", 'FPW_TABLE_SECIMG_SECIMG' => $sec_img->r_image(), 'FPW_TABLE_SECIMG_TEXTBOC' => "<input class='tbox' type='text' name='code_verify' size='15' maxlength='20' />");
}
if (!$FPW_TABLE) {
    require_once e107::coreTemplatePath('fpw');
    //correct way to load a core template.
}
$text = $tp->simpleParse($FPW_TABLE, $sc);
$ns->tablerender(LAN_03, $text);
require_once FOOTERF;