Example #1
0
    }
}
printHead();
if (isset($error)) {
    errorMessage($error);
}
?>
<h1>Database connection</h1>
<p>
Create a database now and fill in the values to connect to your database.<br />
The database user should have permission to perform select-, insert-, update- and delete queries. It must also be able to lock tables.<br /><br />

If you are upgrading then now is the last time to back up your database! Fill in the fields and click at 'Continue' to upgrade your database structure.
</p>

<div class="cmd">
$ mysql -u root -p<br />
mysql&#62; CREATE DATABASE groupoffice;<br />
mysql&#62; GRANT ALL PRIVILEGES ON groupoffice.* TO 'groupoffice'@'localhost'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&#62; IDENTIFIED BY 'some_pass' WITH GRANT OPTION;<br />
mysql&#62; quit;<br />
</div>

<?php 
\GO\Base\Html\Input::render(array("label" => "Host", "name" => "db_host", "value" => \GO::config()->db_host));
\GO\Base\Html\Input::render(array("label" => "Port", "name" => "db_port", "value" => \GO::config()->db_port));
\GO\Base\Html\Input::render(array("label" => "Name", "name" => "db_name", "value" => \GO::config()->db_name));
\GO\Base\Html\Input::render(array("label" => "Username", "name" => "db_user", "value" => \GO::config()->db_user));
\GO\Base\Html\Password::render(array("label" => "Password", "name" => "db_pass", "value" => ""));
continueButton();
printFoot();
Example #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();
Example #3
0
        ?>
		<p><?php 
        echo \GO::config()->product_name;
        ?>
 successfully connected to your database!<br />
		A previous version has been detected. Press continue to perform an upgrade. <b>Warning:</b> This can take a long time! Make sure you press continue only once and check the browser loading status.</p>
		<input type="hidden" name="upgrade" value="1" />
		<?php 
        continueButton();
    }
} else {
    ?>
	<p>
	<?php 
    echo \GO::config()->product_name;
    ?>
 successfully connected to your database!<br />
	Enter the administrator account details and click on 'Continue' to create the database for <?php 
    echo \GO::config()->product_name;
    ?>
. This can take some time. Don't interrupt this process.
	</p>
	<h2>Administrator</h2>
	<?php 
    \GO\Base\Html\Input::render(array("label" => "Username", "name" => "username", "required" => true));
    \GO\Base\Html\Input::render(array("label" => "Password", "name" => "password1", "required" => true, "type" => "password"));
    \GO\Base\Html\Input::render(array("label" => "Confirm password", "name" => "password2", "required" => true, "type" => "password"));
    \GO\Base\Html\Input::render(array("label" => "Email", "name" => "email", "required" => true));
    continueButton();
}
printFoot();
Example #4
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();
Example #5
0
		<input type="hidden" name="submitted" value="1" />
		<p>
			<?php 
        echo \GO::config()->product_name;
        ?>
 needs a place to store protected data. This folder should not be accessible through the webserver. Create a writable path for this purpose now and enter it in the box below.<br />
			The path should be have 0777 permissions or should be owned by the webserver user. You probably need to be root to do the last.
			<br /><br />
		<div class="cmd">
			$ su<br />
			$ mkdir /home/groupoffice<br />
			$ chown www-data:www-data /home/groupoffice<br />
		</div>
		</p>

		<?php 
        \GO\Base\Html\Input::render(array("required" => true, "label" => "Protected files path", "name" => "file_storage_path", "value" => \GO::config()->file_storage_path));
        ?>
		<p>
			<?php 
        echo \GO::config()->product_name;
        ?>
 needs a place to store temporary data such as session data or file uploads. Create a writable path for this purpose now and enter it in the box below.<br />
			The /tmp directory is a good option.
		</p>
		<?php 
        \GO\Base\Html\Input::render(array("required" => true, "label" => "Temporary files path", "name" => "tmpdir", "value" => \GO::config()->tmpdir));
    }
}
continueButton();
printFoot();