2014-02-09 18:21:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2014-02-17 16:01:46 +00:00
|
|
|
* @name Installation Access
|
|
|
|
* @author Tobias Reich
|
|
|
|
* @copyright 2014 by Tobias Reich
|
2014-02-09 18:21:55 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
|
|
|
if (!defined('LYCHEE_ACCESS_INSTALLATION')) exit('Error: You are not allowed to access this area!');
|
|
|
|
|
|
|
|
switch ($_POST['function']) {
|
|
|
|
|
2014-04-26 15:00:31 +00:00
|
|
|
case 'dbCreateConfig': Module::dependencies(isset($_POST['dbHost'], $_POST['dbUser'], $_POST['dbPassword'], $_POST['dbName']));
|
2014-04-13 12:03:33 +00:00
|
|
|
echo Database::createConfig($_POST['dbHost'], $_POST['dbUser'], $_POST['dbPassword'], $_POST['dbName']);
|
2014-02-09 18:21:55 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default: echo 'Warning: No configuration!';
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|