- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmr-clean.php
More file actions
Latest commit
35 lines (29 loc) · 704 Bytes
/
Copy pathmr-clean.php
File metadata and controls
35 lines (29 loc) · 704 Bytes
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
require_once'mr-common.php';
require_once'mr-oauth.php';
$stmt = $db->query('select id from item order by time');
if ($stmt === false)
dieOnDb();
else
{
$results = $stmt->fetchAll(PDO::FETCH_COLUMN);
$stmt->closeCursor();
$count = 0;
foreach ($resultsas$id)
{
echo"$count";
$count++;
$items = getItem($id, true);
$item = $items['items'][0];
$src = $items['title'];
if (ignoreItem($item))
{
echo"$src\n";
$id = $db->quote($id);
$db->exec("delete from item where id=$id");
}
echo"\r";
}
}
?>
<meta http-equiv="Refresh" content="0; url=mr-item.php" />