Subversion Repositories personal-webbase

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;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. ?>