本文整理汇总了PHP中filt_word函数的典型用法代码示例。如果您正苦于以下问题:PHP filt_word函数的具体用法?PHP filt_word怎么用?PHP filt_word使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了filt_word函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_lentxt
function get_lentxt($txtstr, $maxlen)
{
if (strlen($txtstr) > $maxlen) {
return substr(filt_word($txtstr), 0, $maxlen) . '...';
} else {
return filt_word($txtstr);
}
}
开发者ID:omusico,项目名称:Social,代码行数:8,代码来源:fcontent_format.php
示例2: array
require "foundation/auser_validate.php";
require "foundation/module_mypals.php";
require "api/base_support.php";
//数据显示控制
$show_data = "";
$show_error = "content_none";
$show_content = "content_none";
//数据表定义区
$t_photo = $tablePreStr . "photo";
$t_photo_comment = $tablePreStr . "photo_comment";
$t_users = $tablePreStr . "users";
$t_album = $tablePreStr . "album";
$album_info = array();
$photo_row = array();
$album_info = api_proxy("album_self_by_aid", "album_name", $album_id);
$a_who = $is_self == 'Y' ? $a_langpackage->a_mine : str_replace('{holder}', filt_word(get_hodler_name($url_uid)), $a_langpackage->a_holder);
if ($album_info) {
//查找相册信息
$album_name = $album_info['album_name'];
if ($prev_next) {
$photo_rs = api_proxy('album_photo_by_aid', 'photo_id', $album_id);
$num = count($photo_rs);
foreach ($photo_rs as $key => $val) {
if ($val['photo_id'] == $photo_id) {
$photo_id = $photo_rs[$prev_next === 'next' ? $key == $num - 1 ? 0 : $key + 1 : ($prev_next === 'prev' ? $key == 0 ? $num - 1 : $key - 1 : 0)]['photo_id'];
break;
}
}
}
$photo_row = api_proxy("album_photo_by_photoid", "*", $photo_id);
//查找照片信息
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:photo_view.php
示例3: check_pri
<?php
$is_pri = check_pri($val['user_id'], $val['privacy']);
?>
<dl class="list_album" onmouseover="this.className += ' list_album_active';" onmouseout="this.className='list_album';" >
<dt><a href='<?php
echo $is_pri ? "modules.php?app=photo_list&album_id=" . $val['album_id'] . "&user_id=" . $val['user_id'] : "javascript:void(0)";
?>
'><img src=<?php
echo $is_pri ? $val['album_skin'] : "skin/{$skinUrl}/images/errorpage.gif";
?>
onerror="parent.pic_error(this)" class='user_ico'></a></dt>
<dd><strong><a href="<?php
echo $is_pri ? "modules.php?app=photo_list&album_id=" . $val['album_id'] . "&user_id=" . $val['user_id'] : "javascript:void(0)";
?>
"><?php
echo filt_word($val['album_name']);
?>
</a></strong></dd>
<dd><?php
echo $val['user_name'];
echo $a_langpackage->a_of_album;
?>
<label>(<?php
echo str_replace('{holder}', $val['photo_num'], $a_langpackage->a_num);
?>
)</label></dd>
<dd><?php
echo $a_langpackage->a_label;
?>
:<?php
echo $val['tag'];
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:album_friend.php
示例4: filt_word
,<?php
echo $mod_id;
?>
,<?php
echo $rs["visitor_id"];
?>
)><?php
echo $pu_langpackage->pu_re;
?>
</a>
<?php
}
?>
</label>
<p class="left"><?php
echo filt_word(get_face($rs["content"]));
?>
</p>
</div>
<?php
}
?>
<div class="stat"><a href="javascript:void(0)" id="page_<?php
echo $type_id;
?>
_<?php
echo $mod_id;
?>
" onclick="<?php
echo $function;
?>
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:get_restore.php
示例5: albumlp
<?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);
开发者ID:omusico,项目名称:Social,代码行数:17,代码来源:photo_im.action.php
示例6: filt_word
</a></dt>
<dd><?php
echo $g_langpackage->g_type;
?>
:<?php
echo $rs['group_type'];
?>
</dd>
<dd><?php
echo $g_langpackage->g_founder;
?>
:<a href='home.php?h=<?php
echo $userid;
?>
' target="_blank"><?php
echo filt_word($rs['group_creat_name']);
?>
</a></dd>
<dd><?php
echo join_type($rs['group_join_type']);
?>
<label><?php
echo str_replace('{num}', $rs['member_count'], $g_join_num);
?>
</label></dd>
</dl>
</div>
</div>
<?php
}
?>
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:search_group.php
示例7: str_replace
echo $pol_langpackage->pol_anon;
?>
</div>
</form>
<div class="clear"></div>
<!--总结报告!-->
<div class='poll_summary <?php
echo $show_sumary;
?>
'>
<?php
echo str_replace("{name}", filt_word($poll_row['username']), $pol_langpackage->pol_sumary);
?>
<div class='poll_summary_content'>
<div class="left_g left"></div><div class="center_g left"><?php
echo filt_word($poll_row['summary']);
?>
</div><div class="right_g left"></div>
</div>
</div>
</div>
<!--最新投票区!-->
<div class="container <?php
echo $show_poll_info;
?>
">
<div class="rs_head"><?php
echo $pol_langpackage->pol_info;
?>
</div>
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:poll_show.php
示例8: sub_str
echo $f_langpackage->f_fri;
?>
"><img src="<?php
echo $val['pals_ico'];
?>
" /></a>
</div>
<dl>
<dt><a href="home.php?h=<?php
echo $val["pals_id"];
?>
" target="_blank" title="<?php
echo $f_langpackage->f_fri;
?>
"> <?php
echo sub_str(filt_word($val['pals_name']), 6, true);
?>
</a></dt>
<dd><?php
echo $val['pals_sort_name'];
?>
</dd>
</dl>
</li>
<?php
}
?>
</ul>
</div>
</div>
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:friend_all.php
示例9: filt_word
'><img src="<?php
echo $rs['group_logo'] ? $rs['group_logo'] : 'uploadfiles/group_logo/default_group_logo.jpg';
?>
" width='100px' height='100px' alt="<?php
echo $rs['group_name'];
?>
" onerror="parent.pic_error(this)" /></a></div>
<dl class="group_list">
<dt><a href='modules.php?app=group_space&group_id=<?php
echo $rs["group_id"];
?>
&user_id=<?php
echo $url_uid;
?>
'><?php
echo filt_word($rs['group_name']);
?>
</a></dt>
<dd><?php
echo $g_langpackage->g_type;
?>
:<?php
echo $rs['group_type'];
?>
</dd>
<dd><?php
echo str_replace('{num}', '<span>' . $rs['member_count'] . '</span>', $g_join_num);
?>
</dd>
<dd class="<?php
echo $show_his;
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:group_mine.php
示例10: filt_word
<div class='container' style='padding-top:15px;margin-top:0px'>
<div class='rs_head' style='margin-top:0px'><?php
echo $user_info['user_name'];
echo $u_langpackage->u_inf;
?>
</div>
</div>
<table class='main main_left'>
<tr>
<th><?php
echo $u_langpackage->u_name;
?>
</th>
<td><?php
echo filt_word($user_info['user_name']);
?>
</td>
</tr>
<tr>
<th><?php
echo $u_langpackage->u_sex;
?>
</th>
<td><?php
echo info_item_format($info_item_init, $user_sex_txt);
?>
</td>
</tr>
开发者ID:omusico,项目名称:Social,代码行数:30,代码来源:user_archives.php
示例11: sub_str
echo $gu_langpackage->gu_see;
?>
">
<img src="<?php
echo $val['guest_user_ico'];
?>
" />
</a>
<span class="name"><a href="home.php?h=<?php
echo $val["guest_user_id"];
?>
" target="_blank" title="<?php
echo $gu_langpackage->gu_see;
?>
"><?php
echo sub_str(filt_word($val['guest_user_name']), 6, true);
?>
</a></span>
<span class="time"><?php
echo format_datetime_short($val['add_time']);
?>
</span>
<span>
<img style="cursor:pointer;" onclick="<?php
echo $send_hi;
?>
(<?php
echo $val["guest_user_id"];
?>
)" src="skin/<?php
echo $skinUrl;
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:guest.php
示例12: empty
&user_id=<?php
echo $blog_row['user_id'];
?>
" title="<?php
echo $b_langpackage->b_same_sort;
?>
"><?php
echo empty($blog_row['log_sort_name']) ? $b_langpackage->b_default_sort : filt_word($blog_row['log_sort_name']);
?>
</a></span><span class="log_list_options"><?php
echo $blog_row["add_time"];
?>
</span>
</dt>
<dd class="log_list_content"><?php
echo filt_word($blog_row['log_content']);
?>
</dd>
<dd><span><?php
echo $b_langpackage->b_label;
?>
:<?php
echo $blog_row['tag'];
?>
</span>
<span><?php
echo str_replace("{b_com_num}", $blog_row['comments'], $b_langpackage->b_com_num);
?>
</span>
<span><?php
echo str_replace("{b_read_num}", $blog_row['hits'], $b_langpackage->b_read_num);
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:blog_show.php
示例13: urlencode
?>
<br /><span><?php
echo $b_langpackage->b_sort;
?>
:<a href="modules.php?app=blog_list&sort_id=<?php
echo $rs['log_sort'];
?>
&sort_name=<?php
echo urlencode($rs['log_sort_name']);
echo $url_userid;
?>
" title="<?php
echo $b_langpackage->b_same_sort;
?>
"><?php
echo empty($rs['log_sort_name']) ? $b_langpackage->b_default_sort : filt_word($rs['log_sort_name']);
?>
</a></span><span><?php
echo $rs["add_time"];
?>
</span>
</dt>
<dd class="log_list_content"><?php
echo $is_pri ? sub_str(strip_tags($rs["log_content"]), 180) : $b_langpackage->b_limit_blog;
?>
</dd>
<dd>
<?php
if ($rs['tag']) {
?>
<span><?php
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:blog_list.php
示例14: filt_word
<dl class="share_list">
<dt><strong><a href="home.php?h=<?php
echo $rs["user_id"];
?>
" target="_blank"><?php
echo filt_word($rs['user_name']);
?>
</a></strong><?php
echo filt_word($rs['s_title']);
?>
<br /><span><?php
echo $rs['add_time'];
?>
</span></dt>
<dd class="share_list_content"><?php
echo filt_word($rs['content']);
?>
</dd>
<dd>
<span><?php
echo $s_langpackage->s_label;
?>
:<?php
echo $rs['tag'];
?>
</span><span>|</span>
<span><a href='javascript:share_com(<?php
echo $rs["s_id"];
?>
,<?php
echo $rs["s_id"];
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:share_list.php
示例15: choo_type
echo $rs['dateline'];
?>
</span> </dt>
<dd class="poll_list_content">
<p><input type=<?php
echo choo_type($rs['multiple']);
?>
disabled /><?php
echo choo_option(filt_word($rs['option']), 0);
?>
</p>
<p><input type=<?php
echo choo_type($rs['multiple']);
?>
disabled /><?php
echo choo_option(filt_word($rs['option']), 1);
?>
</p>
</dd>
<dd>
<span><?php
echo $pol_langpackage->pol_whether_reward;
?>
:<?php
echo $rs['percredit'] ? $pol_langpackage->pol_yes : $pol_langpackage->pol_no;
?>
</span>
<span>|</span>
<span><?php
echo $pol_langpackage->pol_status;
?>
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:poll_list.php
示例16: filt_word
'><img src="<?php
echo $val['from_user_ico'];
?>
" /></a></div>
<dt><span><a target="_blank" href='home.php?h=<?php
echo $val['from_user_id'];
?>
'><?php
echo filt_word($val['from_user_name']);
?>
</a></span><span>[<?php
echo $val['add_time'];
?>
]</span></dt>
<dd class="msg_list_content"><?php
echo filt_word(get_face($val['message']));
?>
</dd>
<?php
if ($is_self == 'Y') {
?>
<dd>
<span><a href="javascript:void(0);" onclick=parent.leave_message("<?php
echo $val['from_user_name'];
?>
","<?php
echo $val['from_user_id'];
?>
");><?php
echo $mb_langpackage->mb_res;
?>
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:msgboard_more.php
示例17: filt_word
</a>
</div>
<?php
}
?>
</div>
</div>
<div class="photo_operate">
<?php
if ($photo_row['user_id'] != $ses_uid) {
?>
<?php
if ($photo_row['photo_information'] != '') {
?>
<div id='def_photo_info'><?php
echo filt_word($photo_row['photo_information']);
?>
</div>
<?php
}
?>
<?php
if ($ses_uid) {
?>
<a href="javascript:void(0);" onclick="parent.show_share(3,<?php
echo $photo_row['photo_id'];
?>
,'<?php
echo $photo_row['photo_name'];
?>
','');"><?php
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:photo_view.php
示例18: get_sess_userid
$ses_uid = get_sess_userid();
$userico = get_sess_userico();
//引入模块公共权限过程文件
$is_self_mode = 'partLimit';
$is_login_mode = '';
require "foundation/fcontent_format.php";
require "foundation/auser_validate.php";
require "foundation/module_users.php";
require "foundation/fpages_bar.php";
require "api/base_support.php";
//数据表定义区
$t_mood = $tablePreStr . "mood";
$t_users = $tablePreStr . "users";
//当前页面参数
$page_num = trim(get_argg('page'));
$mood_rs = api_proxy("mood_self_by_uid", "*", $userid);
//分页显示
$isNull = 0;
$data_none = 'content_none';
$show_data = '';
if (empty($mood_rs)) {
$isNull = 1;
$data_none = '';
$show_data = 'content_none';
}
if ($is_self == 'Y') {
$mood_title = $mo_langpackage->mo_mood;
} else {
$holder_name = get_hodler_name($url_uid);
$mood_title = str_replace("{holder}", filt_word($holder_name), $mo_langpackage->mo_who);
}
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:mood_more.php
示例19: guestlp
<?php
//引入语言包
$gu_langpackage = new guestlp();
//引入公共模块
require "foundation/module_users.php";
require "foundation/module_mypals.php";
require "foundation/fcontent_format.php";
require "api/base_support.php";
//变量取得
$url_uid = intval(get_argg('user_id'));
$ses_uid = get_sess_userid();
//引入模块公共权限过程文件
$is_login_mode = '';
$is_self_mode = 'partLimit';
require "foundation/auser_validate.php";
$guest_rs = api_proxy("guest_self_by_uid", "*", $userid, 20);
if ($is_self == 'Y') {
$guest_title = $gu_langpackage->gu_title;
} else {
$holder_name = get_hodler_name($url_uid);
$guest_title = str_replace("{holder}", filt_word($holder_name), $gu_langpackage->gu_who);
}
$none_data = "content_none";
$show_data = "";
if (empty($guest_rs)) {
$none_data = "";
$show_data = "content_none";
}
开发者ID:omusico,项目名称:Social,代码行数:29,代码来源:guest_more.php
示例20: get_sess_userid
echo $mn_langpackage->mn_online;
?>
</a></dt>
<dt><a href="main.php?app=msg_minbox" hidefocus="true"><?php
echo $mn_langpackage->mn_scrip;
?>
</a></dt>
</dl>
</div>
<div class="right_nav">
<dl>
<dt><a href="home.php?h=<?php
echo get_sess_userid();
?>
" hidefocus="true"><?php
echo filt_word(get_sess_username());
?>
</a></dt>
<dt><a href="modules.php?app=mypals_invite" target="frame_content" hidefocus="true"><?php
echo $mn_langpackage->mn_user_invite;
?>
</a></dt>
<dt><a href="javascript:void(0);" hidefocus="true" onmouseout="setMenuShow(false);" onclick="setMenuShow(true);"><?php
echo $mn_langpackage->mn_user_set;
?>
</a>
<div id="set_menu_bridge" style="width:58px;height:13px;display:none;" onmouseover="setMenuShow(true);" onmouseout="setMenuShow(false);">
<ul id="set_menu" onmouseover="setMenuShow(true);" onmouseout="setMenuShow(false);" class="set_menu" style="display:none;">
<li class="user_info"><a href="main.php?app=user_info" target="_top" hidefocus="true"><?php
echo $u_langpackage->u_achives;
?>
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:homeheader.php
注:本文中的filt_word函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论