本文整理汇总了PHP中get_argp函数的典型用法代码示例。如果您正苦于以下问题:PHP get_argp函数的具体用法?PHP get_argp怎么用?PHP get_argp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_argp函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: albumlp
<?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}";
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:photo_upd.action.php
示例2: polllp
//引入语言包
$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}";
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:poll_submit.action.php
示例3: 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;
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:search_subject.php
示例4: 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;
}
开发者ID:omusico,项目名称:Social,代码行数:26,代码来源:all_app.php
示例5: 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
示例6: albumlp
<?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);
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:album_creat.action.php
示例7: 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;
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:pals_list.php
示例8: short_check
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;
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:login_act.php
示例9: 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);
}
开发者ID:omusico,项目名称:Social,代码行数:18,代码来源:home_acess_login.action.php
示例10: get_argp
<?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);
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:cut_image.php
示例11: publiclp
<?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';
}
}
开发者ID:omusico,项目名称:Social,代码行数:23,代码来源:save_user_info.php
示例12: dirname
<?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';
}
开发者ID:omusico,项目名称:Social,代码行数:18,代码来源:translate_pri.php
示例13: action_return
$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");
}
?>
开发者ID:omusico,项目名称:Social,代码行数:29,代码来源:msg_crt.action.php
示例14: bloglp
<?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;
}
开发者ID:omusico,项目名称:Social,代码行数:24,代码来源:blog_sort_add.action.php
示例15: userapplp
<?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);
开发者ID:omusico,项目名称:Social,代码行数:18,代码来源:add_app.action.php
示例16: get_argp
$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);
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:integral.php
示例17: 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
示例18: check_rights
<?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;
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:recommend_add.action.php
示例19: publiclp
<?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;
}
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:comment_add.action.php
示例20: toollp
<?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);
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:del_user.php
注:本文中的get_argp函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论