- if(submitcheck('pokesubmit')) {
- $setarr = array(
- 'uid' => $uid,
- 'fromuid' => $_SGLOBAL['supe_uid'],
- 'fromusername' => $_SGLOBAL['supe_username'],
- 'note' => getstr($_POST['note'], 50, 1, 1),
- 'dateline' => $_SGLOBAL['timestamp'],
- 'iconid' => intval($_POST['iconid'])
- );
- $geticonid=$setarr['iconid']; //该语句总是没有执行,前面后面的代码都可以执行,不知道为什么
- inserttable('poke', $setarr, 0, true);
- //更新我的好友关系热度
- $_SGLOBAL['db']->query("UPDATE ".tname('friend')." SET num=num+1 WHERE uid='$_SGLOBAL[supe_uid]' AND fuid='$uid'");
- //发送邮件通知
- smail($uid, '',cplang('poke_subject',array($_SN[$space['uid']], getsiteurl().'cp.php?ac=poke')));
- if($op == 'reply') {
- //删除招呼
- $_SGLOBAL['db']->query("DELETE FROM ".tname('poke')." WHERE uid='$_SGLOBAL[supe_uid]' AND fromuid='$uid'");
- }
- showmessage('poke_success', $_POST['refer'], 1, array($_SN[$tospace['uid']]));
- }
复制代码
求助啊
|