This commit is contained in:
genuineparts 2025-06-22 15:20:04 +02:00
parent 01b5e174f1
commit d125f2beea

View file

@ -229,13 +229,13 @@ class install{
function checkphp(){
$status=true;
$version=version_compare(PHP_VERSION, '5.0.5', '>=');
$version=version_compare(PHP_VERSION, '8.1.0', '>=');
$color='green';
if(!$version){
$status=false;
$color='red';
}
$this->checkphp[]=array('name'=>'PHP','success'=>$color,'status'=>PHP_VERSION,'needed'=>'5.0.5');
$this->checkphp[]=array('name'=>'PHP','success'=>$color,'status'=>PHP_VERSION,'needed'=>'8.1.0');
$gd = @gd_info();
$color='green';
if(!$gd){
@ -456,8 +456,9 @@ class install{
$globcheck=false;
$dbs='<div class="comment"><img src="style/images/error.png" alt="" />'.$this->t->_('dbsnichtok');
}
$dbas = "";
foreach($this->dbas as $d){
if(!$dbas)
if(empty($dbas))
$dbas=$d['name'];
else
$dbas.=' ,'.$d['name'];
@ -523,6 +524,7 @@ $config[\'prefix\']=\''.$prefix.'\';
// your Database Sytem
$config[\'db_class\']= \''.$driver.'\';
?>';
define('DEBUG', FALSE);
include dirname(__FILE__, 2) .'/inc/logger.class.php';
include dirname(__FILE__, 2) .'/core/database/'.$driver.'.class.php';
try{
@ -607,7 +609,7 @@ define(\'DEBUG\', FALSE);
header("Location: install.php?step=user");
}
if($pdata['dbprefix']==''){
$pdata['dbprefix']='as_';
$pdata['dbprefix']='bcwe_';
}
if($pdata['dbserv']==''){
$pdata['dbserv']='localhost';