3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * 接收并保存由机具运营中心发回的有关广告播放的信息 * ============================================================================ * * 版权所有 2014 乐透通(福州)网络科技有限公司,并保留所有权利。 * 网站地址: http://www.lotto-pass.net; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ * $Author: clin $ * $Id: trans_rec_machine.php 17217 2011-01-19 06:29:08Z clin $ */ define('IN_ECS', true); // echo "<p>ROOT_PATH:".ROOT_PATH; $current_path = dirname(__FILE__); $base_path = substr($current_path, 0, strlen($current_path) - strlen("/webservice")); require_once($base_path . '/includes/init.php'); require(ROOT_PATH . 'includes/cls_json.php'); require_once (ROOT_PATH . 'includes/utilities/dbutilities.php'); require_once (ROOT_PATH . 'includes/webservice/webserviceutilities.php'); $key_names = setAcceptableArgs(); $check_keys = setCheckEmptyKeys(); $recordsTobeSaved = getRequiredArguments($_POST,$key_names); $table_name = "play_log"; if (!is_record_empty($recordsTobeSaved, $check_keys)) { $db_response = insertRecord($recordsTobeSaved, $table_name); // Insert record $recordsTobeSaved['status'] = 1; } header("Expires: date('Y-m-d H:i:s')"); echo getArrayToXML($recordsTobeSaved); function setAcceptableArgs() { //echo "<p>In setAcceptableArgs: "; $acceptable_args = array( "DevSn", "StartTime", "Screen", "File", "Status" ); return $acceptable_args; } function setCheckEmptyKeys() { $non_empty_args = array( "DevSn" ); return $non_empty_args; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 54
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 54
filename:       /in/cVTdr
function name:  (null)
number of ops:  62
compiled vars:  !0 = $current_path, !1 = $base_path, !2 = $key_names, !3 = $check_keys, !4 = $recordsTobeSaved, !5 = $table_name, !6 = $db_response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'IN_ECS'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
   19     4        INIT_FCALL                                               'dirname'
          5        SEND_VAL                                                 '%2Fin%2FcVTdr'
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !0, $8
   20     8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 0
         11        STRLEN                                           ~10     !0
         12        SUB                                              ~11     ~10, 11
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !1, $12
   21    16        CONCAT                                           ~14     !1, '%2Fincludes%2Finit.php'
         17        INCLUDE_OR_EVAL                                          ~14, REQUIRE_ONCE
   23    18        FETCH_CONSTANT                                   ~16     'ROOT_PATH'
         19        CONCAT                                           ~17     ~16, 'includes%2Fcls_json.php'
         20        INCLUDE_OR_EVAL                                          ~17, REQUIRE
   25    21        FETCH_CONSTANT                                   ~19     'ROOT_PATH'
         22        CONCAT                                           ~20     ~19, 'includes%2Futilities%2Fdbutilities.php'
         23        INCLUDE_OR_EVAL                                          ~20, REQUIRE_ONCE
   26    24        FETCH_CONSTANT                                   ~22     'ROOT_PATH'
         25        CONCAT                                           ~23     ~22, 'includes%2Fwebservice%2Fwebserviceutilities.php'
         26        INCLUDE_OR_EVAL                                          ~23, REQUIRE_ONCE
   28    27        INIT_FCALL_BY_NAME                                       'setAcceptableArgs'
         28        DO_FCALL                                      0  $25     
         29        ASSIGN                                                   !2, $25
   30    30        INIT_FCALL_BY_NAME                                       'setCheckEmptyKeys'
         31        DO_FCALL                                      0  $27     
         32        ASSIGN                                                   !3, $27
   32    33        INIT_FCALL_BY_NAME                                       'getRequiredArguments'
         34        CHECK_FUNC_ARG                                           
         35        FETCH_FUNC_ARG               global              $29     '_POST'
         36        SEND_FUNC_ARG                                            $29
         37        SEND_VAR_EX                                              !2
         38        DO_FCALL                                      0  $30     
         39        ASSIGN                                                   !4, $30
   34    40        ASSIGN                                                   !5, 'play_log'
   35    41        INIT_FCALL_BY_NAME                                       'is_record_empty'
         42        SEND_VAR_EX                                              !4
         43        SEND_VAR_EX                                              !3
         44        DO_FCALL                                      0  $33     
         45        BOOL_NOT                                         ~34     $33
         46      > JMPZ                                                     ~34, ->54
   36    47    >   INIT_FCALL_BY_NAME                                       'insertRecord'
         48        SEND_VAR_EX                                              !4
         49        SEND_VAR_EX                                              !5
         50        DO_FCALL                                      0  $35     
         51        ASSIGN                                                   !6, $35
   37    52        ASSIGN_DIM                                               !4, 'status'
         53        OP_DATA                                                  1
   39    54    >   INIT_FCALL                                               'header'
         55        SEND_VAL                                                 'Expires%3A+date%28%27Y-m-d+H%3Ai%3As%27%29'
         56        DO_ICALL                                                 
   40    57        INIT_FCALL_BY_NAME                                       'getArrayToXML'
         58        SEND_VAR_EX                                              !4
         59        DO_FCALL                                      0  $39     
         60        ECHO                                                     $39
   68    61      > RETURN                                                   1

Function setacceptableargs:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cVTdr
function name:  setAcceptableArgs
number of ops:  3
compiled vars:  !0 = $acceptable_args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   47     0  E >   ASSIGN                                                   !0, <array>
   55     1      > RETURN                                                   !0
   56     2*     > RETURN                                                   null

End of function setacceptableargs

Function setcheckemptykeys:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cVTdr
function name:  setCheckEmptyKeys
number of ops:  3
compiled vars:  !0 = $non_empty_args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   59     0  E >   ASSIGN                                                   !0, <array>
   63     1      > RETURN                                                   !0
   65     2*     > RETURN                                                   null

End of function setcheckemptykeys

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.26 ms | 1405 KiB | 21 Q