PHP Classes

File: js/koin.php

Recommend this page to a friend!
  Classes of Julio Cezar Kronbauer   PHP Koin   js/koin.php   Download  
File: js/koin.php
Role: Auxiliary script
Content type: text/plain
Description: This script is for secure pages include, because KOIN_FRAUDID_JS_URL doesn't have a https version
Class: PHP Koin
Send payment order requests to the Koin API
Author: By
Last change:
Date: 9 years ago
Size: 484 bytes
 

Contents

Class file image Download
<?php

// This script is for secure pages include, because KOIN_FRAUDID_JS_URL doesn't have a https version //

include_once realpath(dirname(__FILE__) . '/../Koin.Class.php');

if ((
$SSL_Connection = strlen(@$_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off')) {
    if ((
$fp = @fopen(KOIN_FRAUDID_JS_URL, 'r')) !== false) {
        while ((
$c = @fgets($fp, 1024)) !== false) echo $c;
        @
fclose($fp);
    }
} else {
    @
header('location: ' . KOIN_FRAUDID_JS_URL);
}

?>