⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
imp
/
migration
/
View File Name :
3_imp_maillog_update.php
* @category Horde * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class ImpMaillogUpdate extends Horde_Db_Migration_Base { /** * Upgrade. */ public function up() { $tableList = $this->tables(); if (in_array('horde_histories', $tableList)) { $sql = sprintf('SELECT history_id, object_uid FROM horde_histories WHERE object_uid LIKE %s', $this->quote('imp.%')); $this->announce('Loading existing history from the maillog.'); $rows = $this->_connection->select($sql); $sql = 'UPDATE horde_histories SET object_uid = ? WHERE history_id = ?'; $this->announce('Updating entries. This may take some time.'); foreach ($rows as $row) { $row['object_uid'] = implode(':', explode('.', $row['object_uid'], 3)); $this->_connection->update($sql, array($row['object_uid'], $row['history_id'])); } } } /** * Downgrade. */ public function down() { $tableList = $this->tables(); if (in_array('horde_histories', $tableList)) { $sql = sprintf('SELECT history_id, object_uid FROM horde_histories WHERE object_uid LIKE %s', $this->quote('imp:%')); $this->announce('Loading existing history from the maillog.'); $rows = $this->_connection->select($sql); $sql = 'UPDATE horde_histories SET object_uid = ? WHERE history_id = ?'; $this->announce('Updating entries. This may take some time.'); foreach ($rows as $row) { $row['object_uid'] = implode('.', explode(':', $row['object_uid'], 3)); $this->_connection->update($sql, array($row['object_uid'], $row['history_id'])); } } } }