打开admin_robotmessages.php文件,找到下面一段代码:- $setsqlarr = array(
- 'catid' => $_POST['catid'],
- 'uid' => $item['uid'],
- 'username' => $item['username'],
- 'type' => 'news',
- 'subject' => $item['subject'],
- 'dateline' => $item['dateline'],
- 'lastpost' => $item['dateline'],
- 'hash' => $hashstr,
- 'haveattach' => ($item['haveattach']==1?1:0)
- );
复制代码 修改为:- $setsqlarr = array(
- 'catid' => $_POST['catid'],
- 'uid' => $item['uid'],
- 'username' => $item['username'],
- 'type' => 'news',
- 'folder' => '2',
- 'subject' => $item['subject'],
- 'dateline' => $item['dateline'],
- 'lastpost' => $item['dateline'],
- 'hash' => $hashstr,
- 'haveattach' => ($item['haveattach']==1?1:0)
- );
复制代码 打开function/admin.func.php文件,找到函数:messageaddtodb
在函数中找到下面一段代码:- $insertsqlarr = array(
- 'catid' => $msgarr['importcatid'],
- 'uid' => $uid,
- 'username' => saddslashes($username),
- 'type' => 'news',
- 'subject' => saddslashes($msgarr['subject']),
- 'dateline' => $msgarr['dateline'],
- 'lastpost' => $msgarr['dateline'],
- 'hash' => $hashstr,
- 'haveattach' => (!empty($msgarr['patharr'])?1:0)
- );
复制代码 将它改为:- $insertsqlarr = array(
- 'catid' => $msgarr['importcatid'],
- 'uid' => $uid,
- 'username' => saddslashes($username),
- 'type' => 'news',
- 'folder' => '2',
- 'subject' => saddslashes($msgarr['subject']),
- 'dateline' => $msgarr['dateline'],
- 'lastpost' => $msgarr['dateline'],
- 'hash' => $hashstr,
- 'haveattach' => (!empty($msgarr['patharr'])?1:0)
- );
复制代码 保存后即可。 |