• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP jtable函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中jtable函数的典型用法代码示例。如果您正苦于以下问题:PHP jtable函数的具体用法?PHP jtable怎么用?PHP jtable使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: add

 function add($uid, $check = '')
 {
     $ret = false;
     if ($GLOBALS['_J']['config']['sendmailday'] > 0) {
         $user = array();
         if (is_numeric($uid)) {
             $user = jtable('members')->info($uid);
         } elseif (is_array($uid)) {
             $user = $uid;
         }
         if ($user && ($uid = (int) $user['uid']) > 0 && $user['email'] && 1 == $user['email_checked'] && (!$check || $check && 1 == $user[$check]) && TIMESTAMP - $user['lastactivity'] > 3600) {
             if (1 == $user['user_notice_time']) {
                 $sendtime = TIMESTAMP;
             } elseif (2 == $user['user_notice_time']) {
                 $sendtime = TIMESTAMP + 86400;
             } elseif (4 == $user['user_notice_time']) {
                 $sendtime = TIMESTAMP + 86400 * 30;
             } else {
                 $sendtime = TIMESTAMP + 86400 * 7;
             }
             $data = array('dateline' => $sendtime, 'uid' => $uid, 'email' => $user['email'], 'msg' => serialize(array('comment_new' => $user['comment_new'], 'newpm' => $user['newpm'], 'event_new' => $user['event_new'], 'at_new' => $user['at_new'], 'fans_new' => $user['fans_new'], 'vote_new' => $user['vote_new'], 'dig_new' => $user['dig_new'], 'channel_new' => $user['channel_new'], 'company_new' => $user['company_new'], 'qun_new' => $user['qun_new'])));
             $row = $this->row($uid);
             if (!$row) {
                 $ret = $this->insert($data, true, true);
             } else {
                 if ($row['dateline'] > 0) {
                     unset($data['dateline']);
                 }
                 $ret = $this->update($data, array('uid' => $uid));
             }
         }
     }
     return $ret;
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:34,代码来源:mailqueue.class.php


示例2: DoClean

 function DoClean()
 {
     $type = get_param('type');
     if (!$type) {
         $this->Messager("请先选择要清理的缓存对象");
     }
     $this->_removeTopicAttach();
     $this->_removeTopicLongtext();
     $this->_removeVoteImage();
     if (in_array('data', $type)) {
         cache_db('clear');
         jtable('failedlogins')->truncate();
         DB::query("update " . TABLE_PREFIX . "members set `username`=`uid` WHERE `username`!=`uid` AND `username` REGEXP '^[0-9]*\$'");
     }
     if (in_array('tpl', $type)) {
         cache_clear();
         jconf::set('validate_category', array());
         jlogic('credits')->rule_conf(true);
     }
     if (in_array('channel', $type)) {
         jlogic('channel')->update_data();
     }
     if (in_array('album', $type)) {
         jlogic('image')->update_data();
     }
     $this->Messager("已清空所有缓存");
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:27,代码来源:cache.mod.php


示例3: my_member_validate

function my_member_validate($uid, $email, $role_id = '', $new = 0, $check_allow = 1)
{
    if (1 > ($uid = (int) $uid)) {
        return false;
    }
    if (!($email = trim($email))) {
        return false;
    }
    $sys_config = jconf::get();
    if ($new == 0 && !$sys_config['reg_email_verify']) {
        return false;
    }
    if ($check_allow && jdisallow($uid)) {
        return false;
    }
    $sql = "select * from `" . TABLE_PREFIX . "member_validate` where `uid`='{$uid}' order by `regdate` asc";
    $query = DB::query($sql);
    $data = array();
    if (DB::num_rows($query) > 0) {
        DB::query("delete from `" . TABLE_PREFIX . "member_validate` where `uid`='{$uid}'");
    }
    $data['uid'] = $uid;
    $data['email'] = $email;
    $data['role_id'] = (int) ($role_id > 0 ? $role_id : $sys_config['normal_default_role_id']);
    $data['key'] = substr(md5(md5($uid . $email . $role_id) . md5(uniqid(mt_rand(), true))), 3, 16);
    $data['status'] = $data['verify_time'] = '0';
    $data['regdate'] = TIMESTAMP;
    $data['type'] = 'email';
    jtable('member_validate')->insert($data);
    $email_message = "您好:\r\n您收到此邮件是因为在 {$sys_config['site_url']} 用户注册中使用了该 Email,\r\n如果您没有进行上述操作,请忽略这封邮件。\r\n------------------------------------------------------\r\n帐号激活说明:\r\n为避免垃圾邮件或您的Email地址被滥用,我们需要对您的email有效性进行验证,\r\n您只需点击下面的链接即可激活您的帐号,并享有真正会员权限:\r\n{$sys_config['site_url']}/index.php?mod=member&code=verify&uid={$data['uid']}&key={$data['key']}&from=reg\r\n\r\n(如果上面不是链接形式,请将地址手工粘贴到浏览器地址栏再访问)\r\n感谢您的访问,祝您使用愉快!\r\n\r\n此致,\r\n{$sys_config['site_name']} 管理团队.\r\n";
    $send_result = send_mail($email, " [{$sys_config['site_name']}]Email地址验证", $email_message, $sys_config['site_name'], $sys_config['site_admin_email'], array(), 3, false);
    return $send_result;
}
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:33,代码来源:my.func.php


示例4: do_bind

 public function do_bind($openid, $jsg_id = MEMBER_ID)
 {
     if (!$jsg_id) {
         return FALSE;
     }
     jtable('wechat')->delete(array('wechat_id' => $openid));
     jtable('wechat')->delete(array('jsg_id' => $jsg_id));
     $r = jtable('wechat')->insert(array('wechat_id' => $openid, 'jsg_id' => $jsg_id, 'dateline' => TIMESTAMP), 1);
     return $r;
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:10,代码来源:wechat.logic.php


示例5: delMailQueue

 function delMailQueue()
 {
     $ids = jget('ids');
     if ($ids && is_array($ids)) {
         $list = jtable('mailqueue')->get($ids);
         foreach ($list as $row) {
             jtable('mailqueue')->delete(array('uid' => $row['uid']));
         }
     }
     $this->Messager('操作成功', 'admin.php?mod=notice&code=mailq');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:11,代码来源:notice.mod.php


示例6: Reg

 function Reg()
 {
     $uid = max(0, (int) $this->Inputs['uid']);
     $token = $this->Inputs['token'];
     if ($uid > 0 && strlen($token) == 64 && ctype_alnum($token)) {
         $info = jtable('ios')->info(array('token' => $token));
         if (!$info) {
             jtable('ios')->insert(array('uid' => $uid, 'token' => $token), 1);
         } elseif ($uid != $info['uid']) {
             jtable("ios")->update(array('uid' => $uid), $info['id']);
         }
     }
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:13,代码来源:ios.mod.php


示例7: add

 function add($tid, $uid)
 {
     $ret = false;
     $tid = jfilter($tid, 'int');
     $uid = jfilter($uid, 'int');
     if ($tid > 0 && $uid > 0 && !$this->is_at($tid, $uid) && ($row = jtable('topic')->row($tid)) && $uid != $row['uid']) {
         $ret = $this->insert(array('tid' => $tid, 'uid' => $uid, 'tuid' => $row['uid'], 'dateline' => TIMESTAMP), 1);
         if ($ret) {
             $this->cache_rm(array('tid' => $tid, 'uid' => $uid));
             jtable('members')->update_count($uid, 'at_new', '+1', array('+@at_count' => 1));
         }
     }
     return $ret;
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:14,代码来源:topic_mention.class.php


示例8: notice_index

 function notice_index()
 {
     $this->Title = '网站公告';
     $id = jget('id', 'int');
     if ($id < 1) {
         $id = jget('ids', 'int');
         if ($id < 1) {
             $id = jget('code', 'int');
         }
     }
     if ($id > 0) {
         $notice_info = jtable('notice')->info($id);
         $this->Title .= ' - ' . $notice_info['title'];
     }
     $notice_data = jtable('notice')->get_data();
     include template('notice_index');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:17,代码来源:notice.mod.php


示例9: add_order

 public function add_order($data)
 {
     $data['uid'] = MEMBER_ID;
     $data['username'] = MEMBER_NICKNAME;
     $data['sn'] = TIMESTAMP . mt_rand(1, 9999);
     $config = jconf::get('mall');
     $id = jtable('mall_order')->insert($data, 1);
     if ($id) {
         jtable('mall_goods')->update_count(array('id' => $data['goods_id']), 'seal_count', '+' . $data['goods_num']);
         jtable('mall_goods')->update_count(array('id' => $data['goods_id']), 'order_count', '+' . $data['goods_num']);
         jtable('mall_goods')->update_count(array('id' => $data['goods_id']), 'total', '-' . $data['goods_num']);
         update_credits_by_action('convert', $data['uid'], 1, -$data['pay_credit']);
         $feed_msg = cut_str($data['goods_name'], 30, '');
         feed_msg('mall', 'exchange', $data['goods_id'], $feed_msg, 0);
     }
     return $id;
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:17,代码来源:mall_order.logic.php


示例10: exchangegoods

 function exchangegoods()
 {
     $this->Title = '积分兑换记录';
     $pagenum = 10;
     $css['exchange'] = $css['exp'] = ' class="current"';
     $data = jtable('mall_order')->get(array('uid' => MEMBER_ID, 'sql_order' => 'id desc', 'page_num' => $pagenum));
     $page = $data['page']['html'];
     $data = $data['list'];
     foreach ($data as $key => $value) {
         $data[$key]['pay_time'] = $value['pay_time'] > 0 ? my_date_format($value['pay_time']) : '-';
         $data[$key]['xaddress'] = strlen($value['address']) > 26 ? cut_str($value['address'], 15) : $value['address'];
     }
     $feeds = jlogic('feed')->get_feed(5, "`action`='兑换了'");
     $top_credit_members = jlogic('mall')->get_top_member_credits();
     $config = jconf::get('mall');
     include template('mall_exchangegoods');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:17,代码来源:mall.mod.php


示例11: act

 public function act($uid = 0, $tid = 0, $act = '')
 {
     $uid = is_numeric($uid) ? (int) $uid : 0;
     if (jdisallow($uid)) {
         return "您无权进行此操作";
     }
     $tid = is_numeric($tid) ? (int) $tid : 0;
     if ($tid < 1) {
         return "请指定一个微博";
     }
     $topic_info = jtable('topic')->info($tid);
     if (!$topic_info) {
         return "指定的微博已经不存在了";
     }
     $infop = array('uid' => $uid, 'tid' => $tid);
     $topic_favorite = $this->db->info($infop);
     $is_favorite = $topic_favorite ? true : false;
     if ('check' == $act) {
         return $is_favorite ? 1 : 0;
     }
     if ('info' == $act) {
         return $topic_favorite;
     }
     $ret = '';
     if (in_array($act, array('add', 'del', 'delete'))) {
         if ('add' == $act) {
             if (!$is_favorite) {
                 $this->db->insert(array('uid' => $uid, 'tid' => $tid, 'tuid' => $topic_info['uid'], 'dateline' => TIMESTAMP));
                 jtable('members')->update_count($topic_info['uid'], 'favoritemy_new', '+1');
                 if ($GLOBALS['_J']['config']['feed_type'] && is_array($GLOBALS['_J']['config']['feed_type']) && in_array('favorite', $GLOBALS['_J']['config']['feed_type']) && $GLOBALS['_J']['config']['feed_user'] && is_array($GLOBALS['_J']['config']['feed_user']) && array_key_exists(MEMBER_ID, $GLOBALS['_J']['config']['feed_user'])) {
                     $feed_msg = cut_str($topic_info['content'], 30, '');
                     feed_msg('leader', 'favorite', $tid, $feed_msg, $topic_info['item_id']);
                 }
             }
             $ret = "<span><a href='javascript:void(0)'>已收藏</a></span>";
         } else {
             if ($is_favorite) {
                 $this->db->delete($infop);
             }
             $ret = "已取消";
         }
         jtable('members')->update_count($uid, 'topic_favorite_count', $this->db->count(array('uid' => $uid)));
     }
     return $ret;
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:45,代码来源:topic_favorite.logic.php


示例12: qun_announcement_index

 function qun_announcement_index()
 {
     $this->Title = $this->Config['changeword']['weiqun'] . '公告';
     $qid = jget('qid', 'int');
     $id = jget('id', 'int');
     if ($id < 1) {
         $id = jget('ids', 'int');
         if ($id < 1) {
             $id = jget('code', 'int');
         }
     }
     if ($id > 0) {
         $qun_announcement_info = jtable('qun_announcement')->info($id);
         $author_member = jsg_member_info($qun_announcement_info['author_id']);
         $this->Title .= ' - ' . cutstr(trim(strip_tags($qun_announcement_info['message'])), 30);
     }
     include template('qun/qun_announcement_index');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:18,代码来源:qun_announcement.mod.php


示例13: DoModify

 function DoModify()
 {
     if (($new_module = trim($this->Post['new_module'])) && trim($new_module_name = $this->Post['new_module_name'])) {
         jtable('role_module')->replace(array("module" => $new_module, "name" => $new_module_name));
     }
     $module_list = (array) $this->Post['module'];
     foreach ($module_list as $module) {
         jtable('role_module')->replace($module);
     }
     $delete_list = (array) $this->Post['delete'];
     if ($delete_list) {
         $module_in = " `module` IN (" . jimplode($delete_list) . ") ";
         DB::query("DELETE FROM " . TABLE_PREFIX . "role_module where " . $module_in);
         $sql = "DELETE FROM " . TABLE_PREFIX . "role_action where " . $module_in;
         $this->DatabaseHandler->Query($sql);
     }
     $this->Messager("修改成功");
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:18,代码来源:role_module.mod.php


示例14: Topic

 function Topic()
 {
     if (MEMBER_ID < 1) {
         response_text('您是游客,没有权限举报');
     }
     $tid = jget('totid', 'int', 'P');
     $report_reason = $this->Post['report_reason'];
     $report_content = $this->Post['report_content'];
     $data = array('uid' => MEMBER_ID, 'username' => MEMBER_NICKNAME, 'ip' => $GLOBALS['_J']['client_ip'], 'reason' => (int) $report_reason, 'content' => strip_tags($report_content), 'tid' => (int) $tid, 'dateline' => time());
     $result = jtable('report')->insert($data);
     if ($notice_to_admin = $this->Config['notice_to_admin']) {
         $message = "用户" . MEMBER_NICKNAME . "举报了微博ID:{$tid}(" . $data['content'] . "),<a href='admin.php?mod=report&code=report_manage' target='_blank'>点击</a>进入管理。";
         $pm_post = array('message' => $message, 'to_user' => str_replace('|', ',', $notice_to_admin));
         $admin_info = DB::fetch_first('select `uid`,`username`,`nickname` from `' . TABLE_PREFIX . 'members` where `uid` = 1');
         load::logic('pm');
         $PmLogic = new PmLogic();
         $PmLogic->pmSend($pm_post, $admin_info['uid'], $admin_info['username'], $admin_info['nickname']);
     }
     response_text('举报成功');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:20,代码来源:report.mod.php


示例15: Notice_email

 function Notice_email($touid = 0)
 {
     $touid = max(0, (int) $touid);
     $timestamp = time();
     $sql = "select `uid`,`email`,`notice_at`,`notice_pm`,`notice_reply`,`user_notice_time`,`last_notice_time` from `" . TABLE_PREFIX . "members` where `uid` = '{$touid}'";
     $query = $this->DatabaseHandler->Query($sql);
     $members = $query->GetRow();
     $sql = "select * from `" . TABLE_PREFIX . "cron` where `touid` = '{$touid}'";
     $query = $this->DatabaseHandler->Query($sql);
     $crons = $query->GetRow();
     if ($members['user_notice_time'] == 0) {
         Load::logic('task');
         $TaskLogic = new TaskLogic();
         $TaskLogic->run($id = 1);
     }
     if ($send_return) {
         jtable('members')->update_count($touid, 'last_notice_time', $timestamp);
         $sql = "delete from `" . TABLE_PREFIX . "cron` where `id`= '{$crons['id']}' ";
         $this->DatabaseHandler->Query($sql);
     }
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:21,代码来源:notice.logic.php


示例16: outbox

 public function outbox($p)
 {
     $uid = isset($p['uid']) ? (int) $p['uid'] : MEMBER_ID;
     if (jdisallow($uid)) {
         return jerror('您没有权限进行此操作', -1);
     }
     $member = jsg_member_info($uid);
     $pn = (int) $p['page_num'];
     if ($pn < 1) {
         $pn = 10;
     }
     $ps = array('type' => array('both', 'reply'), 'page_num' => $pn);
     if (isset($p['page_url'])) {
         $ps['page_url'] = $p['page_url'];
     }
     $rets = jtable('member_topic')->get_tids($uid, $ps, 1);
     if (is_array($rets)) {
         $rets['member'] = $member;
     }
     return jlogic('topic')->get_by_ids($rets);
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:21,代码来源:comment.logic.php


示例17: doManage

 function doManage($tid, $type = 1, $score = 0)
 {
     $topic_list = array();
     $sql = "select * from " . DB::table('topic') . " where tid = '{$tid}'";
     $topic_list = DB::fetch_first($sql);
     if (!$topic_list) {
         return false;
     } else {
         if ($topic_list['managetype'] != $type) {
             $this->manageDetail($tid, $topic_list['managetype'], $type);
         }
         if ($type == 3) {
             $this->TopicLogic->DeleteToBox($tid, 0);
         } elseif ($type == 4) {
             $this->TopicLogic->DeleteToBox($tid, 1, $score);
         } else {
             if ($type == 1 && $topic_list['type'] == 'first') {
                 $credit_logic = jlogic('credits');
                 $rule = $credit_logic->GetRule('topic');
                 $credit_logic->UpdateCreditsByRule($rule, $topic_list['uid'], 1, $score);
                 $weibo_href = '[a]index.php?mod=topic&code=' . $tid . "[a]";
                 if ($score > 0) {
                     $data = array('uid' => $topic_list['uid'], 'rid' => 0, 'relatedid' => MEMBER_ID, 'dateline' => time(), 'remark' => "发布微博 【微博ID:{$weibo_href}】");
                     foreach ($GLOBALS['_J']['config']['credits']['ext'] as $key => $value) {
                         if ($value['enable'] == 1 && $score > 0) {
                             $data[$key] = $score;
                         }
                     }
                     jtable('credits_log')->insert($data);
                 }
             }
             $sql = "update " . DB::table('topic') . " set managetype = '{$type}' where tid = '{$tid}'";
         }
         DB::query($sql);
     }
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:36,代码来源:topic_manage.logic.php


示例18: dig

 function dig()
 {
     $tid = jget('tid', 'int', 'P');
     $uid = jget('uid', 'int', 'P');
     if ($tid > 0 && $uid > 0) {
         $count = DB::result_first("SELECT COUNT(*) FROM " . DB::table('topic_dig') . " WHERE tid='{$tid}' AND uid = '" . MEMBER_ID . "'");
         if ($count > 0) {
             echo 'no,';
         } else {
             $topic_info = DB::fetch_first("SELECT `uid`,`content`,`item_id` FROM " . DB::table('topic') . " WHERE tid='{$tid}'");
             $uid = $topic_info['uid'];
             if ($uid == MEMBER_ID) {
                 echo 'not,';
             } else {
                 jtable('topic_more')->update_diguids($tid);
                 DB::query("update `" . DB::table('members') . "` set `digcount` = digcount + 1,`dig_new` = dig_new + 1 where `uid`='{$uid}'");
                 $ary = array('tid' => $tid, 'uid' => MEMBER_ID, 'touid' => $uid, 'dateline' => time());
                 DB::insert('topic_dig', $ary, true);
                 jtable('topic')->update_digcounts($tid);
                 if (jconf::get('contest_available')) {
                     if ('contest' == DB::result_first("SELECT `item` FROM " . DB::table('topic') . " WHERE tid={$tid}")) {
                         jlogic('contest_entries')->update_dig($tid);
                     }
                 }
                 $credits = jconf::get('credits');
                 update_credits_by_action('topic_dig', MEMBER_ID);
                 update_credits_by_action('my_dig', $uid);
                 if ($GLOBALS['_J']['config']['feed_type'] && is_array($GLOBALS['_J']['config']['feed_type']) && in_array('dig', $GLOBALS['_J']['config']['feed_type']) && $GLOBALS['_J']['config']['feed_user'] && is_array($GLOBALS['_J']['config']['feed_user']) && array_key_exists(MEMBER_ID, $GLOBALS['_J']['config']['feed_user'])) {
                     $feed_msg = cut_str($topic_info['content'], 30, '');
                     feed_msg('leader', 'dig', $tid, $feed_msg, $topic_info['item_id']);
                 }
                 echo 'yes,' . $this->js_show_msg(1);
             }
         }
     }
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:36,代码来源:dig.mod.php


示例19: _init_table

 function _init_table($id = 0, $type = 0)
 {
     $table = $this->_table;
     if (2 == $type) {
         $table_id = $id;
     } else {
         if (jtable('member_table_id')->get_maps()) {
             $table_id = jtable('member_table_id')->table_id($id, $type);
         }
     }
     if ($table_id) {
         $table = $this->_table . '_' . $table_id;
     }
     $this->init($table);
     return $table;
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:16,代码来源:member_topic.class.php


示例20: check_new_topic

 function check_new_topic($uid = MEMBER_ID, $update_lastactivity = 0, $return_tids = 0, $all_topic_notice = 0)
 {
     $uid = (int) ($uid ? $uid : MEMBER_ID);
     if ($uid < 1) {
         return 0;
     }
     $info = jsg_member_info($uid);
     if (!$info) {
         return 0;
     }
     $t = $info['lastactivity'];
     $count = 0;
     $tids = array();
     if ($t > 0 && $t + 29 < TIMESTAMP) {
         if ($all_topic_notice) {
             $sql = TABLE_PREFIX . "topic` WHERE `type`!='reply' AND `dateline`>'{$t}'";
             $count = DB::result_first("SELECT COUNT(1) AS `count` FROM `" . $sql);
             if ($return_tids) {
                 $query = DB::query("SELECT tid FROM `" . $sql);
                 while (false != ($row = DB::fetch($query))) {
                     $tids[] = $row['tid'];
                 }
             }
         } else {
             $p = array('uid' => $uid, 'count' => 100, 'buddy_lastuptime' => $t);
             $buddy_uids = $this->get_buddyids($p);
             if ($buddy_uids) {
                 $sql = TABLE_PREFIX . "topic` WHERE `uid` IN ('" . implode("','", $buddy_uids) . "') AND `type`!='reply' AND `dateline`>'{$t}'";
                 $count = DB::result_first("SELECT COUNT(1) AS `count` FROM `" . $sql);
                 if ($return_tids) {
                     $query = DB::query("SELECT tid FROM `" . $sql);
                     while (false != ($row = DB::fetch($query))) {
                         $tids[] = $row['tid'];
                     }
                 }
             }
         }
     }
     if ($update_lastactivity) {
         jtable('members')->update_count($uid, 'lastactivity', TIMESTAMP);
     }
     if ($return_tids) {
         return array('count' => $count, 'tids' => $tids);
     } else {
         return $count;
     }
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:47,代码来源:buddy.logic.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP judge_package_stock函数代码示例发布时间:2022-05-15
下一篇:
PHP jstree_sidebar_menu函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap