Lines Matching refs:time
48 $time = $this->helper->usertime();
49 if(!$time) return;
51 // check if the time has expired meanwhile
54 $idle_time = time() - $_SESSION[DOKU_COOKIE]['autologoff'];
55 if( $idle_time >= $time * 60) {
66 // update the time
67 $_SESSION[DOKU_COOKIE]['autologoff'] = time();
68 $JSINFO['autologoff'] = $time;
72 * Ajax function returning the remaining time
83 $time = $this->helper->usertime();
84 if(!$time){
92 $_SESSION[DOKU_COOKIE]['autologoff'] = time();
96 echo(($time * 60) - (time() - $_SESSION[DOKU_COOKIE]['autologoff']));