<?php
session_start();
if (!isset($_SESSION['auth']))
{
die("0");
}
include('sms.class.php');
include_once('../config.php');
$error = false;
function my_error_handler($code, $msg, $file, $line)
{global $error; $error = true;}
set_error_handler('my_error_handler');
$login = SANTI_AVISO_USER;
$password = SANTI_AVISO_PASSWORD;
$sms = new SMSClass($login, $password);
$result = $sms->GetBalance();
die(strip_tags($result));
?>