Esempio n. 1
0
 public function __construct($server = 'http://demo.scriptphp87.com/license.xml')
 {
     self::$licensserver = $server;
 }
Esempio n. 2
0
<?php

if (!CheckDomain::sn_check_domain()) {
    echo "Please get license for this domain";
    exit;
}
class HomeController extends BaseController
{
    /*
    |--------------------------------------------------------------------------
    | Default Home Controller
    |--------------------------------------------------------------------------
    |
    | You may wish to use controllers instead of, or in addition to, Closure
    | based routes. That's great! Here is an example controller method to
    | get you started. To route to this controller, just add the route:
    |
    |	Route::get('/', 'HomeController@showWelcome');
    |
    */
    public function getJsonFeed($from_to = 'btc_usd')
    {
        if ($feed = @file_get_contents('https://btc-e.com/api/2/' . $from_to . '/ticker')) {
            $ticker = json_decode($feed, true);
            return $ticker['ticker'];
        } else {
            //echo '<br>https://btc-e.com/api/2/'.$from_to.'/ticker';
            return array('last' => 0);
        }
    }
    public function index($market_id = '')