* auto generate myaac cache & session prefix on install to be unique accross installations

* prevent adding duplicated newses with installation
* players.is_sample to prevent displaying on highscores
This commit is contained in:
slawkens1
2017-12-18 09:54:42 +01:00
parent d650035980
commit 19dbbdcf4f
5 changed files with 20 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ session_start();
define('MYAAC', true);
define('MYAAC_VERSION', '0.7.3-dev');
define('DATABASE_VERSION', 18);
define('DATABASE_VERSION', 19);
define('TABLE_PREFIX', 'myaac_');
define('START_TIME', microtime(true));
define('MYAAC_OS', (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? 'WINDOWS' : (strtoupper(PHP_OS) == 'DARWIN' ? 'MAC' : 'LINUX'));