Commit 32348055a4aa1b2f8b3e5c1bccd267043c1c618c
1 parent
ca029919
Exists in
master
Alteração dos arquivos .php restantes para sua respectivas URL's
git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/agente-windows@1331 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
2 changed files
with
9 additions
and
9 deletions
Show diff stats
chksis/chksis.dpr
@@ -94,8 +94,8 @@ begin | @@ -94,8 +94,8 @@ begin | ||
94 | strFieldsAndValuesToRequest := 'in_instalacao=OK,'; | 94 | strFieldsAndValuesToRequest := 'in_instalacao=OK,'; |
95 | strFieldsAndValuesToRequest := strFieldsAndValuesToRequest + 'te_fila_ftp=1'; // Indicativo para entrada no grupo FTP | 95 | strFieldsAndValuesToRequest := strFieldsAndValuesToRequest + 'te_fila_ftp=1'; // Indicativo para entrada no grupo FTP |
96 | 96 | ||
97 | - objCacic.writeDebugLog('executeChkSIS: Efetuando chamada ao Gerente WEB com valores: "' + objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get_config.php' + '", "' + objCacic.getLocalFolderName + '" e lista interna'); | ||
98 | - strCommResponse := Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get_config.php', strFieldsAndValuesToRequest, objCacic.getLocalFolderName); | 97 | + objCacic.writeDebugLog('executeChkSIS: Efetuando chamada ao Gerente WEB com valores: "' + objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get/config' + '", "' + objCacic.getLocalFolderName + '" e lista interna'); |
98 | + strCommResponse := Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get/config', strFieldsAndValuesToRequest, objCacic.getLocalFolderName); | ||
99 | 99 | ||
100 | if (strCommResponse <> '0') then | 100 | if (strCommResponse <> '0') then |
101 | Begin | 101 | Begin |
@@ -180,8 +180,8 @@ begin | @@ -180,8 +180,8 @@ begin | ||
180 | Except | 180 | Except |
181 | on E : Exception do | 181 | on E : Exception do |
182 | Begin | 182 | Begin |
183 | - objCacic.writeExceptionLog(E.Message,E.ClassName,'Falha no contato com ' + objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get_config.php'); | ||
184 | - objCacic.writeDebugLog('executeChkSIS: Falha no contato com ' + objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get_config.php'); | 183 | + objCacic.writeExceptionLog(E.Message,E.ClassName,'Falha no contato com ' + objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get/config'); |
184 | + objCacic.writeDebugLog('executeChkSIS: Falha no contato com ' + objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get/config'); | ||
185 | End; | 185 | End; |
186 | End; | 186 | End; |
187 | 187 |
gercols/gercols.dpr
@@ -305,7 +305,7 @@ Begin | @@ -305,7 +305,7 @@ Begin | ||
305 | CloseFile(textfileKeyWord); | 305 | CloseFile(textfileKeyWord); |
306 | // | 306 | // |
307 | strFieldsAndValuesToRequest := 'te_palavra_chave=' + objCacic.replaceInvalidHTTPChars(objCacic.enCrypt(strAux)); | 307 | strFieldsAndValuesToRequest := 'te_palavra_chave=' + objCacic.replaceInvalidHTTPChars(objCacic.enCrypt(strAux)); |
308 | - strRetorno := Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get_config.php', strFieldsAndValuesToRequest, objCacic.getLocalFolderName,v_mensagem_log); | 308 | + strRetorno := Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get/config', strFieldsAndValuesToRequest, objCacic.getLocalFolderName,v_mensagem_log); |
309 | objCacic.setBoolCipher(not objCacic.isInDebugMode); | 309 | objCacic.setBoolCipher(not objCacic.isInDebugMode); |
310 | 310 | ||
311 | if (strRetorno <> '0') and | 311 | if (strRetorno <> '0') and |
@@ -315,7 +315,7 @@ Begin | @@ -315,7 +315,7 @@ Begin | ||
315 | objCacic.setWebManagerAddress((objCacic.getValueFromTags('WebManagerAddress',strRetorno,'<>'))); | 315 | objCacic.setWebManagerAddress((objCacic.getValueFromTags('WebManagerAddress',strRetorno,'<>'))); |
316 | objCacic.setValueToFile('Configs','WebManagerAddress',objCacic.getValueFromTags('WebManagerAddress',strRetorno,'<>'), strChkSisInfFileName); | 316 | objCacic.setValueToFile('Configs','WebManagerAddress',objCacic.getValueFromTags('WebManagerAddress',strRetorno,'<>'), strChkSisInfFileName); |
317 | objCacic.writeDebugLog('getConfigs: Refazendo comunicação'); | 317 | objCacic.writeDebugLog('getConfigs: Refazendo comunicação'); |
318 | - strRetorno := Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get_config.php', strFieldsAndValuesToRequest, objCacic.getLocalFolderName,v_mensagem_log); | 318 | + strRetorno := Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'get/config', strFieldsAndValuesToRequest, objCacic.getLocalFolderName,v_mensagem_log); |
319 | End; | 319 | End; |
320 | 320 | ||
321 | if (strRetorno <> '0') Then | 321 | if (strRetorno <> '0') Then |
@@ -660,7 +660,7 @@ Begin | @@ -660,7 +660,7 @@ Begin | ||
660 | 660 | ||
661 | strFieldsAndValuesToRequest := 'te_rcactions=' + objCacic.replaceInvalidHTTPChars(objCacic.enCrypt(objCacic.getParam('RCActions'))); | 661 | strFieldsAndValuesToRequest := 'te_rcactions=' + objCacic.replaceInvalidHTTPChars(objCacic.enCrypt(objCacic.getParam('RCActions'))); |
662 | objCacic.writeDebugLog('executeGerCols: Preparando para empacotar "'+strFieldsAndValuesToRequest+'"'); | 662 | objCacic.writeDebugLog('executeGerCols: Preparando para empacotar "'+strFieldsAndValuesToRequest+'"'); |
663 | - strRetorno := Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'gercols_set_srcacic_actions.php', strFieldsAndValuesToRequest, objCacic.getLocalFolderName, 'Enviando informações sobre ações durante suporte remoto ao Gerente WEB ('+objCacic.getWebManagerAddress+')!'); | 663 | + strRetorno := Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'gercols/set/srcacic/action', strFieldsAndValuesToRequest, objCacic.getLocalFolderName, 'Enviando informações sobre ações durante suporte remoto ao Gerente WEB ('+objCacic.getWebManagerAddress+')!'); |
664 | 664 | ||
665 | Finalizar(true); | 665 | Finalizar(true); |
666 | end; | 666 | end; |
@@ -729,7 +729,7 @@ Begin | @@ -729,7 +729,7 @@ Begin | ||
729 | 729 | ||
730 | strFieldsAndValuesToRequest := 'te_usb_info=' + objCacic.replaceInvalidHTTPChars(objCacic.enCrypt(objCacic.getParam('USBInfo'))); | 730 | strFieldsAndValuesToRequest := 'te_usb_info=' + objCacic.replaceInvalidHTTPChars(objCacic.enCrypt(objCacic.getParam('USBInfo'))); |
731 | objCacic.writeDebugLog('executeGerCols: Preparando para empacotar "'+strFieldsAndValuesToRequest+'"'); | 731 | objCacic.writeDebugLog('executeGerCols: Preparando para empacotar "'+strFieldsAndValuesToRequest+'"'); |
732 | - strRetorno := Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'gercols_set_usbdetect.php', strFieldsAndValuesToRequest, objCacic.getLocalFolderName, 'Enviando informações sobre ' + IfThen(Copy(objCacic.getParam('USBInfo'),1,1)='I','Inserção','Remoção')+ ' de dispositivo USB ao Gerente WEB ('+objCacic.getWebManagerAddress+')!'); | 732 | + strRetorno := Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'gercols/set/usbdetect', strFieldsAndValuesToRequest, objCacic.getLocalFolderName, 'Enviando informações sobre ' + IfThen(Copy(objCacic.getParam('USBInfo'),1,1)='I','Inserção','Remoção')+ ' de dispositivo USB ao Gerente WEB ('+objCacic.getWebManagerAddress+')!'); |
733 | objCacic.setBoolCipher(not objCacic.isInDebugMode); | 733 | objCacic.setBoolCipher(not objCacic.isInDebugMode); |
734 | if (objCacic.getValueFromTags('nm_device', strRetorno, '<>') <> '') then | 734 | if (objCacic.getValueFromTags('nm_device', strRetorno, '<>') <> '') then |
735 | objCacic.writeDailyLog('Dispositivo USB ' + IfThen(Copy(objCacic.getParam('USBInfo'),1,1)='I','Inserido','Removido')+': "' + objCacic.getValueFromTags('nm_device', strRetorno, '<>')+'"'); | 735 | objCacic.writeDailyLog('Dispositivo USB ' + IfThen(Copy(objCacic.getParam('USBInfo'),1,1)='I','Inserido','Removido')+': "' + objCacic.getValueFromTags('nm_device', strRetorno, '<>')+'"'); |
@@ -1386,7 +1386,7 @@ Begin | @@ -1386,7 +1386,7 @@ Begin | ||
1386 | objCacic.writeDailyLog(strAcaoGercols); | 1386 | objCacic.writeDailyLog(strAcaoGercols); |
1387 | 1387 | ||
1388 | // Preparação para envio... | 1388 | // Preparação para envio... |
1389 | - if (Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'gercols_set_collects.php', strFieldsAndValuesToRequest, objCacic.getLocalFolderName, strAcaoGerCols) <> '0') Then | 1389 | + if (Comm(objCacic.getWebManagerAddress + objCacic.getWebServicesFolderName + 'gercols/set/collects', strFieldsAndValuesToRequest, objCacic.getLocalFolderName, strAcaoGerCols) <> '0') Then |
1390 | Begin | 1390 | Begin |
1391 | objCacic.writeDailyLog('Ok! Coleta de informações sobre ' + objCacic.getValueFromTags('te_descricao_breve',strActionDefinition) + ' enviada com sucesso!'); | 1391 | objCacic.writeDailyLog('Ok! Coleta de informações sobre ' + objCacic.getValueFromTags('te_descricao_breve',strActionDefinition) + ' enviada com sucesso!'); |
1392 | objCacic.setBoolCipher(not objCacic.isInDebugMode); | 1392 | objCacic.setBoolCipher(not objCacic.isInDebugMode); |