Beispiel #1
0
        }
    } else {
        echo "unavailable";
    }
}
?>
        </td>
  </tr>
  <tr>
        <td width="27%" align=right><b>Autojudged by:</b></td>
<?php 
if ($a["autobegin"] != "" && $a["autoend"] == "") {
    echo "<td width=\"83%\">" . $a["autoip"] . " since " . dateconvsimple($a["autobegin"]) . "</td>";
} else {
    if ($a["autoend"] != "") {
        echo "<td width=\"83%\">" . $a["autoip"] . " from " . dateconvsimple($a["autobegin"]) . " to " . dateconvsimple($a["autoend"]) . "</td>";
    } else {
        echo "<td width=\"83%\">unavailable</td>";
    }
}
?>
  </tr>
  <tr> 
        <td width="27%" align=right><b>Standard output:</b></td>
        <td width="83%"> 
<?php 
if ($a["autostdout"] != "") {
    echo "<a href=\"../filedownload.php?" . filedownload($a["autostdout"], "stdout") . "\">stdout</a>\n";
    echo "<a href=\"#\" class=menu style=\"font-weight:bold\" onClick=\"window.open('../filewindow.php?" . filedownload($a["autostdout"], "stdout") . "', 'View - STDOUT','width=680,height=600,scrollbars=yes," . "resizable=yes')\">view</a>\n";
} else {
    echo "unavailable";
Beispiel #2
0
    ForceLoad("files.php");
}
?>
<br>
<table width="100%" class="table table-striped">
 <tr>
  <td><b>Bkp #</b></td>
  <td><b>Time</b></td>
  <td><b>File</b></td>
 </tr>
<?php 
$run = DBUserBkps($_SESSION["usertable"]["contestnumber"], $_SESSION["usertable"]["usersitenumber"], $_SESSION["usertable"]["usernumber"]);
for ($i = 0; $i < count($run); $i++) {
    echo " <tr>\n";
    echo "  <td nowrap><a href=\"javascript:conf2('files.php?delete=" . $run[$i]["number"] . "')\">" . $run[$i]["number"] . "</a></td>\n";
    echo "  <td nowrap>" . dateconvsimple($run[$i]["timestamp"]) . "</td>\n";
    echo "<td nowrap><a href=\"../filedownload.php?" . filedownload($run[$i]["oid"], $run[$i]["filename"]) . "\">";
    echo $run[$i]["filename"] . "</a>";
    echo "</td>\n";
    echo " </tr>\n";
}
echo "</table>";
if (count($run) == 0) {
    echo "<br><center><b><font color=\"#ff0000\">NO BACKUPS AVAILABLE</font></b></center>";
}
?>

<br><br><center><b>To erase a file, click on its number. To download a file, click on its name.
To submit a new backup file, just fill in the following fields:</b></center>
<form name="form1" enctype="multipart/form-data" method="post" action="files.php">
<!--<input type="hidden" name="MAX_FILE_SIZE" value="<?php