1
0
mirror of https://github.com/gamaio/lobli.git synced 2025-08-13 10:18:45 +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:
alopexc0de
2014-08-09 20:30:10 -04:00
parent da266cce1a
commit 7c71c5744e
3 changed files with 30 additions and 97 deletions

View File

@@ -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'])){