<?php $op=TGET('op'); $dataset['ENTERING']=array(0); if ($op=='revise' && $_SESSION['inputcache.domain']=='collectinfo') { $dataset+=$_SESSION['inputcache.data']; $dataset+=$_SESSION['inputcache.errorareas']; } else { class TmpClass {}; $TmpConfig=new TmpClass(); include('../base/config.common.inc.php'); include('../base/config.locals.inc.php'); initialize_config($TmpConfig); set_local_configurations($TmpConfig); $dataset['siteurl']=$_SERVER['SERVER_NAME'] .(is_https() && $_SERVER['SERVER_PORT']!=443?':'.$_SERVER['SERVER_PORT']:'') .(!is_https() && $_SERVER['SERVER_PORT']!=80?':'.$_SERVER['SERVER_PORT']:'') .dirname(dirname($_SERVER['REQUEST_URI'])); $dataset['cookieprefix']=or_default($TmpConfig->CookiePrefix,'uniwits_'); $dataset['cookiepath']=or_default($TmpConfig->COOKIE_PATH,'/'); $dataset['sessionname']=or_default($TmpConfig->SESSION_NAME,'sessid'.base_convert(mt_rand(10000,100000000),10,36)); $dataset['datapath']=or_default($TmpConfig->Paths['data'],dirname(dirname(getcwd())).'/data'); $dataset['dbserver']=or_default($TmpConfig->DBConfWritable[0]['DBHost'],''); $dataset['dbserverport']=or_default($TmpConfig->DBConfWritable[0]['DBPort'],'3306'); $dataset['dbname']=or_default($TmpConfig->DBConfWritable[0]['DBName'],''); $dataset['dbuser']=or_default($TmpConfig->DBConfWritable[0]['DBUser'],''); $dataset['dbpassword']=or_default($TmpConfig->DBConfWritable[0]['DBPass'],''); $dataset['dbtblpfx']=or_default($TmpConfig->TablePrefix['uniwits'],'uniwits_'); $dataset['dbreconstruct']=1; $dataset['contactmail']=or_default($TmpConfig->MailerAddress,''); $dataset['mailmethod']=or_default($TmpConfig->MailingMethod,'smtp'); $dataset['smtpserver']=or_default($TmpConfig->SmtpServer,''); $dataset['smtpport']=or_default($TmpConfig->SmtpPort,25); $dataset['popserver']=or_default($TmpConfig->PopServer,''); $dataset['popport']=or_default($TmpConfig->PopPort,110); $dataset['popuser']=or_default($TmpConfig->PopUser,''); $dataset['poppass']=or_default($TmpConfig->PopPass,''); $dataset['distributionid']=or_default($TmpConfig->DISTRIBUTION_ID,'1-'.generate_random_id(6,6,'-')); $dataset['DISPLAY-DEFAULTS']=array(0); } $dataset['ADMIN-INFO-SECTION']=array(0); $dataset['LANG']=language_requested(); $dataset['licensetext']=file_get_contents('../LICENSE'); ?>