- added bin/killcache.php script (#1485434)

- added copyrights disclaimers
release-0.6
alecpl 16 years ago
parent a22cb65adb
commit 155bbb8df6

@ -6,6 +6,7 @@ CHANGELOG RoundCube Webmail
- Write username instead of id in sendmail log (#1485477)
- Fix htmlspecialchars() use for PHP version < 5.2.3 (#1485475)
- Fix js keywords escaping in json_serialize() for IE/Opera (#1485472)
- Added bin/killcache.php script (#1485434)
2008/10/03 (alec)
----------

@ -1,4 +1,23 @@
<?php
/*
+-----------------------------------------------------------------------+
| bin/dumpschema.php |
| |
| This file is part of the RoundCube Webmail client |
| Copyright (C) 2005-2008, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
| |
| PURPOSE: |
| Dumps database schema in XML format using MDB2_Schema |
| |
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
$Id$
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
require INSTALL_PATH.'program/include/iniset.php';

@ -1,4 +1,23 @@
<?php
/*
+-----------------------------------------------------------------------+
| bin/html2text.php |
| |
| This file is part of the RoundCube Webmail client |
| Copyright (C) 2005-2008, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
| |
| PURPOSE: |
| Convert HTML message to plain text |
| |
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
$Id$
*/
define('INSTALL_PATH', realpath('./../') . '/');
require INSTALL_PATH.'program/include/iniset.php';

@ -0,0 +1,56 @@
<?php
/*
+-----------------------------------------------------------------------+
| bin/killcache.php |
| |
| This file is part of the RoundCube Webmail client |
| Copyright (C) 2005-2008, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
| |
| PURPOSE: |
| Delete rows from cache and messages tables |
| |
+-----------------------------------------------------------------------+
| Author: Dennis P. Nikolaenko <dennis@nikolaenko.ru> |
+-----------------------------------------------------------------------+
$Id$
*/
define('INSTALL_PATH', realpath(dirname(__FILE__).'/..') . '/');
require INSTALL_PATH.'program/include/iniset.php';
$config = new rcube_config();
// don't allow public access if not in devel_mode
if (!$config->get('devel_mode') && $_SERVER['REMOTE_ADDR']) {
header("HTTP/1.0 401 Access denied");
die("Access denied!");
}
$dbh =& MDB2::factory($config->get('db_dsnw'), $options);
if (PEAR::isError($dbh)) {
exit($mdb2->getMessage());
}
//TODO: transaction here (if supported by DB) would be a good thing
$res =& $dbh->exec("DELETE FROM cache");
if (PEAR::isError($res)) {
$dbh->disconnect();
exit($res->getMessage());
};
$res =& $dbh->exec("DELETE FROM messages");
if (PEAR::isError($res)) {
$dbh->disconnect();
exit($res->getMessage());
};
echo "Cache cleared\n";
$dbh->disconnect();
?>

@ -2,10 +2,10 @@
/*
+-----------------------------------------------------------------------+
| program/bin/modcss.php |
| bin/modcss.php |
| |
| This file is part of the RoundCube Webmail client |
| Copyright (C) 2007, RoundCube Dev. - Switzerland |
| Copyright (C) 2007-2008, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
| |
| PURPOSE: |
@ -15,7 +15,7 @@
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
$Id: $
$Id$
*/

@ -1,10 +1,10 @@
<?php
/*
+-----------------------------------------------------------------------+
| program/bin/quotaimg.php |
| bin/quotaimg.php |
| |
| This file is part of the RoundCube Webmail client |
| Copyright (C) 2005-2007, RoundCube Dev. - Switzerland |
| Copyright (C) 2005-2008, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
| |
| PURPOSE: |
@ -14,7 +14,7 @@
| Author: Brett Patterson <brett2@umbc.edu> |
+-----------------------------------------------------------------------+
$Id: $
$Id$
*/

Loading…
Cancel
Save