*/
private function readdb()
{
+
+ // Public links are hidden and user not logged in => nothing to show
+ if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) {
+ $this->links = array();
+ return;
+ }
+
// Read data
// Note that gzinflate is faster than gzuncompress.
// See: http://www.php.net/manual/en/function.gzdeflate.php#96439
foreach ($this->links as $link) {
$this->urls[$link['url']] = $link['linkdate'];
}
+
+ // Escape links data
+ foreach($this->links as &$link) {
+ sanitizeLink($link);
+ }
}
/**