<?php require_once('../includes/requirepost.inc.php'); $data['loginpath']=TPOST('loginpath'); $data['businessname']=TPOST('businessname'); $data['timezone']=0+TPOST('timezone'); $data['dbtblpfx']=TPOST('dbtblpfx'); $data['dbreconstruct']=TPOST('dbreconstruct'); $data['distributionid']=TPOST('distributionid'); $loginfullpath=dirname(dirname(getcwd())).'/'.$data['loginpath']; $login_config_common=@file_get_contents($loginfullpath.'/base/config.common.inc.php'); $_SESSION['inputcache.data']=$data; $errorareas=iif_array4(array( array(!$data['loginpath'],'ERROR-SITEURL',array(0)), array(!$login_config_common,'ERROR-LOGIN-NOTFOUND',array(0)), array(!strpos($login_config_common,'=>'),'ERROR-LOGIN-NOTINSTALLED',array(0)), array($data['dbreconstruct'] && !$data['businessname'],'ERROR-BUSINESSNAME',array(0)), array($data['dbreconstruct'] && !$data['timezone'],'ERROR-TIMEZONE',array(0)), array(!$data['dbtblpfx'],'ERROR-DBTBLPFX',array(0)) )); if (count_true_entries($errorareas)>0) { $_SESSION['inputcache.domain']='collectinfo'; $_SESSION['inputcache.okas']=''; $_SESSION['inputcache.errorareas']=$errorareas; redirect('./?cmd=collectinfo&LANG='.language_requested().'&op=revise'); } else { $_SESSION['inputcache.okas']='collectinfo'; $_SESSION['inputcache.errorareas']=array(); } $CMD_TMPL_NAME='collectinfo'; $dataset['CONFIRMING']=array(0); $dataset+=$data; $dataset['LANG']=language_requested(); $dataset['DB-RECONSTRUCT-YES']=$data['dbreconstruct']=='1'?array(0):array(); $dataset['DB-RECONSTRUCT-NO']=$data['dbreconstruct']!='1'?array(0):array(); $dataset['DB-RECONSTRUCT-ONLY']=$data['dbreconstruct']=='1'?array(0):array(); $dataset['licensetext']=file_get_contents('../LICENSE'); ?>