0,0 → 1,87 |
<?php checkDataCollected(); ?> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
<html> |
|
<head> |
<title>FilExch Admin</title> |
</head> |
|
<body> |
|
<h1>FilExch Admin</h1> |
|
<?php if($ex) { ?> |
<p><?= $ex->getMessage() ?></p> |
<?php } ?> |
|
<p><a href="manage.php">Create a new session.</a></p> |
|
<?php if(!$aliveList) { ?> |
<p>No session alive.</p> |
<?php } else { ?> |
<table border=1> |
<tr> |
<th>Session</th> |
<th>Owner</th> |
<th>Created</th> |
<th>Expire</th> |
<th>Size</th> |
<th>Count</th> |
<th colspan=4>Flags</th> |
<th colspan=2>Comments</th> |
<th>Active</th> |
<th> </th> |
</tr> |
<?php foreach($aliveList as $s) { ?> |
<tr> |
<td><a href="guest.php?s=<?= $f->htmlUrlPart($s->getName()) ?>"><?= $f->string($s->getName()) ?></a></td> |
<td><?= $s->getOwner() ?></td> |
<td><?= $f->date($s->getCreated(), " ") ?></td> |
<td><?= $f->date($s->getExpire(), " ") ?></td> |
<td><?= $f->size($s->getSizeCurrent(), "0 B") ?> / <?= $f->size($s->getSizeLimit(), "-") ?></td> |
<td><?= $f->string($s->getCountCurrent(), "0") ?> / <?= $f->string($s->getCountLimit(), "-") ?></td> |
<td title="<?= $f->boolean($s->getDownloadable(), "Guest may download files", |
"Guest may NOT download files") ?>"><?= $f->boolean($s->getDownloadable(), "D", " ") ?></td> |
<td title="<?= $f->boolean($s->getUploadable(), "Guest may upload files", |
"Guest may NOT upload files") ?>"><?= $f->boolean($s->getUploadable(), "U", " ") ?></td> |
<td title="<?= $f->boolean($s->getDeletable(), "Guest may delete files", |
"Guest may NOT delete files") ?>"><?= $f->boolean($s->getDeletable(), "x", " ") ?></td> |
<td title="<?= $f->boolean($s->getBlocked(), "Session is blocked", |
"Session is not blocked") ?>"><?= $f->boolean($s->getBlocked(), "B", " ") ?></td> |
<td title="<?= $f->string($s->getPublicComment()) ?>"><?= |
$f->stringBegin($s->getPublicComment(), 10) ?></td> |
<td title="<?= $f->string($s->getPrivateComment()) ?>"><?= |
$f->stringBegin($s->getPrivateComment(), 10) ?></td> |
<td><?= $f->boolean($s->isActive(), "x", " ") ?></td> |
<td nowrap> |
<a href="manage.php?id=<?= $f->htmlUrlPart($s->getId()) ?>">Manage</a> |
<a href="admin.php?remove=<?= $f->htmlUrlPart($s->getId()) ?>">Remove</a> |
</td> |
</tr> |
<?php } ?> |
<tr> |
<th>Total</th> |
<td colspan="3"> </td> |
<td><?= $f->size($aliveSummary['sizeCurrent'], "0 B") ?> |
/ <?= $f->size($aliveSummary['sizeLimit'], "-") ?></td> |
<td><?= $f->string($aliveSummary['countCurrent'], "0") ?> |
/ <?= $f->string($aliveSummary['countLimit'], "-") ?></td> |
<td colspan="7"> </td> |
<td> </td> |
</tr> |
</table> |
<?php } ?> |
|
<?php if(!$removedList) { ?> |
<p>No removed sessions.</p> |
<?php } else { ?> |
<p><a href="removed.php">Removed sessions</a> |
(<?= count($removedList) ?> sessions, |
<?= $f->string($removedSummary['countCurrent'], "0") ?> files, |
<?= $f->size($removedSummary['sizeCurrent'], "0 B") ?>)</p> |
<?php } ?> |
|
</body> |
|
</html> |
|