⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
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 :
~
/
proc
/
self
/
root
/
usr
/
share
/
psa-pear
/
pear
/
View File Name :
horde-pref-remove
#!/usr/bin/env php get('horde_dir', null, 'pear.horde.org') . '/lib/Application.php'; } Horde_Registry::appInit('horde', array( 'authentication' => 'none', 'cli' => true )); $scope = $cli->prompt('Enter preference scope:'); $name = $cli->prompt('Enter preference name:'); $user = $cli->prompt('Enter preference user:'); $prefs_ob = $injector->getInstance('Horde_Core_Factory_Prefs')->create($scope, array( 'user' => $user )); $value = $prefs_ob->getValue($name); if (is_null($value)) { $cli->message(sprintf('No preference "%s" found in scope "%s".', $name, $scope), 'cli.error'); } else { $cli->writeln(); $cli->writeln(sprintf('Name: %s', $name)); $cli->writeln(sprintf('Value: %s', $value)); $cli->writeln(); if ($cli->prompt($cli->red('Do you want to delete this preference?'), array('y' => 'Yes', 'n' => 'No'), 'n') == 'y') { $prefs_ob->remove($name); $cli->message($cli->green('Preference deleted.'), 'cli.success'); } }