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 '
- +
Zeichen: ' . strlen($message) . ' (übrig: ' . (160 - strlen($message)) . ')
diff --git a/sms_contact/style.css b/sms_contact/style.css index b8328a5..2cb43f9 100644 --- a/sms_contact/style.css +++ b/sms_contact/style.css @@ -1,7 +1,7 @@ html, body { padding: 0; margin: 0; - color: #666666; + color: #777; } * { @@ -22,7 +22,39 @@ span.number { } -textarea { - width: 165px; - height: 165px; +input { + -moz-border-bottom-colors: none; + -moz-border-image: none; + -moz-border-left-colors: none; + -moz-border-right-colors: none; + -moz-border-top-colors: none; + background: -moz-linear-gradient(center top , rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%) repeat scroll 0 0 #EEEEEE; + border-color: #CCCCCC #AAAAAA #AAAAAA #CCCCCC; + border-radius: 3px 3px 3px 3px; + border-right: 1px solid #AAAAAA; + border-style: solid; + border-width: 1px; + color: #444444; + cursor: pointer; + display: inline-block; + font-family: "HelveticaNeue","Helvetica Neue",Helvetica,Arial,sans-serif; + font-size: 11px; + font-weight: bold; + line-height: 21px; + padding: 4px 12px; + text-decoration: none; + text-shadow: 0 1px rgba(255, 255, 255, 0.75); +} + +textarea { + background: none repeat scroll 0 0 #FFFFFF; + border: 1px solid #CCCCCC; + border-radius: 2px 2px 2px 2px; + color: #777777; + display: block; + font: 13px "HelveticaNeue","Helvetica Neue",Helvetica,Arial,sans-serif; + max-width: 100%; + outline: medium none; + padding: 6px 4px; + width: 165px; }