PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/www/shop/engine/Shopware/Plugins/Default/Frontend/PiPaymorrowPayment/paymorrow_direct_webservice_client/inc/log.inc.php

https://bitbucket.org/weberlars/sot-shopware
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
  1. <?php
  2. function log_output($filename, $text)
  3. {
  4. if(Shopware()->Plugins()->Frontend()->PiPaymorrowPayment()->Config()->sandbox_mode)
  5. {
  6. $fout = fopen(dirname(__FILE__) . "/../../log/" . $filename, "a+");
  7. fwrite($fout, $text);
  8. fclose($fout);
  9. }
  10. }