mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 16:47:01 +02:00
Added read-only connection support for manticore
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@ -49,8 +49,8 @@ class ControllerMessageBulkremove extends Controller {
|
||||
AUDIT(ACTION_REMOVE_MESSAGE, '', '', $id, '');
|
||||
$db->query("UPDATE " . TABLE_META . " SET retained=? WHERE id=?", [NOW, $id]);
|
||||
if(RT) {
|
||||
$sphx = Registry::get('sphx');
|
||||
$sphx->query("DELETE FROM " . SPHINX_MAIN_INDEX . " WHERE id=" . (int)$this->data['id']);
|
||||
$sphxrw = Registry::get('sphxrw');
|
||||
$sphxrw->query("DELETE FROM " . SPHINX_MAIN_INDEX . " WHERE id=" . (int)$this->data['id']);
|
||||
}
|
||||
|
||||
syslog(LOG_INFO, $this->data['username'] . " removed message: $id");
|
||||
|
@ -41,8 +41,8 @@ class ControllerMessageRemove extends Controller {
|
||||
$db->query("UPDATE " . TABLE_META . " SET retained=? WHERE id=?", [NOW, $id]);
|
||||
$db->query("UPDATE " . TABLE_DELETED . " SET deleted=1 WHERE id=?", [$id]);
|
||||
if(RT) {
|
||||
$sphx = Registry::get('sphx');
|
||||
$sphx->query("DELETE FROM " . SPHINX_MAIN_INDEX . " WHERE id=", (int)$this->data['id']);
|
||||
$sphxrw = Registry::get('sphxrw');
|
||||
$sphxrw->query("DELETE FROM " . SPHINX_MAIN_INDEX . " WHERE id=", (int)$this->data['id']);
|
||||
}
|
||||
|
||||
syslog(LOG_INFO, $this->data['username'] . " removed message: $id");
|
||||
|
Reference in New Issue
Block a user