<?php

/**
 *
 * @copyright  2012 qrmii.com
 * @version    1
 * @link       http://www.qrmii.com
 */

require_once 'sendhttp.php';

function getcredit($login, $password) {
	$curl = 'http://qrmii.com/api/getcredit';
	$args = array(
		'login'		=> $login,
		'password'	=> $password,
	);

	$response=sendget($curl, $args);

	if (!$response or $response[0] != 200) {
		return false;
	}

	return $response[2];
}

