本文整理汇总了PHP中get_argg函数的典型用法代码示例。如果您正苦于以下问题:PHP get_argg函数的具体用法?PHP get_argg怎么用?PHP get_argg使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_argg函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: perpage
function perpage()
{
$p_20 = '';
$p_50 = '';
$p_100 = '';
if (get_argg('perpage') == '' || get_argg('perpage') == "20") {
$p_20 = "selected";
}
if (get_argg('perpage') == "50") {
$p_50 = "selected";
}
if (get_argg('perpage') == "100") {
$p_100 = "selected";
}
echo '
<SELECT name=perpage>
<option value=20 ' . $p_20 . '>每页显示20</option>
<option value=50 ' . $p_50 . '>每页显示50</option>
<option value=100 ' . $p_100 . '>每页显示100</option>
</SELECT>';
}
开发者ID:omusico,项目名称:Social,代码行数:21,代码来源:fback_search.php
示例2: moodlp
<?php
//引入语言包
$mo_langpackage = new moodlp();
require "foundation/module_affair.php";
//变量取得
$mood_id = intval(get_argg('mood_id'));
$user_id = get_sess_userid();
//数据表定义区
$t_mood = $tablePreStr . "mood";
$t_mood_com = $tablePreStr . "mood_comment";
$dbo = new dbex();
//读写分离定义函数
dbtarget('w', $dbServs);
//删除心情
$sql = "delete from {$t_mood} where mood_id={$mood_id} and user_id={$user_id}";
$dbo->exeUpdate($sql);
$sql = "delete from {$t_mood_com} where mood_id={$mood_id}";
$dbo->exeUpdate($sql);
del_affair($dbo, 6, $mood_id);
//回应信息
action_return(1, "", "-1");
开发者ID:omusico,项目名称:Social,代码行数:22,代码来源:mood_del.action.php
示例3: albumlp
<?php
require $webRoot . "/foundation/fcontent_format.php";
require $webRoot . "/foundation/module_album.php";
require $webRoot . "/api/base_support.php";
//引入语言包
$a_langpackage = new albumlp();
//变量取得
$album_id = intval(get_argg('album_id'));
$url_uid = intval(get_argg('user_id'));
$type = short_check(get_argg('type'));
$photo_rs = array();
$photo_rs = api_proxy("album_photo_by_aid", "*", $album_id);
开发者ID:omusico,项目名称:Social,代码行数:13,代码来源:photo_ico_select.php
示例4: get_argg
<?php
require "session_check.php";
$user_id = get_argg('user_id');
$dbo = new dbex();
dbtarget('w', $dbServs);
//引入语言包
$m_langpackage = new modulelp();
$ad_langpackage = new adminmenulp();
//表定义区
$t_users = $tablePreStr . "users";
$sql = "select user_name,user_ico,user_marry,user_qq,user_blood,birth_province,birth_year, birth_city ,reside_province , reside_city,user_email from {$t_users} where user_id='{$user_id}'";
$member_info = $dbo->getRow($sql);
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" media="all" href="css/admin.css">
</head>
<body>
<div id="maincontent">
<div class="wrap">
<div class="infobox">
<h3><?php
echo $member_info['user_name'];
echo $m_langpackage->m_information;
?>
</h3>
<div class="content">
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:user_info.php
示例5: polllp
//引入模块公共方法文件
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";
$t_users = $tablePreStr . "users";
开发者ID:omusico,项目名称:Social,代码行数:30,代码来源:poll_submit.action.php
示例6: userslp
<?php
//引入语言包
$u_langpackage = new userslp();
//变量获得
$user_id = get_sess_userid();
$ol_is_latent = intval(get_argg('is_hidden'));
echo $ol_is_latent;
//表声明区
$t_users = $tablePreStr . "users";
$t_online = $tablePreStr . "online";
$dbo = new dbex();
//读写分离定义函数
dbtarget('w', $dbServs);
//更新online表
$sql = "update {$t_online} set `hidden`={$ol_is_latent} where user_id={$user_id};";
if ($dbo->exeUpdate($sql)) {
set_sess_online($ol_is_latent);
echo $u_langpackage->u_set_suc;
} else {
echo $u_langpackage->u_set_los;
}
开发者ID:omusico,项目名称:Social,代码行数:22,代码来源:user_online_reset.action.php
示例7: get_argg
echo $m_langpackage->m_share_id;
?>
</th><td width=*><input type="text" class="small-text" name="s_id" value="<?php
echo get_argg('s_id');
?>
"></td>
<th><?php
echo $m_langpackage->m_issue_time;
?>
</th><td>
<input type="text" name="add_time1" class="small-text" AUTOCOMPLETE=off onclick='calendar(this);' value="<?php
echo get_argg('add_time1');
?>
" /> ~
<input type="text" name="add_time2" class="small-text" AUTOCOMPLETE=off onclick='calendar(this);' value="<?php
echo get_argg('add_time2');
?>
" /> (YYYY-MM-DD)
</td>
</tr>
<tr><th><?php
echo $m_langpackage->m_result_order;
?>
</th>
<td colspan="3">
<select name="order_by">
<OPTION value="s_id" <?php
echo $o_def;
?>
><?php
echo $m_langpackage->m_def_order;
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:share_list.php
示例8: get_argg
//导入备份文件
$operation = get_argg('operation');
if ($operation == 'bakin') {
$is_check = check_rights("g04");
if (!$is_check) {
echo $m_langpackage->m_no_pri;
exit;
}
$dbo = new dbex();
dbtarget('w', $dbServs);
$pre = get_argg('pre');
bakindata($dbo, '../docs/' . $pre . '_1.sql');
echo "<script language='javascript'> alert('{$d_langpackage->d_lead_suc}'); location.href='database.save.php'; </script>";
}
//删除备份文件
$fid = get_argg('fid');
if ($fid) {
$is_check = check_rights("g05");
if (!$is_check) {
echo $m_langpackage->m_no_pri;
exit;
}
$file_pre = $fid . "_1.sql";
delfile('../docs/' . $file_pre);
echo "{$d_langpackage->d_del_suc}";
exit;
}
function delfile($filename, $check = 1)
{
@chmod($filename, 0777);
return @unlink($filename);
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:database.recover.php
示例9: userslp
$u_langpackage = new userslp();
$l_langpackage = new loginlp();
//引入语言包
$reg_langpackage = new reglp();
$regInfo_root = "langpackage/" . $langPackagePara . "/regInfo.php";
$regInfo = file_get_contents($regInfo_root);
$regInfo = $regInfo == '' ? "<center><b>" . $reg_langpackage->re_none_ser . "</b></center>" : $regInfo;
$invite_code = '';
//是否可以注册
$is_show = 1;
if ($allowReg == false) {
$is_show = 0;
$error_str = $u_langpackage->u_not_open_register;
} else {
if ($inviteCode == 1) {
$invite_code = get_argg('invite_code');
if (strlen($invite_code) == $inviteCodeLength) {
$t_invite_code = $tablePreStr . "invite_code";
$dbo = new dbex();
dbtarget('r', $dbServs);
$now_time = time();
$left_time = $inviteCodeLife * 60 * 60;
$sql = "delete from {$t_invite_code} where {$now_time}-add_time > {$left_time}";
$dbo->exeUpdate($sql);
$sql = "select id from {$t_invite_code} where code_txt='{$invite_code}'";
$is_check = $dbo->getRow($sql);
if (empty($is_check)) {
$error_str = $u_langpackage->u_invite_incorrect_or_failed;
$is_show = 0;
} else {
$is_show = 1;
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:user_reg.php
示例10: 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
示例11: msglp
<?php
//引入语言包
$m_langpackage = new msglp();
$mp_langpackage = new mypalslp();
require 'api/base_support.php';
//变量获得
$msg_id = intval(get_argg("id"));
$user_id = get_sess_userid();
$type = intval(get_argg("t"));
$send_join_js = '';
//数据表定义
$t_msg_inbox = $tablePreStr . "msg_inbox";
$t_msg_outbox = $tablePreStr . "msg_outbox";
if ($type == 1) {
$dbo = new dbex();
//读写分离定义函数
dbtarget('r', $dbServs);
$sql = "select mess_title,mess_content,to_user_id,to_user,to_user_ico,add_time,state,mess_id " . "from {$t_msg_outbox} where mess_id='{$msg_id}'";
$msg_row = $dbo->getRow($sql);
$relaUserStr = $m_langpackage->m_to_user;
$reTurnTxt = $m_langpackage->m_out;
$reTurnUrl = "modules.php?app=msg_moutbox";
$mess_id = $msg_row['mess_id'];
if ($msg_row['state'] == "0") {
$reButTxt = $m_langpackage->m_b_sed;
$reButUrl = "do.php?act=msg_send&to_id={$mess_id}";
} else {
$reButTxt = $m_langpackage->m_b_con;
$reButUrl = $reTurnUrl;
}
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:rpshow.php
示例12: userslp
* 如果您的模型要进行修改,请修改 models/modules/users/user_pw_change.php
*
* 修改完成之后需要您进入后台重新编译,才会重新生成。
* 如果您开启了debug模式运行,那么您可以省去上面这一步,但是debug模式每次都会判断程序是否更新,debug模式只适合开发调试。
* 如果您正式运行此程序时,请切换到service模式运行!
*
* 如有您有问题请到官方论坛(http://tech.jooyea.com/bbs/)提问,谢谢您的支持。
*/
//语言包引入
$u_langpackage = new userslp();
//变量获得
$user_id = get_sess_userid();
$formerly_pw = short_check(get_argp('formerly_pw'));
$new_pw = short_check(get_argp('new_pw'));
$new_pw_repeat = short_check(get_argp('new_pw_repeat'));
$model = short_check(get_argg('model'));
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<base href='<?php
echo $siteDomain;
?>
' />
<script type="text/javascript">
// 检测原密码
old_password = function(){
var old_password = document.getElementById('formerly_pw');
if(old_password.value=='') {
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:user_pw_change.php
示例13: publiclp
<?php
//引入语言包
$pu_langpackage = new publiclp();
$rp_langpackage = new reportlp();
//引入公共方法
require "foundation/aintegral.php";
require "api/base_support.php";
//变量定义区
$visitor_id = get_sess_userid();
$host_id = intval(get_argg('holder_id'));
$type_id = intval(get_argg('type_id'));
$sendor_id = intval(get_argg('sendor_id'));
$parent_id = intval(get_argg('parent_id'));
$com_id = intval(get_argg('com_id'));
if ($visitor_id != $host_id) {
echo $pu_langpackage->pu_not_pri;
exit;
}
//数据表定义
$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_group = $tablePreStr . "groups";
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:restore_del.action.php
示例14: check_rights
<?php
require "session_check.php";
require "../foundation/fchange_exp.php";
$is_check = check_rights("b04");
if (!$is_check) {
echo $m_langpackage->m_no_pri;
exit;
}
//语言包引入
$u_langpackage = new uilp();
$ad_langpackage = new adminmenulp();
$skin = get_argg("skinUrl");
if ($skin && $skinUrl != $skin) {
$is_check = check_rights("b05");
if (!$is_check) {
echo $m_langpackage->m_no_pri;
exit;
}
$url = "../configuration.php";
$content = file_get_contents($url);
$content = change_exp($content);
$f_ref = fopen($url, "w+");
$num = fwrite($f_ref, $content);
fclose($f_ref);
echo '<script>window.location.href="manage_skin.php";</script>';
}
?>
<!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">
<head>
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:manage_skin.php
示例15: check_rights
<?php
require "session_check.php";
$is_check = check_rights("e02");
if (!$is_check) {
echo $m_langpackage->m_no_pri;
exit;
}
require "proxy/proxy.php";
//语言包引入
$so_softwarelp = new softwarelp();
$er_langpackage = new errorlp();
$version_url = "../docs/version.txt";
$whole_version = file_get_contents($version_url);
$version_num = short_check(get_argg('version'));
$serv_url = act_substitue("software", "&update_version=" . $version_num . "&version=" . $whole_version);
$update_data = file_get_contents($serv_url);
$xmldom = new DomDocument();
$xmldom->loadXML($update_data);
$dir_array = $xmldom->getElementsByTagName('dir');
//取得目录列表
$file_array = $xmldom->getElementsByTagName('file');
//取得文件列表
$del_array = $xmldom->getElementsByTagName('del');
//取得删除列表
$sql_str = $xmldom->getElementsByTagName('update_sql');
//取得sql列表
$is_success = 1;
//状态
//升级sql
if ($sql_str->length) {
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:update_software.action.php
示例16: grouplp
<?php
//引入语言包
$g_langpackage = new grouplp();
//变量区
$user_id = get_sess_userid();
$group_id = short_check(get_argg('group_id'));
//定义读操作
dbtarget('r', $dbServs);
$dbo = new dbex();
//引入公共函数
require "foundation/module_group.php";
//数据表定义
$t_groups = $tablePreStr . "groups";
$t_group_members = $tablePreStr . "group_members";
//权限判断
$role = pri_limit($dbo, $user_id, $group_id);
if ($role == 2) {
action_return(0, $g_langpackage->g_no_privilege, "-1");
}
//定义写操作
dbtarget('w', $dbServs);
$group_name = short_check(get_argp('group_name'));
$group_resume = short_check(get_argp('group_resume'));
$group_join_type = intval(get_argp('group_join_type'));
$group_type_id = intval(get_argp('group_type_id'));
$group_type_name = short_check(get_argp('group_type_name'));
$tag = short_check(get_argp('tag'));
$gonggao = short_check(get_argp('affiche'));
$is_pic = "";
if (isset($_FILES['attach']) && $_FILES['attach']['name'][0] != '') {
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:group_info_change.action.php
示例17: grouplp
<?php
//引入语言包
$g_langpackage = new grouplp();
$url_uid = intval(get_argg('user_id'));
$ses_uid = get_sess_userid();
//引入模块公共权限过程文件
$is_self_mode = 'partLimit';
$is_login_mode = '';
require "foundation/auser_validate.php";
require "foundation/module_users.php";
require "foundation/module_group.php";
require "api/base_support.php";
$group_rs = array();
//按钮控制
$button = 0;
$button_show = "content_none";
$button_hidden = "";
if ($is_self == 'Y') {
$group_title = $g_langpackage->g_mine;
$no_data = $g_langpackage->g_none_group;
$button = 1;
$button_show = "";
$button_hidden = "content_none";
$show_mine = "";
$show_his = "content_none";
} else {
$show_mine = "content_none";
$show_his = "";
$holder_name = get_hodler_name($url_uid);
$group_title = str_replace("{holder}", $holder_name, $g_langpackage->g_his_group);
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:group_mine.php
示例18: albumlp
<?php
//引入语言包
$a_langpackage = new albumlp();
require "api/base_support.php";
require "foundation/aintegral.php";
//变量取得
$photo_id = intval(get_argg('photo_id'));
$album_id = intval(get_argg('album_id'));
$user_id = get_sess_userid();
//数据表定义区
$t_album = $tablePreStr . "album";
$t_photo = $tablePreStr . "photo";
$album_row = api_proxy("album_self_by_aid", "album_skin", $album_id);
$photo_row = api_proxy("album_photo_by_photoid", "photo_thumb_src,photo_src", $photo_id);
$dbo = new dbex();
//读写分离定义函数
dbtarget('w', $dbServs);
//删除照片
if ($album_row['album_skin'] == $photo_row['photo_thumb_src']) {
$album_skin = 'uploadfiles/album/logo.jpg';
$sql = "update {$t_album} set album_skin = '{$album_skin}' where album_id={$album_id}";
$dbo->exeUpdate($sql);
}
@unlink($photo_row['photo_src']);
@unlink($photo_row['photo_thumb_src']);
$sql = "delete from {$t_photo} where photo_id={$photo_id} and user_id={$user_id}";
if ($dbo->exeUpdate($sql)) {
increase_integral($dbo, $int_del_photo, $user_id);
}
$sql = "update {$t_album} set photo_num=photo_num-1,update_time=NOW() where album_id={$album_id}";
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:photo_del.action.php
示例19: 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;
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:manager_sort.php
示例20: 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";
开发者ID:omusico,项目名称:Social,代码行数:31,代码来源:get_restore.php
注:本文中的get_argg函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论