$v) $RecentChangesFmt[$k] = str_replace('$CurrentTime', '[[{$Group}.{$Name}?action=diff#diff$Now|$TimeCurrent]] %item prev$PrevModifiedTime%', $v); if(@$_GET['nolt']=='' && ($action=="diff" || strpos($pagename, 'RecentChanges')!==false)) { SDVA($HTMLFooterFmt, array('LocalTimes' => '')); } SDVA($HTMLStylesFmt, array('localtimes'=>'.ltplus{cursor:pointer; opacity:.3; font-weight:bold; padding: 0 .3em;} .ltplus:hover{color: white; background: blue; opacity: 1;} .ltreload {filter:alpha(opacity=20); opacity:0.2; cursor: pointer;} .ltnew{background-color: #ffa;}')); SDVA($HandleActions, array('lasttimes'=> 'HandleLastTimes')); SDVA($HandleAuth, array('lasttimes'=> 'read')); function HandleLastTimes($pagename, $auth='read') { global $LastTimesHours, $Now, $TimeFmt, $Charset; $since = $Now - $LastTimesHours*60*60; $page = RetrieveAuthPage($pagename, $auth, false, $since); $list = preg_grep('/^(csum|author):(\\d+)$/', array_keys($page)); $changes = array(); foreach($list as $v) { list($key, $stamp) = explode(':', $v); if($stamp == $page['time']) continue; $changes[$stamp][$key] = $page[$v]; } $html = ''; foreach($changes as $k=>$a) { $stamp = intval($k); $time = strftime($TimeFmt, $stamp); $author = $a['author'] ? $a['author'] : '?'; $csum = str_replace(array('$'), array('$'), PHSC(@$a['csum'])); $html .= "
  • $time $[by] $author: $csum
  • "; } $html = FmtPageName($html, $pagename); header("Content-Type: text/html; charset=$Charset"); die($html); } function PrevModifiedTime($pagename, $page, $new) { global $PrevModifiedTime; $PrevModifiedTime = $page['time']; } array_unshift($EditFunctions, "PrevModifiedTime");