Commit 1157e6986970654da9334446aceb3984d495cfa7
1 parent
8b9043bf
Exists in
master
and in
1 other branch
Atualização "Trunk"
- correção de erro no html do instalador por má formação de caminhos (path e url) - correção de erro em configurações do gerente por não ler o cacic.js git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@218 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
2 changed files
with
28 additions
and
29 deletions
Show diff stats
admin/config_gerais.php
| @@ -27,8 +27,9 @@ else { // Inserir regras para outras verificações (ex: permissões do usuário)! | @@ -27,8 +27,9 @@ else { // Inserir regras para outras verificações (ex: permissões do usuário)! | ||
| 27 | <head> | 27 | <head> |
| 28 | <title>Configurar Gerente</title> | 28 | <title>Configurar Gerente</title> |
| 29 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | 29 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| 30 | +<script type="text/javascript" src="../include/cacic.js"></script> | ||
| 30 | <? | 31 | <? |
| 31 | -require_once('../include/selecao_listbox.js'); | 32 | +require_once('../include/selecao_listbox.js'); |
| 32 | ?> | 33 | ?> |
| 33 | <link rel="stylesheet" type="text/css" href="../include/cacic.css"> | 34 | <link rel="stylesheet" type="text/css" href="../include/cacic.css"> |
| 34 | <SCRIPT LANGUAGE="JavaScript"> | 35 | <SCRIPT LANGUAGE="JavaScript"> |
| @@ -442,4 +443,4 @@ if ($_SESSION['cs_nivel_administracao'] == 1 || $_SESSION['cs_nivel_administraca | @@ -442,4 +443,4 @@ if ($_SESSION['cs_nivel_administracao'] == 1 || $_SESSION['cs_nivel_administraca | ||
| 442 | </form> | 443 | </form> |
| 443 | <p> </p> | 444 | <p> </p> |
| 444 | </body> | 445 | </body> |
| 445 | -</html> | 446 | +</html> |
| 446 | \ No newline at end of file | 447 | \ No newline at end of file |
include/define.php
| @@ -62,7 +62,9 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | @@ -62,7 +62,9 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | ||
| 62 | * que deverá existir na pasta "sql" do instalador | 62 | * que deverá existir na pasta "sql" do instalador |
| 63 | * Sintaxe: array( 'JUN2005'=>'Junho de 2005', 'FEV2006'=>'Fevereiro de 2006' ) | 63 | * Sintaxe: array( 'JUN2005'=>'Junho de 2005', 'FEV2006'=>'Fevereiro de 2006' ) |
| 64 | */ | 64 | */ |
| 65 | - $cacic_updateFromVersion = array( 'JUN2005'=>'Junho de 2005', 'v2.2.2'=>'Versão 2.2.2' ); | 65 | + $cacic_updateFromVersion = array( 'JUN2005'=>'Junho de 2005', |
| 66 | + 'v2.2.2'=>'Versão 2.2.2' | ||
| 67 | + ); | ||
| 66 | 68 | ||
| 67 | /** | 69 | /** |
| 68 | * define a versão do PHP para o CACIC | 70 | * define a versão do PHP para o CACIC |
| @@ -96,44 +98,40 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | @@ -96,44 +98,40 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | ||
| 96 | */ | 98 | */ |
| 97 | define( 'CACIC_PHPMEM', '32M'); | 99 | define( 'CACIC_PHPMEM', '32M'); |
| 98 | 100 | ||
| 101 | +/* ****************************************************** | ||
| 102 | + * NAO ALTERAR NADA DAQUI PARA BAIXO | ||
| 103 | + * ******************************************************/ | ||
| 104 | + | ||
| 99 | /** | 105 | /** |
| 100 | * Atribui Idioma padrao | 106 | * Atribui Idioma padrao |
| 101 | */ | 107 | */ |
| 102 | - if(isset($cacicLang)) | ||
| 103 | - define( 'CACIC_LANG', $cacicLang); | ||
| 104 | - else | ||
| 105 | - define( 'CACIC_LANG', 'pt_br'); | 108 | +/* |
| 109 | + * CACIC application language | ||
| 110 | + */ | ||
| 111 | + if(isset($cacic_language)) | ||
| 112 | + define( CACIC_LANGUAGE, $cacic_language ); | ||
| 113 | + else | ||
| 114 | + define( CACIC_LANGUAGE, 'pt_br'); | ||
| 115 | + | ||
| 116 | +/* | ||
| 117 | + * CACIC application standard language | ||
| 118 | + * (Language to be used if the above one fail) | ||
| 119 | + */ | ||
| 120 | + define( CACIC_LANGUAGE_STANDARD, $cacic_language_standard ); | ||
| 106 | 121 | ||
| 107 | /** | 122 | /** |
| 108 | * Atribui CHARSET padrao | 123 | * Atribui CHARSET padrao |
| 109 | */ | 124 | */ |
| 110 | if(isset($cacicLangCS)) | 125 | if(isset($cacicLangCS)) |
| 111 | define( 'CACIC_LANG_CHARSET', $cacicLangCS); | 126 | define( 'CACIC_LANG_CHARSET', $cacicLangCS); |
| 112 | - else | 127 | + else |
| 113 | define( 'CACIC_LANG_CHARSET', 'ISO-8859-1'); | 128 | define( 'CACIC_LANG_CHARSET', 'ISO-8859-1'); |
| 114 | 129 | ||
| 115 | -/* ****************************************************** | ||
| 116 | - * NAO ALTERAR NADA DAQUI PARA BAIXO | ||
| 117 | - * ******************************************************/ | ||
| 118 | - | ||
| 119 | /* | 130 | /* |
| 120 | * path for CACIC | 131 | * path for CACIC |
| 121 | */ | 132 | */ |
| 122 | define(CACIC_PATH, $path_aplicacao ); | 133 | define(CACIC_PATH, $path_aplicacao ); |
| 123 | - | ||
| 124 | -/* | ||
| 125 | - * URL for CACIC | ||
| 126 | - */ | ||
| 127 | - define(CACIC_URL, $url_aplicacao ); | ||
| 128 | -/* | ||
| 129 | - * CACIC application language | ||
| 130 | - */ | ||
| 131 | - define(CACIC_LANGUAGE, $cacic_language ); | ||
| 132 | -/* | ||
| 133 | - * CACIC application standard language | ||
| 134 | - * (Language to be viewed when the one above not found) | ||
| 135 | - */ | ||
| 136 | - define(CACIC_LANGUAGE_STANDARD, $cacic_language_standard ); | 134 | + |
| 137 | /* | 135 | /* |
| 138 | * PATH for phpTranslator class | 136 | * PATH for phpTranslator class |
| 139 | */ | 137 | */ |
| @@ -168,10 +166,10 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | @@ -168,10 +166,10 @@ defined( 'CACIC' ) or die( 'Acesso restrito (Restricted access)!' ); | ||
| 168 | */ | 166 | */ |
| 169 | $urlRequest = str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['REQUEST_URI']); | 167 | $urlRequest = str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['REQUEST_URI']); |
| 170 | $urlRequest = str_replace("instalador/", '', $urlRequest); | 168 | $urlRequest = str_replace("instalador/", '', $urlRequest); |
| 171 | - if(isset($cacicURL)) | ||
| 172 | - define( 'CACIC_URL', $cacicURL); | 169 | + if(isset($url_aplicacao)) |
| 170 | + define( CACIC_URL, $url_aplicacao); | ||
| 173 | else | 171 | else |
| 174 | - define( 'CACIC_URL', "http://" . $_SERVER['SERVER_NAME'] . $urlRequest); | 172 | + define( CACIC_URL, "http://" . $_SERVER['SERVER_NAME'] . $urlRequest); |
| 175 | 173 | ||
| 176 | /* | 174 | /* |
| 177 | * Atribui URL de instalação do CACIC | 175 | * Atribui URL de instalação do CACIC |