2011-06-01 12:13:39 +02:00
|
|
|
<?php
|
2005-09-10 19:25:43 +02:00
|
|
|
|
|
|
|
$title = "Engelsystem - DECT";
|
|
|
|
$header = "DECT send call";
|
2011-05-26 00:52:57 +02:00
|
|
|
include ("../../../camp2011/includes/header.php");
|
2005-09-10 19:25:43 +02:00
|
|
|
|
2011-05-26 00:52:57 +02:00
|
|
|
include ("../../../camp2011/includes/config_IAX.php");
|
|
|
|
//include ("../../../camp2011/includes/funktion_modem.php");
|
|
|
|
include ("../../../camp2011/includes/funktion_cron.php");
|
2005-09-10 19:25:43 +02:00
|
|
|
|
2005-11-06 17:33:22 +01:00
|
|
|
if( !isset($_GET["dial"])) $_GET["dial"] = "";
|
|
|
|
if( !isset($_GET["custum"])) $_GET["custum"] = "";
|
|
|
|
|
2005-09-10 19:25:43 +02:00
|
|
|
if( $_GET["dial"]=="dial")
|
|
|
|
{
|
2011-06-01 12:13:39 +02:00
|
|
|
if( $_GET["DECT"]=="")
|
|
|
|
$Number = $_GET["custum"];
|
|
|
|
else
|
|
|
|
$Number = $_GET["DECT"];
|
|
|
|
|
|
|
|
if( strlen( $_GET["timeh"])== 1)
|
|
|
|
$_GET["timeh"] = "0". $_GET["timeh"];
|
|
|
|
|
|
|
|
if( strlen( $_GET["timem"])== 1)
|
|
|
|
$_GET["timem"] = "0". $_GET["timem"];
|
|
|
|
|
|
|
|
// SetWackeup( $Number, $_GET["timeh"], $_GET["timem"]);
|
|
|
|
DialNumberIAX($Number, $_GET["timeh"], $_GET["timem"],0);
|
2005-09-10 19:25:43 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
$_GET["custum"] = $Number;
|
2005-09-10 19:25:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
echo "<form action=\"./dect.php\" method=\"GET\">\n";
|
|
|
|
echo "<table>\n";
|
2005-09-10 19:25:43 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
echo "<tr><th>Number</th><th>h:m</th><th></th></tr>\n";
|
2005-09-10 19:25:43 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
echo "<tr><td>\n";
|
|
|
|
// Listet alle Nicks auf
|
|
|
|
echo "<select name=\"DECT\">\n";
|
|
|
|
echo "\t<option value=\"\">costum</option>\n";
|
2005-09-10 19:25:43 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
$usql="SELECT * FROM `User` WHERE NOT `DECT`='' ORDER BY `Nick`";
|
|
|
|
$uErg = mysql_query($usql, $con);
|
|
|
|
$urowcount = mysql_num_rows($uErg);
|
|
|
|
for ($k=0; $k<$urowcount; $k++)
|
|
|
|
{
|
|
|
|
echo "\t<option value=\"".mysql_result($uErg, $k, "DECT")."\">".
|
|
|
|
mysql_result($uErg, $k, "Nick").
|
|
|
|
" (". mysql_result($uErg, $k, "DECT"). ")".
|
|
|
|
"</option>\n";
|
|
|
|
}
|
|
|
|
echo "</select>\n";
|
|
|
|
|
|
|
|
echo "<input type=\"text\" name=\"custum\" size=\"4\" maxlength=\"4\" value=\"". $_GET["custum"]. "\">\n";
|
|
|
|
echo "</td>\n";
|
2005-09-10 19:25:43 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
echo "<td><input type=\"text\" name=\"timeh\" size=\"2\" maxlength=\"2\" value=\"". gmdate("H", time()+90+3600). "\">:";
|
|
|
|
echo "<input type=\"text\" name=\"timem\" size=\"2\" maxlength=\"2\" value=\"". gmdate("i", time()+90+3600). "\"></td>\n";
|
|
|
|
echo "<td><input type=\"submit\" name=\"dial\" value=\"dial\"></td>\n";
|
|
|
|
echo "</tr>";
|
|
|
|
echo "</table>\n";
|
|
|
|
|
|
|
|
echo "</form>";
|
2005-09-10 19:25:43 +02:00
|
|
|
|
|
|
|
|
2011-05-26 00:52:57 +02:00
|
|
|
include ("../../../camp2011/includes/footer.php");
|
2005-09-10 19:25:43 +02:00
|
|
|
?>
|
|
|
|
|