|
|
|
@ -11,34 +11,29 @@ |
|
|
|
</head> |
|
|
|
<body> |
|
|
|
<div class="account"> |
|
|
|
<b>Expiration :</b> <?= $infos['expires']->format('d/m/Y') ?> (<?= $restant ?>)<br>
|
|
|
|
<b>Traffic Restant :</b> <?= intval($infos['trafficleft_gigabytes']) ?>Go (<?= intval($infos['fairuse_left'] * 100) ?>%)<br>
|
|
|
|
Expiration : <span class="info"><?= $infos['expires']->format('d/m/Y') ?> (<span class="important"><?= $restant ?></span>)</span><br>
|
|
|
|
Traffic Restant : <span class="info"><?= intval($infos['trafficleft_gigabytes']) ?>Go (<span class="important"><?= intval($infos['fairuse_left'] * 100) ?>%</span>)</span><br>
|
|
|
|
</div> |
|
|
|
<div class="nomenclature"> |
|
|
|
<span class="added">Ajouté</span> |
|
|
|
<span class="downloading">En cours</span> |
|
|
|
<span class="downloaded">Fini</span> |
|
|
|
<span class="dupp">Duppliqué</span> |
|
|
|
</div> |
|
|
|
<div class="addMulti"> |
|
|
|
<textarea id="urls" name="urls" style="margin: 0px; width: 985px; height: 401px;"></textarea><br> |
|
|
|
<input type="button" id="sub" name="sub" value="submit" onclick="javascript:subURL();"><br> |
|
|
|
<textarea class="multidl" id="urls" name="urls" spellcheck="false"></textarea><br> |
|
|
|
<div class="mybtn" onclick="subURL();"> |
|
|
|
<a class="btn"> |
|
|
|
Télécharger |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="list"> |
|
|
|
<div class=""> |
|
|
|
<table> |
|
|
|
<tr> |
|
|
|
<td class="added">Ajouté</td> |
|
|
|
<td class="downloading">En cours</td> |
|
|
|
<td class="downloaded">Fini</td> |
|
|
|
<td class="dupp">Duppliqué</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
<table class="listdl"> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th>Date</th> |
|
|
|
<th>Filename</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<div class="listdl"> |
|
|
|
<table class="listdl"> |
|
|
|
<tbody> |
|
|
|
<?php |
|
|
|
foreach([ 'added' => $listAdded, 'downlading' => $listDownloading, 'downloaded' => $listDownloaded, 'dupp' => $listDupp ] as $catName => $cat) { |
|
|
|
foreach([ $listAdded, $listDownloading, $listDownloaded, $listDupp ] as $cat) { |
|
|
|
foreach($cat as $element) { |
|
|
|
if ($element['href']) { |
|
|
|
$nameLink = '<a href="/downloaded/'.$element['filename'].'">'.$element['filename'].'</a>'; |
|
|
|
@ -46,86 +41,43 @@ foreach([ 'added' => $listAdded, 'downlading' => $listDownloading, 'downloaded' |
|
|
|
$nameLink = $element['filename']; |
|
|
|
} |
|
|
|
?>
|
|
|
|
<tr class="<?= $element['cstate']; ?>"> |
|
|
|
<td><?= $element['time']->format('d/m/Y'); ?></td>
|
|
|
|
<td><?= $nameLink; ?></td>
|
|
|
|
<td> |
|
|
|
<img src="/img/ip.png" height=16 width=16 title="<?= $element['event'][0]['ip']; ?>" alt="<?= $element['event'][0]['ip']; ?>"> |
|
|
|
<a href="<?= $element['url']; ?>"><img src="/img/link.png" height=16 width=16></a> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr class="<?= $element['cstate']; ?>"> |
|
|
|
<td><?= $nameLink; ?></td>
|
|
|
|
<td> |
|
|
|
<img src="/img/ip.png" height=16 width=16 title="<?= $element['event'][0]['ip']; ?>" alt="<?= $element['event'][0]['ip']; ?>"> |
|
|
|
<a href="<?= $element['url']; ?>"><img src="/img/link.png" height=16 width=16></a> |
|
|
|
</td> |
|
|
|
<td><?= $element['time']->format('d/m/Y'); ?></td>
|
|
|
|
</tr> |
|
|
|
<?php |
|
|
|
} |
|
|
|
} |
|
|
|
?>
|
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
<?php |
|
|
|
if (!empty($streamBegin)) { |
|
|
|
?>
|
|
|
|
<div class="$streamBegin"> |
|
|
|
Stream en cours ou non fini : <br> |
|
|
|
<table> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th>Date</th> |
|
|
|
<th>Filename</th> |
|
|
|
<th>IP</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<?php |
|
|
|
foreach ($streamBegin as $result) { |
|
|
|
?>
|
|
|
|
<tr> |
|
|
|
<td><?= $result['time']->format('d/m/Y'); ?></td>
|
|
|
|
<td><?= $result['filename']; ?></td>
|
|
|
|
<td><?= $result['ip']; ?></td>
|
|
|
|
</tr> |
|
|
|
<?php |
|
|
|
} |
|
|
|
?>
|
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
<input type="button" value="Wipe" onClick="javascript:wipe('stream', 'begin');"> |
|
|
|
</div> |
|
|
|
<?php |
|
|
|
} |
|
|
|
|
|
|
|
if (!empty($streamFinished)) { |
|
|
|
?>
|
|
|
|
<div class="streamFinished"> |
|
|
|
Stream fini : <br> |
|
|
|
<table> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th>Date</th> |
|
|
|
<th>Filename</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
<div class="liststream"> |
|
|
|
<table class="liststream"> |
|
|
|
<tbody> |
|
|
|
<?php |
|
|
|
foreach ($streamFinished as $result) { |
|
|
|
# TODO : dans l'IP, ajouter le resolv
|
|
|
|
foreach([ $streamBegin, $streamFinished ] as $cat) { |
|
|
|
foreach($cat as $element) { |
|
|
|
?>
|
|
|
|
<tr> |
|
|
|
<td><?= $result['time']->format('d/m/Y'); ?></td>
|
|
|
|
<td> |
|
|
|
<img src="/img/ip.png" height=16 width=16 title="<?= $result['ip']; ?>" alt="<?= $result['ip']; ?>"> |
|
|
|
<a href="<?= $result['url']; ?>"><img src="/img/link.png" height=16 width=16></a> |
|
|
|
<?= $result['filename']; ?>
|
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td><?= $element['filename']; ?></td>
|
|
|
|
<td> |
|
|
|
<img src="/img/ip.png" height=16 width=16 title="<?= $element['ip']; ?>" alt="<?= $element['ip']; ?>"> |
|
|
|
<a href="<?= $element['url']; ?>"><img src="/img/link.png" height=16 width=16></a> |
|
|
|
</td> |
|
|
|
<td><?= $element['time']->format('d/m/Y'); ?></td>
|
|
|
|
</tr> |
|
|
|
<?php |
|
|
|
} |
|
|
|
?>
|
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
<input type="button" value="Wipe" onClick="javascript:wipe('stream', 'finished');"> |
|
|
|
</div> |
|
|
|
<?php |
|
|
|
} |
|
|
|
?>
|
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</body> |
|
|
|
</html> |