'.$this->t->_('Wilkommen').'
'.$this->t->_('WilkommenText1').'
'.$this->t->_('Waehledeinesprache').'
'; break; case 'license': if(isset($_POST['back'])){ header("Location: install.php?step=start"); } if(isset($_POST['send'])){ if($_POST['accept']!=1){ $err= '

'.$this->t->_('Lizenz').'
'.$this->t->_('LizenzText').'
'.$err.''; break; case 'check': $globcheck=true; $dircheck=$this->checkchmod(); if($dircheck){ $dirs='


'.$this->t->_('Verzeichnis').' | '.$this->t->_('Ergebnis').' | |
---|---|---|
'.$dir['dir'].' | ................ | '.$dir['status'].' |


'.$this->t->_('Komponente').' | '.$this->t->_('benVersion').' | '.$this->t->_('instVersion').' |
---|---|---|
'.$p['name'].' | '.$p['needed'].' | '.$p['status'].' |


'.$this->t->_('installiertedbs').': '.$dbas.'

'.$this->t->_('Pruefung').'
'.$this->t->_('PruefungText').'
'.$err.'
'; if($globcheck){ $data.=''.$this->t->_('CheckOK').'
'; }else{ $data.=''.$this->t->_('ChecknichtOK').'
'; $locked='disabled="disabled"'; } $data.=''.$dirs.'
'.$php.'
'.$dbs.'
'; break; case 'database': $locked='disabled="disabled"'; if(isset($_POST['back'])){ @unlink(dirname(dirname(__FILE__)).'/config.tmp.php'); header("Location: install.php?step=check"); } if(isset($_POST['test'])){ $error=false; $user=$_POST['dbuser']; $pass=$_POST['dbpass']; $db=$_POST['db']; $server=$_POST['dbserv']; $prefix=$_POST['dbprefix']; $driver=$_POST['dbdriver']; $pdata=$_POST; $configdata=''; include dirname(dirname(__FILE__)).'/inc/logger.class.php'; include dirname(dirname(__FILE__)).'/core/database/'.$driver.'.class.php'; try{ $db = new db($server, $user, $pass, $db,'utf8', FALSE,TRUE); $result=$db->query("SHOW TABLES"); }catch(Exception $e){ $error=true; } if(!$error){ $datei = fopen(dirname(dirname(__FILE__)).'/config.tmp.php','w'); fputs($datei,$configdata); fclose($datei); $locked=''; $err='


'.$this->t->_('Datenbank').'
'.$this->t->_('DatenbankText').'
'.$err.''; break; case 'user': if(isset($_POST['back'])){ header("Location: install.php?step=database"); } if(isset($_POST['send'])){ $err=false; if($_POST['pass']!=$_POST['passrepeat']){ $err.='


'.$this->t->_('Benutzer').'
'.$this->t->_('BenutzerText').'
'.$err.''; break; case 'finish': $fopen=true; $test=fopen('http://astat.org/install.php?test', 'r'); $testecho= fgets($test,1024); fclose($test); if($testecho!="Success"){ $fopen=false; } $server='Server: '.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']; $astat_version='astat version: '.$this->version; $timestamp='Timestamp: '.time(); $sendkey=base64_encode($_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'].'|'.$this->version.'|'.time()); if(isset($_POST['back'])){ header("Location: install.php?step=user"); } if(isset($_POST['send'])){ if($_POST['accept']!=1){ $key=fopen('http://astat.org/install.php?install='.$sendkey, 'r'); $ikey= fgets($key,1024); fclose($key); define('in_astat',TRUE); include dirname(dirname(__FILE__)).'/inc/logger.class.php'; include dirname(dirname(__FILE__)).'/inc/config.inc.php'; include dirname(dirname(__FILE__)).'/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')'"); } header("Location: ../index.php"); } if($fopen){ $fp='

'.$this->t->_('DieseDaten').'
- '.$server.'
- '.$astat_version.'
- '.$timestamp.'
'.$this->t->_('Datensenden').'
'; } $data=''.$this->t->_('Abschluss').'
'.$this->t->_('AbschlussText').'
'.$fp.''; break; } echo $this->header($step); echo $data; } function footer(){ echo '