summaryrefslogtreecommitdiff
path: root/models/config.php
diff options
context:
space:
mode:
authorFrédéric Guillot <contact@fredericguillot.com>2014-02-22 16:30:03 -0500
committerFrédéric Guillot <contact@fredericguillot.com>2014-02-22 16:30:03 -0500
commit2f4651411b1827e1e5859ba6053052b508f455e0 (patch)
treeea07631e7a5e5850367f873c7a9c1a0e07e10638 /models/config.php
parenta1923d3d7f9276e859d6fd6bee339f0ea00f6544 (diff)
Add kiosk mode, public board access with read-only and auto-refresh
Diffstat (limited to 'models/config.php')
-rw-r--r--models/config.php10
1 files changed, 0 insertions, 10 deletions
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");