1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
499 B

<?php
require_once 'jsonRPCServer.php';
require_once 'smsSender.php';
require_once 'postgresGatewayBackend.php';
session_start();
try
{
$backend = new postgresGatewayBackend('localhost', 'sms_gateway', 'quaiy8Zu', 'sms_gateway');
}
catch (PDOException $e)
{
header('Status: 500 Internal Server Error');
exit;
}
try
{
$smsSender = new smsSender(session_id(), $backend);
}
catch (Exception $e)
{
header('Status: 500 Internal Server Error');
}
jsonRPCServer::handle($smsSender);