summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/web/post.php
diff options
context:
space:
mode:
authorroot2011-09-04 20:44:41 +0200
committerroot2011-09-04 20:44:41 +0200
commit1b281ffe9a5329be2e0a3364e73542ae4932b4d7 (patch)
treee2acfb0fe59944b4f85e61f6552ba2f7b2df0dce /notFinishedCode/web/post.php
parentUpdated the name of the DB! (diff)
downloadgsm-selftest-1b281ffe9a5329be2e0a3364e73542ae4932b4d7.tar.gz
gsm-selftest-1b281ffe9a5329be2e0a3364e73542ae4932b4d7.tar.xz
gsm-selftest-1b281ffe9a5329be2e0a3364e73542ae4932b4d7.zip
Reading the posted variables from web site!
Diffstat (limited to 'notFinishedCode/web/post.php')
-rw-r--r--notFinishedCode/web/post.php103
1 files changed, 103 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')
+{
+
+}
+
+?>