Consultar Estado de Panel - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of Consultar Estado de Panel.php
- <?php
- /*
- $fecha = date('d/m/y');
- $horaPeticionProtom = strtotime('now');
- echo ("fecha: " . $fecha);
- echo ("\n horaPeticionProtom: " . $horaPeticionProtom);
- */
- //Valores devueltos por las operaciones de arriba ANTES de lanzar PROTOM:
- /*
- ValidateSaviaInstallation::sendSaviaInstallationCommand
- <country>ES</country>
- <numinst>1502597</numinst>
- <panel>SDVECU</panel>
- <mode>1</mode>
- <maintenance>28239840</maintenance>
- <version>2.33</version>
- <transaction_id>M1358834261568630424</transaction_id>
- <command_type>ConsultSystemTechnicalStatus_v08_08</command_type>
- <sei>1</sei>
- */
- $fecha = date('24/10/19');
- $horaPeticionProtom = '1571911629';
- //Valores devueltos por consulta AlarmLog
- /*
- MCG_PO_AlarmLogManagement_1::getAlarmLogByFilters
- <typ:getAlarmLogByFiltersRequest>
- <typ:country>ESP</typ:country>
- <typ:idApplication>THNLY</typ:idApplication>
- <typ:installation>
- <typ:ins_no>1502597</typ:ins_no>
- </typ:installation>
- <typ:filters>
- <typ:medioList>
- <typ:medio>GPR</typ:medio>
- <typ:medio>SMS</typ:medio>
- </typ:medioList>
- <typ:transmitionCycleList>
- <typ:transmitionCycle>C</typ:transmitionCycle>
- <typ:transmitionCycle>S</typ:transmitionCycle>
- </typ:transmitionCycleList>
- </typ:filters>
- <typ:returnAll>false</typ:returnAll>
- </typ:getAlarmLogByFiltersRequest>
- */
- $fechaAlarmLog = "22/10/19";
- $horaAlarmLog = "19:50:40";
- $resultAlarmLog = strtotime($horaAlarmLog);
- if(strcasecmp($fecha, $fechaAlarmLog) == 0 && $resultAlarmLog > $horaPeticionProtom){
- echo "Fuera de pruebas (CCS)";
- }
- else{
- echo "En pruebas (ITS)";
- }
File Description
- Consultar Estado de Panel
- PHP Code
- 24 Oct-2019
- 1.93 Kb
You can Share it:
Latest PHP Pastes