Kyberia v2.3 - 1st revision from SVN (Without patches of kyberia.sk team)
[mirrors/Kyberia-bloodline.git] / cron / logoutidle.php
diff --git a/cron/logoutidle.php b/cron/logoutidle.php
new file mode 100755 (executable)
index 0000000..cd61ef9
--- /dev/null
@@ -0,0 +1,15 @@
+#!/usr/bin/php
+<?php
+//require('/storage/system/www-docroot/kyberia.sk/config/config.inc');
+require('/home/freezy/kyb/config/config.inc');
+//connecting to database and creating universal $db object
+//require(SYSTEM_ROOT.'/inc/log.inc');
+//require(SYSTEM_ROOT.'/inc/database.inc');
+//require(SYSTEM_ROOT.'/inc/nodes.inc');
+//require('/storage/system/www-docroot/kyberia.sk/inc/log.inc');
+//require('/storage/system/www-docroot/kyberia.sk/inc/database.inc');
+require('/home/freezy/kyb/inc/database.inc');
+//require('/storage/system/www-docroot/kyberia.sk/inc/nodes.inc');
+$db=new CLASS_DATABASE();
+$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.091839 seconds and 4 git commands to generate.