<?php //引入公共模块 require "foundation/aanti_refresh.php"; require "foundation/aintegral.php"; require "foundation/module_group.php"; require "foundation/ftag.php"; //引入语言包 $g_langpackage = new grouplp(); //变量区 $user_id = get_sess_userid(); $user_name = get_sess_username(); $user_ico = get_sess_userico(); $join_group = get_sess_jgroup(); $creat_group = get_sess_cgroup(); $group_id = intval(get_argg('group_id')); $ulog_title = short_check(get_argp("LOG_TITLE")); $ulog_txt = big_check(get_argp("CONTENT")); $u_id = intval(get_argg('user_id')); $tag = short_check(get_argp('tag')); //防止重复提交 antiRePost($ulog_title); //数据表定义 $t_group_subject = $tablePreStr . "group_subject"; $t_group = $tablePreStr . "groups"; //权限判定 dbtarget('r', $dbServs); $dbo = new dbex(); //写入方式 dbtarget('w', $dbServs); $sql = "insert into {$t_group_subject} (user_id,title,content,add_time,group_id,user_name,hits,user_ico,`tag`) values({$user_id},'{$ulog_title}','{$ulog_txt}',NOW(),{$group_id},'{$user_name}',0,'{$user_ico}','{$tag}')";
<?php //引入语言包 $g_langpackage = new grouplp(); //引入模块公共权限过程文件 require "foundation/fpages_bar.php"; require "foundation/module_group.php"; require "api/base_support.php"; //变量区 $userid = get_sess_userid(); $url_uid = get_argg('url_uid'); $user_join_group = get_sess_jgroup(); $user_creat_group = get_sess_cgroup(); //数据表定义 $t_groups = $tablePreStr . "groups"; $t_group_members = $tablePreStr . "group_members"; //定义读操作 dbtarget('r', $dbServs); $dbo = new dbex(); $cols = "1=1"; //按群组名 if (get_argg('group_name')) { $search = short_check(get_argg('group_name')); $cols .= " and group_name like '%{$search}%' "; } //按群组标签名 if (get_argg('tag')) { $search = short_check(get_argg('tag')); $cols .= " and tag like '%{$search}%' "; } //按群组类型