Files
oc-server3/htdocs/util2/license/process-old-disabled-users.php
T
following 37b5268a7e completed data license functions, picture fixes, public profile link
+ menu option "my profile/public profile"
- enlargit log pics
- short date format for some locales
- data license constants
* dont display license-disabled log pics
* delete log pics on declined license instead replacing
+ delete waypoint descriptions on declined license
* no cache desc replacement message if it was empty
+ license-content-disable-function for old-disabled users
+ script to process all old-deleted users due to incompatible license
+ settings for license admin functions and for license disclaimer
- fixed CC license link on english tos page
* update caches.last_modified with changes of additional waypoints
+ XML interface license disclaimer
2013-03-18 22:04:07 +01:00

39 lines
1.1 KiB
PHP

<?php
/***************************************************************************
* For license information see doc/license.txt
*
* Unicode Reminder メモ
*
* Does license-passive-diclined processing on disabled user accounts.
* Caution: This will delete cache description and log contents and pictures!
* Deleted texts are saved in table saved_texts.
*
* It is strongly recommended to do intensive test before using this script
***************************************************************************/
$opt['rootpath'] = '../../';
require_once($opt['rootpath'] . 'lib2/web.inc.php');
require_once($opt['rootpath'] . 'lib2/logic/user.class.php');
$login->admin = ADMIN_USER;
$rs = sql("SELECT `user_id`,`username` FROM `user`
WHERE `is_active_flag`=0 AND `data_license`=0");
$n = 0;
while ($r = sql_fetch_assoc($rs))
{
echo "purging content of user '". $r['username'] . "'\n";
$user = new user($r['user_id']);
$result = $user->disduelicense(true);
if ($result !== true)
die($result);
++$n;
}
sql_free_result($rs);
echo "purged data of $n users\n";
?>