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


PHP showSuccess函数代码示例

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


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

示例1: response

 public function response($request)
 {
     $return_res = array('info' => '', 'status' => false);
     $payment = $GLOBALS['db']->getRow("select id,config from " . DB_PREFIX . "payment where class_name='Alipay'");
     $payment['config'] = unserialize($payment['config']);
     /* 检查数字签名是否正确 */
     ksort($request);
     reset($request);
     foreach ($request as $key => $val) {
         if ($key != 'sign' && $key != 'sign_type' && $key != 'code' && $key != 'class_name' && $key != 'act' && $key != 'ctl') {
             $sign .= "{$key}={$val}&";
         }
     }
     $sign = substr($sign, 0, -1) . $payment['config']['alipay_key'];
     if (md5($sign) != $request['sign']) {
         showErr("签名验证失败");
     }
     $payment_notice_sn = $request['out_trade_no'];
     $money = $request['total_fee'];
     $outer_notice_sn = $request['trade_no'];
     if ($request['trade_status'] == 'TRADE_SUCCESS' || $request['trade_status'] == 'TRADE_FINISHED' || $request['trade_status'] == 'WAIT_SELLER_SEND_GOODS' || $request['trade_status'] == 'WAIT_BUYER_CONFIRM_GOODS') {
         require_once APP_ROOT_PATH . "system/libs/cart.php";
         $rs = payment_paid($payment_notice_sn, $outer_notice_sn);
         showSuccess($rs['info'], 0, $rs['jump'], 1);
     } else {
         showErr("支付失败", 0, url("index"), 1);
     }
 }
开发者ID:bharatthakkar,项目名称:stock-crowd-funding-system,代码行数:28,代码来源:Alipay_payment.php

示例2: pay

 public function pay()
 {
     $payment_notice = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "payment_notice where id = " . intval($_REQUEST['id']));
     if ($payment_notice) {
         if ($payment_notice['is_paid'] == 0) {
             $payment_info = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "payment where id = " . $payment_notice['payment_id']);
             if ($payment_info) {
                 require_once APP_ROOT_PATH . "system/payment/" . $payment_info['class_name'] . "_payment.php";
                 $payment_class = $payment_info['class_name'] . "_payment";
                 $payment_object = new $payment_class();
                 $payment_code = $payment_object->get_payment_code($payment_notice['id']);
             }
             $GLOBALS['tmpl']->assign("page_title", $GLOBALS['lang']['PAY_NOW']);
             $GLOBALS['tmpl']->assign("payment_code", $payment_code);
             //$GLOBALS['tmpl']->assign("order",$order);
             $GLOBALS['tmpl']->assign("payment_notice", $payment_notice);
             if (intval($_REQUEST['check']) == 1) {
                 showErr($GLOBALS['lang']['PAYMENT_NOT_PAID_RENOTICE']);
             }
             $GLOBALS['tmpl']->display("page/payment_pay.html");
         } else {
             showSuccess($GLOBALS['lang']['NOTICE_PAY_SUCCESS'], 0, APP_ROOT . "/", 1);
         }
     } else {
         showErr($GLOBALS['lang']['NOTICE_SN_NOT_EXIST'], 0, APP_ROOT . "/", 1);
     }
 }
开发者ID:norain2050,项目名称:fanwei_xindai_3.2,代码行数:27,代码来源:paymentModule.class.php

示例3: save_info

 public function save_info()
 {
     $data = array();
     $ajax = intval($_REQUEST['ajax']);
     $data['user_name'] = strim($_REQUEST['user_name']);
     if (empty($data['user_name'])) {
         showErr("请填写您的姓名", $ajax);
     }
     $data['tel'] = strim($_REQUEST['tel']);
     if (empty($data['tel'])) {
         showErr("请填写您的联系方式", $ajax);
     }
     $data['content'] = strim($_REQUEST['content']);
     if (empty($data['content'])) {
         showErr("请填写您的留言内容", $ajax);
     }
     $data['cate_id'] = intval($_REQUEST['cate_id']);
     $data['create_time'] = NOW_TIME;
     $data['user_id'] = intval($_REQUEST['user_id']);
     $GLOBALS['db']->autoExecute(DB_PREFIX . "message", $data, "INSERT", "", "SILENT");
     $message_id = $GLOBALS['db']->insert_id();
     if ($message_id > 0) {
         showSuccess("申请成功!", $ajax, url_wap("index"));
     } else {
         showErr("发送失败,请重新申请!", $ajax);
     }
 }
开发者ID:myjavawork,项目名称:sanxin-fangwei,代码行数:27,代码来源:user_message.action.php

示例4: wsnotify

function wsnotify($resultStr, $class_act, $cert_md5)
{
    $pMerCode = $resultStr["pMerCode"];
    $pErrCode = $resultStr["pErrCode"];
    $pErrMsg = $resultStr["pErrMsg"];
    $p3DesXmlPara = $resultStr["p3DesXmlPara"];
    $pSign = $resultStr["pSign"];
    $signPlainText = $pMerCode . $pErrCode . $pErrMsg . $p3DesXmlPara . $cert_md5;
    $localSign = md5($signPlainText);
    if ($localSign == $pSign) {
        //file_put_contents(PATH_LOG_FILE,PATH."--".date('YmdHis')."	验签通过"."\r\n",FILE_APPEND);
        $Crypt3Des = new Crypt3Des();
        //new 3des class
        $str3XmlParaInfo = $Crypt3Des->DESDecrypt($p3DesXmlPara);
        //3des解密
        if (empty($str3XmlParaInfo)) {
            //file_put_contents(PATH_LOG_FILE,PATH."--".date('YmdHis')."	3DES解密失败"."\r\n",FILE_APPEND);
            return;
        } else {
            require_once APP_ROOT_PATH . 'system/collocation/ips/xml.php';
            $str3ParaInfo = @XML_unserialize($str3XmlParaInfo);
            $str3Req = $str3ParaInfo['pReq'];
            if ($class_act == 'GuaranteeUnfreeze') {
                require_once APP_ROOT_PATH . 'system/collocation/ips/GuaranteeUnfreeze.php';
                GuaranteeUnfreezeCallBack($pMerCode, $pErrCode, $pErrMsg, $str3Req);
                showSuccess($pErrMsg, 0, SITE_DOMAIN . APP_ROOT);
            }
            if ($class_act == 'Transfer') {
                require_once APP_ROOT_PATH . 'system/collocation/ips/Transfer.php';
                TransferCallBack($pMerCode, $pErrCode, $pErrMsg, $str3Req);
                showSuccess($pErrMsg, 0, SITE_DOMAIN . APP_ROOT);
            }
        }
    }
}
开发者ID:norain2050,项目名称:fanwei_xindai_3.2,代码行数:35,代码来源:ips.php

示例5: add

 /**
  * 添加或修改项目类型
  */
 function add()
 {
     $this->load->model('proTypeModel');
     if ($_POST) {
         $proTypeId = (int) $this->input->get('proTypeId');
         $data = array('proTypeName' => $this->input->post('proTypeName'), 'statusIs' => (int) $this->input->post('statusIs'));
         if ($proTypeId) {
             if ($this->proTypeModel->edit(array('proTypeId' => $proTypeId), $data)) {
                 $this->proTypeModel->createCache();
                 showSuccess('修改项目类型成功');
             } else {
                 showError('修改项目类型失败');
             }
         } else {
             $data['createTime'] = time();
             if ($this->proTypeModel->add($data)) {
                 $this->proTypeModel->createCache();
                 showSuccess('添加项目类型成功');
             } else {
                 showError('添加项目类型失败');
             }
         }
     } else {
         $proTypeId = (int) $this->input->get('proTypeId');
         if ($proTypeId) {
             $proTypeData = $this->proTypeModel->getData(array('proTypeId' => $proTypeId));
             $this->viewData['proTypeData'] = $proTypeData;
         }
         $this->load->view('AdminProType/add', $this->viewData);
     }
 }
开发者ID:zhaojianhui129,项目名称:implement2016,代码行数:34,代码来源:AdminProType.php

示例6: save

 public function save()
 {
     if (trim($_REQUEST['consignee']) == '') {
         showErr($GLOBALS['lang']['FILL_CORRECT_CONSIGNEE']);
     }
     if (trim($_REQUEST['address']) == '') {
         showErr($GLOBALS['lang']['FILL_CORRECT_ADDRESS']);
     }
     if (trim($_REQUEST['zip']) == '') {
         showErr($GLOBALS['lang']['FILL_CORRECT_ZIP']);
     }
     if (trim($_REQUEST['mobile']) == '') {
         showErr($GLOBALS['lang']['FILL_MOBILE_PHONE']);
     }
     if (!check_mobile($_REQUEST['mobile'])) {
         showErr($GLOBALS['lang']['FILL_CORRECT_MOBILE_PHONE']);
     }
     $consignee_data['user_id'] = $GLOBALS['user_info']['id'];
     $consignee_data['region_lv1'] = intval($_REQUEST['region_lv1']);
     $consignee_data['region_lv2'] = intval($_REQUEST['region_lv2']);
     $consignee_data['region_lv3'] = intval($_REQUEST['region_lv3']);
     $consignee_data['region_lv4'] = intval($_REQUEST['region_lv4']);
     $consignee_data['address'] = addslashes(trim(htmlspecialchars($_REQUEST['address'])));
     $consignee_data['mobile'] = addslashes(trim(htmlspecialchars($_REQUEST['mobile'])));
     $consignee_data['consignee'] = addslashes(trim(htmlspecialchars($_REQUEST['consignee'])));
     $consignee_data['zip'] = addslashes(trim(htmlspecialchars($_REQUEST['zip'])));
     $consignee_id = intval($_REQUEST['id']);
     if ($consignee_id == 0) {
         $GLOBALS['db']->autoExecute(DB_PREFIX . "user_consignee", $consignee_data);
     } else {
         $GLOBALS['db']->autoExecute(DB_PREFIX . "user_consignee", $consignee_data, "UPDATE", "id=" . $consignee_id);
     }
     rm_auto_cache("consignee_info", array("consignee_id" => intval($consignee_id)));
     showSuccess($GLOBALS['lang']['UPDATE_SUCCESS']);
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:35,代码来源:uc_consigneeModule.class.php

示例7: del

 public function del()
 {
     $id = intval($_REQUEST['id']);
     $GLOBALS['db']->query("delete from " . DB_PREFIX . "deal_collect where id = " . $id . " and user_id = " . intval($GLOBALS['user_info']['id']));
     if ($GLOBALS['db']->affected_rows()) {
         showSuccess($GLOBALS['lang']['DELETE_SUCCESS']);
     } else {
         showErr($GLOBALS['lang']['INVALID_COLLECT']);
     }
 }
开发者ID:norain2050,项目名称:fanwei_xindai_3.2,代码行数:10,代码来源:uc_collectModule.class.php

示例8: index

 public function index()
 {
     $root = array();
     $ajax = intval($_REQUEST['ajax']);
     $root['ajax'] = $ajax;
     $email = strim($GLOBALS['request']['email']);
     //用户名或邮箱
     $pwd = strim($GLOBALS['request']['pwd']);
     //密码
     //检查用户,用户密码
     $user = user_check($email, $pwd);
     $user_id = intval($user['id']);
     if ($user_id > 0) {
         $comment['deal_id'] = intval($_REQUEST['id']);
         $deal_info = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "deal where id = " . $comment['deal_id'] . " and is_delete = 0 and is_effect = 1 ");
         if (!$deal_info) {
             $root['info'] = "该项目暂时不能评论";
             output($root);
         }
         if (!check_ipop_limit(get_client_ip(), "deal_savedealcomment", 3)) {
             $root['info'] = "提交太快";
         }
         output($root);
         $comment['content'] = strim($_REQUEST['content']);
         $comment['user_id'] = intval($GLOBALS['user_info']['id']);
         $comment['create_time'] = NOW_TIME;
         $comment['user_name'] = $GLOBALS['user_info']['user_name'];
         $comment['pid'] = intval($_REQUEST['pid']);
         $comment['deal_user_id'] = intval($GLOBALS['db']->getOne("select user_id from " . DB_PREFIX . "deal where id = " . $comment['deal_id']));
         $comment['reply_user_id'] = intval($GLOBALS['db']->getOne("select user_id from " . DB_PREFIX . "deal_comment where id = " . $comment['pid']));
         $comment['deal_user_name'] = $GLOBALS['db']->getOne("select user_name from " . DB_PREFIX . "user where id = " . intval($comment['deal_user_id']));
         $comment['reply_user_name'] = $GLOBALS['db']->getOne("select user_name from " . DB_PREFIX . "user where id = " . intval($comment['reply_user_id']));
         $GLOBALS['db']->autoExecute(DB_PREFIX . "deal_comment", $comment);
         $comment['id'] = $GLOBALS['db']->insert_id();
         $GLOBALS['db']->query("update " . DB_PREFIX . "deal set comment_count = comment_count+1 where id = " . $comment['deal_id']);
         if (intval($_REQUEST['syn_weibo']) == 1) {
             $weibo_info = array();
             $weibo_info['content'] = $comment['content'] . " " . get_domain() . url("deal#show", array("id" => $comment['deal_id']));
             $img = $GLOBALS['db']->getOne("select image from " . DB_PREFIX . "deal where id = " . intval($comment['deal_id']));
             if ($img) {
                 $weibo_info['img'] = APP_ROOT_PATH . "/" . $img;
             }
             syn_weibo($weibo_info);
         }
         if ($ajax == 1) {
             $data['status'] = 1;
             ajax_return($data);
         } else {
             showSuccess("发表成功");
         }
     } else {
         $root['user_login_status'] = 0;
         output($root);
     }
 }
开发者ID:myjavawork,项目名称:sanxin-fangwei,代码行数:55,代码来源:deal_savedealcomment.action.php

示例9: del

 /**
  * 删除下下活动明细
  */
 function del()
 {
     $id = (int) $this->input->post('id');
     $id || showError('请选择要删除的线下活动明细项');
     $this->load->model('carMatchingModel');
     if ($this->carMatchingModel->del(array('id' => $id, 'storeId' => $this->user['userId']))) {
         showSuccess('删除线下活动明细项成功');
     } else {
         showError('删除线下活动明细项失败');
     }
 }
开发者ID:zhaojianhui129,项目名称:rmp2016,代码行数:14,代码来源:CarMatching.php

示例10: delnotify

 public function delnotify()
 {
     $ajax = intval($_REQUEST['ajax']);
     if (!$GLOBALS['user_info']) {
         showErr("", $ajax, url("user#login"));
     }
     $id = intval($_REQUEST['id']);
     $user_id = intval($GLOBALS['user_info']['id']);
     $GLOBALS['db']->query("delete from " . DB_PREFIX . "user_notify where user_id = " . $user_id . " and id = " . $id);
     showSuccess("", $ajax, get_gopreview());
 }
开发者ID:noikiy,项目名称:yisheji,代码行数:11,代码来源:notifyModule.class.php

示例11: autoopen

 function autoopen()
 {
     if (intval($GLOBALS['user_info']['id']) == 0) {
         showErr($GLOBALS['lang']['PLEASE_LOGIN_FIRST'], 1);
     }
     if (!isset($_REQUEST['is_effect'])) {
         showErr($GLOBALS['lang']['ERROR_TITLE'], 1);
     }
     $is_effect = intval($_REQUEST['is_effect']);
     $GLOBALS['db']->autoExecute(DB_PREFIX . "user_autobid", array("is_effect" => $is_effect), "UPDATE", "user_id=" . intval($GLOBALS['user_info']['id']));
     showSuccess($GLOBALS['lang']['SUCCESS_TITLE'], 1);
 }
开发者ID:workplayteam,项目名称:P2P,代码行数:12,代码来源:uc_autobidModule.class.php

示例12: refund

 public function refund()
 {
     $coupon_id = intval($_REQUEST['id']);
     $coupon_data = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "deal_coupon where id = " . $coupon_id . " and is_valid = 1 and is_delete = 0  and balance_time = 0 and confirm_time=0 and user_id = " . intval($GLOBALS['user_info']['id']));
     if ($coupon_data['any_refund'] == 1 || $coupon_data['expire_refund'] == 1 && $coupon_data['end_time'] > 0 && get_gmtime() > $coupon_data['end_time']) {
         $GLOBALS['db']->query("update " . DB_PREFIX . "deal_coupon set refund_status = 1 where id = " . $coupon_data['id']);
         $GLOBALS['db']->query("update " . DB_PREFIX . "deal_order set refund_status = 1 where id = " . intval($coupon_data['order_id']));
         showSuccess("退款申请已提交,等待管理员审核");
     } else {
         showErr($GLOBALS['lang']['INVALID_ACCESS']);
     }
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:12,代码来源:uc_couponModule.class.php

示例13: dounsubscribe

 public function dounsubscribe()
 {
     $email_code = trim($_REQUEST['code']);
     $email_code = base64_decode($email_code);
     $arr = explode("|", $email_code);
     $GLOBALS['db']->query("delete from " . DB_PREFIX . "mail_list where code = '" . $arr[0] . "' and mail_address = '" . $arr[1] . "'");
     $rs = $GLOBALS['db']->affected_rows();
     if ($rs) {
         showSuccess($GLOBALS['lang']['MAIL_UNSUBSCRIBE_SUCCESS'], 0, APP_ROOT . "/");
     } else {
         showErr($GLOBALS['lang']['MAIL_UNSUBSCRIBE_FAILED'], 0, APP_ROOT . "/");
     }
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:13,代码来源:subscribeModule.class.php

示例14: dovote

 public function dovote()
 {
     $ok = false;
     $ajax = intval($_REQUEST['ajax']);
     foreach ($_REQUEST['name'] as $vote_ask_id => $names) {
         foreach ($names as $kk => $name) {
             if ($name != '') {
                 $ok = true;
             }
         }
     }
     if (!$ok) {
         showErr("请选择要调查的内容", $ajax, '');
     }
     $vote_id = intval($_REQUEST['vote_id']);
     if (check_ipop_limit(get_client_ip(), "vote", 3600, $vote_id)) {
         foreach ($_REQUEST['name'] as $vote_ask_id => $names) {
             foreach ($names as $kk => $name) {
                 $name = htmlspecialchars(addslashes(trim($name)));
                 $result = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "vote_result where name = '" . $name . "' and vote_id = " . $vote_id . " and vote_ask_id = " . $vote_ask_id);
                 $is_add = true;
                 if ($result) {
                     $GLOBALS['db']->query("update " . DB_PREFIX . "vote_result set count = count + 1 where name = '" . $name . "' and vote_id = " . $vote_id . " and vote_ask_id = " . $vote_ask_id);
                     if (intval($GLOBALS['db']->affected_rows()) != 0) {
                         $is_add = false;
                     }
                 }
                 if ($is_add) {
                     if ($name != '') {
                         $result = array();
                         $result['name'] = $name;
                         $result['vote_id'] = $vote_id;
                         $result['vote_ask_id'] = $vote_ask_id;
                         $result['count'] = 1;
                         $GLOBALS['db']->autoExecute(DB_PREFIX . "vote_result", $result);
                     }
                 }
             }
         }
         $vote_list = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "vote_list where vote_id = " . $vote_id);
         $vote_list = array();
         $vote_list['vote_id'] = $vote_id;
         $vote_list['value'] = serialize($_REQUEST['name']);
         $GLOBALS['db']->autoExecute(DB_PREFIX . "vote_list", $vote_list);
         showSuccess("调查提交成功", $ajax, url("vote#index"));
     } else {
         showErr("你已经提交过该问卷", $ajax, '');
     }
 }
开发者ID:centaurustech,项目名称:crowdfunding-9,代码行数:49,代码来源:voteModule.class.php

示例15: index

 public function index()
 {
     $root = array();
     $ajax = intval($_REQUEST['ajax']);
     $root['ajax'] = $ajax;
     $email = strim($GLOBALS['request']['email']);
     //用户名或邮箱
     $pwd = strim($GLOBALS['request']['pwd']);
     //密码
     //检查用户,用户密码
     $user = user_check($email, $pwd);
     $user_id = intval($user['id']);
     if ($user_id > 0) {
         $id = intval($_REQUEST['id']);
         $deal_info = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "deal where id = " . $id . " and is_delete = 0 and is_effect = 1 and user_id = " . intval($GLOBALS['user_info']['id']));
         if (!$deal_info) {
             $root['info'] = "不能更新该项目的动态";
             output($root);
         } else {
             $data['log_info'] = strim($_REQUEST['log_info']);
             if ($data['log_info'] == "") {
                 $root['info'] = "请输入更新的内容";
                 output($root);
             }
             $data['image'] = strim($_REQUEST['image']) != "" ? replace_public($_REQUEST['image']) : "";
             $data['vedio'] = strim($_REQUEST['vedio']);
             if ($data['vedio'] != "") {
                 require_once APP_ROOT_PATH . "system/utils/vedio.php";
                 $vedio = fetch_vedio_url($_REQUEST['vedio']);
                 if ($vedio != "") {
                     $data['source_vedio'] = $vedio;
                 } else {
                     $root['info'] = "非法的视频地址";
                     output($root);
                 }
             }
             $data['user_id'] = intval($GLOBALS['user_info']['id']);
             $data['deal_id'] = $id;
             $data['create_time'] = NOW_TIME;
             $data['user_name'] = $GLOBALS['user_info']['user_name'];
             $GLOBALS['db']->autoExecute(DB_PREFIX . "deal_log", $data);
             $GLOBALS['db']->query("update " . DB_PREFIX . "deal set log_count = log_count + 1 where id = " . $deal_info['id']);
             showSuccess("", $ajax, url("deal#update", array("id" => $deal_info['id'])));
         }
     } else {
         $root['user_login_status'] = 0;
         output($root);
     }
 }
开发者ID:myjavawork,项目名称:sanxin-fangwei,代码行数:49,代码来源:deal_save_update.action.php


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