功能:一个censor审核提交字符串的类(附加在DEDECMS里面)
两份不同的作品,同样的一种功能,大家评比一下~认为他们的水平如何?
如果你是主考官,你会如何选择?为什么?
涉及MySQL数据表:gk_info_censor
mysql> desc gk_info_censor;
+-------------+----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+----------------------+------+-----+---------+----------------+
| id | smallint(6) unsigned | NO | PRI | NULL | auto_increment |
| admin | varchar(15) | NO | | | |
| type | smallint(6) | NO | | 1 | |
| find | varchar(255) | NO | UNI | | |
| replacement | varchar(255) | NO | | | |
| extra | varchar(255) | NO | | | |
| count | int(11) | NO | | 0 | |
| updatetime | int(11) | NO | | NULL | |
| tids | mediumtext | NO | | NULL | |
| enable | tinyint(1) | NO | | -1 | |
+-------------+----------------------+------+-----+---------+----------------+