当前位置: 首页>>代码示例>>PHP>>正文


PHP get_sess_userico函数代码示例

本文整理汇总了PHP中get_sess_userico函数的典型用法代码示例。如果您正苦于以下问题:PHP get_sess_userico函数的具体用法?PHP get_sess_userico怎么用?PHP get_sess_userico使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_sess_userico函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: message_set_remind

function message_set_remind($touid, $content, $link, $type, $is_focus)
{
    $uid = get_sess_userid();
    $userico = get_sess_userico();
    $uname = get_sess_username();
    global $tablePreStr;
    $t_remind = $tablePreStr . "remind";
    $dbo = new dbex();
    dbplugin('w');
    $content = htmlspecialchars_decode($content);
    $link = htmlspecialchars_decode($link);
    if ($is_focus == 0) {
        $update_con = " and type_id = {$type} ";
    } else {
        $update_con = " and link = '{$link}' ";
    }
    $sql_check = " select id from {$t_remind} where user_id={$touid} {$update_con} ";
    $is_set = $dbo->getRow($sql_check);
    if (empty($is_set)) {
        $sql = " insert into {$t_remind} (user_id,type_id,date,content,is_focus,from_uid,from_uname,from_uico,link) values ({$touid},{$type},NOW(),'{$content}',{$is_focus},{$uid},'{$uname}','{$userico}','{$link}') ";
    } else {
        $sql = " update {$t_remind} set count = count+1,date = NOW() where user_id = {$touid} {$update_con} ";
    }
    return $dbo->exeUpdate($sql);
}
开发者ID:omusico,项目名称:Social,代码行数:25,代码来源:message_set.php

示例2: scrip_send

function scrip_send($sender, $title, $content, $to_id, $scrip_id = '')
{
    global $tablePreStr;
    $uid = get_sess_userid();
    $uico = get_sess_userico();
    $t_scrip = $tablePreStr . "msg_inbox";
    $dbo = new dbex();
    dbplugin('w');
    $sql = "insert into {$t_scrip} (mess_title,mess_content,from_user,from_user_ico,user_id,add_time,from_user_id,mesinit_id)" . "value('{$title}','{$content}','{$sender}','{$uico}',{$to_id},NOW(),{$uid},'{$scrip_id}')";
    return $dbo->exeUpdate($sql);
}
开发者ID:omusico,项目名称:Social,代码行数:11,代码来源:scrip_send.php

示例3: share_act

function share_act($dbo, $type_id, $for_content_id, $s_title = '', $tag = '', $link_href = '', $link_thumb = '', $re_m_link = '')
{
    $user_id = get_sess_userid();
    $user_name = get_sess_username();
    $userico = get_sess_userico();
    global $tablePreStr;
    $t_share = $tablePreStr . 'share';
    if ($for_content_id == 0) {
        $sql = "select max(s_id) as max_id from {$t_share}";
        $last_id = $dbo->getRow($sql);
        if ($last_id['max_id'] == NULL) {
            $for_content_id = 1;
        } else {
            $for_content_id = $last_id['max_id'] + 1;
        }
    }
    $sql = "insert into {$t_share} ( type_id,user_id,user_name,user_ico,add_time,for_content_id,s_title,out_link,movie_thumb,movie_link,`tag`) values " . "({$type_id},{$user_id},'{$user_name}','{$userico}',NOW(),{$for_content_id},'{$s_title}','{$link_href}','{$link_thumb}','{$re_m_link}','{$tag}')";
    $dbo->exeUpdate($sql);
    return mysql_insert_id();
}
开发者ID:omusico,项目名称:Social,代码行数:20,代码来源:module_share.php

示例4: update_online_time

function update_online_time($dbo, $table)
{
    $user_id = get_sess_userid();
    $now_time = time();
    $kick_time = 20;
    //设置超时时间
    if ($user_id) {
        $sql = "update {$table} set active_time='{$now_time}' where user_id={$user_id}";
        if (!$dbo->exeUpdate($sql)) {
            global $tablePreStr;
            $t_online = $tablePreStr . "online";
            $user_id = get_sess_userid();
            $user_name = get_sess_username();
            $user_ico = get_sess_userico();
            $user_sex = get_sess_usersex();
            $sql = "insert into {$t_online} (`user_id`,`user_name`,`user_sex`,`user_ico`,`active_time`,`hidden`) values ({$user_id},'{$user_name}','{$user_sex}','{$user_ico}','{$now_time}',0)";
            $dbo->exeUpdate($sql);
        }
    }
    $sql = "delete from {$table} where {$now_time}-active_time>{$kick_time}*60";
    $dbo->exeUpdate($sql);
}
开发者ID:omusico,项目名称:Social,代码行数:22,代码来源:module_remind.php

示例5: polllp

<?php

//引入模块公共方法文件
require "api/base_support.php";
require "foundation/aanti_refresh.php";
//引入语言包
$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";
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:poll_submit.action.php

示例6: albumlp

<?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");
}
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:photo_upl.action.php

示例7: get_sess_userico

					</div>
          <div class="tleft" style="display:none;" id='content_mood_<?php 
    echo $val["mood_id"];
    ?>
'>
          <div class="comment">
          <div id='show_6_<?php 
    echo $val["mood_id"];
    ?>
'></div>
          <?php 
    if ($ses_uid != '') {
        ?>
            <div class="reply">
              <img class="figure" src='<?php 
        echo get_sess_userico();
        ?>
' />
              <p><textarea type="text" maxlength="150" onkeyup="return isMaxLen(this)"  id="reply_6_<?php 
        echo $val['mood_id'];
        ?>
_input"></textarea></p>
              <div class="replybt">
                  <input class="left button" onclick="parent.restore_com(<?php 
        echo $val['user_id'];
        ?>
,6,<?php 
        echo $val['mood_id'];
        ?>
);show('face_list_menu',200)" type="button" name="button" id="button" value="<?php 
        echo $mo_langpackage->mo_b_con;
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:mood_friend.php

示例8: recaffairlp

<?php

require "foundation/fcontent_format.php";
//引入语言包
$rf_langpackage = new recaffairlp();
//变量取得
$ra_type = intval(get_argg('t'));
$user_id = get_sess_userid();
$pals_id = get_sess_mypals();
$start_num = intval(get_argg('start_num'));
$hidden_pals_id = get_session('hidden_pals');
$hidden_type_id = get_session('hidden_type');
$holder_id = intval(get_argg('user_id'));
$visitor_ico = get_sess_userico();
$ra_type_str = $ra_type ? " and type_id={$ra_type} " : "";
$pals_str = '';
$limit_num = 0;
$ra_rs = array();
//数据表定义区
$t_rec_affair = $tablePreStr . "recent_affair";
//数据库读操作
$dbo = new dbex();
dbtarget('r', $dbServs);
if ($holder_id != '') {
    //home新鲜事
    $limit_num = $homeAffairNum;
    $hidden_button_over = "void(0)";
    $hidden_button_out = "void(0)";
    $sql = "select * from {$t_rec_affair} where user_id={$holder_id} order by id desc limit {$start_num} , {$limit_num}";
    $ra_rs = $dbo->getRs($sql);
} else {
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:rec_affair.php

示例9: imagecreatefromgif

    }
    if ($img_ext == 'gif') {
        $temp_img = imagecreatefromgif($ico_url);
    }
    if ($img_ext == 'png') {
        $temp_img = imagecreatefrompng($ico_url);
    }
    $s_ico = str_replace('.' . $img_ext, '_small.' . $img_ext, $ico_url);
    $small_ico = imagecreatetruecolor(70, 70);
    imagecopyresampled($small_ico, $temp_img, 0, 0, 0, 0, 70, 70, 200, 200);
    imagejpeg($small_ico, $s_ico);
} else {
    $s_ico = $ico_url;
}
if (update_user_ico($dbo, $t_users, $user_ico, $u_field_id, $user_id, $s_ico)) {
    if (get_sess_userico() == "skin/{$skinUrl}/images/d_ico_0_small.gif" or get_sess_userico() == "skin/{$skinUrl}/images/d_ico_1_small.gif") {
        increase_integral($dbo, $int_one_ico, get_sess_userid());
    }
    //更新数据
    update_user_ico($dbo, $t_mypals, $pals_ico, $p_field_id, $user_id, $s_ico);
    update_user_ico($dbo, $t_pals_req, $req_ico, $q_field_id, $user_id, $s_ico);
    set_sess_userico($s_ico);
    if (preg_match("/uploadfiles\\/photo_store/", $photo_url)) {
        unlink($photo_url);
        //删除临时图片文件
    }
    //记录新鲜事
    $title = $u_langpackage->u_picture_update;
    $content = '<img class="photo_frame" onerror=parent.pic_error(this) src="' . $ico_url . '" align="top">';
    api_proxy("message_set", 0, $title, $content, 1, 7);
    action_return(1, "", 'modules.php?app=user_ico');
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:user_ico_cut_save.action.php

示例10: hilp

<?php

//引入语言包
$hi_langpackage = new hilp();
require "api/base_support.php";
//变量取得
$hi = short_check(get_argg('hi_t'));
$from_user_id = get_sess_userid();
$from_user_name = get_sess_username();
$from_user_ico = get_sess_userico();
$to_user_id = intval(get_argg('to_userid'));
if ($to_user_id == $from_user_id) {
    echo $hi_langpackage->hi_no_self;
    exit;
}
//数据表定义区
$t_hi = $tablePreStr . "hi";
$dbo = new dbex();
//读写分离定义函数
dbtarget('w', $dbServs);
$sql = "select add_time from {$t_hi} where from_user_id = {$from_user_id} and to_user_id = {$to_user_id} ";
$hi_row = $dbo->getRow($sql);
if (date("Y-m-d", strtotime($hi_row['add_time'])) == date("Y-m-d", time())) {
    echo $hi_langpackage->hi_limit;
    exit;
}
$sql = "insert into {$t_hi}(from_user_id,from_user_name,from_user_ico,hi,to_user_id,add_time) value({$from_user_id},'{$from_user_name}','{$from_user_ico}',{$hi},{$to_user_id},now())";
if ($dbo->exeUpdate($sql)) {
    api_proxy("message_set", $to_user_id, $hi_langpackage->hi_remind, "modules.php?app=user_hi", 0, 4, "remind");
    echo "success";
} else {
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:user_add_hi.action.php

示例11: guestlp

 * 修改完成之后需要您进入后台重新编译,才会重新生成。
 * 如果您开启了debug模式运行,那么您可以省去上面这一步,但是debug模式每次都会判断程序是否更新,debug模式只适合开发调试。
 * 如果您正式运行此程序时,请切换到service模式运行!
 *
 * 如有您有问题请到官方论坛(http://tech.jooyea.com/bbs/)提问,谢谢您的支持。
 */
//引入语言包
$gu_langpackage = new guestlp();
//引入公共模块
require "foundation/fcontent_format.php";
require "api/base_support.php";
//变量取得
$url_uid = intval(get_argg('user_id'));
$ses_uid = get_sess_userid();
$guest_user_name = get_sess_username();
$guest_user_ico = get_sess_userico();
$mypals = get_sess_mypals();
//引入模块公共权限过程文件
$is_login_mode = '';
$is_self_mode = 'partLimit';
require "foundation/auser_validate.php";
//数据表定义区
$t_guest = $tablePreStr . "guest";
$t_users = $tablePreStr . "users";
$dbo = new dbex();
//加为好友 打招呼
$add_friend = "mypalsAddInit";
$send_hi = "hi_action";
if (!$ses_uid) {
    $add_friend = 'goLogin';
    $send_hi = 'goLogin';
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:guest.php

示例12: str_replace

</a></li>
    </ul>
</div>
	<div class="rs_head"><?php 
echo $u_langpackage->u_set_ico;
?>
</div>
	
	<table class='form_table' cellpadding="0" cellspacing="0">
		<tr>
			<th valign="top"><?php 
echo $u_langpackage->u_ico_now;
?>
:</th>
			<td><img class="photo_frame" src="<?php 
echo str_replace('_small', '', get_sess_userico());
?>
"></td>
		</tr>
		<tr>
			<th><?php 
echo $u_langpackage->u_ico_spc;
?>
:</th>
			<td><?php 
echo $u_langpackage->u_ico_siz;
?>
</td>
		</tr>
	</table>
	
开发者ID:omusico,项目名称:Social,代码行数:30,代码来源:user_ico.php


注:本文中的get_sess_userico函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。