Commit | Line | Data |
---|---|---|
1 | #!/usr/bin/php | |
2 | <?php | |
3 | ||
4 | //XXX fix full path | |
5 | require('/storage/system/www-docroot/kyberia/config/config.inc'); | |
6 | ||
7 | //require(SYSTEM_ROOT.'/inc/log.inc'); | |
8 | require(SYSTEM_ROOT.'/inc/database.inc'); | |
9 | //require(SYSTEM_ROOT.'/inc/nodes.inc'); | |
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 | ?> |