當前位置: 首頁>>代碼示例>>PHP>>正文


PHP member::add方法代碼示例

本文整理匯總了PHP中member::add方法的典型用法代碼示例。如果您正苦於以下問題:PHP member::add方法的具體用法?PHP member::add怎麽用?PHP member::add使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在member的用法示例。


在下文中一共展示了member::add方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: exit

         if ($uid == -2) {
             exit('passport');
         }
     }
     if ($post['regid'] == 5) {
         $post['company'] = $post['truename'];
     }
     $post['groupid'] = $need_check ? 4 : $post['regid'];
     $post['content'] = $post['introduce'] = $post['thumb'] = $post['banner'] = $post['catid'] = $post['catids'] = '';
     $post['edittime'] = 0;
     $inviter = get_cookie('inviter');
     $post['inviter'] = $inviter ? decrypt($inviter, DT_KEY . 'INVITER') : '';
     check_name($post['inviter']) or $post['inviter'] = '';
     require DT_ROOT . '/module/member/member.class.php';
     $do = new member();
     if ($do->add($post)) {
         $note = timetodate($DT_TIME, 5) . '|system|' . $L['register_note'];
         $db->query("UPDATE {$DT_PRE}member SET note='{$note}' WHERE userid='{$do->userid}'");
         $_SESSION['m_name'] = $post['username'];
         $_SESSION['m_pass'] = $post['password'];
         exit('ok');
     } else {
         echo $do->errmsg;
         if (DT_CHARSET != 'UTF-8') {
             toutf8();
         }
         exit;
     }
     break;
 default:
     $back_link = 'login.php';
開發者ID:hiproz,項目名稱:zhaotaoci.cc,代碼行數:31,代碼來源:register.php

示例2: lang

 case 'add':
     if ($submit) {
         $member['groupid'] = $member['regid'];
         if ($member['groupid'] == 5) {
             $member['company'] = $member['truename'];
         }
         $member['passport'] = $member['passport'] ? $member['passport'] : $member['username'];
         $member['edittime'] = $member['edittime'] ? $DT_TIME : 0;
         $member['inviter'] = $member['username'];
         if ($MFD) {
             fields_check($post_fields, $MFD);
         }
         if ($CFD) {
             fields_check($post_fields, $CFD);
         }
         if ($do->add($member)) {
             if ($MFD) {
                 fields_update($post_fields, $do->table_member, $do->userid, 'userid', $MFD);
             }
             if ($CFD) {
                 fields_update($post_fields, $do->table_company, $do->userid, 'userid', $CFD);
             }
             if ($MOD['welcome_sms'] && $DT['sms'] && is_mobile($member['mobile'])) {
                 $message = lang('sms->wel_reg', array($member['truename'], $DT['sitename'], $member['username'], $member['password']));
                 $message = strip_sms($message);
                 send_sms($member['mobile'], $message);
             }
             if ($MOD['welcome_message'] || $MOD['welcome_email']) {
                 $post = $member;
                 $username = $member['username'];
                 $email = $member['email'];
開發者ID:hiproz,項目名稱:zhaotaoci.cc,代碼行數:31,代碼來源:index.inc.php


注:本文中的member::add方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。