示例#1
0
<?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);
示例#2
0
<?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, "", "");
示例#3
0
<?php

//引入模块公共方法文件
require "foundation/aanti_refresh.php";
require "api/base_support.php";
//引入语言包
$m_langpackage = new msglp();
//变量获得
$msgStr = "";
$msg_touser = intval(get_argp("msToId"));
$msg_title = short_check(get_argp("msTitle"));
$msg_txt = long_check(get_argp("msContent"));
$touser_id = "";
//收件人id
$touser = "";
//收件人name
$tousex = "";
$user_id = get_sess_userid();
//发件人id
$user_name = get_sess_username();
//发件人姓名
$user_ico = get_sess_userico();
if (strlen($msg_txt) >= 500) {
    action_return(0, $m_langpackage->m_add_exc, -1);
    exit;
}
//数据表定义
$t_users = $tablePreStr . "users";
$t_msg_outbox = $tablePreStr . "msg_outbox";
$t_msg_inbox = $tablePreStr . "msg_inbox";
$dbo = new dbex();
示例#4
0
//变量取得
$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}";
    $dbo->exeUpdate($sql);
}
//回应信息
action_return(1, "", "modules.php?app=album");
//引入模块公共方法文件
require "foundation/module_users.php";
require "foundation/aintegral.php";
require "foundation/fcontent_format.php";
require "api/base_support.php";
//语言包引入
$u_langpackage = new userslp();
//数据库操作
dbtarget('w', $dbServs);
$dbo = new dbex();
$photo_url = short_check(get_argg('pic'));
$user_id = get_sess_userid();
//用户ID
$user_name = get_sess_username();
//用户名
$ico_url = long_check(get_argp('u_ico_url'));
//定义文件表,头像字段,参考字段
$t_users = $tablePreStr . 'users';
$t_mypals = $tablePreStr . "pals_mine";
$t_pals_req = $tablePreStr . "pals_request";
$user_ico = "user_ico";
$u_field_id = "user_id";
$pals_ico = "pals_ico";
$p_field_id = "pals_id";
$req_ico = "req_ico";
$q_field_id = "req_id";
if ($ico_url == '') {
    action_return(0, $u_langpackage->u_save_false, '-1');
    exit;
}
//生成70px缩略图
示例#6
0
<?php

//引入模块公共方法文件
$RefreshType = 'ajax';
require "foundation/aanti_refresh.php";
require "api/base_support.php";
//引入语言包
$mo_langpackage = new moodlp();
//变量取得
$user_id = get_sess_userid();
$user_name = get_sess_username();
//用户名
$uico_url = get_sess_userico();
//用户头像
$mood = long_check(get_argp('mood'));
//防止重复提交
antiRePost($mood);
if (strlen($mood) >= 500) {
    action_return(0, $mo_langpackage->mo_add_exc, -1);
    exit;
} else {
    //数据表定义区
    $t_mood = $tablePreStr . "mood";
    $dbo = new dbex();
    //读写分离定义函数
    dbtarget('w', $dbServs);
    //留言
    $sql = "insert into {$t_mood}(`user_id`,`mood`,`add_time`,`user_ico`,`user_name`) values({$user_id},'{$mood}',now(),'{$uico_url}','{$user_name}')";
    if ($dbo->exeUpdate($sql)) {
        $last_id = mysql_insert_id();
        $title = $mo_langpackage->mo_mood_update;