From a9aa438ea0558eb0044cf1e54a9190ddb41b65e5 Mon Sep 17 00:00:00 2001 From: cassio Date: Tue, 2 Jul 2013 09:44:46 +0400 Subject: restructuring of boca's git --- boca-1.5.0/src/team/files.php | 123 ------------------------------------------ 1 file changed, 123 deletions(-) delete mode 100644 boca-1.5.0/src/team/files.php (limited to 'boca-1.5.0/src/team/files.php') diff --git a/boca-1.5.0/src/team/files.php b/boca-1.5.0/src/team/files.php deleted file mode 100644 index 42fba28..0000000 --- a/boca-1.5.0/src/team/files.php +++ /dev/null @@ -1,123 +0,0 @@ -. -//////////////////////////////////////////////////////////////////////////////// -// Last modified 05/aug/2012 by cassio@ime.usp.br -require 'header.php'; - -if(($ct = DBContestInfo($_SESSION["usertable"]["contestnumber"])) == null) - ForceLoad("../index.php"); -if(($st = DBSiteInfo($_SESSION["usertable"]["contestnumber"],$_SESSION["usertable"]["usersitenumber"])) == null) - ForceLoad("../index.php"); - -if (isset($_GET["delete"]) && is_numeric($_GET["delete"])) { - DBBkpDelete($_GET["delete"],$_SESSION["usertable"]["usersitenumber"],$_SESSION["usertable"]["contestnumber"], $_SESSION["usertable"]["usernumber"]); - ForceLoad("files.php"); -} - -if (isset($_FILES["sourcefile"]) && isset($_POST["Submit"]) && $_FILES["sourcefile"]["name"]!="") { - if ($_POST["confirmation"] == "confirm") { - $type=myhtmlspecialchars($_FILES["sourcefile"]["type"]); - $size=myhtmlspecialchars($_FILES["sourcefile"]["size"]); - $name=myhtmlspecialchars($_FILES["sourcefile"]["name"]); - $temp=myhtmlspecialchars($_FILES["sourcefile"]["tmp_name"]); - - if ($size > $ct["contestmaxfilesize"]) { - LOGLevel("User {$_SESSION["usertable"]["username"]} tried to submit file " . - "$name with $size bytes ({$ct["contestmaxfilesize"]} max allowed).", 1); - MSGError("File size exceeds the limit allowed."); - ForceLoad("run.php"); - } - if (!is_uploaded_file($temp) || strlen($name)>100) { - IntrusionNotify("file upload problem."); - ForceLoad("../index.php"); - } - - DBNewBkp ($_SESSION["usertable"]["contestnumber"], - $_SESSION["usertable"]["usersitenumber"], - $_SESSION["usertable"]["usernumber"], - $name, - $temp, $size); - } - ForceLoad("files.php"); -} -?> -
- - - - - - -\n"; - echo " \n"; - - echo " \n"; - echo "\n"; - echo " \n"; - -} -echo "
Bkp #TimeFile
" . $run[$i]["number"] . "" . dateconvsimple($run[$i]["timestamp"]) . ""; - echo $run[$i]["filename"] . ""; - - echo "
"; -if (count($run) == 0) echo "
NO BACKUPS AVAILABLE
"; - -?> - -

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:
-
- - -
- - - - - -
File (size restrictions apply): - -
-
- -
- -
-
- - - -- cgit v1.2.3