Skip to content

Instantly share code, notes, and snippets.

@kkirsanov
Created October 31, 2011 12:46
Show Gist options
  • Save kkirsanov/1327421 to your computer and use it in GitHub Desktop.
Save kkirsanov/1327421 to your computer and use it in GitHub Desktop.
function _driver_sms2ru() {
# Проверяем секретный ключ
$key_md5 = md5(trim($this->config['billing_secret_key']) . $_GET['id']);
/* if($_GET['key'] != $key_md5) {
exit('hacking attempt'); // скрипт был вызван с неправильным параметром безопасности.
}
*/
# Получаем данне СМС
$this->sms_data = array(
'billing_sms_id' => $_GET['smsid'],
'from' => $_GET['user_id'], // Часть номера абонента 756263466XX
'message' => $_GET['msg'], // Сообщение, отправленное абонентом 80511 Павел
'comission' => str_replace(',', '.', $_GET['cost_rur']), // Ваша прибыль, в рублях (RUR) 120.20
'country_code' => 'None'#$_GET['country'], // Код страны ru
'operator_short_name' => $_GET['operator_id_str'], // Краткое название оператора beeline
'short_number' => $_GET['num'] // Короткий номер на который было отправлено SMS 9395
);
echo("SMS ");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment