Esempio n. 1
0
<?php

/*
	[Destoon B2B System] Copyright (c) 2008-2015 www.destoon.com
	This is NOT a freeware, use is subject to license.txt
*/
defined('DT_ADMIN') or exit('Access Denied');
$menus = array(array('词语过滤', '?file=' . $file));
$do = new banword();
if ($submit) {
    $do->update($post);
    dmsg('更新成功', '?file=' . $file . '&item=' . $item);
} else {
    $condition = "1";
    if ($keyword) {
        $condition .= " AND (replacefrom LIKE '%{$keyword}%' OR replaceto LIKE '%{$keyword}%')";
    }
    $lists = $do->get_list($condition);
    include tpl('banword');
}
class banword
{
    var $db;
    var $table;
    function banword()
    {
        global $db, $DT_PRE;
        $this->table = $DT_PRE . 'banword';
        $this->db =& $db;
    }
    function get_list($condition)