install.php 695 B

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