Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | daniel-mar | 1 | <?php |
2 | |||
3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
||
4 | |||
5 | wb_add_config('enable_gast', '0', $m2); |
||
6 | wb_add_config('gast_username', 'test', $m2); |
||
7 | wb_add_config('gast_password', 'iridium', $m2); |
||
8 | wb_add_config('wipe_gastkonto', '0', $m2); |
||
9 | wb_add_config('last_wipe', '0000-00-00', $m2); |
||
10 | wb_add_config('wipe_uhrzeit', '03:00:00', $m2); |
||
11 | |||
12 | $res = db_query("SELECT * FROM `".$WBConfig->getMySQLPrefix()."users` WHERE `username` = 'test'"); |
||
13 | if (db_num($res) == 0) |
||
14 | db_query("INSERT INTO `".$WBConfig->getMySQLPrefix()."users` (`username`, `email`, `banned`, `personal_name`, `password`, `created_database`, `last_login`) VALUES ('test', '', '0', 'Personal WebBase Testbenutzer', '".md5('iridium')."', NOW(), '0000-00-00 00:00:00')"); |
||
15 | |||
16 | ?> |