summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--notFinishedCode/web/post.php103
-rw-r--r--notFinishedCode/web/startTest.php21
2 files changed, 124 insertions, 0 deletions
diff --git a/notFinishedCode/web/post.php b/notFinishedCode/web/post.php
new file mode 100644
index 0000000..01ee63d
--- /dev/null
+++ b/notFinishedCode/web/post.php
@@ -0,0 +1,103 @@
+<?
+
+$sipgsmrz1 = $_REQUEST["sip_gsmrz1"]; //SIP to GSMRZ1
+$sipgsmrz2 = $_REQUEST["sip_gsmrz2"]; //SIP to GSMRZ2
+$sipgsmrz3 = $_REQUEST["sip_gsmrz3"]; //SIP to GSMRZ3
+
+$sipland = $_REQUEST["sip_landln"]; //SIP to landline
+$sipuniv = $_REQUEST["sip_sipuniv"]; //SIP to University
+
+$gsmrzsip1 = $_REQUEST["gsmrz1_sip"]; //GSMRZ1 to SIP
+$gsmrzsip2 = $_REQUEST["gsmrz2_sip"]; //GSMRZ2 to SIP
+$gsmrzsip3 = $_REQUEST["gsmrz3_sip"]; //GSMRZ3 to SIP
+
+
+$gsm2gsm12 = $_REQUEST["gsmrz1_gsmrz2"]; //GSMRZ1 to GSMRZ2
+$gsm2gsm13 = $_REQUEST["gsmrz1_gsmrz3"]; //GSMRZ1 to GSMRZ3
+$gsm2gsm23 = $_REQUEST["gsmrz2_gsmrz3"]; //GSMRZ2 to GSMRZ3
+
+$landsip = $_REQUEST["landline_sip"]; //Landline to SIP
+
+$landgsmrz1 = $_REQUEST["landline_gsmrz1"]; //Landline to GSMRZ1
+$landgsmrz2 = $_REQUEST["landline_gsmrz2"]; //Landline to GSMRZ1
+$landgsmrz3 = $_REQUEST["landline_gsmrz3"]; //Landline to GSMRZ1
+
+//Add allso for external GSM
+
+
+if($sipgsmrz1 == 'on')
+{
+ echo 'test';
+}
+
+if($sipgsmrz2 == 'on')
+{
+ echo 'meho';
+}
+
+if($sipgsmrz3 == 'on')
+{
+
+}
+
+if($gsmrzsip1 == 'on')
+{
+
+}
+
+if($gsmrzsip2 == 'on')
+{
+
+}
+
+if($gsmrzsip3 == 'on')
+{
+
+}
+
+if($sipland == 'on')
+{
+
+}
+
+if($sipuniv == 'on')
+{
+
+}
+
+if($gsm2gsm12 == 'on')
+{
+
+}
+
+if($gsm2gsm13 == 'on')
+{
+
+}
+
+if($gsm2gsm23 == 'on')
+{
+
+}
+
+if($landsip == 'on')
+{
+
+}
+
+if($landgsmrz1 == 'on')
+{
+
+}
+
+if($landgsmrz2 == 'on')
+{
+
+}
+
+if($landgsmrz3 == 'on')
+{
+
+}
+
+?>
diff --git a/notFinishedCode/web/startTest.php b/notFinishedCode/web/startTest.php
new file mode 100644
index 0000000..98b95ce
--- /dev/null
+++ b/notFinishedCode/web/startTest.php
@@ -0,0 +1,21 @@
+<FORM NAME="form1" form action="post.php" method="POST">
+ <INPUT TYPE=CHECKBOX NAME="sip_gsmrz1"> SIP to RZ-GSM 1<BR>
+ <INPUT TYPE=CHECKBOX NAME="sip_gsmrz2"> SIP to RZ-GSM 2<BR>
+ <INPUT TYPE=CHECKBOX NAME="sip_gsmrz3"> SIP to RZ-GSM 3<BR>
+ <INPUT TYPE=CHECKBOX NAME="sip_landln"> SIP to Landline<BR>
+ <INPUT TYPE=CHECKBOX NAME="sip_sipuniv"> SIP to SIP University Phone line<BR>
+ <INPUT TYPE=CHECKBOX NAME="gsmrz1_sip"> RZ-GSM 1 to SIP<BR>
+ <INPUT TYPE=CHECKBOX NAME="gsmrz2_sip"> RZ-GSM 2 to SIP<BR>
+ <INPUT TYPE=CHECKBOX NAME="gsmrz3_sip"> RZ-GSM 3 to SIP<BR>
+ <INPUT TYPE=CHECKBOX NAME="gsmrz1_gsmrz2"> RZ-GSM 1 to RZ-GSM 2<BR>
+ <INPUT TYPE=CHECKBOX NAME="gsmrz1_gsmrz3"> RZ-GSM 1 to RZ-GSM 3<BR>
+ <INPUT TYPE=CHECKBOX NAME="gsmrz2_gsmrz3"> RZ-GSM 2 to RZ-GSM 3<BR>
+ <INPUT TYPE=CHECKBOX NAME="landline_sip"> Landline to SIP <BR>
+ <INPUT TYPE=CHECKBOX NAME="landline_gsmrz1"> Landline to RZ-GSM 1<BR>
+ <INPUT TYPE=CHECKBOX NAME="landline_gsmrz2"> Landline to RZ-GSM 2<BR>
+ <INPUT TYPE=CHECKBOX NAME="landline_gsmrz3"> Landline to RZ-GSM 3<BR>
+ <BR> <INPUT TYPE=SUBMIT VALUE="Submit"> </FORM>
+<?
+
+
+?>