Changeset 1337
- Timestamp:
- 08/18/09 18:01:15 (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/setup/setup.inc.php
r1323 r1337 15 15 $setup_info['phpgwapi']['title'] = 'phpgwapi'; 16 16 $setup_info['phpgwapi']['version'] = '2.0.000'; 17 $setup_info['phpgwapi']['versions']['current_header'] = ' 1.27';17 $setup_info['phpgwapi']['versions']['current_header'] = '2.0'; 18 18 $setup_info['phpgwapi']['enable'] = 3; 19 19 $setup_info['phpgwapi']['app_order'] = 1; -
trunk/setup/manageheader.php
r1042 r1337 220 220 fclose($fsetup); 221 221 $GLOBALS['phpgw_setup']->html->show_header('Saved header.inc.php', False, 'header'); 222 echo '< form action="index.php" method="post">';223 echo ' <br>' . lang('Created header.inc.php!');224 echo '< input type="hidden" name="FormLogout" value="header">';225 echo '<input type="submit" name="junk" value="'.lang('Continue').'"> ';222 echo '<div align="center"><form action="index.php" method="post">'; 223 echo '' . lang('Created header.inc.php!'); 224 echo '<br><br><input type="hidden" name="FormLogout" value="header">'; 225 echo '<input type="submit" name="junk" value="'.lang('Continue').'"><br><br></div>'; 226 226 echo '</form>'; 227 227 echo '</body></html>'; … … 593 593 { 594 594 case '0': 595 default: 595 596 $setup_tpl->set_var('use_https_0',' checked'); 596 597 $setup_tpl->set_var('div_cert',' style="display:none" '); 598 597 599 break; 598 600 case '1': … … 609 611 { 610 612 case '0': 613 default: 611 614 $setup_tpl->set_var('certificado_0',' checked'); 615 $setup_tpl->set_var('div_cripto',' style="display:none" '); 616 $setup_tpl->set_var('cripto_options',' style="display:none" '); 612 617 break; 613 618 case '1': 614 619 $setup_tpl->set_var('certificado_1',' checked'); 615 620 break; 616 default:617 $setup_tpl->set_var('certificado_0',' checked');618 621 } 619 622 … … 621 624 { 622 625 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 626 default: 630 627 $setup_tpl->set_var('captcha_0',' checked'); 631 628 $setup_tpl->set_var('div_badlogin',' style="display:none" '); 629 break; 630 case '1': 631 $setup_tpl->set_var('captcha_1',' checked'); 632 break; 633 default: 634 $setup_tpl->set_var('captcha_0',' checked'); 635 $setup_tpl->set_var('div_badlogin',' style="display:none" '); 632 636 } 633 637 … … 636 640 { 637 641 $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 642 } 644 643 645 644 switch($GLOBALS['phpgw_info']['server']['use_assinar_criptografar']) 646 645 { 647 646 case '0': 647 default: 648 648 $setup_tpl->set_var('use_assinar_criptografar_0',' checked'); 649 649 break; … … 651 651 $setup_tpl->set_var('use_assinar_criptografar_1',' checked'); 652 652 break; 653 default:654 $setup_tpl->set_var('use_assinar_criptografar_0',' checked');655 653 } 656 654 … … 659 657 $setup_tpl->set_var('num_max_certs_to_cipher',$GLOBALS['phpgw_info']['server']['num_max_certs_to_cipher']); 660 658 } 661 else662 {663 $setup_tpl->set_var('num_max_certs_to_cipher','10');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 else671 {672 $setup_tpl->set_var('corporative_certificate','');673 }674 */675 659 if($GLOBALS['phpgw_info']['server']['atributoexpiracao']) 676 660 { 677 661 $setup_tpl->set_var('atributoexpiracao',$GLOBALS['phpgw_info']['server']['atributoexpiracao']); 678 662 } 679 else680 {681 $setup_tpl->set_var('atributoexpiracao', 'phpgwaccountexpires');682 }683 663 if($GLOBALS['phpgw_info']['server']['atributousuarios']) 684 664 { 685 665 $setup_tpl->set_var('atributousuarios',$GLOBALS['phpgw_info']['server']['atributousuarios']); 686 666 } 687 else688 {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 **************************/762 667 763 668 if(@$GLOBALS['phpgw_info']['server']['sugestoes_email_to']) -
trunk/setup/templates/default/login_main.tpl
r1083 r1337 18 18 <table> 19 19 <tr> 20 <td >{lang_header_username}:</td>20 <td nowrap>{lang_header_username}:</td> 21 21 <td><input type="text" name="FormUser" value=""></td> 22 22 <td>{lang_select}</td> -
trunk/setup/templates/default/manageheader.tpl
r1042 r1337 15 15 } 16 16 17 /***** INICIO BLOCO MAILMAN *****/18 19 17 function ocultar(zdiv) 20 18 { 21 19 var xdiv = document.getElementById(zdiv); 22 23 20 if(xdiv.id == "certificado") { 24 21 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; 22 document.getElementById('cert_0').checked = true; 23 } 24 if( xdiv.id == "certificado" || xdiv.id == "criptografia") { 25 var xdiv = document.getElementById('criptografia'); 26 document.getElementById('cripto_0').checked = true; 27 } 28 if(xdiv.id == "certificado" || xdiv.id == "criptografia" || xdiv.id == "cripto_options") { 29 var xdiv = document.getElementById('cripto_options'); 30 document.getElementById('maxcerttxt').value = 0; 31 document.getElementById('atributoexpiracaotxt').value = ''; 32 document.getElementById('atributousuarios').value = ''; 32 33 } 33 34 if(xdiv.id == "badlogin") { 34 xdiv.style.display='none'; 35 var xdiv = document.getElementById('badlogintxt'); 36 xdiv.value='0'; 37 } 35 document.getElementById('badlogintxt').value='0'; 36 } 37 xdiv.style.display='none'; 38 38 } 39 39 … … 41 41 { 42 42 var xdiv = document.getElementById(zdiv); 43 if(xdiv.id == "cripto_options") { 44 document.getElementById('maxcerttxt').value = '10'; 45 document.getElementById('atributoexpiracaotxt').value = 'phpgwaccountexpires'; 46 document.getElementById('atributousuarios').value = ''; 47 } 48 if(xdiv.id == "badlogin") { 49 document.getElementById('badlogintxt').value= '2'; 50 } 43 51 xdiv.style.display=''; 44 52 } 45 53 46 /***** FIM BLOCO MAILMAN *****/47 48 54 function getEvent(e) 49 // Retorna um dicion ï¿œrio com o objeto evento e o cï¿œdigo da tecla pressionada55 // Retorna um dicionario com o objeto evento e o codigo da tecla pressionada 50 56 { 51 57 var d … … 65 71 66 72 function soNumero(myfield, e) 67 // Permite a digita ᅵᅵo de apenas nï¿œmeros em campos de formulï¿œrios68 // Utiliza ᅵᅵo: <input type="text" onkeypress="return soNumero(this, event);">73 // Permite a digitacao de apenas numeros em campos de formularios 74 // Utilizacao: <input type="text" onkeypress="return soNumero(this, event);"> 69 75 { 70 76 … … 73 79 var keycode = d['keycode']; 74 80 if (e == null) return true; 75 // Tecla de fun ᅵᅵo (Ctrl, Alt), deixa passar81 // Tecla de funcao (Ctrl, Alt), deixa passar 76 82 if (e.ctrlKey || e.metaKey || keycode < 32) 77 83 return true; 78 84 else 79 return (keycode > 47 && keycode < 58); // false se tecla n ï¿œo for numï¿œrica85 return (keycode > 47 && keycode < 58); // false se tecla nao for numerica 80 86 } 81 87 … … 157 163 </tr>{comment_r} 158 164 159 <!-- INICIO configura ᅵᅵes exclusivas para o ExpressoLivre -->165 <!-- INICIO configuracoes exclusivas para o ExpressoLivre --> 160 166 <tr><td><br></td></tr> 161 167 <th colspan="2" class="th">ExpressoLivre</th> … … 168 174 <tr><td colspan="2"> 169 175 <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')">N AO Usar HTTPS no site.<BR>176 <INPUT type="radio"{use_https_0} name="setting[use_https]" value="0" onclick="javascript:ocultar('certificado')">NÃO usar HTTPS no site.<BR> 171 177 <INPUT type="radio"{use_https_1} name="setting[use_https]" value="1" onclick="javascript:exibir('certificado')" >Usar HTTPS apenas no Login.<BR> 172 178 <INPUT type="radio"{use_https_2} name="setting[use_https]" value="2" onclick="javascript:exibir('certificado')" >Usar HTTPS no Site inteiro.<BR> 173 179 </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> 180 <tr><td colspan="2"> 181 <table> 182 <tr><td colspan="2"><b>Usar Certificado Digital (para identificar o usuario no processo de login)?</b></td></tr> 178 183 <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> 184 <font color='red'>Obs.: Para habilitar este item o uso do HTTPS deve ter sido habilitado.</font><br> 185 <INPUT id="cert_0" type="radio" {certificado_0} name="setting[certificado]" onclick="javascript:ocultar('criptografia')" value="0" >NÃO Usar Certificado Digital.<BR> 186 <div id="certificado" {div_cert}> 187 <INPUT id="cert_1" type="radio" {certificado_1} name="setting[certificado]" onclick="javascript:exibir('criptografia')" value="1">Usar Certificado Digital.</div><BR> 182 188 </td></tr> 183 189 </table> 184 </div>190 185 191 186 192 </td></tr> … … 188 194 </fieldset> 189 195 </td></tr> 190 191 <tr><td colspan="2"> 196 <tr><td colspan="2"> 197 <fieldset><legend>Criptografia e Assinatura Digital</legend> 198 <table> 199 <tr><td colspan="2"> 200 <b>Habilitar Assinar/Criptografar digitalmente?</b> 201 <br><font color='red'>Obs.: Para habilitar este item o uso de HTTPS e Certificado Digital devem ter sido habilitados.</font> 202 </td></tr> 203 <tr><td colspan="2"> 204 <INPUT id='cripto_0' onclick="javascript:ocultar('cripto_options')" type="radio" {use_assinar_criptografar_0} name="setting[use_assinar_criptografar]" value="0" />NÃO habilitar.<BR> 205 <div id="criptografia" {div_cripto}><INPUT id='cripto_1' onclick="javascript:exibir('cripto_options')" type="radio" {use_assinar_criptografar_1} name="setting[use_assinar_criptografar]" value="1" />Habilitar.</div><BR> 206 </td></tr> 207 <tr><td colspan="2"> 208 <div id="cripto_options" {cripto_options}> 209 <table> 210 <tr><td colspan="2"> 211 <b>Numero maximo de destinatarios para uma mensagem cifrada<br><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);"></td></tr> 212 <tr><td nowrap> 213 <b>Nome do atributo , no ldap, para controle de expiracao da senhas</b> 214 </td></tr> 215 <tr><td> 216 <INPUT type="text" maxlength="50" size="40" name="setting[atributoexpiracao]" id="atributoexpiracaotxt" value="{atributoexpiracao}" > 217 </td></tr> 218 <tr><td nowrap> 219 <b>Classe ldap utilizada para identificar os usuarios</b> 220 </td></tr> 221 <tr><td> 222 <INPUT type="text" maxlength="50" size="40" name="setting[atributousuarios]" id="atributousuarios" value="{atributousuarios}" > 223 </td></tr> 224 </table> 225 </div></td></tr> 226 </table> 227 </fieldset> 228 </td></tr> 229 <tr><td colspan="2"> 192 230 <fieldset><legend> Anti-Robo</legend> 193 231 <table> 194 232 <tr><td colspan="2"><b>Usar Anti-Robo(CAPTCHA) ?</b></td></tr> 195 233 <tr><td colspan="2"> 196 <INPUT type="radio" {captcha_0} name="setting[captcha]" value="0" onclick="javascript:ocultar('badlogin')">N AO Usar Anti-Robo.<BR>234 <INPUT type="radio" {captcha_0} name="setting[captcha]" value="0" onclick="javascript:ocultar('badlogin')">NÃO Usar Anti-Robo.<BR> 197 235 <INPUT type="radio" {captcha_1} name="setting[captcha]" value="1" onclick="javascript:exibir('badlogin')" >Usar Anti-Robo.<BR> 198 </td></tr> 199 236 </td></tr> 200 237 <tr><td colspan="2"> 201 238 <div id="badlogin" {div_badlogin}> … … 212 249 </fieldset> 213 250 </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>220 <tr><td colspan="2">221 <INPUT type="radio" {use_assinar_criptografar_0} name="setting[use_assinar_criptografar]" value="0" />NAO habilitar.<BR>222 <INPUT type="radio" {use_assinar_criptografar_1} name="setting[use_assinar_criptografar]" value="1" />Habilitar.<BR>223 </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>225 <tr><td colspan="2">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);">227 </td></tr>228 <!--229 <tr><td colspan="2"><b>Aponta um certificado corporativo:</b><br> Este certificado sera incluido como destinatario adicional, quando cifrar uma msg.</td></tr>230 <tr><td colspan="2">231 <INPUT type="text" size="40" name="setting[corporative_certificate]" id="corpcerttxt" value="{corporative_certificate}" >232 </td></tr>233 -->234 </fieldset>235 </table>236 <br>237 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 251 <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 252 <tr><td colspan="2"><INPUT size="100" name="setting[sugestoes_email_to]" value="{sugestoes_email_to}"></td></tr> … … 316 256 317 257 <th colspan="2" class="th"> </th> 318 <!-- FIM configura ᅵᅵes exclusivas para o ExpressoLivre -->258 <!-- FIM configuracoes exclusivas para o ExpressoLivre --> 319 259 320 260 <tr>
Note: See TracChangeset
for help on using the changeset viewer.