for the site. If this is set then user menus are pre-selected.
eg when signing up or filling out profile after external authentication.
<? print_string("configlocale") ?>
</TD>
</TR>
+<tr valign=top>
+ <td align=right><P>country:</td>
+ <td><? choose_from_menu ($COUNTRIES, "country", $config->country, get_string("selectacountry"), "", "") ?>
+ </td>
+ <TD>
+ <? print_string("configcountry") ?>
+ </TD>
+</tr>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P>smtphosts:</TD>
<TD>
// config.php - allows admin to edit all configuration variables
include("../config.php");
+ require("../lib/countries.php");
if (isset($phpinfo)) { // For debugging purposes, protected by password
if (md5($phpinfo) == "caf9b6b99962bf5c2264824231d7a40c") {
$string['city'] = "City/town";
$string['closewindow'] = "Close this window";
$string['comparelanguage'] = "Compare and edit current language";
+$string['configcountry'] = "If you set a country here, then this country will be selected by default on new user accounts. To force users to choose a country, just leave this unset.";
$string['configgdversion'] = "Indicate the version of GD that is installed. The version shown by default is the one that has been auto-detected. Don't change this unless you really know what you're doing.";
$string['configerrorlevel'] = "Choose the amount of PHP warnings that you want to be displayed. Normal is usually the best choice.";
$string['confightmleditor'] = "Choose whether or not to allow use of the embedded HTML text editor. Even if you choose allow, this editor will only appear when the user is using a compatible browser (IE 5.5 or later). Users can also choose not to use it.";
$string['closewindow'] = "Close this window";
$string['comparelanguage'] = "Compare and edit current language";
$string['complete'] = "Complete";
+$string['configcountry'] = "If you set a country here, then this country will be selected by default on new user accounts. To force users to choose a country, just leave this unset.";
$string['configerrorlevel'] = "Choose the amount of PHP warnings that you want to be displayed. Normal is usually the best choice.";
$string['configgdversion'] = "Indicate the version of GD that is installed. The version shown by default is the one that has been auto-detected. Don't change this unless you really know what you're doing.";
$string['confightmleditor'] = "Choose whether or not to allow use of the embedded HTML text editor. Even if you choose allow, this editor will only appear when the user is using a compatible browser (IE 5.5 or later). Users can also choose not to use it.";
"proxyhost" => "",
"proxyport" => "",
"maxeditingtime" => 1800,
+ "country" => "",
"guestloginbutton" => 1
);
<TABLE WIDTH="90%" BORDER="0" CELLSPACING="10" CELLPADDING="5" ALIGN="CENTER">\r
<TR>\r
<? if ($show_instructions) { ?>\r
- <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?> class="generaltableheader">\r
+ <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?> class="headingblock">\r
<P ALIGN="CENTER"><B><FONT SIZE=3><? print_string("returningtosite") ?></FONT></B></P>\r
</TD>\r
- <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?> class="generaltableheader">\r
+ <TD WIDTH="50%" bgcolor=<?=$THEME->cellheading2?> class="headingblock">\r
<P ALIGN="CENTER"><B><FONT SIZE=3><? print_string("firsttime") ?></FONT></B></P>\r
</TD>\r
<? } ?>\r
</TR>\r
<TR>\r
- <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellcontent2?>"> <FONT SIZE=2> \r
+ <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellcontent2?>" class="generalbox"> <FONT SIZE=2> \r
<P ALIGN="CENTER"><? print_string("loginusing") ?>:<BR>\r
(<? print_string("cookiesenabled") ?>)<BR>\r
<? formerr($errormsg) ?>\r
</BLOCKQUOTE>\r
</FONT> </TD>\r
<? if ($show_instructions) { ?>\r
- <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellcontent2?>">\r
+ <TD WIDTH="50%" VALIGN="TOP" bgcolor="<?=$THEME->cellcontent2?>" class="generalbox">\r
<FONT SIZE=2>\r
<? switch ($CFG->auth) {\r
case "email": ?>\r
}
}
+ if (!$user->country and $CFG->country) {
+ $user->country = $CFG->country;
+ }
+
$newaccount = get_string("newaccount");
$login = get_string("login");
<CENTER>
-<table cellpadding=20> <tr> <td bgcolor="<?=$THEME->cellcontent2 ?>">
+<table cellpadding=20> <tr> <td bgcolor="<?=$THEME->cellcontent2 ?>" class="generalbox">
<form name="form" method="post" action="signup.php">
<table>
</tr>
<tr valign=top>
<td><P><? print_string("country") ?>:</td>
- <td><? choose_from_menu ($COUNTRIES, "country", $user->country, get_string("selectacountry")."...", "", "") ?>
+ <td><?
+
+ if (!$user->country and $CFG->country) {
+ $user->country = $CFG->country;
+ }
+
+ choose_from_menu ($COUNTRIES, "country", $user->country, get_string("selectacountry")."...", "", "") ?>
<? formerr($err["country"]) ?>
</td>
</tr>