Commit | Line | Data |
---|---|---|
b42b2bf9 H |
1 | #!/usr/bin/php |
2 | <?php | |
d4e006f9 | 3 | |
4 | //XXX fix full path | |
5 | require('/storage/system/www-docroot/kyberia/config/config.inc'); | |
6 | ||
b42b2bf9 | 7 | //require(SYSTEM_ROOT.'/inc/log.inc'); |
d4e006f9 | 8 | require(SYSTEM_ROOT.'/inc/database.inc'); |
b42b2bf9 | 9 | //require(SYSTEM_ROOT.'/inc/nodes.inc'); |
b42b2bf9 H |
10 | $db=new CLASS_DATABASE(); |
11 | $db->query("update users set user_action=NULL,user_action_id=NULL,user_location_vector=NULL where unix_timestamp()-3600>unix_timestamp(last_action)"); | |
12 | ?> |