From 2f4651411b1827e1e5859ba6053052b508f455e0 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 22 Feb 2014 16:30:03 -0500 Subject: Add kiosk mode, public board access with read-only and auto-refresh --- models/config.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'models/config.php') diff --git a/models/config.php b/models/config.php index fe4f6c99..f4d34986 100644 --- a/models/config.php +++ b/models/config.php @@ -66,16 +66,6 @@ class Config extends Base ); } - public static function generateToken() - { - if (ini_get('open_basedir') === '') { - return substr(base64_encode(file_get_contents('/dev/urandom', false, null, 0, 20)), 0, 15); - } - else { - return substr(base64_encode(uniqid(mt_rand(), true)), 0, 20); - } - } - public function optimizeDatabase() { $this->db->getconnection()->exec("VACUUM"); -- cgit v1.2.3