GetProperty("C_Accounts_Policies_Login_LoginSettings"); //Get logging label if ($lmode==0) $ltag = $alang["TFTPUserForm_UserL"]; else $ltag = $alang["TStrings_emailcaption"]; //$skindata['title'] = $alang["TConfigForm"]; $skindata['title'] = $alang["TTntMenuItems_Root"]; $skindata['meta'] = @$meta; $skindata['user'] = $ltag; $skindata['pass'] = $alang["TFTPUserForm_PassL"]; $skindata['login'] = $alang["TStrings_wa_str1"]; $skindata['logintitle'] = $alang["TTntMenuItems_Root"]; $skindata['path'] = $skin_dir; /* Get name of the logo, or use images/logo.gif file */ $api = createobject("api"); //$cpath = $api->GetProperty("c_installpath"); $data = parsedatfile("config/logo.dat","default"); $logopath = trim($data['logo_path']); if (!$logopath) $logopath = 'images/logo.gif'; if($_COOKIE['webadmin_alias']){ $skindata['username'] = $_COOKIE['webadmin_alias']; $skindata['focuselement'] = 'password'; }else $skindata['focuselement'] = 'username'; $skindata['logo'] = 'Icewarp WebAdmin'; $skindata['language'] = $alang["TStrings_wa_str2"]; $skindata['languages'] = getlanguagelist(); $skindata['layout'] = $alang["LAYOUT"]; $skindata['skins'] = getskinlist(); $skindata['interface'] = $alang["I_INTERFACE"]; $skindata['interfaces']['num'] = getinterfacelist(); $skindata['charset'] = $encoding; $skindata['ciphert'] = $alang["TStrings_wa_str4"]; if(@$_COOKIE['CIPHER']==1) $skindata['ccheck'] = 'checked="checked"'; $skindata['unique'] =uniqid("").time(); if (@$_REQUEST['messageid']) $skindata['message'] = $alang[$_REQUEST['messageid']]; echo template( $skin_dir . 'login.tpl', $skindata); ?>