Esempio n. 1
0
        \GO::config()->{$key} = $value;
    }
    \GO::config()->save();
    header('Location: database.php');
}
printHead();
if (isset($error)) {
    errorMessage($error);
}
?>
<h1>SMTP server</h1>
<p>
	<?php 
echo \GO::config()->product_name;
?>
 needs to connect to an SMTP server to send e-mail. Please fill in the details for your SMTP server.
</p>

<?php 
\GO\Base\Html\Input::render(array("label" => "SMTP server", "name" => "smtp_server", "value" => \GO::config()->smtp_server, "required" => true));
\GO\Base\Html\Input::render(array("label" => "Port", "name" => "smtp_port", "value" => \GO::config()->smtp_port, "required" => true));
?>
<p>
If your SMTP server requires authentication please fill in the username and password.
</p>
<?php 
\GO\Base\Html\Input::render(array("label" => "Username", "name" => "smtp_username", "value" => \GO::config()->smtp_username));
\GO\Base\Html\Input::render(array("label" => "Password", "name" => "smtp_password", "value" => \GO::config()->smtp_password));
\GO\Base\Html\Select::render(array("label" => "Encryption", "name" => "smtp_encryption", "value" => \GO::config()->smtp_encryption, "options" => array('' => 'No encryption', 'ssl' => 'SSL', 'tls' => 'TLS')));
continueButton();
printFoot();
Esempio n. 2
0
        redirect("smtp.php");
    }
}
printHead();
?>
<h1>Regional settings</h1>

<?php 
\GO\Base\Html\Select::render(array("required" => true, 'label' => 'Country', 'value' => \GO::config()->default_country, 'name' => "default_country", 'options' => \GO::language()->getCountries()));
\GO\Base\Html\Select::render(array("required" => true, 'label' => 'Language', 'value' => \GO::config()->language, 'name' => "language", 'options' => \GO::language()->getLanguages()));
$tz = array();
foreach (DateTimeZone::listIdentifiers() as $id) {
    $tz[$id] = $id;
}
\GO\Base\Html\Select::render(array("required" => true, 'label' => 'Timezone', 'value' => \GO::config()->default_timezone, 'name' => "default_timezone", 'options' => $tz));
$dateFormats = array();
foreach (\GO::config()->date_formats as $format) {
    $dateFormats[$format] = str_replace(array('Y', 'm', 'd'), array('Year ', 'Month ', 'Day '), $format);
}
\GO\Base\Html\Select::render(array("required" => true, 'label' => 'Date format', 'value' => \GO::config()->default_date_format, 'name' => "default_date_format", 'options' => $dateFormats));
\GO\Base\Html\Input::render(array("required" => true, "label" => "Date separator", "name" => "default_date_separator", "value" => \GO::config()->default_date_separator));
$timeFormats = array();
foreach (\GO::config()->time_formats as $format) {
    $timeFormats[$format] = trim(str_replace(array('h', 'H', 'a', 'i', ':'), array('12h ', '24h ', '', ''), $format));
}
\GO\Base\Html\Select::render(array("required" => true, 'label' => 'Time format', 'value' => \GO::config()->default_time_format, 'name' => "default_time_format", 'options' => $timeFormats));
\GO\Base\Html\Input::render(array("required" => true, "label" => "Currency", "name" => "default_currency", "value" => \GO::config()->default_currency));
\GO\Base\Html\Input::render(array("required" => true, "label" => "Decimal point", "name" => "default_decimal_separator", "value" => \GO::config()->default_decimal_separator));
\GO\Base\Html\Input::render(array("required" => true, "label" => "Thousands separator", "name" => "default_thousands_separator", "value" => \GO::config()->default_thousands_separator));
continueButton();
printFoot();
Esempio n. 3
0
<p>Enter your regional settings and click on continue to complete the trial:</p>

<?php 
//\GO\Base\Html\Form::renderBegin('servermanager/trial/createtrial', 'createtrial', true);
\GO\Base\Html\Form::renderBegin(false, 'createtrial', true);
\GO\Base\Html\Select::render(array("required" => true, 'label' => 'Country', 'value' => \GO::config()->default_country, 'name' => "default_country", 'options' => \GO::language()->getCountries()));
\GO\Base\Html\Select::render(array("required" => true, 'label' => 'Language', 'value' => \GO::config()->language, 'name' => "language", 'options' => \GO::language()->getLanguages()));
$tz = array();
foreach (DateTimeZone::listIdentifiers() as $id) {
    $tz[$id] = $id;
}
\GO\Base\Html\Select::render(array("required" => true, 'label' => 'Timezone', 'value' => \GO::config()->default_timezone, 'name' => "default_timezone", 'options' => $tz));
$dateFormats = array();
foreach (\GO::config()->date_formats as $format) {
    $dateFormats[$format] = str_replace(array('Y', 'm', 'd'), array('Year ', 'Month ', 'Day '), $format);
}
\GO\Base\Html\Select::render(array("required" => true, 'label' => 'Date format', 'value' => \GO::config()->default_date_format, 'name' => "default_date_format", 'options' => $dateFormats));
\GO\Base\Html\Input::render(array("required" => true, "label" => "Date separator", "name" => "default_date_separator", "value" => \GO::config()->default_date_separator));
$timeFormats = array();
foreach (\GO::config()->time_formats as $format) {
    $timeFormats[$format] = trim(str_replace(array('h', 'H', 'a', 'i', ':'), array('24h ', '12h ', '', '', ''), $format));
}
\GO\Base\Html\Select::render(array("required" => true, 'label' => 'Time format', 'value' => \GO::config()->default_time_format, 'name' => "default_time_format", 'options' => $timeFormats));
\GO\Base\Html\Select::render(array("required" => true, 'label' => 'First weekday', 'value' => \GO::config()->default_first_weekday, 'name' => "first_weekday", 'options' => array('0' => 'Sunday', '1' => 'Monday')));
\GO\Base\Html\Input::render(array("required" => true, "label" => "Currency", "name" => "default_currency", "value" => \GO::config()->default_currency));
\GO\Base\Html\Input::render(array("required" => true, "label" => "Decimal point", "name" => "default_decimal_separator", "value" => \GO::config()->default_decimal_separator));
\GO\Base\Html\Input::render(array("required" => true, "label" => "Thousands separator", "name" => "default_thousands_separator", "value" => \GO::config()->default_thousands_separator));
\GO\Base\Html\Submit::render(array("name" => "submit", "value" => "Continue"));
\GO\Base\Html\Form::renderEnd();
//$this->render('externalFooter');