All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

nscheck_form.php3 1.57 KB
Newer Older
1
<?php
Leigh B. Stoller's avatar
Leigh B. Stoller committed
2 3
#
# EMULAB-COPYRIGHT
4
# Copyright (c) 2000-2004, 2006, 2007 University of Utah and the Flux Group.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
5 6
# All rights reserved.
#
7 8 9 10 11
include("defs.php3");

#
# Only known and logged in users can begin experiments.
#
12 13 14
$this_user = CheckLoginOrDie();
$uid       = $this_user->uid();
$isadmin   = ISADMIN();
15

16 17 18 19 20
#
# Standard Testbed Header
#
PAGEHEADER("Syntax Check your NS file");

21 22 23
?>
<table align="center" border="1"> 
<tr>
24
    <td align="center" colspan="3">
Leigh B. Stoller's avatar
Leigh B. Stoller committed
25 26 27 28
        <font size="+1">
               Use this page to syntax check your NS file before
               submitting it.
        </font>
29 30 31 32 33 34 35
    </td>
</tr>

<?php
echo "<form enctype=\"multipart/form-data\"
            action=\"nscheck.php3\" method=\"post\">\n";

36

37
#
38
# NS file upload or on server.
39 40
# 
echo "<tr>
41 42
          <td rowspan>*Your NS file: &nbsp</td>

43
          <td rowspan><center>Upload (500K max)<br>
44 45 46
                                   <br>
                                   Or<br>
                                   <br>
47
                              On Server <br> ($TBVALIDDIRS)
48 49 50
                      </center></td>

          <td rowspan>
51
              <input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"512000\">
52
              <input type=\"file\" name=\"exp_nsfile\" size=\"30\">
53 54
              <br>
              <br>
55 56
              <input type=\"text\" name=\"formfields[exp_localnsfile]\"
                     size=\"40\">
57 58 59 60 61 62
              </td>
      </tr>\n";

?>

<tr>
63
    <td align="center" colspan="3">
Leigh B. Stoller's avatar
Leigh B. Stoller committed
64
        <b><input type="submit" value="Check"></b></td>
65 66 67 68 69 70 71 72 73 74
</tr>
</form>
</table>

<?php
#
# Standard Testbed Footer
# 
PAGEFOOTER();
?>