test
[mirrors/Kyberia-bloodline.git] / cron / logoutidle.php
CommitLineData
b42b2bf9
H
1#!/usr/bin/php
2<?php
a3be90c6 3/*
4 * Script that logouts iddle users.
5 * Called twice a hour.
6 */
d4e006f9 7
d4e006f9 8
a3be90c6 9// Use relative address of config file
10// Change this, if you move you cron directory.
11$dir=substr(__FILE__, 0, strrpos(__FILE__, '/'));
12require($dir.'/../wwwroot/config/config.inc');
13
14//require(INCLUDE_DIR.'/log.inc');
eafc7a11 15require(INCLUDE_DIR.'/database.inc');
a3be90c6 16//require(INCLUDE_DIR.'/nodes.inc');
17
b42b2bf9
H
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)");
20?>
This page took 0.252402 seconds and 4 git commands to generate.