| 1 | #!/usr/bin/php |
| 2 | <?php |
| 3 | //require('/storage/system/www-docroot/kyberia.sk/config/config.inc'); |
| 4 | require('/home/freezy/kyb/config/config.inc'); |
| 5 | //connecting to database and creating universal $db object |
| 6 | //require(SYSTEM_ROOT.'/inc/log.inc'); |
| 7 | //require(SYSTEM_ROOT.'/inc/database.inc'); |
| 8 | //require(SYSTEM_ROOT.'/inc/nodes.inc'); |
| 9 | //require('/storage/system/www-docroot/kyberia.sk/inc/log.inc'); |
| 10 | //require('/storage/system/www-docroot/kyberia.sk/inc/database.inc'); |
| 11 | require('/home/freezy/kyb/inc/database.inc'); |
| 12 | //require('/storage/system/www-docroot/kyberia.sk/inc/nodes.inc'); |
| 13 | $db=new CLASS_DATABASE(); |
| 14 | $db->query("update users set user_action=NULL,user_action_id=NULL,user_location_vector=NULL where unix_timestamp()-3600>unix_timestamp(last_action)"); |
| 15 | ?> |