Plugin Directory

Changeset 2576356


Ignore:
Timestamp:
08/02/2021 10:19:28 AM (4 years ago)
Author:
best2pay
Message:

log errors

Location:
best2pay-payment-method-visamastercard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • best2pay-payment-method-visamastercard/best2pay-payment_method.php

    r2576337 r2576356  
    1818 * Plugin URI: http://best2pay.net/
    1919 * Description: Receive payments via Visa/Mastercard easily with Best2Pay bank cards processing
    20  * Version: 1.1.2
     20 * Version: 1.1.3
    2121 * Author: Best2Pay
    2222 * Tested up to: 5.7.1
     
    408408            $log = fopen($this->getLogFileName(), 'a+') or die("logging trouble");
    409409            $date = date("d.m.y H:i:s");
    410             $msg = "\n" . $date . "\t" . $message;
     410            $msg = $date . "\t" . $message;
    411411            if ($details) {
    412412                $msg .= "\n" . print_r($details, true);
    413413            }
     414            $msg .= "\n\n\n";
     415            fprintf($log, chr(0xEF).chr(0xBB).chr(0xBF));
    414416            fwrite($log, $msg);
    415417            fclose($log);
     
    421423            return 'b2p_log_' . $signature . '.txt';
    422424        }
     425
    423426
    424427    } // class
  • best2pay-payment-method-visamastercard/readme.txt

    r2576337 r2576356  
    55Requires at least: 4.7
    66Requires PHP: 7.0
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • best2pay-payment-method-visamastercard/trunk/best2pay-payment_method.php

    r2576337 r2576356  
    11<?php
    22/* 
    3     This program is free software; you can redistribute it and/or modify
    4     it under the terms of the GNU General Public License, version 2, as
    5     published by the Free Software Foundation.
    6 
    7     This program is distributed in the hope that it will be useful,
    8     but WITHOUT ANY WARRANTY; without even the implied warranty of
    9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    10     GNU General Public License for more details.
    11 
    12     You should have received a copy of the GNU General Public License
    13     along with this program; if not, write to the Free Software
    14     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     3    This program is free software; you can redistribute it and/or modify
     4    it under the terms of the GNU General Public License, version 2, as
     5    published by the Free Software Foundation.
     6
     7    This program is distributed in the hope that it will be useful,
     8    but WITHOUT ANY WARRANTY; without even the implied warranty of
     9    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     10    GNU General Public License for more details.
     11
     12    You should have received a copy of the GNU General Public License
     13    along with this program; if not, write to the Free Software
     14    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1515*/
    1616/**
     
    1818 * Plugin URI: http://best2pay.net/
    1919 * Description: Receive payments via Visa/Mastercard easily with Best2Pay bank cards processing
    20  * Version: 1.1.2
     20 * Version: 1.1.3
    2121 * Author: Best2Pay
    2222 * Tested up to: 5.7.1
     
    408408            $log = fopen($this->getLogFileName(), 'a+') or die("logging trouble");
    409409            $date = date("d.m.y H:i:s");
    410             $msg = "\n" . $date . "\t" . $message;
     410            $msg = $date . "\t" . $message;
    411411            if ($details) {
    412412                $msg .= "\n" . print_r($details, true);
    413413            }
     414            $msg .= "\n\n\n";
     415            fprintf($log, chr(0xEF).chr(0xBB).chr(0xBF));
    414416            fwrite($log, $msg);
    415417            fclose($log);
     
    421423            return 'b2p_log_' . $signature . '.txt';
    422424        }
     425
    423426
    424427    } // class
Note: See TracChangeset for help on using the changeset viewer.