installation.php 633 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @name Installation Access
  4. * @author Tobias Reich
  5. * @copyright 2014 by Tobias Reich
  6. */
  7. if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
  8. if (!defined('LYCHEE_ACCESS_INSTALLATION')) exit('Error: You are not allowed to access this area!');
  9. switch ($_POST['function']) {
  10. case 'dbCreateConfig': Module::dependencies(isset($_POST['dbHost'], $_POST['dbUser'], $_POST['dbPassword'], $_POST['dbName']));
  11. echo Database::createConfig($_POST['dbHost'], $_POST['dbUser'], $_POST['dbPassword'], $_POST['dbName']);
  12. break;
  13. default: echo 'Warning: No configuration!';
  14. break;
  15. }
  16. ?>