• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP is_payword函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: dround

 if ($MG['article_free_limit'] >= 0) {
     $fee_add = $MOD['fee_add'] && (!$MOD['fee_mode'] || !$MG['fee_mode']) && $limit_used >= $MG['article_free_limit'] && $_userid ? dround($MOD['fee_add']) : 0;
 } else {
     $fee_add = 0;
 }
 $fee_currency = $MOD['fee_currency'];
 $fee_unit = $fee_currency == 'money' ? $DT['money_unit'] : $DT['credit_unit'];
 $need_password = $fee_add && $fee_currency == 'money';
 $need_captcha = $MOD['captcha_add'] == 2 ? $MG['captcha'] : $MOD['captcha_add'];
 $need_question = $MOD['question_add'] == 2 ? $MG['question'] : $MOD['question_add'];
 $could_color = check_group($_groupid, $MOD['group_color']) && $MOD['credit_color'] && $_userid;
 if ($submit) {
     if ($fee_add && $fee_add > ($fee_currency == 'money' ? $_money : $_credit)) {
         dalert($L['balance_lack']);
     }
     if ($need_password && !is_payword($_username, $password)) {
         dalert($L['error_payword']);
     }
     if ($MG['add_limit']) {
         $last = $db->get_one("SELECT addtime FROM {$table} WHERE {$sql} ORDER BY itemid DESC");
         if ($last && $DT_TIME - $last['addtime'] < $MG['add_limit']) {
             dalert(lang($L['add_limit'], array($MG['add_limit'])));
         }
     }
     $msg = captcha($captcha, $need_captcha, true);
     if ($msg) {
         dalert($msg);
     }
     $msg = question($answer, $need_question, true);
     if ($msg) {
         dalert($msg);
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:my.inc.php


示例2: message

 if ($buy_price < $price) {
     message($L['spread_msg_price_min']);
 }
 if (($buy_price - $price) % $step != 0) {
     message($L['spread_msg_step']);
 }
 $buy_month = intval($buy_month);
 if ($buy_month < 1 || $buy_month > $month) {
     message($L['spread_msg_month']);
 }
 $amount = $buy_price * $buy_month;
 if ($currency == 'money') {
     if ($amount > $_money) {
         message($L['money_not_enough'], $MODULE[2]['linkurl'] . 'charge.php?action=pay&amount=' . ($amount - $_money));
     }
     is_payword($_username, $password) or message($L['error_payword']);
 } else {
     if ($amount > $_credit) {
         message($L['credit_not_enough'], $MODULE[2]['linkurl'] . 'trade.php?action=credit');
     }
 }
 $buy_tid = $mid == 4 ? $_userid : intval($buy_tid);
 if (!$buy_tid) {
     message($L['spread_msg_itemid']);
 }
 if ($mid == 5 || $mid == 6) {
     $table = get_table($mid);
     $item = $db->get_one("SELECT itemid FROM {$table} WHERE itemid='{$buy_tid}' AND status=3 AND username='{$_username}'");
     if (!$item) {
         message($L['spread_msg_yours']);
     }
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:spread.inc.php


示例3: isset

require 'common.inc.php';
require DT_ROOT . '/include/post.func.php';
require DT_ROOT . '/include/module.func.php';
isset($auth) or $auth = '';
$_auth = decrypt($auth, DT_KEY . 'PAY');
$_auth or dheader('channel.php?reload=' . $DT_TIME);
list($moduleid, $itemid, $currency, $fee, $title) = explode('|', $_auth);
isset($MODULE[$moduleid]) or dheader('channel.php?reload=' . $DT_TIME);
$itemid = intval($itemid);
$itemid or dheader('channel.php?reload=' . $DT_TIME);
$fee = dround($fee);
$fee > 0 or dheader('channel.php?reload=' . $DT_TIME);
$note = $MODULE[$moduleid]['name'] . '/' . $itemid;
if ($currency == 'money') {
    if (isset($password)) {
        is_payword($_username, $password) or mobile_msg($L['not_payword']);
        $discount = $MG['discount'] > 0 && $MG['discount'] < 100 ? $MG['discount'] : 100;
        $discount = dround($discount / 100);
        $_fee = dround($fee * $discount);
        $_money >= $_fee or mobile_msg($L['need_charge']);
        $db->query("INSERT INTO {$DT_PRE}finance_pay (moduleid,itemid,username,fee,currency,paytime,ip,title) VALUES ('{$moduleid}','{$itemid}','{$_username}','{$fee}','{$currency}','{$DT_TIME}','{$DT_IP}','" . addslashes($title) . "')");
        money_add($_username, -$fee);
        money_record($_username, -$fee, $L['pay_by_site'], 'system', $L['pay_info'], $note);
        mobile_msg($L['pay_success'], mobileurl($moduleid, 0, $itemid));
    } else {
        $head_title = $L['pay_title'] . $DT['seo_delimiter'] . $head_title;
        $foot = 'channel';
        include template('pay', 'mobile');
        if (DT_CHARSET != 'UTF-8') {
            toutf8();
        }
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:pay.php


示例4: VALUES

         $db->query("INSERT INTO {$DT_PRE}validate (type,username,ip,addtime,status,title,editor,edittime) VALUES ('mobile','{$username}','{$DT_IP}','{$DT_TIME}','3','{$mobile}','system','{$DT_TIME}')");
         message($L['send_mobile_success'], $MOD['linkurl']);
     }
     message($L['send_mobile_code_error']);
 } else {
     $DT['sms'] or message($L['send_sms_close']);
     $fee = $DT['sms_fee'];
     if ($submit) {
         is_mobile($mobile) or message($L['send_mobile_bad']);
         $r = $db->get_one("SELECT userid FROM {$DT_PRE}member WHERE mobile='{$mobile}' AND vmobile=1 AND userid<>{$_userid}");
         if ($r) {
             message($L['send_mobile_exist']);
         }
         if ($fee && $_sms < 1) {
             $fee <= $_money or message($L['money_not_enough'], $MOD['linkurl'] . 'charge.php?action=pay');
             is_payword($_username, $password) or dalert($L['error_payword']);
         }
         $auth = random(6, '0123456789');
         $content = lang('sms->sms_code', array($auth, $MOD['auth_days'])) . $DT['sms_sign'];
         $sms_code = send_sms($mobile, $content);
         if (strpos($sms_code, $DT['sms_ok']) !== false) {
             if ($fee) {
                 if ($_sms < 1) {
                     money_add($_username, -$fee);
                     money_record($_username, -$fee, $L['in_site'], $_username, $L['send_mobile_record'], $mobile);
                 } else {
                     sms_add($_username, -1);
                     sms_record($_username, -1, $_username, $L['send_mobile_record'], $mobile);
                 }
             }
             $db->query("UPDATE {$DT_PRE}member SET auth='{$auth}',authvalue='{$mobile}',authtime='{$DT_TIME}' WHERE username='{$username}'");
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:send.inc.php


示例5: Copyright

<?php

/*
	[Destoon B2B System] Copyright (c) 2008-2013 Destoon.COM
	This is NOT a freeware, use is subject to license.txt
*/
defined('IN_DESTOON') or exit('Access Denied');
require_once DT_ROOT . '/include/post.func.php';
$currency = $MOD['fee_currency'];
$mid = isset($resume) ? -$moduleid : $moduleid;
$note = ($mid == -9 ? $L['resume'] : $MODULE[$mid]['name']) . '/' . $itemid;
if ($currency == 'money') {
    $password or wap_msg($L['type_payword']);
    is_payword($_username, $password) or wap_msg($L['not_payword']);
    $discount = $MG['discount'] > 0 && $MG['discount'] < 100 ? $MG['discount'] : 100;
    $discount = dround($discount / 100);
    $_fee = dround($fee * $discount);
    $_money >= $_fee or wap_msg($L['need_charge']);
    $db->query("INSERT INTO {$DT_PRE}finance_pay (moduleid,itemid,username,fee,currency,paytime,ip,title) VALUES ('{$mid}','{$itemid}','{$_username}','{$fee}','{$currency}','{$DT_TIME}','{$DT_IP}','" . addslashes($title) . "')");
    money_add($_username, -$fee);
    money_record($_username, -$fee, $L['pay_by_site'], 'system', $L['pay_info'], $note);
} else {
    if ($_credit >= $fee) {
        $db->query("INSERT INTO {$DT_PRE}finance_pay (moduleid,itemid,username,fee,currency,paytime,ip,title) VALUES ('{$mid}','{$itemid}','{$_username}','{$fee}','{$currency}','{$DT_TIME}','{$DT_IP}','" . addslashes($title) . "')");
        credit_add($_username, -$fee);
        credit_record($_username, -$fee, 'system', $L['pay_info'], $note);
    } else {
        wap_msg($L['need_credit']);
    }
}
wap_msg($L['pay_success'], 'index.php?moduleid=' . $moduleid . '&amp;itemid=' . $itemid . (isset($resume) && $resume ? '&amp;resume=1' : ''));
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:pay.inc.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP is_pengajar函数代码示例发布时间:2022-05-15
下一篇:
PHP is_patient_deceased函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap