<?php require_once('../includes/requirepost.inc.php'); $data['siteurl']=TPOST('siteurl'); $data['cookieprefix']=TPOST('cookieprefix'); $data['cookiepath']=TPOST('cookiepath'); $data['sessionname']=TPOST('sessionname'); $data['datapath']=TPOST('datapath'); $data['timezone']=TPOST('timezone'); $data['adminlogin']=TPOST('adminlogin'); $data['adminnickname']=TPOST('adminnickname'); $data['adminpassword']=TPOST('adminpassword'); $data['dbserver']=TPOST('dbserver'); $data['dbserverport']=0+TPOST('dbserverport'); $data['dbname']=TPOST('dbname'); $data['dbuser']=TPOST('dbuser'); $data['dbpassword']=TPOST('dbpassword'); $data['dbtblpfx']=TPOST('dbtblpfx'); $data['dbreconstruct']=TPOST('dbreconstruct'); $data['contactmail']=TPOST('contactmail'); $data['mailmethod']=TPOST('mailmethod'); $data['smtpserver']=TPOST('smtpserver'); $data['smtpport']=TPOST('smtpport'); $data['popserver']=TPOST('popserver'); $data['popport']=TPOST('popport'); $data['popuser']=TPOST('popuser'); $data['poppass']=TPOST('poppass'); $data['distributionid']=TPOST('distributionid'); $_SESSION['inputcache.data']=$data; $errorareas=iif_array4(array( array(!$data['siteurl'],'ERROR-SITEURL',array(0)), array(!$data['cookieprefix'],'ERROR-COOKIEPREFIX',array(0)), array(!$data['cookiepath'],'ERROR-COOKIEPATH',array(0)), array(!$data['sessionname'],'ERROR-SESSIONNAME',array(0)), array(!$data['datapath'],'ERROR-DATAPATH',array(0)), array(!$data['timezone'],'ERROR-TIMEZONE',array(0)), array($data['dbreconstruct'] && !$data['adminlogin'],'ERROR-ADMINLOGIN',array(0)), array($data['dbreconstruct'] && !$data['adminnickname'],'ERROR-ADMINNICKNAME',array(0)), array($data['dbreconstruct'] && !$data['adminpassword'],'ERROR-ADMINPASSWORD',array(0)), array(!$data['dbserver'],'ERROR-DBSERVER',array(0)), array(!$data['dbserverport'],'ERROR-DBSERVERPORT',array(0)), array(!$data['dbname'],'ERROR-DBNAME',array(0)), array(!$data['dbuser'],'ERROR-DBUSER',array(0)), array(!$data['dbpassword'],'ERROR-DBPASSWORD',array(0)), array(!$data['dbtblpfx'],'ERROR-DBTBLPFX',array(0)), array(!$data['contactmail'],'ERROR-CONTACTMAIL',array(0)), array(in_array($data['mailmethod'],array('smtp','popsmtp')) && !$data['smtpserver'],'ERROR-SMTPSERVER',array(0)), array(in_array($data['mailmethod'],array('smtp','popsmtp')) && !$data['smtpport'],'ERROR-SMTPPORT',array(0)), array($data['mailmethod']=='popsmtp' && !$data['popserver'],'ERROR-POPSERVER',array(0)), array($data['mailmethod']=='popsmtp' && !$data['popport'],'ERROR-POPPORT',array(0)), array($data['mailmethod']=='popsmtp' && !$data['popuser'],'ERROR-POPUSER',array(0)), array($data['mailmethod']=='popsmtp' && !$data['poppass'],'ERROR-POPPASS',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(); if ($data['dbreconstruct']) { $dataset['DB-RECONSTRUCT-YES']=array(0); $dataset['ADMIN-INFO-SECTION']=array(0); } else $dataset['DB-RECONSTRUCT-NO']=array(0); $dataset['licensetext']=file_get_contents('../LICENSE'); ?>