/www/shop/engine/Shopware/Plugins/Default/Frontend/PiPaymorrowPayment/paymorrow_direct_webservice_client/inc/log.inc.php
PHP | 10 lines | 10 code | 0 blank | 0 comment | 1 complexity | 84bb29601a03d4c87d23fdcac4c75455 MD5 | raw file
Possible License(s): AGPL-3.0, MIT, BSD-3-Clause, LGPL-2.1, LGPL-3.0
- <?php
- function log_output($filename, $text)
- {
- if(Shopware()->Plugins()->Frontend()->PiPaymorrowPayment()->Config()->sandbox_mode)
- {
- $fout = fopen(dirname(__FILE__) . "/../../log/" . $filename, "a+");
- fwrite($fout, $text);
- fclose($fout);
- }
- }