<?php //引入语言包 $a_langpackage = new albumlp(); //变量取得 $album_id = intval(get_argg('album_id')); $photo_id = array(); $photo_information = array(); $album_skin = short_check(get_argp('album_skin')); $photo_id = get_argp('photo_id'); $photo_information = get_argp('photo_information'); $photo_name = get_argp('photo_name'); $user_id = get_sess_userid(); //变量定义区 $t_album = $tablePreStr . "album"; $t_photo = $tablePreStr . "photo"; $dbo = new dbex(); //读写分离定义函数 dbtarget('w', $dbServs); //添加图片信息 foreach ($photo_id as $id) { $information = each($photo_information); $name = each($photo_name); $id = intval($id); $information = long_check($information['value']); $name = short_check($name['value']); $sql = "update {$t_photo} set photo_information = '{$information}',photo_name='{$name}' where photo_id={$id}"; $dbo->exeUpdate($sql); } if (!empty($album_skin)) { $sql = "update {$t_album} set album_skin = '{$album_skin}' where album_id={$album_id}";
//引入语言包 $pol_langpackage = new polllp(); //权限验证 if (!get_argp('action')) { action_return(0, "{$pol_langpackage->pol_error}", "-1"); } //变量声明区 $user_id = get_sess_userid(); $user_name = get_sess_username(); $userico = get_sess_userico(); $cho = get_argp('pol_cho'); $pid = intval(get_argg('pid')); $anon = short_check(get_argp('anonymity')); $total_credit = short_check(get_argp('credit')); $per_int = short_check(get_argp('percredit')); $p_subject = short_check(get_argp('subject')); if (empty($anon)) { $anon = 0; } if (empty($cho)) { action_return(0, "{$pol_langpackage->pol_error}", -1); } //数据表定义区 $t_poll = $tablePreStr . "poll"; $t_polloption = $tablePreStr . "polloption"; $t_polluser = $tablePreStr . "polluser"; $t_users = $tablePreStr . "users"; //定义写操作 dbtarget('r', $dbServs); $dbo = new dbex(); $sql = "select username from {$t_polluser} where uid={$ses_uid} and pid={$pid}";
$g_langpackage = new grouplp(); //变量区 $role = ''; $user_id = get_sess_userid(); $group_id = intval(get_argg('group_id')); $url_uid = intval(get_argg('user_id')); //链接地址变更 $main_URL = "content_none"; $home_URL = ""; $is_admin = get_sess_admin(); if ($is_admin == '') { $main_URL = ""; $home_URL = "content_none"; } $page_num = trim(get_argg('page')); $key_word = short_check(get_argp('key_word')); //数据表定义 $t_users = $tablePreStr . "users"; $t_groups = $tablePreStr . "groups"; $t_group_members = $tablePreStr . "group_members"; $t_group_subject = $tablePreStr . "group_subject"; $t_group_subject_comment = $tablePreStr . "group_subject_comment"; //定义读操作 dbtarget('r', $dbServs); $dbo = new dbex(); $show_action = 0; //权限判断 $role = api_proxy("group_member_by_role", $group_id, $user_id); $role = $role[0]; if (($role == 0 || $role == 1) && isset($role)) { $show_action = 1;
<?php $pl_langpackage = new pluginslp(); require "api/base_support.php"; require "foundation/fpages_bar.php"; $search_app = get_argp('search_app'); $def_image = "skin/" . $skinUrl . "/images/plu_def.jpg"; $page_num = intval(get_argg('page')); $app_rs = array(); if ($search_app) { $page_total = ''; $dbo = new dbex(); dbtarget('r', $dbServs); $t_plugins = $tablePreStr . "plugins"; $search_app = short_check(get_argp('search_app')); $sql = "select * from {$t_plugins} where `title` like '%{$search_app}%'"; $app_rs = $dbo->getRs($sql); $isNull = 1; $error_str = $pl_langpackage->pl_search_none; } else { $app_rs = api_proxy("plugins_get_all"); $isNull = 0; if (empty($app_rs)) { $isNull = 1; } $error_str = $pl_langpackage->pl_none; }
<?php //引入模块公共方法文件 require "foundation/aintegral.php"; require "api/base_support.php"; //引入语言包 $a_langpackage = new albumlp(); //变量取得 $album_id = short_check(get_argp('album_name')); $album_name = short_check(get_argp('album_ufor')); $user_id = get_sess_userid(); $user_name = get_sess_username(); $uico_url = get_sess_userico(); //用户头像 set_session('S_fs', array()); $photos_array = array(); //上传图片地址数组 //变量定义区 $t_photo = $tablePreStr . "photo"; $t_album = $tablePreStr . "album"; $dbo = new dbex(); //读写分离定义函数 dbtarget('w', $dbServs); //第二步,执行文件上传 $limcount = 5; //限制每次上传附件数量 $up_load_num = count($_FILES['attach']['name']); if ($up_load_num > $limcount) { global $a_langpackage; action_return(0, $a_langpackage->a_upload_maximum . $limcount . $a_langpackage->a_attachments, "-1"); }
<?php //引入模块公共方法文件 require "foundation/aanti_refresh.php"; require "foundation/ftag.php"; //引入语言包 $a_langpackage = new albumlp(); //变量取得 $album_name = short_check(get_argp('album_name')); $album_information = short_check(get_argp('album_information')); $privacy = short_check(get_argp('privacy')); $user_id = get_sess_userid(); $user_name = get_sess_username(); $tag = short_check(get_argp('tag')); //防止重复提交 antiRePost($album_name); if ($album_name == '') { action_return(1, "", -1); exit; } //数据表定义区 $t_album = $tablePreStr . "album"; $dbo = new dbex(); //读写分离定义函数 dbtarget('w', $dbServs); $album_skin = "uploadfiles/album/logo.jpg"; $sql = "insert into {$t_album} (`album_name`,`user_id`,`user_name`,`album_info`,`add_time`,`privacy`,`album_skin`,`tag`,`update_time`) " . "values('{$album_name}',{$user_id},'{$user_name}','{$album_information}',NOW(),'{$privacy}','{$album_skin}','{$tag}',NOW()); "; $dbo->exeUpdate($sql); $album_id = mysql_insert_id(); //标签功能 $tag_id = tag_add($tag);
* 如果您正式运行此程序时,请切换到service模式运行! * * 如有您有问题请到官方论坛(http://tech.jooyea.com/bbs/)提问,谢谢您的支持。 */ //必须登录才能浏览该页面 require "foundation/auser_mustlogin.php"; //引入公共模块 require "foundation/module_mypals.php"; require "foundation/fpages_bar.php"; require "api/base_support.php"; //引入语言包 $mp_langpackage = new mypalslp(); $user_id = get_sess_userid(); $user_ico = get_sess_userico(); $sort_id = intval(get_argg('sort_id')); $search_name = short_check(get_argp('search_name')); //数据表定义区 $t_mypals = $tablePreStr . "pals_mine"; $t_pals_sort = $tablePreStr . "pals_sort"; //当前页面参数 $page_num = trim(get_argg('page')); $show_none_str = $mp_langpackage->mp_no_pals; $dbo = new dbex(); dbtarget('r', $dbServs); $sort_str = ''; $mp_list_rs = array(); $mp_sort_list = array(); $sql = "select * from {$t_mypals} where user_id={$user_id} and accepted > 0 "; if ($sort_id != '') { $str = $mp_langpackage->mp_whole; $show_none_str = $mp_langpackage->mp_sort_pals;
echo 'emailmsg|' . $l_langpackage->l_empty_mail; exit; } if (!login_check(get_argp("u_email"))) { echo 'emailmsg|' . $re_langpackage->re_right_email; exit; } if (get_argp("u_pws") == NULL) { echo 'pwdmsg|' . $l_langpackage->l_empty_pass; exit; } $u_email = short_check(get_argp("u_email")); //用户名已经记录了 $user_pws = md5(get_argp("u_pws")); //密码已经记录了 $hidden = intval(get_argp('hidden')); //登录方式 //数据表定义区 $t_users = $tablePreStr . "users"; $t_group_members = $tablePreStr . "group_members"; $t_online = $tablePreStr . "online"; $t_mypals = $tablePreStr . "pals_mine"; $t_frontgroup = $tablePreStr . "frontgroup"; //定义读操作 dbtarget('r', $dbServs); $dbo = new dbex(); $sql = "select * from {$t_users} where user_email='{$u_email}'"; $user_info = $dbo->getRow($sql); if (empty($user_info)) { echo 'emailmsg|' . $l_langpackage->l_not_check; exit;
<?php //语言包引入 $pr_langpackage = new privacylp(); //变量获得 $user_id = get_sess_userid(); $holder_id = intval(get_argg('holder_id')); $answer_key = short_check(get_argp('questions')); $input_answer = short_check(get_argp('answer')); $ha_arr = get_session($holder_id . 'homeAccessAnswers'); if ($ha_arr[$answer_key] == $input_answer) { set_session($holder_id . 'homeAccessAnswers', ''); set_session($holder_id . 'homeAccessPass', '1'); action_return(1, '', "home.php?h={$holder_id}"); } else { set_session($holder_id . 'homeAccessPass', '0'); action_return(0, $pr_langpackage->pr_qanswer_err, -1); }
<?php if (!get_argp('x') || !get_argp('y') || !get_argp('src')) { die; } $x = get_argp('x'); $y = get_argp('y'); $path_prestr = '../../'; $img_path = $path_prestr . get_argp('src'); $img_ext = get_ext($img_path); $img_size = @getimagesize($img_path); $new_width = trim(get_argp('w')); $new_weight = trim(get_argp('h')); $size_ischanged = 0; //是否对图片进行了缩放 if ($img_size[0] != $new_width) { $tmp_path = str_replace('.' . $img_ext, '_tmp.' . $img_ext, $img_path); if (create_thumb($img_path, $tmp_path, $new_width, $new_weight)) { $img_path = $tmp_path; $size_ischanged = 1; } else { exit; } } $ico_path = str_replace('.' . $img_ext, '_ico.' . $img_ext, $img_path); $temp_img = ''; if ($img_ext == 'jpg' || $img_ext == 'jpeg') { $temp_img = imagecreatefromjpeg($img_path); } if ($img_ext == 'gif') { $temp_img = imagecreatefromgif($img_path);
<?php //引入语言包 $pu_langpackage = new publiclp(); $user_id = get_sess_userid(); $user_school = get_argp("user_school"); $user_nickname = get_argp('user_nickname'); if (empty($user_id)) { echo '1'; } else { //数据表定义区 $t_users = $tablePreStr . "users"; $dbo = new dbex(); //增加评论数 dbtarget('w', $dbServs); $updateSql = "update {$t_users} set user_nickname='{$user_nickname}',user_school='{$user_school}' where user_id={$user_id}"; if ($dbo->exeUpdate($updateSql)) { set_session('user_school', $user_school); echo '0'; } else { echo '1'; } }
<?php $getpost_power = true; $iweb_power = true; require dirname(__FILE__) . "/../../api/base_support.php"; $dbo = new dbex(); dbtarget('r', $dbServs); $table_name = get_argp('t_name'); $v_id = get_argp('vid'); $etem = get_argp('tem'); $cols_array = array($tablePreStr . "blog" => "log_id", $tablePreStr . "photo" => "photo_id", $tablePreStr . "album" => "album_id"); $cols_name = $cols_array[$table_name]; $sql = "update {$table_name} set privacy='{$etem}' where {$cols_name}={$v_id} "; if ($dbo->exeUpdate($sql)) { echo 'success'; } else { echo 'false'; }
$touser_ico = $users_row[2]; if ($touser_id == $user_id) { action_return(0, $m_langpackage->m_no_mys, "modules.php?app=msg_creator" . $toidUrlStr); } } else { action_return(0, $m_langpackage->m_one_err, "modules.php?app=msg_creator" . $toidUrlStr); } $dbo = new dbex(); //读写分离定义函数 dbtarget('w', $dbServs); $sql = "insert into {$t_msg_outbox} (mess_title,mess_content,to_user_id,to_user,to_user_ico,user_id,add_time,state)" . "value('{$msg_title}','{$msg_txt}',{$touser_id},'{$touser}','{$touser_ico}',{$user_id},NOW(),'1')"; if (!$dbo->exeUpdate($sql)) { action_return(0, $m_langpackage->m_data_err, "-1"); exit; } $sql = "insert into {$t_msg_inbox} (mess_title,mess_content,from_user_id,from_user,from_user_ico,user_id,add_time,mesinit_id)" . "value('{$msg_title}','{$msg_txt}',{$user_id},'{$user_name}','{$user_ico}',{$touser_id},NOW(),LAST_INSERT_ID())"; if ($dbo->exeUpdate($sql)) { api_proxy("message_set", $touser_id, $m_langpackage->m_remind, "modules.php?app=msg_minbox", 0, 5, "remind"); if (get_argp('nw') == "2") { action_return(1, '', "modules.php?app=hstart&user_id=" . $touser_id); } else { action_return(1, '', "modules.php?app=msg_moutbox" . $toidUrlStr); } } else { $sql = "update {$t_msg_outbox} set state='0' where mess_id=LAST_INSERT_ID()"; $dbo->exeUpdate($sql); action_return(0, $m_langpackage->m_send_err, "-1"); } ?>
<?php //引入模块公共方法文件 require "foundation/module_blog.php"; require "api/base_support.php"; //引入语言包 $b_langpackage = new bloglp(); //变量取得 $ulog_sort = short_check(get_argp("new_sort")); $user_id = get_sess_userid(); $user_name = get_sess_username(); //数据表定义区 $t_blog_sort = $tablePreStr . "blog_sort"; $dbo = new dbex(); //读写分离定义函数 dbtarget('w', $dbServs); $sql = "insert into {$t_blog_sort} (name,user_id) value('{$ulog_sort}',{$user_id})"; if ($dbo->exeUpdate($sql)) { $sel_sort_id = mysql_insert_id(); $blog_sort_rs = api_proxy("blog_sort_by_uid", $user_id); blog_sort_list($blog_sort_rs, $sel_sort_id); } else { echo $b_langpackage->b_add_fal; }
<?php $ua_langpackage = new userapplp(); require "api/base_support.php"; $id = intval(get_argg('id')); $is_affair = intval(get_argp('is_affair')); $app_rs = api_proxy("plugins_get_pid", $id); $def_small_image = "skin/" . $skinUrl . "/images/plu_def_small.gif"; $small_url = $app_rs['image'] ? preg_replace("/([^\\.]+)(\\.\\w+)/", "\$1_small\$2", "plugins/" . $app_rs['name'] . "/" . $app_rs['image']) : $def_small_image; if ($id) { api_proxy("plugins_set_mine", $id); if ($is_affair == 1) { $title = $ua_langpackage->ua_add_new_app; $content = '<a href="main.php?app=add_app&id=' . $app_rs['id'] . '" target="_blank">' . $app_rs['title'] . '</a>'; api_proxy("message_set", 0, $title, $content, 0, 8); } } action_return(1, '', -1);
$com_sub = get_argp('com_sub'); $com_sub = get_argp('com_sub'); $del_blog = get_argp('del_blog'); $del_photo = get_argp('del_photo'); $del_com_msg = get_argp('del_com_msg'); $del_subject = get_argp('del_subject'); $del_com_sub = get_argp('del_com_sub'); $invited = get_argp('invited'); $login = get_argp('login'); $one_ico = get_argp('one_ico'); $convert = get_argp('convert'); $upgrade = get_argp('upgrade'); $poll = get_argp('poll'); $del_poll = get_argp('del_poll'); $sha = get_argp('sha'); $del_sha = get_argp('del_sha'); dbtarget('w', $dbServs); $sql = "update {$t_integral} set integral={$blog} where operation='blog'"; $dbo->exeUpdate($sql); $sql = "update {$t_integral} set integral={$photo} where operation='photo'"; $dbo->exeUpdate($sql); $sql = "update {$t_integral} set integral={$com_msg} where operation='com_msg'"; $dbo->exeUpdate($sql); $sql = "update {$t_integral} set integral={$subject} where operation='subject'"; $dbo->exeUpdate($sql); $sql = "update {$t_integral} set integral={$com_sub} where operation='com_sub'"; $dbo->exeUpdate($sql); $sql = "update {$t_integral} set integral={$del_blog} where operation='del_blog'"; $dbo->exeUpdate($sql); $sql = "update {$t_integral} set integral={$del_photo} where operation='del_photo'"; $dbo->exeUpdate($sql);
<?php //引入语言包 $a_langpackage = new albumlp(); //变量取得 $photo_id = intval(get_args('photo_id')); $information = long_check(get_argp('information_value')); $user_id = get_sess_userid(); //数据表定义区 $t_photo = $tablePreStr . "photo"; $dbo = new dbex(); //读写分离定义函数 dbtarget('w', $dbServs); //更改图片信息 $sql = "update {$t_photo} set photo_information='{$information}' where photo_id={$photo_id} and user_id={$user_id}"; $dbo->exeUpdate($sql); echo filt_word($information);
<?php require "session_check.php"; require "../api/Check_MC.php"; $is_check = check_rights("c07"); if (!$is_check) { echo $m_langpackage->m_no_pri; exit; } //语言包引入 $m_langpackage = new modulelp(); //数据表定义区 $t_recommend = $tablePreStr . "recommend"; $t_users = $tablePreStr . "users"; //变量区 $user_name = short_check(get_argp('uname')); $user_ico = short_check(get_argg('uico')); $is_pass = short_check(get_argg('upass')); $user_id = intval(get_argg('uid')); $guest_num = intval(get_argg('gnum')); $user_sex = intval(get_argg('usex')); $dbo = new dbex(); dbtarget('w', $dbServs); $sql = "insert into {$t_recommend} (user_id,user_name,user_ico,is_pass,guest_num,user_sex,show_ico) " . "values ('{$user_id}','{$user_name}','{$user_ico}','{$is_pass}','{$guest_num}','{$user_sex}','{$user_ico}')"; $sql1 = "update {$t_users} set is_recommend=1 where user_id={$user_id}"; if ($dbo->exeUpdate($sql) && $dbo->exeUpdate($sql1)) { $key_mt = 'recommend/list/rec_order/all/0_mt'; updateCache($key_mt); echo $m_langpackage->m_recomed; } else { echo $m_langpackage->m_recomed_lose;
<?php //引入语言包 $pu_langpackage = new publiclp(); //变量取得 $comment_content = get_argp("comment_content"); $comment_type = get_argp("comment_type"); //$user_id = get_session('user_id'); $commenter_id = get_sess_userid(); if (empty($commenter_id)) { header("location:error.php"); exit; } $paper_id = get_argp("paper_id"); //数据表定义区 $t_comments = $tablePreStr . "comments"; $t_papers = $tablePreStr . "papers"; $current_time = date('y-m-d H:i:s', time()); $dbo = new dbex(); //增加评论数 //insert into isns_papers (user_id, content, picture, create_time) value (1, '纸条内容', '纸条路径', '2015-08-12 15:57:12'); dbplugin('r'); $get_comment_count_sql = "select {$t_papers}.comment_count,{$t_papers}.private_count from {$t_papers} where {$t_papers}.paper_id={$paper_id}"; $result_rs = $dbo->getRow($get_comment_count_sql); $comment_count = $result_rs['comment_count']; $private_count = $result_rs['private_count']; if ($comment_type == 0) { $comment_count += 1; } else { $private_count += 1; }
<?php require "toolsBox/clear_test/ftool_clearTestData.php"; //语言包引入 $t_langpackage = new toollp(); $dbo = new dbex(); dbtarget('w', $dbServs); $uid = intval(get_argp('user_id')); ?> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="css/right.css"> </head> <body> <div class="container"> <div class="rs_head">删除测试信息</div> </div> <form action='' method='post'> <table class='main main_left'> <?php if ($uid == 0) { ?> <tr> <td>输入要删除用户的id值:<input type='text' name='user_id' /><input type='submit' value='删除' class='top_button' /></td> </tr> <?php } else { echo del_user($dbo, $uid);
<?php header("content-type:text/html;charset=utf-8"); require "../foundation/asession.php"; require "../configuration.php"; require "includes.php"; //语言包引入 $l_langpackage = new loginlp(); //表定义区 $t_admin = $tablePreStr . "admin"; $t_backgroup = $tablePreStr . "backgroup"; $admin_name = short_check(get_argp('admin_name')); $admin_password = short_check(get_argp('admin_password')); $dbo = new dbex(); dbtarget('w', $dbServs); $sql = " select * from {$t_admin} where admin_name='{$admin_name}' and is_pass=1 "; $admin_info = $dbo->getRow($sql); if ($admin_info['admin_name'] == $admin_name && $admin_password == $admin_info['admin_password']) { echo "<script type='text/javascript' src='servtools/rpc.js'></script>"; set_session('admin_id', $admin_info['admin_id']); set_session('admin_group', $admin_info['admin_group']); if ($admin_info['admin_group'] != 'superadmin') { $sql = "select rights from {$t_backgroup} where gid='{$admin_info['admin_group']}'"; $rights = $dbo->getRow($sql); if ($rights) { set_session('rights', $rights['rights']); } } set_sess_admin($admin_info['admin_name']); sleep(1); echo "<script type='text/javascript'>window.location.href='main.php';</script>";
require "foundation/module_users.php"; require "foundation/module_mypals.php"; require "foundation/aintegral.php"; require "api/base_support.php"; //数据表定义区 $t_report = $tablePreStr . "report"; //引入语言包 $rp_langpackage = new reportlp(); $dbo = new dbex(); //变量区 $type = intval(get_argg('type')); $user_id = get_sess_userid(); $user_name = get_sess_username(); $userd_id = intval(get_argg('uid')); $reason = short_check(get_argp('reason')); $mod_id = intval(get_argg('mod_id')); $t_report = $tablePreStr . "report"; dbtarget('r', $dbServs); $sql = "select user_id from {$t_report} where reported_id={$mod_id} and type={$type}"; $report_row = $dbo->getRow($sql); if ($report_row) { if ($user_id == $report_row['user_id']) { echo $rp_langpackage->rp_no_repeat; exit; } else { dbtarget('w', $dbServs); $sql = "update {$t_report} set rep_num=rep_num+1 where reported_id={$mod_id} and type={$type}"; if ($dbo->exeUpdate($sql)) { echo 'true'; } else {
action_return(0, $g_langpackage->g_no_privilege, "-1"); } //定义写操作 dbtarget('w', $dbServs); $group_name = short_check(get_argp('group_name')); $group_resume = short_check(get_argp('group_resume')); $group_join_type = intval(get_argp('group_join_type')); $group_type_id = intval(get_argp('group_type_id')); $group_type_name = short_check(get_argp('group_type_name')); $tag = short_check(get_argp('tag')); $gonggao = short_check(get_argp('affiche')); $is_pic = ""; if (isset($_FILES['attach']) && $_FILES['attach']['name'][0] != '') { $up = new upload(); $up->set_dir('uploadfiles/group_logo/', '{y}/{m}/{d}'); //目录设置 $fs = $up->execute(); if ($fs[0]['flag'] == -1) { action_return(0, $g_langpackage->g_logo_limit, "-1"); } $fileSrcStr = str_replace(dirname(__FILE__), "", $fs[0]['dir']) . $fs[0]['name']; @unlink(get_argp('old_group_logo')); $is_pic = ",group_logo='{$fileSrcStr}'"; } $sql = "update {$t_groups} set group_name='{$group_name}',affiche ='{$gonggao}',tag = '{$tag}',group_resume = '{$group_resume}',group_join_type = {$group_join_type},group_type = '{$group_type_name}',group_type_id={$group_type_id} {$is_pic} where group_id={$group_id}"; $dbo->exeUpdate($sql); $jump = "modules.php?app=group_manager&group_id={$group_id}"; action_return(1, '', $jump); ?>
echo $m_langpackage->m_no_pri; exit; } } $sql = "delete from {$sort_table} where id={$sort_id}"; $dbo->exeUpdate($sql); break; case "change": if ($module == "group") { $is_check = check_rights("a08"); if (!$is_check) { echo $m_langpackage->m_no_pri; exit; } } else { $is_check = check_rights("a12"); if (!$is_check) { echo $m_langpackage->m_no_pri; exit; } } $sort_name = get_argp('sort_name'); $sort_order = get_argp('sort_order'); $sql = "update {$sort_table} set name='{$sort_name}',order_num={$sort_order} where id={$sort_id}"; $dbo->exeUpdate($sql); break; default: echo "error"; break; } updateCache($key_mt);
require "session_check.php"; require "../foundation/aintegral.php"; $is_check = check_rights("c31"); if (!$is_check) { echo $m_langpackage->m_no_pri; exit; } //语言包引入 $m_langpackage = new modulelp(); //判断是否批量删除 if (get_argp('checkany')) { //批量 $dbo = new dbex(); dbtarget('r', $dbServs); dbtarget('w', $dbServs); $mess_ids = get_argp('checkany'); //数据表定义 $t_table = $tablePreStr . "msgboard"; foreach ($mess_ids as $rs) { //变量取得 $sql = "select * from {$t_table} where mess_id={$rs}"; $msgboards = $dbo->getRow($sql); $fu_id = $msgboards['from_user_id']; $to_uid = $msgboards['to_user_id']; //删除留言 $sql = "delete from {$t_table} where mess_id={$rs}"; if ($dbo->exeUpdate($sql)) { increase_integral($dbo, $int_del_com_msg, $fu_id); } } } else {
<?php //引入语言包 $a_langpackage = new albumlp(); //变量取得 $album_id = intval(get_argg('album_id')); $album_name = short_check(get_argp('album_name')); $album_information = long_check(get_argp('album_information')); $tag = short_check(get_argp('tag')); $privacy = short_check(get_argp('privacy')); $user_id = get_sess_userid(); //数据表定义区 $t_album = $tablePreStr . "album"; $dbo = new dbex(); //读写分离定义函数 dbtarget('w', $dbServs); $sql = "update {$t_album} set `album_name`='{$album_name}',`user_id`={$user_id},`album_info`='{$album_information}',`tag`='{$tag}',`update_time`=NOW(),`privacy`='{$privacy}' where album_id={$album_id}"; $dbo->exeUpdate($sql); //回应信息 action_return(1, "", "");
<?php //引入语言包 $m_langpackage = new msglp(); //变量获得 $msg_id = intval(get_argg("id")); $user_uid = get_sess_userid(); $del_array = get_argp("attach"); //数据表定义区 $t_msg_inbox = $tablePreStr . "msg_inbox"; $t_msg_outbox = $tablePreStr . "msg_outbox"; $dbo = new dbex(); //读写分离定义函数 dbtarget('w', $dbServs); if ($del_array == NULL) { $del_array[] = $msg_id; } foreach ($del_array as $rs) { $rs = short_check($rs); if (get_argg("t") == "0") { $sql = "delete from {$t_msg_inbox} where mess_id={$rs} and user_id={$user_uid}"; $reTurnUrl = "modules.php?app=msg_minbox"; } else { if (get_argg("t") == "1") { $sql = "delete from {$t_msg_outbox} where mess_id={$rs} and user_id={$user_uid}"; $reTurnUrl = "modules.php?app=msg_moutbox"; } else { if (get_argg("t") == "2") { $sql = "delete from {$t_msg_inbox} where mess_id={$rs} and user_id={$user_uid}"; $reTurnUrl = "modules.php?app=msg_notice"; }
* 如果您的模板要进行修改,请修改 templates/default/modules/users/user_pw_change.html * 如果您的模型要进行修改,请修改 models/modules/users/user_pw_change.php * * 修改完成之后需要您进入后台重新编译,才会重新生成。 * 如果您开启了debug模式运行,那么您可以省去上面这一步,但是debug模式每次都会判断程序是否更新,debug模式只适合开发调试。 * 如果您正式运行此程序时,请切换到service模式运行! * * 如有您有问题请到官方论坛(http://tech.jooyea.com/bbs/)提问,谢谢您的支持。 */ //语言包引入 $u_langpackage = new userslp(); //变量获得 $user_id = get_sess_userid(); $formerly_pw = short_check(get_argp('formerly_pw')); $new_pw = short_check(get_argp('new_pw')); $new_pw_repeat = short_check(get_argp('new_pw_repeat')); $model = short_check(get_argg('model')); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <base href='<?php echo $siteDomain; ?> ' /> <script type="text/javascript"> // 检测原密码 old_password = function(){ var old_password = document.getElementById('formerly_pw');
<?php //引入语言包 $pr_langpackage = new privacylp(); //变量获得 $user_id = get_sess_userid(); $input_mess_para = short_check(get_argp('input_mess')); //数据表定义区 $t_users = $tablePreStr . "users"; $dbo = new dbex(); //读写分离定义函数 dbtarget('w', $dbServs); $sql = "update {$t_users} set inputmess_limit={$input_mess_para} where user_id={$user_id}"; $dbo->exeUpdate($sql); action_return(1, $pr_langpackage->pr_save_sec, "modules.php?app=pr_inputmess");
//引入语言包 $u_langpackage = new userslp(); //变量获得 $user_id = get_sess_userid(); $model = short_check(get_argg('model')); $marry = short_check(get_argp('marry')); $birth_year = short_check(get_argp('birth_year')); $birth_month = short_check(get_argp('birth_month')); $birth_day = short_check(get_argp('birth_day')); $blood = short_check(get_argp('blood')); $reside_city = short_check(get_argp('reside_city')); $reside_province = short_check(get_argp('reside_province')); $birth_city = short_check(get_argp('birth_city')); $birth_province = short_check(get_argp('birth_province')); $qq = short_check(get_argp('qq')); $is_finish = intval(get_argg('is_finish')); //表声明区 $t_users = $tablePreStr . "users"; $t_online = $tablePreStr . "online"; $dbo = new dbex(); //读写分离定义函数 dbtarget('w', $dbServs); //更新users表 $sql = "update {$t_users} set birth_province='{$birth_province}',birth_city='{$birth_city}',reside_province='{$reside_province}',reside_city='{$reside_city}',user_marry='{$marry}',birth_year='{$birth_year}',birth_month='{$birth_month}',birth_day='{$birth_day}',user_blood='{$blood}',user_qq='{$qq}'\r\n\t\t\twhere user_id = {$user_id};"; $dbo->exeUpdate($sql); //更新online表 $sql = "update {$t_online} set birth_province='{$birth_province}',birth_city='{$birth_city}',reside_province='{$reside_province}',reside_city='{$reside_city}',birth_year='{$birth_year}' where user_id = {$user_id};"; $dbo->exeUpdate($sql); //回应信息 action_return(1, "", "modules.php?app=user_info&single={$is_finish}&user_id={$user_id}");