2015-05-22 09:13:52 +00:00
< ? php
/**
* Settings form .
*/
2016-08-31 05:25:11 +00:00
$base_url_parts = parse_url ( $_SERVER [ 'HTTP_HOST' ]);
$base_url_default = $base_url_parts [ 'host' ];
2015-05-22 09:13:52 +00:00
return array (
/**
* Form Configuration
*/
'form' => array (
'method' => 'post' ,
'groups' => array (
2016-05-10 10:34:10 +00:00
'system' => array (
'legend' => 'System Settings' ,
2015-05-22 09:13:52 +00:00
'elements' => array (
2016-05-10 10:34:10 +00:00
'base_url' => array ( 'text' , array (
'label' => 'Site Base URL' ,
'description' => 'The base URL where this service is located. For local testing, use "localhost". Otherwise, use either the external IP address or fully-qualified domain name pointing to the server.' ,
2016-08-31 05:25:11 +00:00
'default' => $base_url_default ,
)),
'timezone' => array ( 'select' , array (
'label' => 'Server Timezone' ,
'description' => 'All times displayed on the site will be based on this time zone.<br><b>Current server time is ' . date ( 'F j, Y g:ia' ) . '.</b>' ,
'options' => \App\Timezone :: fetchSelect (),
'default' => date_default_timezone_get (),
2015-05-22 09:13:52 +00:00
)),
),
),
'submit' => array (
'legend' => '' ,
'elements' => array (
'submit' => array ( 'submit' , array (
'type' => 'submit' ,
'label' => 'Save Changes' ,
'helper' => 'formButton' ,
2016-05-12 05:13:21 +00:00
'class' => 'btn btn-lg btn-primary' ,
2015-05-22 09:13:52 +00:00
)),
),
),
),
),
2014-02-21 09:25:10 +00:00
);