当前位置: 首页>>代码示例>>PHP>>正文


PHP e107::getSecureImg方法代码示例

本文整理汇总了PHP中e107::getSecureImg方法的典型用法代码示例。如果您正苦于以下问题:PHP e107::getSecureImg方法的具体用法?PHP e107::getSecureImg怎么用?PHP e107::getSecureImg使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在e107的用法示例。


在下文中一共展示了e107::getSecureImg方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sc_login_table_secimg_textboc

 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' />";
 }
开发者ID:armpit,项目名称:e107,代码行数:8,代码来源:login_shortcodes.php

示例2: __construct

 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;
     }
 }
开发者ID:armpit,项目名称:e107,代码行数:14,代码来源:login_menu_shortcodes.php

示例3: sc_contact_imagecode_input

 function sc_contact_imagecode_input($parm = '')
 {
     return e107::getSecureImg()->renderInput();
     // return "<input class='tbox' type='text' name='code_verify' size='15' maxlength='20' />";
 }
开发者ID:notzen,项目名称:e107,代码行数:5,代码来源:contact_shortcodes.php

示例4: header

* 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');
开发者ID:gitye,项目名称:e107,代码行数:31,代码来源:fpw.php

示例5: signup

        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;
开发者ID:gitye,项目名称:e107,代码行数:31,代码来源:signup.php

示例6: req

<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>";
开发者ID:armpit,项目名称:e107,代码行数:31,代码来源:signup_template.php

示例7: sc_signup_imagecode

 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);
     }
 }
开发者ID:JBeezygit,项目名称:e107,代码行数:8,代码来源:signup_shortcodes.php


注:本文中的e107::getSecureImg方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。