You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
3.8 KiB
95 lines
3.8 KiB
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>Admin</title>
|
|
<link rel="icon" type="image/png" href="/img/favicon.png">
|
|
<link rel="stylesheet" href="/css/admin.css">
|
|
<link href='//fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
|
|
<script type="text/javascript" src="/js/jquery-2.1.1.min.js"></script>
|
|
<script type="text/javascript" src="/js/my.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="account">
|
|
Expiration : <span class="info"><?= $infos['premium_until']->format('d/m/Y') ?> (<span class="important"><?= $restant ?></span>)</span><br>
|
|
Fair Use Status : <span class="info"><span class="important"><?= intval($infos['limit_used'] * 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 class="multidl" id="urls" name="urls" spellcheck="false"></textarea><br>
|
|
<select name="dtype" id="dtype">
|
|
<option value="premiumizeme" selected="selected">PremiumizeMe</option>
|
|
<option value="dlink">Direct Link</option>
|
|
</select>
|
|
<select name="worker" id="worker">
|
|
<option value="contabo" selected="selected">Contabo</option>
|
|
<option value="home">Home</option>
|
|
</select>
|
|
<div class="mybtn" onclick="subURL();">
|
|
<a class="btn">
|
|
Télécharger
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="list">
|
|
<div class="listdl">
|
|
<table class="listdl">
|
|
<tbody>
|
|
<?php
|
|
foreach([ $listAdded, $listDownloading, $listDownloaded, $listDupp ] as $cat) {
|
|
foreach($cat as $element) {
|
|
if ($element['href']) {
|
|
$nameLink = '<a href="/downloaded/'.$element['filename'].'">'.$element['filename'].'</a>';
|
|
} else {
|
|
if (!empty($element['filename'])) {
|
|
$nameLink = $element['filename'];
|
|
} else {
|
|
$nameLink = $element['url'];
|
|
}
|
|
}
|
|
?>
|
|
<tr class="<?= $element['cstate']; ?>">
|
|
<td><?= $nameLink; ?></td>
|
|
<td>
|
|
<img src="/img/ip.png" height=16 width=16 title="<?= $element['from']; ?>" alt="<?= $element['from']; ?>">
|
|
<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>
|
|
</div>
|
|
<div class="liststream">
|
|
<table class="liststream">
|
|
<tbody>
|
|
<?php
|
|
foreach([ $streamBegin, $streamFinished ] as $cat) {
|
|
foreach($cat as $element) {
|
|
?>
|
|
<tr class="<?= $element['cstate']; ?>">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|