$menutype) || ($oldlanguage <> $language) || ($oldcharset <> $newcharset)) // change layout or language header("Location: settings.html?id=$id"); } if ($folders) { $sentfolder = validatefolder($xsentfolder,1); $trashfolder = validatefolder($xtrashfolder,1); $draftsfolder = validatefolder($xdraftsfolder,1); $xotheruser = $otheruser; $xotheruser["FOLDERS"] = $sentfolder . ";" . $trashfolder . ";" . $draftsfolder; saveusersettings($id, $signature, $delete_move, $writesentcopy, $shownumber, '', $xotheruser); } if ($certificates) { if(is_uploaded_file($_FILES["xcertificatefile"]["tmp_name"])) { if (eregi("\.pem$",$_FILES["xcertificatefile"]["name"])) { $xcertificate = file_get_contents ($_FILES["xcertificatefile"]["tmp_name"]); @unlink($_FILES["xcertificatefile"]["tmp_name"]); } } if(ereg("^(-----BEGIN CERTIFICATE-----)",$xcertificate)) { $cert[CERTIFICATE] = $xcertificate; $cert[PASSPHRASE] = $xpassphrase; } require_once("inc/function.smime.php"); setusercertificate($user, $cert); getusersettings($id, $signature, $delete_move, $writesentcopy, $shownumber, $forwardtext, $otheruser); $xotheruser = $otheruser; $xotheruser["DEFAULTENCRYPT"]=$xdencrypt; $xotheruser["DEFAULTSIGN"]=$xdsign; saveusersettings($id, $signature, $delete_move, $writesentcopy, $shownumber, $forwardtext, $xotheruser); } if ($autoresponder) { include_once("integrateinclude.html"); $respvalue=($autoresponderperiod*4)|$autorespondercombo; integratesetautoresponder($config["EMAIL"], $autorespondertext, $respvalue, $respondbetweendates, $respondiftome); } if ($forwarder) { include_once("integrateinclude.html"); integratesetforwarder($config["EMAIL"], $forwardertext); } if ($antispam) { include_once("integrateinclude.html"); /*,$xspamlevel nahrazen za 0 */ integrateantispamsave($config['EMAIL'],$xspamfolder,$xinstantantispam,$xchallengeresponse,0); } } getusersettings($id, $signature, $delete_move, $writesentcopy, $shownumber, $forwardtext, $otheruser); require_once("settingsmenu.html"); $createdata .= '
'; $createdata .= ' '; if (count($layout_settings)>1) { $createdata .= ' '; } if (count($lang_settings)>1) { $createdata .= ' '; } /* $createdata .= ' '; */ $createdata .= '
'.$smenu.'  
'; // MSG_SIGNATURE if (!$forwarder && !$autoresponder && !$folders && !$certificates && !$antispam) { $createdata .= '

'.$lang[MSG_PERSONALITIES_TOP].'
'. $lang[MSG_PERSONALITIES].' :
'.$lang['MSG_EG'].': Admin <admin@domain.com>;User...
'. $lang[MSG_REPLYTO].' :
'.$lang['MSG_EG'].': admin@domain.com
'.$callang["CAL_TIMEZONE"].' :
'. $lang[MSG_DAYLIGHT].' :
'. $lang[MSG_SIGNATURETOP].' :
'. $lang[MSG_REPLYSYMBOL].' :
'. $lang[MSG_MOVEDELETEDTOTRASH].' :
'. $lang[MSG_ADDRESSES].' :

'.$callang["TXT_VISUALS"].'
'.$callang["TXT_AUTOHIDE"].' :
'.$lang["MSG_CONFIRMDIALOGS"].' :
'.$lang["MSG_OLDSTYLEATTACH"].' :
'.$callang["TXT_DATEFORMAT"].' :
'.$callang["TXT_TODAYDATEFORMAT"].' :
'. $lang[MSG_REFRESHINTERVAL].' :
'. $lang[MSG_WEBMAILLAYOUT].' :
'. $lang[MSG_WEBMAILLANG].' :
'. $lang[MSG_CHARSET].' :
'; } if($antispam) { include_once("integrateinclude.html"); $result=integrateantispam($config['EMAIL']); //'.(challengeresponseuserstate($config[EMAIL])?'':'').' $createdata .= '

'. $lang[MSG_LINKS_ANTISPAM].'
'. $lang[MSG_INSTANTANTISPAM].' :
'. $lang[MSG_CHALLENGERESPONSE].' :
'. $lang[MSG_SPAMFOLDER].' :
'; /*

'. $lang[MSG_LINKS_ANTISPAMLEVEL].'
'. $lang[MSG_DEFAULT].' : '. $lang[MSG_LOW].' : '. $lang[MSG_MEDIUM].' : '. $lang[MSG_HIGH].' : '; */ } if ($autoresponder) { include_once("integrateinclude.html"); integrategetautoresponder($config["EMAIL"], $autorespondertext, $respvalue,$respondbetweendates,$respondiftome); $responderperiod=floor($respvalue/4); $createdata .= '

'. $lang[MSG_LINKS_AUTORESPONDER].'
'.$lang[MSG_STATUS].' :
'.$lang[MSG_REPLYBETWEENDATES].' :
'.$lang['MSG_EG'].': 2004/01/31-2004/02/29
'.$lang[MSG_REPLYIFTOME].' :
'; } if ($forwarder) { include_once("integrateinclude.html"); $forwardertext = integrategetforwarder($config["EMAIL"]); $createdata .= '

'. $lang[MSG_LINKS_FORWARDER_SETTINGS] .'
'.$lang['MSG_EG'].': mail1@domain.com; mail2@demo.com; mail3@demo.com;...
'; } if ($folders) { $createdata .= '

'. $lang[MSG_FOLDERS] .'
'. $lang[MSG_SENTFOLDER] .' :
'.$lang['MSG_EG'].': sent
'. $lang[MSG_TRASHFOLDER] .' :
'.$lang['MSG_EG'].': trash
'. $lang[MSG_DRAFTSFOLDER] .' :
'.$lang['MSG_EG'].': drafts
'; } if ($certificates) { require_once("inc/function.smime.php"); $array = getusercertificate($user); $certificate = $array[CERTIFICATE]; $passphrase = $array[PASSPHRASE]; $certinfo = getcertificateinfo($certificate); $createdata .= ' '; if(trim($certinfo)){ $createdata .= '

'.$lang[MSG_CERTIFICATES].'
'.$lang[MSG_UANDPCERTIFICATE].' :
'.$lang[MSG_LOADFROMFILE].' :
'.$lang[MSG_CERTIFICATEPASS].' :
 
'.$lang[MSG_DEFAULTENCRYPT].' :
'.$lang[MSG_DEFAULTSIGN].' :


'.$lang[MSG_CERTIFICATEINFO] .'
' . $certinfo . '
'; } } $createdata .= '

'.(($forwarder|| $autoresponder || $folders)?'









':'').'
'; if($showlite!=2) $createdata.=copyright().'
'; $skindata['data'] = $createdata; //vypsani stranky if($showlite) echo template( $skin_dir . 'settings.tpl', $skindata); else echo template( $skin_dir . 'skin.tpl', $skindata); ?>