commit | author | age
|
a35062
|
1 |
#!/usr/bin/env php |
T |
2 |
<?php |
|
3 |
/* |
|
4 |
+-----------------------------------------------------------------------+ |
30aa4c
|
5 |
| bin/cleandb.sh | |
a35062
|
6 |
| | |
e019f2
|
7 |
| This file is part of the Roundcube Webmail client | |
e76208
|
8 |
| Copyright (C) 2010-2015, The Roundcube Dev Team | |
7fe381
|
9 |
| | |
T |
10 |
| Licensed under the GNU General Public License version 3 or | |
|
11 |
| any later version with exceptions for skins & plugins. | |
|
12 |
| See the README file for a full license statement. | |
a35062
|
13 |
| | |
T |
14 |
| PURPOSE: | |
|
15 |
| Finally remove all db records marked as deleted some time ago | |
|
16 |
| | |
|
17 |
+-----------------------------------------------------------------------+ |
|
18 |
| Author: Thomas Bruederli <roundcube@gmail.com> | |
|
19 |
+-----------------------------------------------------------------------+ |
|
20 |
*/ |
|
21 |
|
0ea079
|
22 |
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
6cc3f5
|
23 |
|
A |
24 |
require INSTALL_PATH.'program/include/clisetup.php'; |
a35062
|
25 |
|
5ba5fd
|
26 |
if (!empty($_SERVER['argv'][1])) |
60ff01
|
27 |
$days = intval($_SERVER['argv'][1]); |
5ba5fd
|
28 |
else |
60ff01
|
29 |
$days = 7; |
5ba5fd
|
30 |
|
e76208
|
31 |
rcmail_utils::db_clean($days); |
a35062
|
32 |
|
T |
33 |
?> |