This commit is contained in:
genuineparts 2025-06-22 16:30:17 +02:00
parent 10b21a09d6
commit dbd2d817cd

View file

@ -727,7 +727,7 @@ define(\'DEBUG\', FALSE);
header("Location: install.php?step=user"); header("Location: install.php?step=user");
} }
if(isset($_POST['send'])){ if(isset($_POST['send'])){
if($_POST['accept']!=1){ if(isset($_POST['accept']) && $_POST['accept']==1){
$key=fopen('https://webengine.becast.at/install.php?install='.$sendkey, 'r'); $key=fopen('https://webengine.becast.at/install.php?install='.$sendkey, 'r');
$ikey= fgets($key,1024); $ikey= fgets($key,1024);
fclose($key); fclose($key);
@ -736,7 +736,7 @@ define(\'DEBUG\', FALSE);
include dirname(__FILE__, 2) .'/inc/config.inc.php'; include dirname(__FILE__, 2) .'/inc/config.inc.php';
include dirname(__FILE__, 2) .'/core/database/'.$config['db_class'].'.class.php'; include dirname(__FILE__, 2) .'/core/database/'.$config['db_class'].'.class.php';
$db = new db($config['host'], $config['user'], $config['pass'], $config['db'],'utf8', FALSE,TRUE); $db = new db($config['host'], $config['user'], $config['pass'], $config['db'],'utf8', FALSE,TRUE);
$db->query("INSERT INTO `" . $config['prefix'] . "datacache` (`cache`,`content`,`expire`) VALUES ('installkey','".$ikey."','0')'"); $db->query("INSERT INTO `" . $config['prefix'] . "datacache` (`cache`,`content`,`expire`) VALUES ('installkey','".$ikey."','0')");
} }
header("Location: ../index.php"); header("Location: ../index.php");
} }