[horde] PHP ERRORs when using removeUserData()

Rick Romero rick at havokmon.com
Fri Oct 18 18:34:21 UTC 2013


  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.

Rick


More information about the horde mailing list