* Modify exec to look like the rest of pfSense

* Add the ending fend.inc
This commit is contained in:
Scott Ullrich 2004-12-13 00:12:19 +00:00
parent be4b8e72a6
commit 2900e518b7
2 changed files with 13 additions and 6 deletions

View File

@ -156,6 +156,7 @@ function sf() { document.forms[0].savetopath.focus(); }
</td>
</tr>
</table>
<?php include("fend.inc"); ?>
</form>
</body>
</html>

View File

@ -1,5 +1,12 @@
#!/usr/local/bin/php
<?php
/*
Exec+ v1.02-000 - Copyright 2001-2003, All rights reserved
Created by technologEase (http://www.technologEase.com).
(modified for m0n0wall by Manuel Kasper <mk@neon1.net>)
*/
if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) {
session_cache_limiter('public');
$fd = fopen($_POST['dlPath'], "rb");
@ -15,18 +22,16 @@ if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) {
$ulmsg = "Uploaded file to /tmp/" . htmlentities($_FILES['ulfile']['name']);
unset($_POST['txtCommand']);
}
require("guiconfig.inc");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<?php
/*
Exec+ v1.02-000 - Copyright 2001-2003, All rights reserved
Created by technologEase (http://www.technologEase.com).
(modified for m0n0wall by Manuel Kasper <mk@neon1.net>)
*/
include("fbegin.inc");
// Function: is Blank
// Returns true or false depending on blankness of argument.
@ -235,6 +240,7 @@ if (!isBlank($_POST['txtCommand'])) {
<input name="submit" type="submit" class="button" id="upload" value="Upload"></td>
</tr>
</table>
<?php include("fend.inc"); ?>
</form>
<script language="Javascript">
document.forms[0].txtCommand.focus();