"Fossies" - the Fresh Open Source Software Archive

Member "eventh/upload.php" (21 Aug 2007, 4141 Bytes) of package /linux/privat/old/eventh-1.1.11.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "upload.php" see the Fossies "Dox" file reference documentation.

    1 <?
    2 /*
    3     This file is part of Event Horizon (EVH).
    4 
    5     EVH is free software; you can redistribute it and/or modify
    6     it under the terms of the GNU General Public License as published by
    7     the Free Software Foundation; either version 3 of the License, or
    8     (at your option) any later version.
    9 
   10     EVH is distributed in the hope that it will be useful,
   11     but WITHOUT ANY WARRANTY; without even the implied warranty of
   12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13     GNU General Public License for more details.
   14 
   15     You should have received a copy of the GNU General Public License
   16     along with this program.  If not, see <http://www.gnu.org/licenses/>.
   17 */
   18 
   19 include "inc.php";
   20 ?>
   21 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
   22 <html>
   23 <head>
   24 <title><?=$appname; ?> - Upload</title>
   25 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   26 <link href="default.css" rel="stylesheet" type="text/css">
   27 </head>
   28 <body>
   29 <?=$titleandmenu; ?>
   30 <table width="50%"  border="0" align="center" cellpadding="0" cellspacing="0">
   31 <tr>
   32 <th class="content-text" scope="row" align="left"><strong><?=$notesheading; ?></strong></th>
   33 </tr>
   34 <tr>
   35 <th class="content-text" scope="row" align="left"> <ol>
   36   <li><strong><?=$note1; ?></strong></li>
   37   <li><strong><?=$note2; ?></strong></li>
   38   <li><strong><?=$note3; ?></strong></li>
   39   <li><strong><?=$note4; ?></strong></li>
   40   </ol>
   41 </th>
   42 </tr>
   43 </table>
   44 <form action="uploadfiles.php" method="post" enctype="multipart/form-data" name="form1">
   45 <input name="MAX_FILE_SIZE" type="hidden" id="MAX_FILE_SIZE" value="2097152000">
   46 <input name="browser" type="hidden" id="browser" value="">
   47 <p></p>
   48 <table width="500"  border="0" align="center" cellpadding="3" cellspacing="1" class="border">
   49   <tr>
   50     <th width="150" align="left" valign="top" nowrap class="header" scope="row"><?=$emailfieldtitle; ?></th>
   51     <td align="left" valign="middle" nowrap class="content" scope="row"><input name="YourEmail" type="text" id="YourEmail" size="30"></td>
   52   </tr>
   53   <tr>
   54     <th width="150" align="left" valign="top" nowrap class="header" scope="row"><?=$destemailfieldtitle; ?><br>      </th>
   55     <td align="left" valign="middle" nowrap class="content" scope="row"><input name="DestinationEmail" type="text" id="DestinationEmail" size="30">    </td>
   56   </tr>
   57   <tr>
   58     <th width="150" align="left" valign="top" nowrap class="header" scope="row"><?=$availfieldtitle; ?></th>
   59     <td align="left" valign="middle" nowrap class="content" scope="row">
   60     <select name="AvailabilityPeriod" id="AvailabilityPeriod">
   61     <?
   62       $query = "select * from Availability where 1;";
   63       $res = mysql_query($query,$dbh) or die("<p><b>A fatal database error occured</b>.\n<br />Query: " . $query . "<br />\nError: (" . mysql_errno() . ") " . mysql_error());
   64       while ($row = mysql_fetch_row($res)) {
   65         if ($row[1] == "1d") $selected = " selected";
   66         else $selected = '';
   67         echo '<option value="' . $row[1] . '"' . $selected . '>' . $row[2] . '</option>';
   68       }
   69     ?>
   70     </select></td>
   71   </tr>
   72 </table>
   73 <p>&nbsp;</p>
   74 <table width="500"  border="0" align="center" cellpadding="3" cellspacing="1" class="border">
   75   <tr>
   76     <th width="150" align="left" valign="top" nowrap class="header" scope="row"><?=$filefieldtitle; ?></th>
   77     <td align="left" valign="middle" nowrap class="content" scope="row"><input name="File1" type="file" id="File1" size="30"></td>
   78   </tr>
   79   <tr>
   80     <th width="150" align="left" valign="top" nowrap class="header" scope="row"><?=$descfieldtitle; ?></th>
   81     <td align="left" valign="middle" nowrap class="content" scope="row"><input name="File1Description" type="text" id="File1Description" size="50"></td>
   82   </tr>
   83 </table>
   84 <p align="center"> <span class="content-text"><?=$largefilesdisclaimer; ?></span><br>
   85   <input name="Submit" type="submit" onClick="MM_validateForm('YourEmail','','RisEmail','DestinationEmail','','R','File1','','R');return document.MM_returnValue" value="Submit">
   86 </p>
   87 </form>
   88 <?
   89 print $footer;
   90 ?>
   91 </body>
   92 </html>