mirror of
https://github.com/gamaio/lobli.git
synced 2025-08-13 18:28:47 +00:00
Move stat table generation to stats.php.
This page is mostly static and it shouldn't require a call to process just to make a table.
This commit is contained in:
@@ -54,13 +54,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
function stats($redis, $seperator){
|
||||
$tracking = $redis->keys("tracking:clicks:*");
|
||||
$tracking = rsort($tracking);
|
||||
$tracking = array_slice($tracking, 0, 5, true);
|
||||
return "8$seperator".json_encode($tracking);
|
||||
}
|
||||
|
||||
function getRemoteTitle($url){
|
||||
$url = parse_url($url);
|
||||
if($tags = get_meta_tags($url['scheme'].'://'.$url['host'])){
|
||||
|
Reference in New Issue
Block a user