Location: PHPKode > projects > Brunhilde Media Server > brunhilde/upload.php
<?php

include("global.php");

### upload.php ###
// generates the song upload form

// sets the maximum allowed filesize
ini_set("upload_max_filesize", $UPLOAD_SIZE);

// option if the upload function has been disabled
if($UPLOAD_DIR == "") {
  echo "<head><Title>Error</Title></head>";
  echo "<body bgcolor=#ffffff>";
  echo "<br><br><br><font size=4><B>I'm sorry, but the upload function has been disabled by the administrator.</B></front><br><br>";
  echo "<font size=3><a href=index.php>Back To Main Page</a></font><br>";
  echo "</body>";
  exit;
  }

// makes sure that the "back to songlist" link is displayed
$cdir = "blarg";
// keeps teh "upload a file" link from appearing on it's own page
$UPLOAD_DIR = "";

header("Content Type: text/html");
echo "<html>\n";
echo "<head><title>Brunhilde Upload Form</title></head>\n";

include("header.php");

echo "<p>";
echo "<table border=0 cellpadding=0 cellspacing=2 width=100% $BORDER>\n";
echo "<tr><td>\n";
echo "<table border=0 cellpadding=2 cellspacing=1 width=100% $BODY>\n";
echo "<tr $TITLE><th><B>Brunhilde Upload Form</B></th></tr>\n";
echo "<tr><td align=center>\n";
echo "<br>\n";

// creates the upload html form
echo "<form name=fup method=post enctype=multipart/form-data action=\"post.php\">";
// 4 upload slots
echo "<input name=upfile[] type=file size=40><br>\n";
echo "<input name=upfile[] type=file size=40><br>\n";
echo "<input name=upfile[] type=file size=40><br>\n";
echo "<input name=upfile[] type=file size=40><br>\n";

// submit form
echo "<input type=submit value=Upload>";
echo "</form>\n";

echo "</td></tr></table></td></tr></table>\n";
echo "</p>\n";

include("footer.php");

exit;

?>
Return current item: Brunhilde Media Server