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