"Fossies" - the Fresh Open Source Software Archive 
Member "eventh/tnadmin/index.php" (1 Apr 2009, 5378 Bytes) of package /linux/privat/old/eventh-1.1.11.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP 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 "index.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 $queryfiles = "select id, sessionid, name, method from Files where 1 order by id;";
22 $resfiles = mysql_query($queryfiles,$dbh) or die("<p><b>A fatal database error occured</b>.\n<br />Query: " . $queryfiles . "<br />\nError: (" . mysql_errno() . ") " . mysql_error());
23 $numfiles = mysql_num_rows($resfiles);
24 ?>
25 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
26 <html>
27 <head>
28 <title><?=$appname; ?> - Admin</title>
29 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
30 <link href="../default.css" rel="stylesheet" type="text/css">
31 <script language="JavaScript" type="text/JavaScript">
32 <!--
33 function MM_goToURL() { //v3.0
34 var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
35 for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
36 }
37 //-->
38 </script>
39 </head>
40 <body>
41 <?=$titleandmenu; ?>
42 <p align="center">
43 <input name="Purge ALL Files" type="submit" id="Purge ALL Files" onClick="MM_goToURL('parent','purge.php');return document.MM_returnValue" value="Purge ALL Files">
44 <input name="View History" type="submit" id="View History" onClick="MM_goToURL('parent','history.php?ba=1');return document.MM_returnValue" value="View History">
45 </p>
46 <table width="500" border="0" align="center" cellpadding="3" cellspacing="1" class="border">
47 <tr>
48 <th align="left" valign="top" nowrap class="header" scope="row" width="100">Dnld Code</th>
49 <th align="left" valign="top" nowrap class="header" scope="row" width="100">Mod Code</th>
50 <th align="left" valign="middle" nowrap class="header" scope="row">Filename</th>
51 <th align="left" valign="middle" nowrap class="header" scope="row">Size</th>
52 <th align="left" valign="middle" nowrap class="header" scope="row">Uploaded</th>
53 <th align="left" valign="middle" nowrap class="header" scope="row">Expires</th>
54 <th align="left" valign="middle" nowrap class="header" scope="row">Avail</th>
55 <th align="left" valign="middle" nowrap class="header" scope="row">Uploader</th>
56 <th align="left" valign="middle" nowrap class="header" scope="row">Modify</th>
57 <th align="left" valign="middle" nowrap class="header" scope="row">Delete</th>
58 <th align="left" valign="middle" nowrap class="header" scope="row">Download</th>
59 </tr>
60 <?
61 $totalsize=0;
62 while ($rowfiles = mysql_fetch_row($resfiles)) {
63 $querysession = "select Sessions.id, dnldcode, modcode, indate, avail, srcemail, size, Files.id, Sessions.srcemail, Sessions.outdate from Sessions,Files where Sessions.id = $rowfiles[1] and Files.sessionid=Sessions.id;";
64 $ressession = mysql_query($querysession,$dbh) or die("<p><b>A fatal database error occured</b>.\n<br />Query: " . $querysession . "<br />\nError: (" . mysql_errno() . ") " . mysql_error());
65 $rowsession = mysql_fetch_row($ressession);
66 $filesize = round($rowsession[6] / 1024 / 1024, 2);
67 $totalsize += $filesize;
68 ?>
69 <tr>
70 <td align="left" valign="top" nowrap class="content" scope="row" width="100"><?=$rowsession[1]; ?></td>
71 <td align="left" valign="top" nowrap class="content" scope="row" width="100"><?=$rowsession[2]; ?></td>
72 <td align="left" valign="middle" nowrap class="content" scope="row"><?=$rowfiles[2] . ' (' . $rowfiles[3] . ')'; ?></td>
73 <td align="right" valign="middle" nowrap class="content" scope="row"><?=$filesize; ?> MB</td>
74 <td align="left" valign="middle" nowrap class="content" scope="row"><?=$rowsession[3]; ?></td>
75 <td align="left" valign="middle" nowrap class="content" scope="row"><?=$rowsession[9]; ?></td>
76 <td align="right" valign="middle" nowrap class="content" scope="row"><?=$rowsession[4]; ?></td>
77 <td align="right" valign="middle" nowrap class="content" scope="row"><?=$rowsession[8]; ?></td>
78 <td align="left" valign="middle" nowrap class="content" scope="row"><a href="https://<?=$servername . "/modfile.php?ba=1&sessid=" . $rowsession[0] . "&vercode=" . $rowsession[2] . "&modemail=" . $rowsession[5]; ?>">Modify</a></td>
79 <td align="left" valign="middle" nowrap class="content" scope="row"><a href="https://<?=$servername . "/modapply.php?ba=1&del=1&sessid=" . $rowsession[0] . "&vercode=" . $rowsession[1]; ?>">Delete</a></td>
80 <td align="left" valign="middle" nowrap class="content" scope="row"><a href="https://<?=$servername . "/sendfile.php?fid=$rowsession[7]&vercode=$rowsession[1]"; ?>">Download</a></td>
81 </tr>
82 <?
83 }
84 ?>
85 </table>
86 <div class="content-text" align="center"><strong><?=$numfiles; ?> files (<?=$totalsize; ?>MB) currently in the system!</strong></div>
87 <?
88 print $footer;
89 ?>
90
91 </body>
92 </html>