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


PHP log::writevar方法代码示例

本文整理汇总了PHP中log::writevar方法的典型用法代码示例。如果您正苦于以下问题:PHP log::writevar方法的具体用法?PHP log::writevar怎么用?PHP log::writevar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在log的用法示例。


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

示例1: checkdeposit

 /**
  * Принимает от assist результаты платежа, производит зачисление.
  *
  * @param array $req   массив $_POST с данными.
  */
 function checkdeposit($req)
 {
     $this->log->writeln('Поступление платежа.');
     $this->log->writevar($req);
     if ($req['merchant_id'] != self::MERCHANT_ID) {
         $this->fail(self::ERR_MERCHANT_ID);
     }
     $hash_x = $req['merchant_id'] . $req['ordernumber'] . $req['amount'] . $req['currency'] . $req['orderstate'];
     $hash = strtoupper(md5(strtoupper(md5($this->_secret) . md5($hash_x))));
     if ($hash != $req['checkvalue']) {
         $this->fail(self::ERR_HASH);
     }
     if ($req['responsecode'] == 'AS000' && $req['orderstate'] == 'Approved') {
         $card_account = new card_account();
         $billing_no = $card_account->checkPayment($req['ordernumber']);
         if (!$billing_no) {
             $this->fail(self::ERR_ORDERNUM);
         }
         $amm = $req['orderamount'];
         $descr = "CARD номер счета в ассисте {$req['billnumber']} с карты {$req['meantypename']} {$req['meannumber']} " . "сумма - {$req['orderamount']} {$req['ordercurrency']}, " . "обработан {$req['packetdate']}, номер покупки - {$req['ordernumber']}";
         if ($error = $this->deposit($op_id, $billing_no, $amm, $descr, 6, $req['orderamount'])) {
             $this->fail(self::ERR_DEPOSIT, $error);
         }
     }
     $this->success($req['billnumber'], $req['packetdate']);
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:cardpay.php

示例2: checkdeposit

 /**
  * Зачисление средств при поступлении "Payment Confirmation" от Paymaster.
  *
  * @see /income/pm.php 
  * @param array  $req   параметры запроса.  
  * @return string Сообщение об ошибке
  */
 function checkdeposit($req)
 {
     $this->log = new log('pmpay/checkdeposit-%d%m%Y.log', 'a', '%d.%m.%Y %H:%M:%S : ');
     $this->log->writevar($req);
     $hash_str = $req['LMI_MERCHANT_ID'] . ';' . $req['LMI_PAYMENT_NO'] . ';' . $req['LMI_SYS_PAYMENT_ID'] . ';' . $req['LMI_SYS_PAYMENT_DATE'] . ';' . $req['LMI_PAYMENT_AMOUNT'] . ';' . $req['LMI_CURRENCY'] . ';' . $req['LMI_PAID_AMOUNT'] . ';' . $req['LMI_PAID_CURRENCY'] . ';' . $req['LMI_PAYMENT_SYSTEM'] . ';' . $req['LMI_SIM_MODE'] . ';' . $this->key;
     $hash_str = base64_encode(md5($hash_str, true));
     if ($req['LMI_HASH'] == $hash_str) {
         $error = $this->_setDeposit($req);
     } else {
         $error = 'Bad LMI_HASH';
     }
     $this->log->writeln($error ? $error : 'YES');
     $this->log->writeln();
     return $error;
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:22,代码来源:pmpay.php

示例3: json_encode

<?php

define('NO_CSRF', 1);
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stdf.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/platipotom.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/log.php';
$platipotom = new platipotom();
$log = new log('platipotom/%d%m%Y.log');
$log->writeln('----- ' . date('d.m.Y H:i:s'));
$log->writevar($_GET);
$result = $platipotom->order();
$log->writeln('----- ' . (isset($result['status']) && $result['status'] == 1 ? 'SUCCESS' : 'FAIL'));
$log->writeln();
header('Content-Type: application/json');
echo json_encode($result);
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:15,代码来源:platipotom.php

示例4: log

<?php

define('NO_CSRF', 1);
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/stdf.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/yandex_kassa.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/log.php";
$yandex_kassa = new yandex_kassa();
$log = new log('ykassa/%d%m%Y.log');
$log->writeln('----- ' . date('d.m.Y H:i:s'));
$log->writevar($_POST);
$action = __paramInit('string', null, 'action');
//@todo: выставляем тестовый режим для валидации по IP
//после тестирования резерва БС убрать
/*
$scid = __paramInit('string', null, 'scid');
$is_test = $scid == yandex_kassa::SCID_SBR_TEST;
if($is_test) $yandex_kassa->setTest($is_test);
*/
$result = array();
if ($action == 'checkOrder') {
    $result = $yandex_kassa->order(false);
}
if ($action == 'paymentAviso') {
    $result = $yandex_kassa->order(true);
}
$log->writeln('----- ' . (isset($result['message']) ? $result['message'] : 'YES'));
$log->writeln();
echo "<?xml version=\"1.0\" encoding=\"windows-1251\"?>";
?>

<<?php 
开发者ID:notUserDeveloper,项目名称:fl-ru-damp,代码行数:31,代码来源:ykassa.php

示例5: array

$post = $_POST;
$get = $_GET;
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/stdf.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/pskb.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/log.php";
$src = __paramValue('int', $get['res']);
$state = __paramValue('int', $post['state']);
$lc_id = __paramValue('int', $post['account']);
$log_data = array('GET' => $get, 'POST' => $post);
if (!pskb::validateCardRequest($post)) {
    $src = 2;
    $state = -999;
    $log_data['err'] = array('src' => $src, 'state' => $state);
}
$log = new log("pskb_cards/income-" . SERVER . '-%d%m%Y.log', 'a', '%d.%m.%Y %H:%M:%S : ' . $_SERVER['REMOTE_ADDR'] . ' : ');
$log->writevar($log_data);
$pskb = new pskb();
$_lc = $pskb->getLCbyLCId($lc_id);
$err_msg = "Неизвестная ошибка";
if ($src == 2) {
    if ($state && in_array($state, array_keys(pskb::$card_messages))) {
        $err_msg = pskb::$card_messages[$state];
    }
    if (!in_array($state, array(2, -999))) {
        $pskb->upLC(array('state' => 'err', 'stateReason' => $err_msg), $_lc['lc_id']);
    }
}
if ($src === 1 && defined('PSKB_TEST_MODE')) {
    $lc = new pskb_lc(json_encode($_lc));
    $lc->id = $_lc['lc_id'];
    $lc->state = 'cover';
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:pscb.php

示例6: _log

 private function _log($message = '', $var = null)
 {
     if (!$this->_log) {
         return;
     }
     if ($message) {
         $this->_log->writeln($message);
     }
     if ($var) {
         $this->_log->writevar($var);
     }
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:12,代码来源:onlinedengi.php


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