diff --git a/orcinus/admin.php b/orcinus/admin.php index 9041952..4e70d29 100644 --- a/orcinus/admin.php +++ b/orcinus/admin.php @@ -12,7 +12,7 @@ require __DIR__.'/config.php'; * Display a 'time since' HTML/Javascript counter * */ -function OS_countUp($time, $id = '') { +function OS_countUp($time, $active, $id = '') { $since = time() - $time; $periods = array( array('d', 'day', 'days'), @@ -24,7 +24,8 @@ function OS_countUp($time, $id = '') { $hours = floor($since / 3600); $since %= 3600; $minutes = floor($since / 60); $seconds = $since % 60; ?> - > > @@ -43,7 +44,7 @@ function OS_countUp($time, $id = '') { - ago + query( 'SELECT `url` FROM `'.$_DDATA['tbprefix'].'crawldata`;' ); @@ -624,12 +625,12 @@ if (!$_SESSION['admin_username']) { $url = parse_url($url['url']); if (is_array($url)) { $domain = $url['scheme'].'://'.$url['host']; - if (!isset($_RDATA['sp_domains'][$domain])) { - $_RDATA['sp_domains'][$domain] = 1; - } else $_RDATA['sp_domains'][$domain]++; + if (!isset($domainList[$domain])) { + $domainList[$domain] = 1; + } else $domainList[$domain]++; } } - OS_setValue('sp_domains', json_encode($_RDATA['sp_domains'])); + OS_setValue('sp_domains', $domainList); } else $_SESSION['error'][] = 'Could not read domain count data from search database: '.$err[2]; break; @@ -1903,9 +1904,14 @@ document.write(mustache.render(
ago + Currently crawling...
+ if (!$_ODATA['sp_crawling'] && $_ODATA['sp_time_end'] != $_ODATA['sp_time_end_success']) { ?>

Warning: The previous crawl did not complete successfully. Please check the crawl log for more details. @@ -1916,8 +1922,12 @@ document.write(mustache.render(

  • @@ -1932,12 +1942,14 @@ document.write(mustache.render(
  • @@ -1945,7 +1957,9 @@ document.write(mustache.render( @@ -1953,12 +1967,14 @@ document.write(mustache.render( $row) { ?> @@ -2485,7 +2501,7 @@ document.write(mustache.render(