<?php require("../setup/global_options.php"); if(file_exists("../setup/local_options.php")) include("../setup/local_options.php"); if((IsSet($GLOBALS["idiom"]) && IsSet($GLOBALS["global_options"]["idioms"][$GLOBALS["idiom"]]))) $current_locale=$GLOBALS["idiom"]; else $current_locale=$GLOBALS["global_options"]["locale"]; $locale=array(); if(file_exists("../locale/welcome-".$current_locale.".php")) include("../locale/welcome-".$current_locale.".php"); ?><html> <head> <title><?php echo HtmlEntities($GLOBALS["locale"]["string"]["Welcome"]); ?></title> <body bgcolor="<?php echo $GLOBALS["global_options"]["background_color"]; ?>"> <?php echo (strcmp($GLOBALS["global_options"]["logo_image"],"") ? "<table width=\"100%\">\n<tr>\n<td valign=\"middle\" width=\"1%\"><img align=\"middle\" src=\"".(strcmp($GLOBALS["global_options"]["logo_image"],"") ? "./images/".$GLOBALS["global_options"]["logo_image"] : "")."\"></td>\n<td valign=\"middle\">" : ""); ?><h1><center><?php echo HtmlEntities($GLOBALS["locale"]["string"]["Welcome"]); ?></center></h1><?php echo (strcmp($GLOBALS["global_options"]["logo_image"],"") ? "\n</tr>\n</table>" : ""); ?> <hr> <?php Reset($GLOBALS["global_options"]["idioms"]); $idiom_number=0; require("../library/forms.php"); $idiom_form_object=new form_class; $idiom_form_object->METHOD="POST"; $idiom_form_object->ACTION="ezmlm/index.html"; $idiom_form_object->allow_used_label_keys=0; $idiom_form_object->AddInput(array( "NAME"=>"login", "ID"=>"login", "TYPE"=>"submit", "VALUE"=>HtmlEntities($GLOBALS["locale"]["string"]["Login"]) )); $idiom_form_object->AddDataPart("<center><table>\n<tr>\n<td><center><table>\n"); for(;$idiom_number<Count($GLOBALS["global_options"]["idioms"]);) { $idiom_id="idiom_".Key($GLOBALS["global_options"]["idioms"]); $idiom_form_object->AddInput(array( "TYPE"=>"radio", "NAME"=>"idiom", "CHECKED"=>!strcmp($current_locale,Key($GLOBALS["global_options"]["idioms"])), "ONCLICK"=>"window.location.href='".$GLOBALS["PHP_SELF"]."?idiom=".Key($GLOBALS["global_options"]["idioms"])."'", "VALUE"=>Key($GLOBALS["global_options"]["idioms"]), "ID"=>$idiom_id )); $label=$GLOBALS["global_options"]["idioms"][Key($GLOBALS["global_options"]["idioms"])]; $position=0; $shortcuts=array(); $shortcuts[$GLOBALS["locale"]["shortcut"]["Use-this-button-to"]]=1; for(;;) { if(!($position<strlen($label))) { $shortcut=""; $label=HtmlEntities($label); break; } $shortcut=substr($label,$position,1); if(!(IsSet($shortcuts[strtolower($shortcut)]))) { $shortcuts[strtolower($shortcut)]=1; $shortcut=HtmlEntities($shortcut); $label=HtmlEntities(substr($label,0,$position))."<U>".$shortcut."</U>".HtmlEntities(substr($label,$position+1)); break; } $position++; } $idiom_form_object->AddDataPart("<tr>\n<th align=\"left\">"); $idiom_form_object->AddLabelPart(array( "LABEL"=>$label, "ACCESSKEY"=>$shortcut, "FOR"=>$idiom_id )); $idiom_form_object->AddDataPart(":</th>\n<td nowrap=\"nowrap\">"); $idiom_form_object->AddInputPart($idiom_id); $idiom_form_object->AddDataPart("</td>\n</tr>"); $idiom_number++; Next($GLOBALS["global_options"]["idioms"]); } $idiom_form_object->AddDataPart("\n</table></center></td>\n</tr>\n<tr>\n<td><center>"); $idiom_form_object->AddLabelPart(array( "LABEL"=>sprintf(HtmlEntities($GLOBALS["locale"]["shortcutstring"]["Use-this-button-to"]),"<U>","</U>"), "ACCESSKEY"=>HtmlEntities($GLOBALS["locale"]["shortcut"]["Use-this-button-to"]), "FOR"=>"login" )); $idiom_form_object->AddDataPart(" "); $idiom_form_object->AddInputPart("login"); $idiom_form_object->AddDataPart("</center></td>\n</tr>\n</table></center>\n"); $idiom_form_object->LoadInputValues(); echo FormCaptureOutput($idiom_form_object,array("EndOfLine"=>"\n")); ?> <hr /> <address><?php echo HtmlEntities($GLOBALS["locale"]["string"]["For-more-information-contact"])."<a href=\"mailto:".$GLOBALS["global_options"]["contact_address"]."\">".$GLOBALS["global_options"]["contact_address"]."</a>"; ?></address> </body> </html>
|