3 require_once("boot.php");
5 function expire_run($argv, $argc){
13 @include(".htconfig.php");
14 require_once("dba.php");
15 $db = new dba($db_host, $db_user, $db_pass, $db_data);
16 unset($db_host, $db_user, $db_pass, $db_data);
19 require_once('session.php');
20 require_once('datetime.php');
21 require_once('simplepie/simplepie.inc');
22 require_once('include/items.php');
23 require_once('include/Contact.php');
25 $a->set_baseurl(get_config('system','url'));
28 logger('expire: start');
30 $r = q("SELECT `uid`,`username`,`expire` FROM `user` WHERE `expire` != 0");
33 logger('Expire: ' . $rr['username'] . ' interval: ' . $rr['expire'], LOGGER_DEBUG);
34 item_expire($rr['uid'],$rr['expire']);
41 if (array_search(__file__,get_included_files())===0){
42 expire_run($argv,$argc);