4 * Script that logouts iddle users.
9 // Use relative address of config file
10 // Change this, if you move you cron directory.
11 $dir=substr(__FILE__
, 0, strrpos(__FILE__
, '/'));
12 require($dir.'/../wwwroot/config/config.inc');
14 //require(INCLUDE_DIR.'/log.inc');
15 require(INCLUDE_DIR
.'/database.inc');
16 //require(INCLUDE_DIR.'/nodes.inc');
18 $db=new CLASS_DATABASE();
19 $db->query("update users set user_action=NULL,user_action_id=NULL,user_location_vector=NULL where unix_timestamp()-3600>unix_timestamp(last_action)");
This page took 0.507583 seconds and 4 git commands to generate.