Advertisement
Guest User

Untitled

a guest
Jun 10th, 2017
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. <?php
  2. @session_start();
  3. error_reporting(E_ALL);
  4. /**
  5. * @author ProFusion Group
  6. * @copyright pro-fusion.ch
  7. */
  8.  
  9. if (file_exists('Install/install.pbb')) {
  10. require_once('Install/config.inc.php');
  11. $File = @fopen('PBF/config.inc.php', 'a+');
  12. @fwrite($File, '<?php
  13. @session_start();
  14. /**
  15. * @author ProFusion Group
  16. * @copyright pro-fusion.ch
  17. */
  18.  
  19. $DBUser = \''.$DBUser.'\';
  20. $DBPass = \''.$DBPass.'\';
  21. $DBBase = \''.$DBBase.'\';
  22. $DBHost = \''.$DBHost.'\';
  23. $DBPrefix = \''.$prefix.'\';
  24. $UsePConnect = false;
  25. ?>');
  26. @fclose($File);
  27.  
  28. @unlink('index.php');
  29. unset($File);
  30. $File = @fopen('index.php', 'a+');
  31. @fwrite('<?php
  32. @session_start();
  33. /**
  34. * @author ProFusion Group
  35. * @copyright pro-fusion.ch
  36. */
  37.  
  38. require_once(\'./global.php\');
  39. RequestHandler::HandleRequest();
  40. ?>', $File);
  41. @fclose($File);
  42. header('Location: index.php');
  43. }
  44. require_once('./global.php');
  45. //if you have some to fixx ->
  46. /*
  47. if (isset($_GET['Admin'])) $_SESSION['Admin'] = true;
  48. if (!isset($_SESSION['Admin']) && empty($_SESSION['Admin'])) {
  49. throw new SystemException('Wegen Sicherheitsumbauten ist das Forum für kurze Zeit nicht verfügbar.');
  50. }
  51. */
  52. //if you have some to fixx <-
  53. RequestHandler::HandleRequest();
  54. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement