需要满足的功能
发帖、 回复、 大召唤、 获取特定贴吧所有会员信息 、删帖、爆吧、防爆吧(会员ID、标题、内容关键词过滤) 、抢楼
关键功能分析
登陆后可以把登陆信息存到文本或内存中,根据条件自己设计
免验证码是用老号点击我喜欢做到的,但是点击我喜欢的频率有限制
爆吧需要多马甲并使用代理,不然马甲被封或则IP被封
抢楼防爆吧都要对首页帖子进行扫描比对,wap版所用流量较少,扫描后按照特定条件进行识别
架构设计
memcached +php+apache+mysql+linux
mysql不是必须的,如果服务器不稳定建议用MySQL,若服务器稳定用memcached即可,效率高、速度快
Linux配置crontab任务定时执行触发脚本,比如扫描贴吧首页等
数据库设计(可选)
贴吧用户表
tieba
| Tieba_ID | Auto_increament int not null |
| login_name | Char(30) not null |
| password | Char(50) not null |
| is_guest | Int(2) not null default 0 |
用户表
User
| User_ID | Auto_increament int not null |
| user_name | Char(30) not null |
| password | Char(50) not null |
| is_admin | Int(2) not null default 0 |
用户表和贴吧表
User2tieba
| User_id | tint not null |
| Tieba_id | Char(30) not null |
发帖定时器
Send_Timer
| Send_Id | Int auto_increament not null |
| Send_time | Int not null default 0 |
| User_id | Int not null |
| Tieba_id | Int not null |
| title | Varchar(200) |
| content | Varchar(200) |
| Tieba_name | Varchar(20) |
| Is_sent | Int not null default 0 |
回复定时器
Replay_timer
| Replay_id | Int auto_increament not null |
| Replay_time | Int not null default 0 |
| Content | Varchar(20) |
| tid | Int |
| Is_sent | Int not null default 0 |
会员列表
Member
| Id | Int not null auto_increament |
| Tieba_name | Varcvhar(20) |
| Member_name | Varchar(20) |