<?php if ($_SESSION['inputcache.okas']!='collectinfo') redirect('./'); $errorareas=array(); $data=$_SESSION['inputcache.data']; $loginpath=dirname(dirname(getcwd())).'/'.$data['loginpath']; require_once($loginpath.'/base/config.common.inc.php'); require_once($loginpath.'/base/config.locals.inc.php'); require_once('configcontent.inc.php'); class TmpClass {}; $LoginConfig=new TmpClass(); initialize_config($LoginConfig); set_local_configurations($LoginConfig); $dataset['file.config.common']='config.common.inc.php'; if (!is_writable('../config.common.inc.php')) $errorareas['ERROR-CREATE-CONFIG-COMMON']=array(0); else { $config_common=reserv_config_common_text( $LoginConfig, array( 'loginpath'=>$loginpath, 'dbtblpfx'=>$data['dbtblpfx'], 'distributionid'=>$data['distributionid'], 'VERSION'=>trim(file_get_contents('VERSION')) ) ); if (!file_put_contents('../config.common.inc.php',$config_common)) $errorareas['ERROR-CREATE-CONFIG-COMMON']=array(0); else $dataset['OK-CREATE-CONFIG-COMMON']=array(0); } $dataset['file.config.locals']='config.locals.inc.php'; if (!is_writable('../config.locals.inc.php')) $errorareas['ERROR-CREATE-CONFIG-LOCAL']=array(0); else { $config_locals=reserv_config_locals_text($LoginConfig,array('loginpath'=>$data['loginpath'])); if (!file_put_contents('../config.locals.inc.php',$config_locals)) $errorareas['ERROR-CREATE-CONFIG-LOCAL']=array(0); else $dataset['OK-CREATE-CONFIG-LOCAL']=array(0); } $dataset+=$data; $dataset+=$errorareas; $dataset['LANG']=language_requested(); if (count_true_entries($errorareas)==0) $dataset['INSTALL-GO-STEP2']=array(0); else $dataset['INSTALL-INCOMPLETE']=array(0); ?>