Commit 4dd2c08e authored by latham's avatar latham
Browse files

Allow config settings for country on client, reseller pages from the $conf

parent 0888d7df
...@@ -133,6 +133,9 @@ $conf['logo'] = 'themes/default/images/ispc_logo.png'; ...@@ -133,6 +133,9 @@ $conf['logo'] = 'themes/default/images/ispc_logo.png';
$conf['language'] = 'en'; $conf['language'] = 'en';
$conf['debug_language'] = false; $conf['debug_language'] = false;
//** Default Country
$conf['country'] = 'DE';
//** Misc. //** Misc.
$conf['interface_logout_url'] = ''; // example: http://www.domain.tld/ $conf['interface_logout_url'] = ''; // example: http://www.domain.tld/
......
...@@ -220,7 +220,7 @@ $form["tabs"]['address'] = array ( ...@@ -220,7 +220,7 @@ $form["tabs"]['address'] = array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'SELECT', 'formtype' => 'SELECT',
'default' => '$conf["country"]', 'default' => $conf["country"],
'datasource' => array ( 'type' => 'SQL', 'datasource' => array ( 'type' => 'SQL',
'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name', 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name',
'keyfield'=> 'iso', 'keyfield'=> 'iso',
......
...@@ -209,7 +209,7 @@ $form["tabs"]['address'] = array ( ...@@ -209,7 +209,7 @@ $form["tabs"]['address'] = array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'SELECT', 'formtype' => 'SELECT',
'default' => 'DE', 'default' => $conf["country"],
'datasource' => array ( 'type' => 'SQL', 'datasource' => array ( 'type' => 'SQL',
'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name', 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name',
'keyfield'=> 'iso', 'keyfield'=> 'iso',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment