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


PHP get_argp函数代码示例

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


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


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