install.php 844 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. $enablePlugins = array('fr.idleman.hackpoint','fr.idleman.customiser','fr.idleman.part','fr.sys1.document','fr.sys1.notification','fr.sys1.wiki','fr.sys1.navigation');
  3. $conf->put('core_theme','/plugin/customiser/theme/hackpoint/main.css');
  4. $conf->put('wiki_name','Le wiki');
  5. $conf->put('wiki_home','autre/bienvenue');
  6. $user = User::byLogin('admin');
  7. $user->name = 'NORRIS';
  8. $user->firstname = 'Chuck';
  9. $user->save();
  10. $user->preference('wiki_night_mode',true);
  11. $_SESSION['currentUser'] = serialize($user);
  12. $myUser = $user;
  13. $coreDir = File::dir().SLASH.'core';
  14. if(!file_exists($coreDir)) mkdir($coreDir);
  15. copy(__DIR__.SLASH.'img'.SLASH.'logo.png',$coreDir.SLASH.'logo.png');
  16. copy(__DIR__.SLASH.'img'.SLASH.'logo.png',$coreDir.SLASH.'logo.dark.png');
  17. copy(__DIR__.SLASH.'img'.SLASH.'logo.png',$coreDir.SLASH.'favicon.png');
  18. ?>