-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprune.php
37 lines (35 loc) · 802 Bytes
/
prune.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
include 'neutralfunctions.php';
include 'delete.php';
db();
$title = "Deleted!";
title($title); // Common Heading
$time = strftime('%Y-%m-%d %H:%M:%S');
$size = size();
$list = torrentlist();
$output = array();
while ($names = mysql_fetch_array($list, MYSQL_ASSOC)) {
foreach ($names as $l) {
$out = performance($l);
array_push($output,$out);
}
}
sort($output);
print "<table>";
for ($i = 0; $size > 200.00; $i++) {
$a = $output[$i];
if ($a[5] == 1 || $a[6] <= 1 || $a[1] < 27) { continue; }
else {
$hash = $a[4];
removeAndDelete($hash);
print "<tr><td>removed $a[3]</td>";
$table = "torrents";
$column = "dateofdeletion";
$setColumnTo = $time;
checkboxUpdate($table,$column,$setColumnTo,$hash);
$size = size();
print "<td>$size</td></tr>";
}
}
print "</table>";
?>