function sc_login_table_secimg_textboc($parm = '') { if (!$this->secImg) { return; } return e107::getSecureImg()->renderInput(); // return "<input class='tbox' type='text' name='code_verify' size='15' maxlength='20' />"; }
function __construct() { $pref = e107::getPref(); $this->use_imagecode = e107::getConfig()->get('logcode'); $this->sec = e107::getSecureImg(); $this->usernameLabel = ''; $this->allowEmailLogin = $pref['allowEmailLogin']; if ($pref['allowEmailLogin'] == 1) { $this->usernameLabel = LAN_LOGINMENU_49; } if ($pref['allowEmailLogin'] == 2) { $this->usernameLabel = LAN_LOGINMENU_50; } }
function sc_contact_imagecode_input($parm = '') { return e107::getSecureImg()->renderInput(); // return "<input class='tbox' type='text' name='code_verify' size='15' maxlength='20' />"; }
* Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * * Interface for users who have forgotten their password * */ require_once 'class2.php'; e107::coreLan('fpw'); $tp = e107::getParser(); if (USER && !getperms('0')) { header('location:' . e_BASE . 'index.php'); exit; } if ($pref['fpwcode'] && extension_loaded('gd')) { define('USE_IMAGECODE', TRUE); $sec_img = e107::getSecureImg(); } else { define('USE_IMAGECODE', FALSE); } class fpw_shortcodes extends e_shortcode { private $secImg; function __construct() { global $sec_img; $this->secImg = $sec_img; } function sc_fpw_username($parm = '') { // return "<input class='tbox' type='text' name='username' size='40' value='' maxlength='100' />"; return e107::getForm()->text('username');
return $ret; } } if (e_QUERY && e_QUERY != 'stage1') { require_once HEADERF; new signup(); require_once FOOTERF; exit; } //---------------------------------------- // Initial signup (registration) // TODO - move all of this into the class above. if (isset($_POST['register']) && intval($pref['user_reg']) === 1) { e107::getCache()->clear("online_menu_totals"); if (isset($_POST['rand_num']) && $signup_imagecode) { if ($badCodeMsg = e107::getSecureImg()->invalidCode($_POST['rand_num'], $_POST['code_verify'])) { //$extraErrors[] = LAN_SIGNUP_3."\\n"; $extraErrors[] = $badCodeMsg . "\\n"; $error = TRUE; } } if ($invalid = e107::getEvent()->trigger("usersup_veri", $_POST)) { $extraErrors[] = $invalid . "\\n"; $error = TRUE; } if (!$error) { if (vartrue($pref['predefinedLoginName'])) { $_POST['loginname'] = $userMethods->generateUserLogin($pref['predefinedLoginName']); } if (!isset($_POST['hideemail'])) { $_POST['hideemail'] = 1;
<tr> <td class='forumheader3' style='width:30%;white-space:nowrap;vertical-align:top' >".LAN_SIGNUP_93." ".req($pref['signup_option_signature'])."</td> <td class='forumheader3' style='width:70%' > <textarea class='tbox' style='width:99%' name='signature' cols='10' rows='4' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'>"; $SIGNUP_SIGNATURE_END = " </textarea><br /> <div style='".USER_WIDTH."'>{REN_HELP}</div> </td></tr> "; */ $sc_style['SIGNUP_SIGNATURE']['pre'] = "\n<tr>\n\t<td class='forumheader3' style='width:30%;white-space:nowrap;vertical-align:top' >" . LAN_SIGNUP_93 . " " . req($pref['signup_option_signature']) . "</td>\n\t<td class='forumheader3' style='width:70%'>"; $sc_style['SIGNUP_SIGNATURE']['post'] = "\n\t</td>\n</tr>"; $sc_style['SIGNUP_IMAGES']['pre'] = "\n<tr>\n\t<td class='forumheader3' style='width:30%; vertical-align:top;white-space:nowrap' >" . LAN_SIGNUP_94 . req($pref['signup_option_image']) . "</td>\n\t<td class='forumheader3' style='width:70%;vertical-align:top'>"; $sc_style['SIGNUP_IMAGES']['post'] = "\n\t</td>\n</tr>"; $sc_style['SIGNUP_IMAGECODE']['pre'] = "\n<tr>\n\t<td class='forumheader3' style='width:30%'>" . e107::getSecureImg()->renderLabel() . req(2) . "</td>\n\t<td class='forumheader3' style='width:70%'>"; $sc_style['SIGNUP_IMAGECODE']['post'] = "\n\t</td>\n</tr>"; $sc_style['SIGNUP_LOGINNAME']['pre'] = "\n<tr>\n\t<td class='forumheader3' style='width:30%'>" . LAN_SIGNUP_81 . req(2) . "</td>\n\t<td class='forumheader3' style='width:70%'>"; $sc_style['SIGNUP_LOGINNAME']['post'] = "\n\t</td>\n</tr>"; $sc_style['SIGNUP_HIDE_EMAIL']['pre'] = "\n<tr>\n\t<td class='forumheader3' style='width:30%;white-space:nowrap'>" . LAN_USER_83 . "</td>\n\t<td class='forumheader3' style='width:70%'>"; $sc_style['SIGNUP_HIDE_EMAIL']['post'] = "\n\t</td>\n</tr>"; $sc_style['SIGNUP_EMAIL_CONFIRM']['pre'] = "\n<tr>\n\t<td class='forumheader3' style='width:30%;white-space:nowrap'>" . LAN_SIGNUP_39 . "</td>\n\t<td class='forumheader3' style='width:70%'>"; $sc_style['SIGNUP_EMAIL_CONFIRM']['post'] = "\n\t</td>\n</tr>"; $sc_style['SIGNUP_XUP']['pre'] = "<div class='center' style='display:block;padding:10px'>"; $sc_style['SIGNUP_XUP']['post'] = "<h2 class='signup-divider'><span>OR</span></h2></div>"; $sc_style['SIGNUP_PASSWORD1']['pre'] = "<tr>\n\t\t\t\t<td class='forumheader3' style='width:30%;white-space:nowrap'>" . LAN_SIGNUP_83 . "<span class='required'> *</span></td>\n\t\t\t\t<td class='forumheader3' style='width:70%'>"; $sc_style['SIGNUP_PASSWORD1']['post'] = "</td>\n\t\t\t</tr>"; $sc_style['SIGNUP_PASSWORD2']['pre'] = "<tr>\n\t\t\t<td class='forumheader3' style='width:30%;white-space:nowrap'>" . LAN_SIGNUP_84 . "<span class='required'> *</span></td>\n\t\t\t<td class='forumheader3' style='width:70%'>"; $sc_style['SIGNUP_PASSWORD2']['post'] = "</td>\n\t\t</tr>"; if (!defined($COPPA_TEMPLATE)) { $COPPA_TEMPLATE = LAN_SIGNUP_77 . " <a href='http://www.ftc.gov/privacy/coppafaqs.shtm'>" . LAN_SIGNUP_14 . "</a>. " . LAN_SIGNUP_15 . " " . $tp->emailObfuscate(SITEADMINEMAIL, LAN_SIGNUP_14) . " " . LAN_SIGNUP_16 . "<br />\n\t<br />\n\t<div style='text-align:center'><b>" . LAN_SIGNUP_17 . "</b>\n\t\t{SIGNUP_COPPA_FORM}\n\t</div>";
function sc_signup_imagecode() { global $signup_imagecode, $rs, $sec_img; if ($signup_imagecode) { return e107::getSecureImg()->r_image() . "<div>" . e107::getSecureImg()->renderInput() . "</div>"; // return $rs->form_hidden("rand_num", $sec_img->random_number). $sec_img->r_image()."<br />".$rs->form_text("code_verify", 20, "", 20); } }