From a87249b65b3a34c5165295430b224b438e002118 Mon Sep 17 00:00:00 2001
From: Steffen Vogel
Date: Mon, 9 Jul 2012 15:16:52 +0200
Subject: [PATCH] adapted sms_contact to new blog theme
---
sms_contact/index.php | 6 +++---
sms_contact/style.css | 40 ++++++++++++++++++++++++++++++++++++----
2 files changed, 39 insertions(+), 7 deletions(-)
diff --git a/sms_contact/index.php b/sms_contact/index.php
index dc0ec57..54c8c49 100644
--- a/sms_contact/index.php
+++ b/sms_contact/index.php
@@ -51,7 +51,7 @@ if ($_POST) {
if ($time = is_blacklisted($blacklist, $_SERVER['REMOTE_ADDR'])) {
throw new Exception('Sorry, du musst ' . format_duration($config['blocked'] - (time() - $time)) . ' warten, bevor du die nächste SMS versenden kannst!');
}
-
+
$sipgate->sendSMS($config['recipient'], $message, NULL, $config['recipient']);
$balance = $sipgate->getBalance();
echo 'SMS wurde gesendet!
Vielen Dank :)
';
@@ -60,7 +60,7 @@ if ($_POST) {
' . floor(($balance['CurrentBalance']['TotalIncludingVat'] - $config['reserve']) / 0.079) . ' SMS)
';
if ($_SERVER['REMOTE_ADDR'] != '172.0.0.1') $blacklist[] = array($_SERVER['REMOTE_ADDR'], time());
-
+
echo 'zuück
';
write_blacklist($blacklist);
}
@@ -74,7 +74,7 @@ function show_form() {
echo '