Changeset 1042 for trunk/setup
- Timestamp:
- 06/23/09 14:27:31 (15 years ago)
- Location:
- trunk/setup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/setup/manageheader.php
r1035 r1042 10 10 \**************************************************************************/ 11 11 12 /* $Id: manageheader.php,v 1.1 2006/09/15 14:36:29 niltonneto Exp $ */ 12 13 13 14 $phpgw_info = array(); … … 174 175 $action = @get_var('action',Array('POST')); 175 176 list($action) = @each($action); 177 176 178 switch($action) 177 179 { … … 232 234 echo lang('Please check read/write permissions on directories, or back up and use another option.') . '<br>'; 233 235 echo '</td></tr></table></body></html>'; 236 break; 234 237 } 235 238 break; … … 591 594 case '0': 592 595 $setup_tpl->set_var('use_https_0',' checked'); 596 $setup_tpl->set_var('div_cert',' style="display:none" '); 593 597 break; 594 598 case '1': 595 599 $setup_tpl->set_var('use_https_1',' checked'); 600 $setup_tpl->set_var('div_cert',' '); 596 601 break; 597 602 case '2': 598 603 $setup_tpl->set_var('use_https_2',' checked'); 599 break; 600 } 601 602 switch($GLOBALS['phpgw_info']['server']['use_assinar_criptografar']) 604 $setup_tpl->set_var('div_cert',' '); 605 break; 606 } 607 608 switch($GLOBALS['phpgw_info']['server']['certificado']) 609 { 610 case '0': 611 $setup_tpl->set_var('certificado_0',' checked'); 612 break; 613 case '1': 614 $setup_tpl->set_var('certificado_1',' checked'); 615 break; 616 default: 617 $setup_tpl->set_var('certificado_0',' checked'); 618 } 619 620 switch($GLOBALS['phpgw_info']['server']['captcha']) 621 { 622 case '0': 623 $setup_tpl->set_var('captcha_0',' checked'); 624 $setup_tpl->set_var('div_badlogin',' style="display:none" '); 625 break; 626 case '1': 627 $setup_tpl->set_var('captcha_1',' checked'); 628 break; 629 default: 630 $setup_tpl->set_var('captcha_0',' checked'); 631 $setup_tpl->set_var('div_badlogin',' style="display:none" '); 632 } 633 634 635 if($GLOBALS['phpgw_info']['server']['num_badlogin']) 636 { 637 $setup_tpl->set_var('num_badlogin',$GLOBALS['phpgw_info']['server']['num_badlogin']); 638 } 639 else 640 { 641 $setup_tpl->set_var('num_badlogin','0'); 642 } 643 644 645 switch($GLOBALS['phpgw_info']['server']['use_assinar_criptografar']) 603 646 { 604 647 case '0': … … 611 654 $setup_tpl->set_var('use_assinar_criptografar_0',' checked'); 612 655 } 613 656 614 657 if($GLOBALS['phpgw_info']['server']['num_max_certs_to_cipher']) 615 658 { … … 620 663 $setup_tpl->set_var('num_max_certs_to_cipher','10'); 621 664 } 665 /* 666 if($GLOBALS['phpgw_info']['server']['corporative_certificate']) 667 { 668 $setup_tpl->set_var('corporative_certificate',$GLOBALS['phpgw_info']['server']['corporative_certificate']); 669 } 670 else 671 { 672 $setup_tpl->set_var('corporative_certificate',''); 673 } 674 */ 675 if($GLOBALS['phpgw_info']['server']['atributoexpiracao']) 676 { 677 $setup_tpl->set_var('atributoexpiracao',$GLOBALS['phpgw_info']['server']['atributoexpiracao']); 678 } 679 else 680 { 681 $setup_tpl->set_var('atributoexpiracao', 'phpgwaccountexpires'); 682 } 683 if($GLOBALS['phpgw_info']['server']['atributousuarios']) 684 { 685 $setup_tpl->set_var('atributousuarios',$GLOBALS['phpgw_info']['server']['atributousuarios']); 686 } 687 else 688 { 689 $setup_tpl->set_var('atributousuarios', 'serprousr'); 690 } 691 switch($GLOBALS['phpgw_info']['server']['politicasenhas']) 692 { 693 case 'expresso': 694 $setup_tpl->set_var('politicasenhas_expresso',' checked'); 695 break; 696 case 'diretorio': 697 $setup_tpl->set_var('politicasenhas_diretorio',' checked'); 698 break; 699 default: 700 $setup_tpl->set_var('politicasenhas_expresso',' checked'); 701 } 702 switch($GLOBALS['phpgw_info']['server']['diretorioescravo']) 703 { 704 case 'sim': 705 $setup_tpl->set_var('diretorioescravo_true',' checked'); 706 break; 707 case 'nao': 708 $setup_tpl->set_var('diretorioescravo_false',' checked'); 709 break; 710 default: 711 $setup_tpl->set_var('diretorioescravo_false',' checked'); 712 } 713 714 /********************* INICIO BLOCO MAILMAN **************************/ 715 716 switch($GLOBALS['phpgw_info']['server']['use_mailman']) 717 { 718 case '0': 719 $setup_tpl->set_var('use_mailman_0',' checked'); 720 $setup_tpl->set_var('div_mailman',' style="display: none;" '); 721 break; 722 case '1': 723 $setup_tpl->set_var('use_mailman_1',' checked'); 724 $setup_tpl->set_var('div_mailman',''); 725 break; 726 default: 727 $setup_tpl->set_var('use_mailman_0',' checked'); 728 $setup_tpl->set_var('div_mailman',' style="display: none;" '); 729 } 730 731 if($GLOBALS['phpgw_info']['server']['dn_listas']) 732 { 733 $setup_tpl->set_var('dn_listas',$GLOBALS['phpgw_info']['server']['dn_listas']); 734 } 735 736 if($GLOBALS['phpgw_info']['server']['dn_listadmin']) 737 { 738 $setup_tpl->set_var('dn_listadmin',$GLOBALS['phpgw_info']['server']['dn_listadmin']); 739 } 740 741 if($GLOBALS['phpgw_info']['server']['dominio_listas']) 742 { 743 $setup_tpl->set_var('dominio_listas',$GLOBALS['phpgw_info']['server']['dominio_listas']); 744 } 745 746 if($GLOBALS['phpgw_info']['server']['porta_mailman']) 747 { 748 $setup_tpl->set_var('porta_mailman',$GLOBALS['phpgw_info']['server']['porta_mailman']); 749 } 750 751 if($GLOBALS['phpgw_info']['server']['host_mailman']) 752 { 753 $setup_tpl->set_var('host_mailman',$GLOBALS['phpgw_info']['server']['host_mailman']); 754 } 755 756 if($GLOBALS['phpgw_info']['server']['url_mailman']) 757 { 758 $setup_tpl->set_var('url_mailman',$GLOBALS['phpgw_info']['server']['url_mailman']); 759 } 760 761 /********************* FIM BLOCO MAILMAN **************************/ 622 762 623 763 if(@$GLOBALS['phpgw_info']['server']['sugestoes_email_to']) -
trunk/setup/templates/default/manageheader.tpl
r1035 r1042 14 14 return false; 15 15 } 16 17 /***** INICIO BLOCO MAILMAN *****/ 18 19 function ocultar(zdiv) 20 { 21 var xdiv = document.getElementById(zdiv); 22 23 if(xdiv.id == "certificado") { 24 xdiv.style.display='none'; 25 var xdiv = document.getElementById('cert_0'); 26 xdiv.checked = true; 27 } 28 29 if(xdiv.id == "conf_mailman") { 30 xdiv.style.display='none'; 31 document.getElementById('use_mail_0').checked = true; 32 } 33 if(xdiv.id == "badlogin") { 34 xdiv.style.display='none'; 35 var xdiv = document.getElementById('badlogintxt'); 36 xdiv.value='0'; 37 } 38 } 39 40 function exibir(zdiv) 41 { 42 var xdiv = document.getElementById(zdiv); 43 xdiv.style.display=''; 44 } 45 46 /***** FIM BLOCO MAILMAN *****/ 47 48 function getEvent(e) 49 // Retorna um dicionï¿œrio com o objeto evento e o cï¿œdigo da tecla pressionada 50 { 51 var d 52 var keycode 53 var evento 54 if (window.event) 55 d = { e: window.event, keycode: window.event.keyCode } 56 else 57 { 58 if (e) 59 d = { e: e, keycode: e.which } 60 else 61 return null 62 } 63 return d 64 } 65 66 function soNumero(myfield, e) 67 // Permite a digitaᅵᅵo de apenas nï¿œmeros em campos de formulï¿œrios 68 // Utilizaᅵᅵo: <input type="text" onkeypress="return soNumero(this, event);"> 69 { 70 71 var d = getEvent(e); 72 var e = d['e']; 73 var keycode = d['keycode']; 74 if (e == null) return true; 75 // Tecla de funᅵᅵo (Ctrl, Alt), deixa passar 76 if (e.ctrlKey || e.metaKey || keycode < 32) 77 return true; 78 else 79 return (keycode > 47 && keycode < 58); // false se tecla nï¿œo for numï¿œrica 80 } 81 16 82 //--> 17 83 </script> … … 91 157 </tr>{comment_r} 92 158 93 <!-- INICIO configura ções exclusivas para o ExpressoLivre -->159 <!-- INICIO configuraᅵᅵes exclusivas para o ExpressoLivre --> 94 160 <tr><td><br></td></tr> 95 161 <th colspan="2" class="th">ExpressoLivre</th> 96 162 </td></tr> 163 164 <tr><td colspan="2"> 165 <fieldset><legend>HTTPS</legend> 166 <table> 97 167 <tr><td colspan="2"><b>Usar HTTPS?</b></td></tr> 98 168 <tr><td colspan="2"> 99 <font color='red'>Obs.: Apenas use https no site, caso o apache esteja configurado para isto. A porta 443 DEVE estar acessível.</font><br>100 <INPUT type="radio"{use_https_0} name="setting[use_https]" value="0" >NÃO Usar HTTPS no site.<BR>101 <INPUT type="radio"{use_https_1} name="setting[use_https]" value="1" >Usar HTTPS apenas no Login.<BR>102 <INPUT type="radio"{use_https_2} name="setting[use_https]" value="2" >Usar HTTPS no Site inteiro.<BR>169 <font color='red'>Obs.: Apenas use https no site, caso o apache esteja configurado para isto. A porta 443 DEVE estar liberada.</font><br> 170 <INPUT type="radio"{use_https_0} name="setting[use_https]" value="0" onclick="javascript:ocultar('certificado')">NAO Usar HTTPS no site.<BR> 171 <INPUT type="radio"{use_https_1} name="setting[use_https]" value="1" onclick="javascript:exibir('certificado')" >Usar HTTPS apenas no Login.<BR> 172 <INPUT type="radio"{use_https_2} name="setting[use_https]" value="2" onclick="javascript:exibir('certificado')" >Usar HTTPS no Site inteiro.<BR> 103 173 </td></tr> 104 105 <tr><td colspan="2"> 106 <fieldset><legend>Segurança</legend> 107 <table> 108 <tr><td colspan="2"><b>Habilitar Assinar/Cifrar digitalmente?</b></td></tr> 174 <tr><td colspan="2"> 175 <div id="certificado" {div_cert}> 176 <table> 177 <tr><td colspan="2"><b>Usar Certificado Digital(para identificar o usuario no processo de login)?</b></td></tr> 178 <tr><td colspan="2"> 179 <font color='red'>Obs.: Para usar certificado Digital o uso do HTTPS deve ter sido selecionado no item acima.</font><br> 180 <INPUT id="cert_0" type="radio" {certificado_0} name="setting[certificado]" value="0" >Nao Usar Certificado Digital.<BR> 181 <INPUT id="cert_1" type="radio" {certificado_1} name="setting[certificado]" value="1">Usar Certificado Digital.<BR> 182 </td></tr> 183 </table> 184 </div> 185 186 </td></tr> 187 </table> 188 </fieldset> 189 </td></tr> 190 191 <tr><td colspan="2"> 192 <fieldset><legend> Anti-Robo</legend> 193 <table> 194 <tr><td colspan="2"><b>Usar Anti-Robo(CAPTCHA) ?</b></td></tr> 195 <tr><td colspan="2"> 196 <INPUT type="radio" {captcha_0} name="setting[captcha]" value="0" onclick="javascript:ocultar('badlogin')">NAO Usar Anti-Robo.<BR> 197 <INPUT type="radio" {captcha_1} name="setting[captcha]" value="1" onclick="javascript:exibir('badlogin')" >Usar Anti-Robo.<BR> 198 </td></tr> 199 200 <tr><td colspan="2"> 201 <div id="badlogin" {div_badlogin}> 202 <table> 203 <tr><td colspan="2"><b>Numero de falhas no login, antes de exibir o codigo do Anti-robo ?</b></td></tr> 204 <tr><td colspan="2"> 205 <INPUT type="text" maxlength="2" size="3" name="setting[num_badlogin]" id="badlogintxt" value="{num_badlogin}" onkeypress="return soNumero(this, event);"> 206 </td></tr> 207 </table> 208 </div> 209 210 </td></tr> 211 </table> 212 </fieldset> 213 </td></tr> 214 215 216 <tr><td colspan="2"> 217 <fieldset><legend>Segurança</legend> 218 <table> 219 <tr><td colspan="2"><b>Habilitar Assinar/Criptografar digitalmente?</b></td></tr> 109 220 <tr><td colspan="2"> 110 221 <INPUT type="radio" {use_assinar_criptografar_0} name="setting[use_assinar_criptografar]" value="0" />NAO habilitar.<BR> 111 222 <INPUT type="radio" {use_assinar_criptografar_1} name="setting[use_assinar_criptografar]" value="1" />Habilitar.<BR> 112 223 </td></tr> 113 <tr><td colspan="2"><b>Numero maximo de destinat ários para uma mensagem cifrada:</b><br>Este valor e utilizado se Assinar/Criptografar for habilitado.</td></tr>224 <tr><td colspan="2"><b>Numero maximo de destinatarios para uma mensagem cifrada:</b><br>Este valor e utilizado se Assinar/Criptografar for habilitado.</td></tr> 114 225 <tr><td colspan="2"> 115 226 <INPUT type="text" maxlength="2" size="3" name="setting[num_max_certs_to_cipher]" id="maxcerttxt" value="{num_max_certs_to_cipher}" onkeypress="return soNumero(this, event);"> … … 119 230 <tr><td colspan="2"> 120 231 <INPUT type="text" size="40" name="setting[corporative_certificate]" id="corpcerttxt" value="{corporative_certificate}" > 121 </td></tr> 232 </td></tr> 122 233 --> 123 234 </fieldset> … … 125 236 <br> 126 237 127 <tr><td colspan="2"><b>Digite os endereços de emails, separados por vírgula, que devem receber as sugestões enviados pelos usuários.</b></td></tr> 128 <tr><td colspan="2"><INPUT size="50" name="setting[sugestoes_email_to]" value="{sugestoes_email_to}"></td></tr> 129 130 <tr><td colspan="2"><b>Digite parte do seu domínio. Esta parte de domínio será concatenado a organização do usuário para formar o domínio do usuário. Ex.: usuario@organizacao.dominio -> joao@celepar.pr.gov.br, o pr.gov.br é a parte do domínio.</b></td></tr> 238 239 <tr><td nowrap> 240 <b>Nome do atributo , no ldap, para controle de expiracao da senhas.</b> 241 </td></tr> 242 <tr><td> 243 <INPUT type="text" maxlength="50" size="40" name="setting[atributoexpiracao]" id="atributoexpiracaotxt" value="{atributoexpiracao}" > 244 </td></tr> 245 <tr><td nowrap> 246 <b>Classe ldap utilizada para identificar os usuarios.</b> 247 </td></tr> 248 <tr><td> 249 <INPUT type="text" maxlength="50" size="40" name="setting[atributousuarios]" id="atributousuarios" value="{atributousuarios}" > 250 <tr><td colspan="2"> 251 <fieldset><legend>Politica de Senhas</legend> 252 <table> 253 <tr><td colspan="2"><b>Usar qual politica de senhas?</b></td></tr> 254 <tr><td colspan="2"> 255 <INPUT type="radio" {politicasenhas_expresso} name="setting[politicasenhas]" value="expresso" />Utilizar as politicas de senha do Expresso.<BR> 256 <INPUT type="radio" {politicasenhas_diretorio} name="setting[politicasenhas]" value="diretorio" />Utilizar as politicas de senha do Diretorio Ldap.<BR> 257 </td></tr> 258 </table> 259 <tr><td colspan="2"> 260 <fieldset><legend>Escrita em diretorios escravos</legend> 261 <table> 262 <tr><td colspan="2"><b>O Expresso deve tentar escrever em diretorios escravos?</b></td></tr> 263 <tr><td colspan="2"> 264 <INPUT type="radio" {diretorioescravo_true} name="setting[diretorioescravo]" value="sim" />Escrever em diretorios escravos.<BR> 265 <INPUT type="radio" {diretorioescravo_false} name="setting[diretorioescravo]" value="nao" />NAO escrever em diretorios escravos.<BR> 266 </td></tr> 267 </table> 268 </td></tr> 269 270 271 <!-- INICIO BLOCO MAILMAN --> 272 273 <tr><td colspan="2"> 274 <fieldset><legend>Mailman</legend> 275 <table> 276 <tr><td colspan="2"><b>Usar Mailman?</b></td></tr> 277 <tr><td colspan="2"> 278 <INPUT id="use_mail_0" type="radio" {use_mailman_0} name="setting[use_mailman]" value="0" onclick="javascript:ocultar('conf_mailman')" />NAO usar listas no Mailman.<BR> 279 <INPUT id="use_mail_1" type="radio" {use_mailman_1} name="setting[use_mailman]" value="1" onclick="javascript:exibir('conf_mailman')" />Usar listas no Mailman.<BR> 280 </td></tr> 281 </table> 282 <table id="conf_mailman" {div_mailman} > 283 <tr><td colspan="2"><b>Digite o DN usado pelas listas. (Ex.: ou=listas,dc=company,dc=com,dc=br)</b></td></tr> 284 <tr><td colspan="2"> 285 <INPUT size="50" name="setting[dn_listas]" value="{dn_listas}" /> 286 </td></tr> 287 <tr><td colspan="2"><b>Digite o DN do grupo listadmin. (Ex.: ou=grupos,dc=company,dc=com,dc=br)</b></td></tr> 288 <tr><td colspan="2"> 289 <INPUT size="50" name="setting[dn_listadmin]" value="{dn_listadmin}" /> 290 </td></tr> 291 <tr><td colspan="2"><b>Digite o dominio usado pelas listas. (Ex.: dominio.com.br)</b></td></tr> 292 <tr><td colspan="2"> 293 <INPUT size="50" name="setting[dominio_listas]" value="{dominio_listas}" /> 294 </td></tr> 295 <tr><td colspan="2"><b>Digite a porta utilizada pelo Mailman. (Ex: 80)</b></td></tr> 296 <tr><td colspan="2"> 297 <INPUT size="50" name="setting[porta_mailman]" value="{porta_mailman}" onkeypress="return soNumero(this, event);"/> 298 </td></tr> 299 <tr><td colspan="2"><b>Digite o endereco IP do servidor Mailman. (Ex.: 192.168.0.1)</b></td></tr> 300 <tr><td colspan="2"> 301 <INPUT size="50" name="setting[host_mailman]" value="{host_mailman}" /> 302 </td></tr> 303 <tr><td colspan="2"><b>Digite o caminho do programa de sincronizacao do Mailman.</b></td></tr> 304 <tr><td colspan="2"> 305 <INPUT size="50" name="setting[url_mailman]" value="{url_mailman}" /> 306 </td></tr> 307 </table> 308 309 <!-- FIM BLOCO MAILMAN --> 310 311 <tr><td colspan="2"><b>Digite os enderecos de emails, separados por virgula, que devem receber as sugestoes enviadas pelos usuarios.</b></td></tr> 312 <tr><td colspan="2"><INPUT size="100" name="setting[sugestoes_email_to]" value="{sugestoes_email_to}"></td></tr> 313 314 <tr><td colspan="2"><b>Digite parte do seu dominio. Esta parte de dominio sera concatenada a organizacao do usuario para formar o dominio do usuario. Ex.: usuario@organizacao.dominio -> joao@serpro.gov.br, o gov.br a parte do dominio.</b></td></tr> 131 315 <tr><td colspan="2"><INPUT size="50" name="setting[domain_name]" value="{domain_name}"></td></tr> 132 316 133 317 <th colspan="2" class="th"> </th> 134 <!-- FIM configura ções exclusivas para o ExpressoLivre -->318 <!-- FIM configuraᅵᅵes exclusivas para o ExpressoLivre --> 135 319 136 320 <tr>
Note: See TracChangeset
for help on using the changeset viewer.