adapted sms_contact to new blog theme
This commit is contained in:
parent
ef795e1f49
commit
a87249b65b
2 changed files with 39 additions and 7 deletions
|
@ -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 '<h3>SMS wurde gesendet!</h3><p>Vielen Dank :)</p>';
|
||||
|
@ -60,7 +60,7 @@ if ($_POST) {
|
|||
' . floor(($balance['CurrentBalance']['TotalIncludingVat'] - $config['reserve']) / 0.079) . ' SMS)</p>';
|
||||
|
||||
if ($_SERVER['REMOTE_ADDR'] != '172.0.0.1') $blacklist[] = array($_SERVER['REMOTE_ADDR'], time());
|
||||
|
||||
|
||||
echo '<p><a href="javascript:history.go(-1)" title="back">zuück</a></p>';
|
||||
write_blacklist($blacklist);
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ function show_form() {
|
|||
|
||||
echo '<form name="sms_frm" onsubmit="return send(this);" action="' . $_SERVER['PHP_SELF'] . '" method="post">
|
||||
<table>
|
||||
<!-- <tr><td><span class="head">An:</span> <span id="number">++' . $config['recipient'] . '</span></td></tr> --!>
|
||||
<!-- <tr><td><span class="head">An:</span> <span id="number">++' . $config['recipient'] . '</span></td></tr> -->
|
||||
<tr><td><textarea onfocus="update_length(this);" onkeyup="update_length(this);" name="message" cols="40" rows="5">' . $message . '</textarea></td></tr>
|
||||
<tr><td><span class="head">Zeichen:</span> <span id="length">' . strlen($message) . '</span> (übrig: <span id="left" style="color: green;">' . (160 - strlen($message)) . '</span>)</td></tr>
|
||||
</table>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue