diff options
author | Alex Landau <alex.landau@xorcom.com> | 2009-02-01 18:09:40 +0000 |
---|---|---|
committer | Alex Landau <alex.landau@xorcom.com> | 2009-02-01 18:09:40 +0000 |
commit | 8e13d7e1fddc0e7faaae5ac640a5e05b114eea33 (patch) | |
tree | 83a3dc0bacf985de73f732db9d06530e2b57f40a /gui | |
parent | 743a1a366401973b9d5d823b2addeb61d2e698ab (diff) |
rapid-tunneling:
- Added GUI password protection.
- Backed out GPG.
git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@6682 283159da-0705-0410-b60c-f2062b4bb6ad
Diffstat (limited to 'gui')
-rw-r--r-- | gui/index.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gui/index.php b/gui/index.php index 891680c..423db56 100644 --- a/gui/index.php +++ b/gui/index.php @@ -32,9 +32,9 @@ } </style> <?php +$error = ""; if (isset($_REQUEST["submit"])) { - $error = ""; // Not a true while due to the break at the end. A handy way to use goto... while (true) { if (!is_uploaded_file($_FILES["filename"]["tmp_name"])) { @@ -44,13 +44,8 @@ if (isset($_REQUEST["submit"])) # FIXME: insecure temporary file /tmp/ra.log system("sudo -H -u rapid-tunneling rapid-tunneling ". $_FILES["filename"]["tmp_name"]." >/tmp/ra.log 2>&1", $ret); - if ($ret != 0) { + if ($ret != 0) $error = "Invalid or corrupt file. Please try again."; - if ( $ret == 7) { - $error = "Invalid GPG signature. Please try again."; - } - break; - } break; } } |