bugfix
This commit is contained in:
parent
10b21a09d6
commit
dbd2d817cd
1 changed files with 2 additions and 2 deletions
|
@ -727,7 +727,7 @@ define(\'DEBUG\', FALSE);
|
|||
header("Location: install.php?step=user");
|
||||
}
|
||||
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');
|
||||
$ikey= fgets($key,1024);
|
||||
fclose($key);
|
||||
|
@ -736,7 +736,7 @@ define(\'DEBUG\', FALSE);
|
|||
include dirname(__FILE__, 2) .'/inc/config.inc.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->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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue