<?php
		require_once(dirname(__FILE__) . '/lib/FOP/Configuration.php');require_once(dirname(__FILE__) . '/lib/FOP/I18n.php');require_once(dirname(__FILE__) . '/lib/FOP/Util.php');
		if(!function_exists("qi")) {function qi($s){return \FOP\Database::quoteIdent($s);}}
		$confvalues = array();
		$errormessage = null;
		set_time_limit(15*60);

		if (isset($_POST['data'])) {
			  $json = array();
			  
					$json["FOP"]["User"]["superUserName"] = $_POST["FOPUsersuperUserName"];
					$confvalues["FOPUsersuperUserName"] = $_POST["FOPUsersuperUserName"];
				
					$json["FOP"]["User"]["superUserPass"] = $_POST["FOPUsersuperUserPass"];
					$confvalues["FOPUsersuperUserPass"] = $_POST["FOPUsersuperUserPass"];
				
					$json["FOP"]["Util"]["enableRewrite"] = $_POST["FOPUtilenableRewrite"];
					$confvalues["FOPUtilenableRewrite"] = $_POST["FOPUtilenableRewrite"];
				
					$json["FOP"]["Cron"]["cronmode"] = $_POST["FOPCroncronmode"];
					$confvalues["FOPCroncronmode"] = $_POST["FOPCroncronmode"];
				
					$json["FOP"]["Database"]["Driver"] = $_POST["FOPDatabaseDriver"];
					$confvalues["FOPDatabaseDriver"] = $_POST["FOPDatabaseDriver"];
				
					$json["FOP"]["Database"]["Host"] = $_POST["FOPDatabaseHost"];
					$confvalues["FOPDatabaseHost"] = $_POST["FOPDatabaseHost"];
				
					$json["FOP"]["Database"]["Database"] = $_POST["FOPDatabaseDatabase"];
					$confvalues["FOPDatabaseDatabase"] = $_POST["FOPDatabaseDatabase"];
				
					$json["FOP"]["Database"]["Username"] = $_POST["FOPDatabaseUsername"];
					$confvalues["FOPDatabaseUsername"] = $_POST["FOPDatabaseUsername"];
				
					$json["FOP"]["Database"]["Password"] = $_POST["FOPDatabasePassword"];
					$confvalues["FOPDatabasePassword"] = $_POST["FOPDatabasePassword"];
				
					$json["Mailer"]["Mails"]["host"] = $_POST["MailerMailshost"];
					$confvalues["MailerMailshost"] = $_POST["MailerMailshost"];
				
					$json["Mailer"]["Mails"]["port"] = $_POST["MailerMailsport"];
					$confvalues["MailerMailsport"] = $_POST["MailerMailsport"];
				
					$json["Mailer"]["Mails"]["user"] = $_POST["MailerMailsuser"];
					$confvalues["MailerMailsuser"] = $_POST["MailerMailsuser"];
				
					$json["Mailer"]["Mails"]["password"] = $_POST["MailerMailspassword"];
					$confvalues["MailerMailspassword"] = $_POST["MailerMailspassword"];
				
					$json["Mailer"]["Mails"]["from"] = $_POST["MailerMailsfrom"];
					$confvalues["MailerMailsfrom"] = $_POST["MailerMailsfrom"];
				
					$json["Mailer"]["Mails"]["from_name"] = $_POST["MailerMailsfrom_name"];
					$confvalues["MailerMailsfrom_name"] = $_POST["MailerMailsfrom_name"];
				
					$json["Mailer"]["Mails"]["replyTo"] = $_POST["MailerMailsreplyTo"];
					$confvalues["MailerMailsreplyTo"] = $_POST["MailerMailsreplyTo"];
				
					$json["Mailer"]["Mails"]["bcc"] = $_POST["MailerMailsbcc"];
					$confvalues["MailerMailsbcc"] = $_POST["MailerMailsbcc"];
				
					$json["FOP"]["Util"]["printUserErrors"] = $_POST["FOPUtilprintUserErrors"];
					$confvalues["FOPUtilprintUserErrors"] = $_POST["FOPUtilprintUserErrors"];
				
					$json["FOP"]["Files"]["defaultStorage"] = $_POST["FOPFilesdefaultStorage"];
					$confvalues["FOPFilesdefaultStorage"] = $_POST["FOPFilesdefaultStorage"];
				
					$json["Types"]["Password"]["encryptKey"] = $_POST["TypesPasswordencryptKey"];
					$confvalues["TypesPasswordencryptKey"] = $_POST["TypesPasswordencryptKey"];
				
					$json["FOP"]["Configuration"]["Baseurl"] = $_POST["FOPConfigurationBaseurl"];
					$confvalues["FOPConfigurationBaseurl"] = $_POST["FOPConfigurationBaseurl"];
				
			\FOP\Configuration::initializeFromJSON($json);

			
			if(!extension_loaded("gettext")){
				$errormessage = "PHP-Erweiterung gettext fehlt.";
			}
			
			if(!extension_loaded("PDO")){
				$errormessage = "PHP-Erweiterung PDO fehlt.";
			}
			
			if(!extension_loaded("pdo_mysql")){
				$errormessage = "PHP-Erweiterung pdo_mysql fehlt.";
			}
			
			if(!extension_loaded("imap")){
				$errormessage = "PHP-Erweiterung imap fehlt.";
			}
			
			if(!extension_loaded("xml")){
				$errormessage = "PHP-Erweiterung xml fehlt.";
			}
			
			if(!extension_loaded("dom")){
				$errormessage = "PHP-Erweiterung dom fehlt.";
			}
			
			if(!extension_loaded("zip")){
				$errormessage = "PHP-Erweiterung zip fehlt.";
			}
			
			if(!extension_loaded("json")){
				$errormessage = "PHP-Erweiterung json fehlt.";
			}
			
			if(!extension_loaded("session")){
				$errormessage = "PHP-Erweiterung session fehlt.";
			}
			
			if(!extension_loaded("gmp")){
				$errormessage = "PHP-Erweiterung gmp fehlt.";
			}
			
			if(!extension_loaded("mbstring")){
				$errormessage = "PHP-Erweiterung mbstring fehlt.";
			}
			
			if(!extension_loaded("curl")){
				$errormessage = "PHP-Erweiterung curl fehlt.";
			}
			
			if(!extension_loaded("openssl")){
				$errormessage = "PHP-Erweiterung openssl fehlt.";
			}
			

			?><?php
    spl_autoload_register(function($class){
        // \ mit / ersetzen
        $slashes = str_replace("\\", "/", $class);

        // Klasse in lib/namespace/klassenname.php suchen und ggf. reinladen
        $dir = dirname(__FILE__);
        $filename = $dir . '/lib/' . $slashes . '.php';

        if(file_exists($filename)){
            require_once($filename);
        }
    });

    
    if(basename($_SERVER['SCRIPT_NAME']) != "dbcheck.php" && basename($_SERVER['SCRIPT_NAME']) != "setup.php") \FOP\I18n::initialize();
    
    if(basename($_SERVER['SCRIPT_NAME']) != "dbcheck.php" && basename($_SERVER['SCRIPT_NAME']) != "setup.php") \FOP\Cron::initialize();
    
    if(basename($_SERVER['SCRIPT_NAME']) != "dbcheck.php" && basename($_SERVER['SCRIPT_NAME']) != "setup.php") \FOP\User::initialize();
    
?><?php

			function setupclasses(&$json){
				
				try {
					require_once(dirname(__FILE__) . '/lib/FOP/Database.php');
					\FOP\Database::setup($json);
				} catch(\Exception $e){
					// Initialisierung eines Moduls fehlgeschlagen, wohl falsche Konfiguration -> Neu machen

					return $e->getMessage();
				}
				
				try {
					require_once(dirname(__FILE__) . '/lib/FOP/InitialData.php');
					\FOP\InitialData::setup($json);
				} catch(\Exception $e){
					// Initialisierung eines Moduls fehlgeschlagen, wohl falsche Konfiguration -> Neu machen

					return $e->getMessage();
				}
				

				return null;
			}

			$errormessage = setupclasses($json);

			if(is_null($errormessage)){
				if(is_writable(".")){
					file_put_contents("conf.json", json_encode($json, JSON_PRETTY_PRINT));
				} else {
					$meldung = _('configdone');
					$meldung = $meldung . "\r\n" . json_encode($json, JSON_PRETTY_PRINT);

					die($meldung);
				}

				header("Location: FOP/Index/index");
				die();
			}
		}
	?><?php
			header('Content-Type: text/html; charset=UTF-8');
			header('X-XSS-Protection: 1; mode=block');
			header('Strict-Transport-Security: max-age=63072000');
			header('X-Content-Type-Options: nosniff');
			header("Content-Security-Policy: default-src *  data: blob: 'unsafe-inline' 'unsafe-eval'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src *; style-src * data: blob: 'unsafe-inline'; font-src * data: blob: 'unsafe-inline';");


		?><!DOCTYPE html><html><head><title><?php echo(_('Setup')); ?></title><base href='<?php echo \FOP\Util::getCurrentBaseurl(); ?>'><meta charset="utf-8"><link rel="stylesheet" type="text/css" href="style.css"><link rel="stylesheet" type="text/css" href="style_dependencies.css"><script type="text/javascript" src="js/script_dependencies.js"></script><meta name="viewport" content="width=device-width, initial-scale=1.0"><style>
/**
 * Copyright 2015 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

html, body {
  font-family: 'Roboto', 'Helvetica', sans-serif;
  margin: 0;
  padding: 0;
}
.mdl-demo .mdl-layout__header-row {
  padding-left: 40px;
}
.mdl-demo .mdl-layout.is-small-screen .mdl-layout__header-row h3 {
  font-size: inherit;
}
.mdl-demo .mdl-layout__tab-bar-button {
  display: none;
}
.mdl-demo .mdl-layout.is-small-screen .mdl-layout__tab-bar .mdl-button {
  display: none;
}
.mdl-demo .mdl-layout:not(.is-small-screen) .mdl-layout__tab-bar,
.mdl-demo .mdl-layout:not(.is-small-screen) .mdl-layout__tab-bar-container {
  overflow: visible;
}
.mdl-demo .mdl-layout__tab-bar-container {
  height: 64px;
}
.mdl-demo .mdl-layout__tab-bar {
  padding: 0;
  padding-left: 16px;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
}
.mdl-demo .mdl-layout__tab-bar .mdl-layout__tab {
  height: 64px;
  line-height: 64px;
}
.mdl-demo .mdl-layout__tab-bar .mdl-layout__tab.is-active::after {
  background-color: white;
  height: 4px;
}
.mdl-demo main > .mdl-layout__tab-panel {
  padding: 8px;
  padding-top: 48px;
}
.mdl-demo .mdl-card {
  height: auto;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
}
.mdl-demo .mdl-card > * {
  height: auto;
}
.mdl-demo .mdl-card .mdl-card__supporting-text {
  margin: 40px;
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding: 0;
  color: inherit;
  width: calc(100% - 80px);
}
.mdl-demo.mdl-demo .mdl-card__supporting-text h4 {
  margin-top: 0;
  margin-bottom: 20px;
}
.mdl-demo .mdl-card__actions {
  margin-top: 20px;
  color: inherit;
}
.mdl-demo .mdl-card__actions a {
  color: #00BCD4;
  margin: 0;
}
.mdl-demo .mdl-card__actions a:hover,
.mdl-demo .mdl-card__actions a:active {
  color: inherit;
  background-color: transparent;
}
.mdl-demo .mdl-card__supporting-text + .mdl-card__actions {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.mdl-demo #add {
  position: absolute;
  right: 40px;
  top: 36px;
  z-index: 999;
}

.mdl-demo .mdl-layout__content section:not(:last-of-type) {
  position: relative;
  margin-bottom: 48px;
}
.mdl-demo section.section--center {
  max-width: 860px;
}
.mdl-demo #features section.section--center {
  max-width: 620px;
}
.mdl-demo section > header{
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.mdl-demo section > .section__play-btn {
  min-height: 200px;
}
.mdl-demo section > header > .material-icons {
  font-size: 3rem;
}
.mdl-demo section > button {
  position: absolute;
  z-index: 99;
  top: 8px;
  right: 8px;
}

.mdl-demo section .section__text {
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -webkit-flex-shrink: 0;
      -ms-flex-negative: 0;
          flex-shrink: 0;
  padding-top: 8px;
}
.mdl-demo section .section__text h5 {
  font-size: inherit;
  margin: 0;
  margin-bottom: 0.5em;
}
.mdl-demo section .section__text a {
  text-decoration: none;
}
.mdl-demo section.section--footer {
  padding: 64px 0;
  margin: 0 -8px -8px -8px;
}
.mdl-demo section.section--center .section__text:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,.13);
}
.mdl-demo .mdl-card .mdl-card__supporting-text > h3:first-child {
  margin-bottom: 24px;
}
.mdl-demo .mdl-layout__tab-panel:not(#overview) {
  background-color: white;
}
.mdl-demo #features section {
  margin-bottom: 72px;
}
.mdl-demo #features h4, #features h5 {
  margin-bottom: 16px;
}
.mdl-demo .toc {
  border-left: 4px solid #C1EEF4;
  margin: 24px;
  padding: 0;
  padding-left: 8px;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
}
.mdl-demo .toc h4 {
  font-size: 0.9rem;
  margin-top: 0;
}
.mdl-demo .toc a {
  color: #4DD0E1;
  text-decoration: none;
  font-size: 16px;
  line-height: 28px;
  display: block;
}
section {
	margin-top: 10px;
}

.error-text {
	font-family: 'Roboto', 'Regular', sans-serif;
	color: #F44336;
}
</style><meta name="google" content="notranslate"><meta http-equiv="Content-Language" content="<?php echo htmlentities(\FOP\I18n::getLocale()); ?>"></head><body ng-app='app'>
    <div class="mdl-demo mdl-color--grey-100 mdl-color-text--grey-700 mdl-base">
		 <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
			<header class="mdl-layout__header mdl-layout__header--scroll mdl-color--primary">
			  <div class="mdl-layout--large-screen-only mdl-layout__header-row">
			  </div>
			  <div class="mdl-layout--large-screen-only mdl-layout__header-row">
				 <h3><?php echo(_('config')); ?></h3>
			  </div>
			  <div class="mdl-layout--large-screen-only mdl-layout__header-row">
			  </div>
			  <div class="mdl-layout__tab-bar mdl-color--primary-dark">
				 <a href="#setup" class="mdl-layout__tab is-active">Setup</a>
			  </div>
			</header>
			<main class="mdl-layout__content">
			  <div class="mdl-layout__tab-panel is-active" id="setup">
					
						<section class="section--center mdl-grid mdl-grid--no-spacing">
							<div class="mdl-card mdl-cell mdl-cell--12-col">
								<div class="mdl-card__supporting-text">
									<h4><?php echo(_('phpmodules')); ?></h4>
									<p><?php echo(_('requiredmodules')); ?></p>
										<ul style="list-style-type: none;">
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("gettext") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> gettext </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("PDO") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> PDO </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("pdo_mysql") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> pdo_mysql </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("imap") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> imap </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("xml") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> xml </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("dom") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> dom </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("zip") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> zip </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("json") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> json </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("session") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> session </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("gmp") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> gmp </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("mbstring") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> mbstring </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("curl") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> curl </span>
											</span>
											</li>
											
											<li>
											<span class"mdl-chip mdl-chip--contact">
												<span class="mdl-chip__text"> <?php echo(extension_loaded("openssl") ? "<i class=\"material-icons\">check</i>" : "<i class=\"material-icons\">cancel</i>"); ?> </span>
												<span class"mdl-chip__text"> openssl </span>
											</span>
											</li>
											
										</ul>
								</div>
							</div>
						</section>
					

					<?php if(!is_null($errormessage)){ ?>
						<section class="section--center mdl-grid mdl-grid--no-spacing">
							<div class="mdl-card mdl-cell mdl-cell--12-col">
								<div class="mdl-card__supporting-text">
									<h4><?php echo(_('error')); ?></h4>
									<p class="error-text"><?php echo($errormessage); ?></p>
									<p class="error-text"><?php echo(_('changeconfig')); ?></p>
								</div>
							</div>
						</section>
					<?php }

			if (!\FOP\Configuration::exists()) { ?>
					<section class="section--center mdl-grid mdl-grid--no-spacing">
						<div class="mdl-card mdl-cell mdl-cell--12-col">
							<div class="mdl-card__supporting-text">
								<form action = "setup.php" method = "post">
									<br>
									
										<section>
										<h3>FOP</h3>
										
											

											
										
											

											
										
											

											
										
											<section><h4>Cron</h4>
												<legend><?php echo(_('inputconfig')); ?></legend>
												</section>
											

											
											<div class="mdl-grid grid-card" id="column_FOPCroncronmode">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPCroncronmode">cronmode</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdlext-selectfield mdlext-js-selectfield"><select onkeydown='if (event.keyCode == 13) { event.preventDefault(); event.stopPropagation(); tabNext(this); return false; }' class="selectdropdown mdlext-selectfield__select" name='FOPCroncronmode' id='FOPCroncronmode'><option value='crond'<?php if (isset($confvalues["FOPCroncronmode"]) ? $confvalues["FOPCroncronmode"] : "crond" == 'crond') {echo " selected";}?>><?php echo(_('Betriebssystem-Funktion benutzen')); ?></option><option value='http'<?php if (isset($confvalues["FOPCroncronmode"]) ? $confvalues["FOPCroncronmode"] : "crond" == 'http') {echo " selected";}?>><?php echo(_('Auf HTTP-Requests hooken (langsamer)')); ?></option><option value='none'<?php if (isset($confvalues["FOPCroncronmode"]) ? $confvalues["FOPCroncronmode"] : "crond" == 'none') {echo " selected";}?>><?php echo(_('manuell / keine Crons')); ?></option></select></div>
												</div>
											</div>
											
										
											

											
										
											<section><h4>Configuration</h4>
												<legend><?php echo(_('inputconfig')); ?></legend>
												</section>
											

											
											<div class="mdl-grid grid-card" id="column_FOPConfigurationBaseurl">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPConfigurationBaseurl">Baseurl</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input onkeydown="
		if (event.keyCode == 13) {
			event.preventDefault();
			event.stopPropagation();
			tabNext(this);
			return false;
		}
	"  class="mdl-textfield__input"  type="text" name="FOPConfigurationBaseurl"  value="<?php echo htmlentities(isset($confvalues["FOPConfigurationBaseurl"]) ? $confvalues["FOPConfigurationBaseurl"] : \FOP\Util::getCurrentBaseurl()); ?>"/><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
										
											

											
										
											<section><h4>User</h4>
												<legend><?php echo(_('inputconfig')); ?></legend>
												</section>
											

											
											<div class="mdl-grid grid-card" id="column_FOPUsersuperUserName">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPUsersuperUserName">superUserName</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input onkeydown="
		if (event.keyCode == 13) {
			event.preventDefault();
			event.stopPropagation();
			tabNext(this);
			return false;
		}
	"  class="mdl-textfield__input"  type="text" name="FOPUsersuperUserName"  value="<?php echo htmlentities(isset($confvalues["FOPUsersuperUserName"]) ? $confvalues["FOPUsersuperUserName"] : ""); ?>"/><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_FOPUsersuperUserPass">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPUsersuperUserPass">superUserPass</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input class="mdl-textfield__input" type="password" name="FOPUsersuperUserPass"  id="FOPUsersuperUserPass" value="<?php echo htmlentities(isset($confvalues["FOPUsersuperUserPass"]) ? $confvalues["FOPUsersuperUserPass"] : ""); ?>"/><label class="mdl-textfield__label" for="FOPUsersuperUserPass"><?php echo(_('password')); ?></label><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
										
											

											
										
											<section><h4>Database</h4>
												<legend><?php echo(_('inputconfig')); ?></legend>
												</section>
											

											
											<div class="mdl-grid grid-card" id="column_FOPDatabaseDriver">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPDatabaseDriver">Driver</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdlext-selectfield mdlext-js-selectfield"><select onkeydown='if (event.keyCode == 13) { event.preventDefault(); event.stopPropagation(); tabNext(this); return false; }' class="selectdropdown mdlext-selectfield__select" name='FOPDatabaseDriver' id='FOPDatabaseDriver'><option value='mysql'<?php if (isset($confvalues["FOPDatabaseDriver"]) ? $confvalues["FOPDatabaseDriver"] : "mysql" == 'mysql') {echo " selected";}?>><?php echo(_('MySQL/MariaDB')); ?></option><option value='pgsql'<?php if (isset($confvalues["FOPDatabaseDriver"]) ? $confvalues["FOPDatabaseDriver"] : "mysql" == 'pgsql') {echo " selected";}?>><?php echo(_('PostgreSQL')); ?></option></select></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_FOPDatabaseHost">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPDatabaseHost">Host</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input onkeydown="
		if (event.keyCode == 13) {
			event.preventDefault();
			event.stopPropagation();
			tabNext(this);
			return false;
		}
	"  class="mdl-textfield__input"  type="text" name="FOPDatabaseHost"  value="<?php echo htmlentities(isset($confvalues["FOPDatabaseHost"]) ? $confvalues["FOPDatabaseHost"] : "localhost"); ?>"/><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_FOPDatabaseDatabase">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPDatabaseDatabase">Database</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input onkeydown="
		if (event.keyCode == 13) {
			event.preventDefault();
			event.stopPropagation();
			tabNext(this);
			return false;
		}
	"  class="mdl-textfield__input"  type="text" name="FOPDatabaseDatabase"  value="<?php echo htmlentities(isset($confvalues["FOPDatabaseDatabase"]) ? $confvalues["FOPDatabaseDatabase"] : "fop"); ?>"/><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_FOPDatabaseUsername">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPDatabaseUsername">Username</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input onkeydown="
		if (event.keyCode == 13) {
			event.preventDefault();
			event.stopPropagation();
			tabNext(this);
			return false;
		}
	"  class="mdl-textfield__input"  type="text" name="FOPDatabaseUsername"  value="<?php echo htmlentities(isset($confvalues["FOPDatabaseUsername"]) ? $confvalues["FOPDatabaseUsername"] : "fop"); ?>"/><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_FOPDatabasePassword">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPDatabasePassword">Password</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input class="mdl-textfield__input" type="password" name="FOPDatabasePassword"  id="FOPDatabasePassword" value="<?php echo htmlentities(isset($confvalues["FOPDatabasePassword"]) ? $confvalues["FOPDatabasePassword"] : "fop"); ?>"/><label class="mdl-textfield__label" for="FOPDatabasePassword"><?php echo(_('password')); ?></label><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											<section><h4>Util</h4>
												<legend><?php echo(_('inputconfig')); ?></legend>
												</section>
											

											
											<div class="mdl-grid grid-card" id="column_FOPUtilenableRewrite">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPUtilenableRewrite">enableRewrite</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<input type="hidden" name="FOPUtilenableRewrite" id="FOPUtilenableRewrite" value="<?php echo (isset($confvalues["FOPUtilenableRewrite"]) ? $confvalues["FOPUtilenableRewrite"] : "1") ? '1' : '0'; ?>"/><label class="mdl-checkbox mdl-js-checkbox" style="width: unset;"><input onkeydown="
      if (event.keyCode == 13) {
         event.preventDefault();
         event.stopPropagation();
         tabNext(this);
         return false;
      }
   "  class="mdl-checkbox__input" id="FOPUtilenableRewrite__checkbox" type="checkbox" onchange="this.parentElement.previousElementSibling.value = this.checked ? 1 : 0;"<?php if (isset($confvalues["FOPUtilenableRewrite"]) ? $confvalues["FOPUtilenableRewrite"] : "1") echo ' checked'; ?>><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></label>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_FOPUtilprintUserErrors">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPUtilprintUserErrors">printUserErrors</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<input type="hidden" name="FOPUtilprintUserErrors" id="FOPUtilprintUserErrors" value="<?php echo (isset($confvalues["FOPUtilprintUserErrors"]) ? $confvalues["FOPUtilprintUserErrors"] : "0") ? '1' : '0'; ?>"/><label class="mdl-checkbox mdl-js-checkbox" style="width: unset;"><input onkeydown="
      if (event.keyCode == 13) {
         event.preventDefault();
         event.stopPropagation();
         tabNext(this);
         return false;
      }
   "  class="mdl-checkbox__input" id="FOPUtilprintUserErrors__checkbox" type="checkbox" onchange="this.parentElement.previousElementSibling.value = this.checked ? 1 : 0;"<?php if (isset($confvalues["FOPUtilprintUserErrors"]) ? $confvalues["FOPUtilprintUserErrors"] : "0") echo ' checked'; ?>><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></label>
												</div>
											</div>
											
										
											<section><h4>Files</h4>
												<legend><?php echo(_('inputconfig')); ?></legend>
												</section>
											

											
											<div class="mdl-grid grid-card" id="column_FOPFilesdefaultStorage">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="FOPFilesdefaultStorage">defaultStorage</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdlext-selectfield mdlext-js-selectfield"><select onkeydown='if (event.keyCode == 13) { event.preventDefault(); event.stopPropagation(); tabNext(this); return false; }' class="selectdropdown mdlext-selectfield__select" name='FOPFilesdefaultStorage' id='FOPFilesdefaultStorage'><option value='files'<?php if (isset($confvalues["FOPFilesdefaultStorage"]) ? $confvalues["FOPFilesdefaultStorage"] : "files" == 'files') {echo " selected";}?>><?php echo(_('fop-files/ in file system')); ?></option><option value='database'<?php if (isset($confvalues["FOPFilesdefaultStorage"]) ? $confvalues["FOPFilesdefaultStorage"] : "files" == 'database') {echo " selected";}?>><?php echo(_('Database (file size limited to max_package_size ~2MB)')); ?></option></select></div>
												</div>
											</div>
											
										
											

											
										
										</section>
									
										<section>
										<h3>Mailer</h3>
										
											

											
										
											<section><h4>Mails</h4>
												<legend><?php echo(_('inputconfig')); ?></legend>
												</section>
											

											
											<div class="mdl-grid grid-card" id="column_MailerMailshost">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="MailerMailshost">host</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input onkeydown="
		if (event.keyCode == 13) {
			event.preventDefault();
			event.stopPropagation();
			tabNext(this);
			return false;
		}
	"  class="mdl-textfield__input"  type="text" name="MailerMailshost"  value="<?php echo htmlentities(isset($confvalues["MailerMailshost"]) ? $confvalues["MailerMailshost"] : ""); ?>"/><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_MailerMailsport">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="MailerMailsport">port</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input onkeydown="
		if (event.keyCode == 13) {
			event.preventDefault();
			event.stopPropagation();
			tabNext(this);
			return false;
		}
	"  class="mdl-textfield__input"  type="text" name="MailerMailsport"  value="<?php echo htmlentities(isset($confvalues["MailerMailsport"]) ? $confvalues["MailerMailsport"] : ""); ?>"/><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_MailerMailsuser">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="MailerMailsuser">user</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input onkeydown="
		if (event.keyCode == 13) {
			event.preventDefault();
			event.stopPropagation();
			tabNext(this);
			return false;
		}
	"  class="mdl-textfield__input"  type="text" name="MailerMailsuser"  value="<?php echo htmlentities(isset($confvalues["MailerMailsuser"]) ? $confvalues["MailerMailsuser"] : ""); ?>"/><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_MailerMailspassword">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="MailerMailspassword">password</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input class="mdl-textfield__input" type="password" name="MailerMailspassword"  id="MailerMailspassword" value="<?php echo htmlentities(isset($confvalues["MailerMailspassword"]) ? $confvalues["MailerMailspassword"] : ""); ?>"/><label class="mdl-textfield__label" for="MailerMailspassword"><?php echo(_('password')); ?></label><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_MailerMailsfrom">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="MailerMailsfrom">from</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input onkeydown="
		if (event.keyCode == 13) {
			event.preventDefault();
			event.stopPropagation();
			tabNext(this);
			return false;
		}
	"  class="mdl-textfield__input"  type="text" name="MailerMailsfrom"  value="<?php echo htmlentities(isset($confvalues["MailerMailsfrom"]) ? $confvalues["MailerMailsfrom"] : ""); ?>"/><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_MailerMailsfrom_name">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="MailerMailsfrom_name">from_name</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input onkeydown="
		if (event.keyCode == 13) {
			event.preventDefault();
			event.stopPropagation();
			tabNext(this);
			return false;
		}
	"  class="mdl-textfield__input"  type="text" name="MailerMailsfrom_name"  value="<?php echo htmlentities(isset($confvalues["MailerMailsfrom_name"]) ? $confvalues["MailerMailsfrom_name"] : ""); ?>"/><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_MailerMailsreplyTo">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="MailerMailsreplyTo">replyTo</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input class="mdl-textfield__input" type="email" name="MailerMailsreplyTo"  id="MailerMailsreplyTo" value="<?php echo htmlentities(isset($confvalues["MailerMailsreplyTo"]) ? $confvalues["MailerMailsreplyTo"] : ""); ?>"/><label class="mdl-textfield__label" for="MailerMailsreplyTo"><?php echo(_('email')); ?></label>  <span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
											<div class="mdl-grid grid-card" id="column_MailerMailsbcc">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="MailerMailsbcc">bcc</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input class="mdl-textfield__input" type="email" name="MailerMailsbcc"  id="MailerMailsbcc" value="<?php echo htmlentities(isset($confvalues["MailerMailsbcc"]) ? $confvalues["MailerMailsbcc"] : ""); ?>"/><label class="mdl-textfield__label" for="MailerMailsbcc"><?php echo(_('email')); ?></label>  <span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
										
										</section>
									
										<section>
										<h3>Types</h3>
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											<section><h4>Password</h4>
												<legend><?php echo(_('inputconfig')); ?></legend>
												</section>
											

											
											<div class="mdl-grid grid-card" id="column_TypesPasswordencryptKey">
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat"><label for="TypesPasswordencryptKey">encryptKey</label></div>
												<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-phone fat">
												<div class="mdl-textfield mdl-js-textfield"><input onkeydown="
		if (event.keyCode == 13) {
			event.preventDefault();
			event.stopPropagation();
			tabNext(this);
			return false;
		}
	"  class="mdl-textfield__input"  type="text" name="TypesPasswordencryptKey"  value="<?php echo htmlentities(isset($confvalues["TypesPasswordencryptKey"]) ? $confvalues["TypesPasswordencryptKey"] : ""); ?>"/><span class="mdl-textfield__error"><div><?php echo(_('invalidinput')) ?></div></span></div>
												</div>
											</div>
											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
											

											
										
										</section>
									
									<input type="hidden" name="data" value="true">
									<div class="mdl-card__actions mdl-card--border">
										<button type="submit" class="mdl-button mdl-js-button"><?php echo(_('ok')); ?></button>
										<button type="reset" class="mdl-button mdl-js-button"><?php echo(_('reset')); ?></button>
									</div>
								</form>
							</div>
						</div>
					</section>
			<?php } ?>
			  </div>
			  </br>
			  </br>
			  <footer class="mdl-mega-footer">
					</br>
					</br>
					</br>
			  </footer>
			</main>
		</div>
	</div>



</body></html>