本文整理汇总了PHP中short_check函数的典型用法代码示例。如果您正苦于以下问题:PHP short_check函数的具体用法?PHP short_check怎么用?PHP short_check使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了short_check函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: message_set
function message_set($id = '', $title, $content = '', $type = 0, $is_mod = 0, $mod = 'affair')
{
$title = addslashes(short_check($title));
$content = addslashes($content);
switch ($mod) {
case "remind":
$touid = intval($id);
$link = $content;
$is_focus = intval($type);
$type = intval($is_mod);
return message_set_remind($touid, $title, $link, $type, $is_focus);
break;
default:
$id = intval($id);
$show_type_id = intval($type);
$mod_type = intval($is_mod);
return message_set_affair($id, $title, $content, $show_type_id, $mod_type, $mod);
break;
}
}
示例2: userslp
require "foundation/fgrade.php";
require "api/base_support.php";
//语言包引入
$u_langpackage = new userslp();
$pu_langpackage = new publiclp();
$s_langpackage = new sharelp();
$mn_langpackage = new menulp();
$hi_langpackage = new hilp();
$mo_langpackage = new moodlp();
$pr_langpackage = new privacylp();
$ah_langpackage = new arrayhomelp();
//变量获得
$holder_id = intval(get_argg('h'));
//主人id
$user_id = get_sess_userid();
$dress_name = short_check(get_argg('dress_name'));
//装扮名称
//表声明区
$t_mood = $tablePreStr . "mood";
$t_users = $tablePreStr . "users";
$t_online = $tablePreStr . "online";
//获取并重写url参数
$urlParaStr = getReUrl();
//取得主人信息
$user_info = $holder_id ? api_proxy("user_self_by_uid", "*", $holder_id) : array();
$holder_name = empty($user_info) ? '' : $user_info['user_name'];
$is_self = $holder_id == $user_id ? 'Y' : 'N';
//隐私显示控制
$show_error = false;
$show_ques = false;
$is_visible = 0;
示例3: array
echo $m_langpackage->m_no_pri;
exit;
}
$com_type_select = array("blog_comment" => $m_langpackage->m_blog, "group_subject_comment" => $m_langpackage->m_subject, "album_comment" => $m_langpackage->m_album, "photo_comment" => $m_langpackage->m_photo, "poll_comment" => $m_langpackage->m_poll, "share_comment" => $m_langpackage->m_share, "mood_comment" => $m_langpackage->m_mood);
$com_type = array("photo_comment" => "photo_id", "mood_comment" => "mood_id", "share_comment" => "s_id", "poll_comment" => "p_id", "group_subject_comment" => "subject_id", "album_comment" => "album_id", "blog_comment" => "log_id");
$idtype = get_argg('idtype');
$com_table_str = $idtype ? $idtype : "blog_comment";
$t_table = $tablePreStr . $com_table_str;
$con_id = $com_type[$com_table_str];
$dbo = new dbex();
dbtarget('w', $dbServs);
//当前页面参数
$page_num = trim(get_argg('page'));
//变量区
$c_orderby = short_check(get_argg('order_by'));
$c_ordersc = short_check(get_argg('order_sc'));
$c_perpage = get_argg('perpage') ? intval(get_argg('perpage')) : 20;
$eq_array = array('host_id', 'visitor_id', 'visitor_name', $con_id);
$like_array = array('content');
$date_array = array("add_time");
$num_array = array();
$sql = spell_sql($t_table, $eq_array, $like_array, $date_array, $num_array, $c_orderby, $c_ordersc);
$dbo->setPages($c_perpage, $page_num);
//设置分页
$com_rs = $dbo->getRs($sql);
$page_total = $dbo->totalPage;
//分页总数
//按字段排序
$o_def = '';
$o_add_time = '';
if (get_argg('order_by') == '' || get_argg('order_by') == "com_id") {
示例4: grouplp
$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;
示例5: foreach
}
$option = '';
foreach ($cho as $v) {
$option .= "," . $v;
}
$sql = "select `option` from {$t_polloption} where oid in(0.{$option})";
$option_rs = $dbo->getRs($sql);
$cho_str = '';
foreach ($option_rs as $val) {
$cho_str .= "\"" . $val['option'] . "\",";
}
//定义写操作
dbtarget('w', $dbServs);
foreach ($cho as $value) {
if (short_check($value) != '') {
$cho_value = short_check($value);
$sql = "update {$t_polloption} set votenum=votenum+1 where oid={$cho_value}";
$dbo->exeUpdate($sql);
}
}
//加分过程
if (!empty($total_credit) && !empty($per_int)) {
if ($total_credit <= $per_int) {
$per_int = $total_credit;
$sql = "update {$t_poll} set credit = 0 , percredit = 0 where p_id={$pid}";
$dbo->exeUpdate($sql);
} else {
$sql = "update {$t_poll} set credit=credit-{$per_int} where p_id={$pid}";
$dbo->exeUpdate($sql);
}
$sql = "update {$t_users} set integral=integral+{$per_int} where user_id={$user_id}";
示例6: foundationlp
<?php
require "session_check.php";
//语言包引入
$f_langpackage = new foundationlp();
$ad_langpackage = new adminmenulp();
//变量区
$module = short_check(get_argg('module'));
$str = '';
$dbo = new dbex();
dbtarget('w', $dbServs);
if ($module == "group") {
$is_check = check_rights("a06");
if (!$is_check) {
echo $m_langpackage->m_no_pri;
exit;
}
$mod = "group";
$str = $f_langpackage->f_group_sort;
$t_group_type = $tablePreStr . "group_type";
$sql = "select * from {$t_group_type} order by order_num desc";
} else {
if ($module == "pals") {
$is_check = check_rights("a10");
if (!$is_check) {
echo $m_langpackage->m_no_pri;
exit;
}
if (!$is_check) {
echo $m_langpackage->m_no_pri;
exit;
示例7: pluginslp
<?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;
}
示例8: mypalslp
* 如果您正式运行此程序时,请切换到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;
示例9: intval
<?php
require "session_check.php";
require "../api/Check_MC.php";
//变量区
$sort_id = intval(get_argg('sort_id'));
$module = short_check(get_argg('module'));
$type = short_check(get_argg('type_value'));
$dbo = new dbex();
dbtarget('w', $dbServs);
if ($module == "group") {
//表定义区
$sort_table = $tablePreStr . "group_type";
$main_table = $tablePreStr . "groups";
$key_mt = 'group_sort/list/order_num/0/all_mt';
} else {
if ($module == "pals") {
//表定义区
$main_table = $tablePreStr . "pals_mine";
$t_pals_sort = $tablePreStr . "pals_sort";
$sort_table = $tablePreStr . "pals_def_sort";
$key_mt = 'pals_def_sort/list/order_num/0/all_mt';
}
}
switch ($type) {
case "add":
if ($module == "group") {
$is_check = check_rights("a07");
if (!$is_check) {
echo $m_langpackage->m_no_pri;
exit;
示例10: reportlp
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 {
示例11: check_rights
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;
}
示例12: privacylp
<?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);
}
示例13: userslp
* 如果您的模板要进行修改,请修改 templates/default/modules/users/user_ico_cut.html
* 如果您的模型要进行修改,请修改 models/modules/users/user_ico_cut.php
*
* 修改完成之后需要您进入后台重新编译,才会重新生成。
* 如果您开启了debug模式运行,那么您可以省去上面这一步,但是debug模式每次都会判断程序是否更新,debug模式只适合开发调试。
* 如果您正式运行此程序时,请切换到service模式运行!
*
* 如有您有问题请到官方论坛(http://tech.jooyea.com/bbs/)提问,谢谢您的支持。
*/
//引入模块公共方法文件
require "foundation/module_album.php";
//语言包引入
$u_langpackage = new userslp();
//变量获得
$user_id = get_sess_userid();
$photo_url = short_check(get_argg('photo_url'));
$img_info = getimagesize($photo_url);
?>
<!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" lang="UTF-8">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<base href='<?php
echo $siteDomain;
?>
' />
<link rel="stylesheet" type="text/css" href="skin/<?php
echo $skinUrl;
?>
/css/iframe.css">
示例14: reglp
$re_langpackage = new reglp();
require "foundation/module_mypals.php";
require "foundation/aintegral.php";
if (get_argp("u_email") == NULL || get_argp("u_email") == "您的 Email") {
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}'";
示例15: publiclp
* 如果您的模板要进行修改,请修改 templates/default/modules/restore/get_restore.html
* 如果您的模型要进行修改,请修改 models/modules/restore/get_restore.php
*
* 修改完成之后需要您进入后台重新编译,才会重新生成。
* 如果您开启了debug模式运行,那么您可以省去上面这一步,但是debug模式每次都会判断程序是否更新,debug模式只适合开发调试。
* 如果您正式运行此程序时,请切换到service模式运行!
*
* 如有您有问题请到官方论坛(http://tech.jooyea.com/bbs/)提问,谢谢您的支持。
*/
//引入语言包
$pu_langpackage = new publiclp();
//变量取得
$mod_id = intval(get_argg('mod_id'));
$type_id = intval(get_argg('type_id'));
$start_num = short_check(get_argg('start_num'));
$show_num = short_check(get_argg('end_num'));
$dbo = new dbex();
dbtarget('r', $dbServs);
$t_share = $tablePreStr . "share";
$t_share_comment = $tablePreStr . "share_comment";
$t_poll = $tablePreStr . "poll";
$t_poll_comment = $tablePreStr . "poll_comment";
$t_album = $tablePreStr . "album";
$t_album_comment = $tablePreStr . "album_comment";
$t_photo = $tablePreStr . "photo";
$t_photo_comment = $tablePreStr . "photo_comment";
$t_blog = $tablePreStr . "blog";
$t_blog_comment = $tablePreStr . "blog_comment";
$t_subject = $tablePreStr . "group_subject";
$t_subject_comment = $tablePreStr . "group_subject_comment";
$t_mood = $tablePreStr . "mood";