[horde] PHP ERRORs when using removeUserData()
Michael M Slusarz
slusarz at horde.org
Fri Oct 18 19:26:47 UTC 2013
Quoting Rick Romero <rick at havokmon.com>:
> Quoting Michael M Slusarz <slusarz at horde.org>:
>
>> Quoting Steffen <skhorde at smail.inf.fh-bonn-rhein-sieg.de>:
>>
>>> Hi,
>>>
>>> because I didn't found a ready-to-use script to remove user data for
>>> Horde5, e.g. in /usr/bin, I assembled:
>>>
>>> <?PHPFrom horde/bin, this script would be much better:
>>
>> <?php
>> require_once __DIR__ . '/../lib/Application.php';
>> Horde_Registry::appInit('horde', array('cli' => true, 'user_admin' =>
>> true));
>> $value = '<user>';
>> $cli->writeln('Remove user data of ' . $value);
>> $registry->removeUserData($value);
>>
>
> That's it? That'll remove user data from every application in the
> registry for that particular user?
> Sweet.
This is already available via the admin tools from within Horde
itself. But might be nice to make this a script.
michael
___________________________________
Michael Slusarz [slusarz at horde.org]
More information about the horde
mailing list