3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_time = date("c"); set_time_limit(180000); //include("/home/phil/uploads/database.php"); // Connect to the Database //$con_ptr = mysql_connect('db-02-03.tmnplc.com:3306','campaigns_web','pH4q.fQB23!'); //$con_ptr = connect_sym_live(); //$con_ptr = connect_sbm(); // Connect to the Database $con_ptr = mysql_connect("db-08-02.tmnplc.com", "keila_web","Zircon500"); //$con_ptr = mysql_connect("db-08-01.tmnplc.com", "mailman","6Zyj8xj7"); // database //$db = "mailman"; // testing $db = "surveycentral"; // live // Report simple running errors error_reporting(E_ERROR | E_WARNING | E_PARSE); $user_tbl = $db.".Users"; $mobile_tbl = $db.".MobileData"; $landline_tbl = $db.".LandLineData"; // data8 login details $d8username = "tmngroup_data8"; $d8password = "AxUcmOkj12"; if($_POST) { foreach($_POST as $key => $value) { // for form debugging //echo $key." --- ".$value."<br>"; $$key = $value; } } if($_GET) { foreach($_GET as $key => $value) { // for form debugging //echo $key." --- ".$value."<br>"; $$key = $value; } } error_reporting(E_ALL); $logdir = "/var/www/purelead/log_files/external_feed_log/"; $time = date("c"); function MobileIsValid($telephone, $d8username, $d8password) { global $mobile_tbl, $con_ptr; // first we check to see if we've already searched for this number in the 3 months so we don't cane our credits $three_months_ago = date("Y-m-d H:i:s", mktime(date("H"), date("i"), date("s"), date("m")-3, date("d"), date("Y"))); $sql = "SELECT * FROM ".$mobile_tbl." WHERE Number = '".$telephone."' AND dos > '".$three_months_ago."'"; //echo $sql; $res = mysql_query($sql, $con_ptr); $numrows = mysql_num_rows($res); if($numrows > 0) { $row = mysql_fetch_array($res); if($row['Result'] == 'Success') { return true; } else { return false; } } $params = array( "username" => $d8username, "password" => $d8password, "number" => $telephone, "options" => $options ); $client = new SoapClient("http://webservices.data-8.co.uk/MobileValidation.asmx?WSDL"); if($numrows == 0) { $result = $client->IsValid($params); } //print_r($result); if ($result->IsValidResult->Result != "Success") { return false; } else { return true; } } // logs the reuslts function logResults($values, $logfile){ global $logdir, $time; // count the values $num_vals = count($values); // open the log file $resfile = fopen($logdir.$logfile, "a"); //write data to the log file foreach($values as $key => $value){ $value = str_replace("'", "", $value); $value = trim($value, "\n\r"); $value = regx_replace("\r", " ", $value); $value = regx_replace("\n", " ", $value); fwrite($resfile, $key." --> ".$value); fwrite($resfile, ","); } fwrite($resfile, $time); fwrite($resfile, "\n"); // close the log file fclose($resfile); } function LineIsValid($telephone, $d8username, $d8password) { global $landline_tbl, $con_ptr; // first we check to see if we've already searched for this number in the 3 months so we don't cane our credits $three_months_ago = date("Y-m-d H:i:s", mktime(date("H"), date("i"), date("s"), date("m")-3, date("d"), date("Y"))); $sql = "SELECT * FROM ".$landline_tbl." WHERE Number = '".$telephone."' AND dos > '".$three_months_ago."'"; $res = mysql_query($sql, $con_ptr); $numrows = mysql_num_rows($res); if($numrows > 0) { $row = mysql_fetch_array($res); if($row['Result'] == 'Valid') { return true; } else { return false; } } $params = array( "username" => $d8username, "password" => $d8password, "number" => $telephone, "options" => $options ); //$client = new SoapClient("http://webservices.data-8.co.uk/TelephoneValidation.asmx?WSDL"); $client = new SoapClient("http://webservices.data-8.co.uk/TelephoneLineValidation.asmx?WSDL"); $result = $client->IsValidAdvanced($params); //logResults($result, date("c"), "LandLineCheck.log", $telephone); if ($result->IsValidAdvancedResult->Result != "Valid") { return false; } else { return true; } } function checkNumber($telephone) { global $d8username, $d8password; // now do the data8 check $match = "/^07[0-9]{9,10}/"; if(preg_match($match, $telephone)) { // then it's a mobile if(MobileIsValid($telephone, $d8username, $d8password) != true) { $errordata['telephone'] = "You haven\'t provided us with a valid UK telephone number"; $error = 15; return false; } } else { // then it's a landline if(LineIsValid($telephone, $d8username, $d8password) != true) { $errordata['telephone'] = "You haven\'t provided us with a valid UK telephone number"; $error = 16; return false; } } return true; } // Call the checkNumber function if (checkNumber($_POST['telephone']) == false) { echo'false - number provided is false'; die; } else //Call mobile function if (MobileIsValid(($_POST['telephone']), $d8username, $d8password) == false) { echo'false - number provided is false'; die; } else //Call landline function if (LineIsValid(($_POST['telephone']), $d8username, $d8password) == false) { echo'false - number provided is false'; die; } else // todays date $today = date("Ymd"); // Call the getAge function if (isset($_POST['birth_date'])) { $age = getAge($birth_date); } //Or fail else echo'false - no dob provided'; { } function getAge($birth_date){ list($year, $month, $day) = explode("-", $birth_date); $year_diff = date("Y") - $year; $month_diff = date("m") - $month; $day_diff = date("d") - $day; if ($day_diff < 0) { $month_diff--; } if ($month_diff < 0) { $year_diff--; } return $year_diff; } $curl = curl_init(); if ( !$curl ) { print "Failed to initalise cURL object\n"; } else { $url = "https://v3.lolagrove.com/data.ashx?id=7941.1674&paid_creditors_six_months=Yes&email=".urlencode($email)."&firstname=".urlencode($firstname)."&lastname=".($lastname)."&address1=".urlencode($address1)."&towncity=".urlencode($towncity)."&postcode=".urlencode($postcode)."&telephone=".urlencode($telephone)."&age=".urlencode($age)."&debt_amount=".urlencode($debt_amount)."&debt_with=".urlencode($debt_with)."&disposable_income=".urlencode($disposable_income)."&iva_bankruptcy=".urlencode($iva_bankruptcy)."&securekey=6e5af886-22e5-4f04-b97b-946539aa70f1"; $curl_opts = array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSL_VERIFYHOST => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_FAILONERROR => true, ); if ( !curl_setopt_array( $curl, $curl_opts ) ) { print "Unable to set properties on CURL object\n"; } else { $response = curl_exec( $curl ); $responseCode = curl_getinfo( $curl, CURLINFO_HTTP_CODE ); if ( is_bool( $response ) && $response == false ) { // Failed to make HTTP request to tracking URL echo 'Error from CURL in livefeed: "', curl_error( $curl ), '" ', var_export( curl_getinfo( $curl ), TRUE ); } else if ( ! ( $responseCode >= 200 && $responseCode <= 299 ) ) { // We got an HTTP response, but it was not successful print "Error: Tracking URL returned HTTP $responseCode\n"; } else { // All good print "Success, response was:\n"; echo var_export( $response ), "\n"; } } } curl_close( $curl ); // log the values $values[] = $response; $values[] = $responseCode; $values[] = $url; logResults($values, 'Madison_financial'); //}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 35
Branch analysis from position: 27
2 jumps found. (Code = 77) Position 1 = 29, Position 2 = 34
Branch analysis from position: 29
2 jumps found. (Code = 78) Position 1 = 30, Position 2 = 34
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 45
Branch analysis from position: 37
2 jumps found. (Code = 77) Position 1 = 39, Position 2 = 44
Branch analysis from position: 39
2 jumps found. (Code = 78) Position 1 = 40, Position 2 = 44
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 60, Position 2 = 63
Branch analysis from position: 60
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 72, Position 2 = 75
Branch analysis from position: 72
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 75
2 jumps found. (Code = 43) Position 1 = 84, Position 2 = 87
Branch analysis from position: 84
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 87
2 jumps found. (Code = 43) Position 1 = 94, Position 2 = 99
Branch analysis from position: 94
1 jumps found. (Code = 42) Position 1 = 100
Branch analysis from position: 100
2 jumps found. (Code = 43) Position 1 = 105, Position 2 = 107
Branch analysis from position: 105
1 jumps found. (Code = 42) Position 1 = 233
Branch analysis from position: 233
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 107
2 jumps found. (Code = 43) Position 1 = 184, Position 2 = 186
Branch analysis from position: 184
1 jumps found. (Code = 42) Position 1 = 233
Branch analysis from position: 233
Branch analysis from position: 186
2 jumps found. (Code = 46) Position 1 = 198, Position 2 = 200
Branch analysis from position: 198
2 jumps found. (Code = 43) Position 1 = 201, Position 2 = 216
Branch analysis from position: 201
1 jumps found. (Code = 42) Position 1 = 233
Branch analysis from position: 233
Branch analysis from position: 216
2 jumps found. (Code = 46) Position 1 = 218, Position 2 = 220
Branch analysis from position: 218
2 jumps found. (Code = 43) Position 1 = 222, Position 2 = 227
Branch analysis from position: 222
1 jumps found. (Code = 42) Position 1 = 233
Branch analysis from position: 233
Branch analysis from position: 227
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 220
Branch analysis from position: 200
Branch analysis from position: 99
2 jumps found. (Code = 43) Position 1 = 105, Position 2 = 107
Branch analysis from position: 105
Branch analysis from position: 107
Branch analysis from position: 44
Branch analysis from position: 45
Branch analysis from position: 34
Branch analysis from position: 35
filename:       /in/Kd2EH
function name:  (null)
number of ops:  247
compiled vars:  !0 = $start_time, !1 = $con_ptr, !2 = $db, !3 = $user_tbl, !4 = $mobile_tbl, !5 = $landline_tbl, !6 = $d8username, !7 = $d8password, !8 = $value, !9 = $key, !10 = $logdir, !11 = $time, !12 = $today, !13 = $age, !14 = $birth_date, !15 = $curl, !16 = $url, !17 = $email, !18 = $firstname, !19 = $lastname, !20 = $address1, !21 = $towncity, !22 = $postcode, !23 = $telephone, !24 = $debt_amount, !25 = $debt_with, !26 = $disposable_income, !27 = $iva_bankruptcy, !28 = $curl_opts, !29 = $response, !30 = $responseCode, !31 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'c'
          2        DO_ICALL                                         $32     
          3        ASSIGN                                                   !0, $32
    4     4        INIT_FCALL                                               'set_time_limit'
          5        SEND_VAL                                                 180000
          6        DO_ICALL                                                 
   11     7        INIT_FCALL_BY_NAME                                       'mysql_connect'
          8        SEND_VAL_EX                                              'db-08-02.tmnplc.com'
          9        SEND_VAL_EX                                              'keila_web'
         10        SEND_VAL_EX                                              'Zircon500'
         11        DO_FCALL                                      0  $35     
         12        ASSIGN                                                   !1, $35
   15    13        ASSIGN                                                   !2, 'surveycentral'
   18    14        INIT_FCALL                                               'error_reporting'
         15        SEND_VAL                                                 7
         16        DO_ICALL                                                 
   20    17        CONCAT                                           ~39     !2, '.Users'
         18        ASSIGN                                                   !3, ~39
   21    19        CONCAT                                           ~41     !2, '.MobileData'
         20        ASSIGN                                                   !4, ~41
   22    21        CONCAT                                           ~43     !2, '.LandLineData'
         22        ASSIGN                                                   !5, ~43
   25    23        ASSIGN                                                   !6, 'tmngroup_data8'
   26    24        ASSIGN                                                   !7, 'AxUcmOkj12'
   28    25        FETCH_R                      global              ~47     '_POST'
         26      > JMPZ                                                     ~47, ->35
   30    27    >   FETCH_R                      global              ~48     '_POST'
         28      > FE_RESET_R                                       $49     ~48, ->34
         29    > > FE_FETCH_R                                       ~50     $49, !8, ->34
         30    >   ASSIGN                                                   !9, ~50
   34    31        FETCH_W                      local               $52     !9
         32        ASSIGN                                                   $52, !8
   30    33      > JMP                                                      ->29
         34    >   FE_FREE                                                  $49
   38    35    >   FETCH_R                      global              ~54     '_GET'
         36      > JMPZ                                                     ~54, ->45
   40    37    >   FETCH_R                      global              ~55     '_GET'
         38      > FE_RESET_R                                       $56     ~55, ->44
         39    > > FE_FETCH_R                                       ~57     $56, !8, ->44
         40    >   ASSIGN                                                   !9, ~57
   44    41        FETCH_W                      local               $59     !9
         42        ASSIGN                                                   $59, !8
   40    43      > JMP                                                      ->39
         44    >   FE_FREE                                                  $56
   48    45    >   INIT_FCALL                                               'error_reporting'
         46        SEND_VAL                                                 32767
         47        DO_ICALL                                                 
   49    48        ASSIGN                                                   !10, '%2Fvar%2Fwww%2Fpurelead%2Flog_files%2Fexternal_feed_log%2F'
   50    49        INIT_FCALL                                               'date'
         50        SEND_VAL                                                 'c'
         51        DO_ICALL                                         $63     
         52        ASSIGN                                                   !11, $63
  191    53        INIT_FCALL                                               'checknumber'
         54        FETCH_R                      global              ~65     '_POST'
         55        FETCH_DIM_R                                      ~66     ~65, 'telephone'
         56        SEND_VAL                                                 ~66
         57        DO_FCALL                                      0  $67     
         58        BOOL_NOT                                         ~68     $67
         59      > JMPZ                                                     ~68, ->63
  193    60    >   ECHO                                                     'false+-+number+provided+is+false'
  194    61      > EXIT                                                     
         62*       JMP                                                      ->91
  201    63    >   INIT_FCALL                                               'mobileisvalid'
         64        FETCH_R                      global              ~69     '_POST'
         65        FETCH_DIM_R                                      ~70     ~69, 'telephone'
         66        SEND_VAL                                                 ~70
         67        SEND_VAR                                                 !6
         68        SEND_VAR                                                 !7
         69        DO_FCALL                                      0  $71     
         70        BOOL_NOT                                         ~72     $71
         71      > JMPZ                                                     ~72, ->75
  203    72    >   ECHO                                                     'false+-+number+provided+is+false'
  204    73      > EXIT                                                     
         74*       JMP                                                      ->91
  212    75    >   INIT_FCALL                                               'lineisvalid'
         76        FETCH_R                      global              ~73     '_POST'
         77        FETCH_DIM_R                                      ~74     ~73, 'telephone'
         78        SEND_VAL                                                 ~74
         79        SEND_VAR                                                 !6
         80        SEND_VAR                                                 !7
         81        DO_FCALL                                      0  $75     
         82        BOOL_NOT                                         ~76     $75
         83      > JMPZ                                                     ~76, ->87
  214    84    >   ECHO                                                     'false+-+number+provided+is+false'
  215    85      > EXIT                                                     
         86*       JMP                                                      ->91
  221    87    >   INIT_FCALL                                               'date'
         88        SEND_VAL                                                 'Ymd'
         89        DO_ICALL                                         $77     
         90        ASSIGN                                                   !12, $77
  225    91        FETCH_IS                                         ~79     '_POST'
         92        ISSET_ISEMPTY_DIM_OBJ                         0          ~79, 'birth_date'
         93      > JMPZ                                                     ~80, ->99
  227    94    >   INIT_FCALL_BY_NAME                                       'getAge'
         95        SEND_VAR_EX                                              !14
         96        DO_FCALL                                      0  $81     
         97        ASSIGN                                                   !13, $81
         98      > JMP                                                      ->100
  231    99    >   ECHO                                                     'false+-+no+dob+provided'
  257   100    >   INIT_FCALL_BY_NAME                                       'curl_init'
        101        DO_FCALL                                      0  $83     
        102        ASSIGN                                                   !15, $83
  258   103        BOOL_NOT                                         ~85     !15
        104      > JMPZ                                                     ~85, ->107
  260   105    >   ECHO                                                     'Failed+to+initalise+cURL+object%0A'
        106      > JMP                                                      ->233
  262   107    >   INIT_FCALL                                               'urlencode'
        108        SEND_VAR                                                 !17
        109        DO_ICALL                                         $86     
        110        CONCAT                                           ~87     'https%3A%2F%2Fv3.lolagrove.com%2Fdata.ashx%3Fid%3D7941.1674%26paid_creditors_six_months%3DYes%26email%3D', $86
        111        CONCAT                                           ~88     ~87, '%26firstname%3D'
        112        INIT_FCALL                                               'urlencode'
        113        SEND_VAR                                                 !18
        114        DO_ICALL                                         $89     
        115        CONCAT                                           ~90     ~88, $89
        116        CONCAT                                           ~91     ~90, '%26lastname%3D'
        117        CONCAT                                           ~92     ~91, !19
        118        CONCAT                                           ~93     ~92, '%26address1%3D'
        119        INIT_FCALL                                               'urlencode'
        120        SEND_VAR                                                 !20
        121        DO_ICALL                                         $94     
        122        CONCAT                                           ~95     ~93, $94
        123        CONCAT                                           ~96     ~95, '%26towncity%3D'
        124        INIT_FCALL                                               'urlencode'
        125        SEND_VAR                                                 !21
        126        DO_ICALL                                         $97     
        127        CONCAT                                           ~98     ~96, $97
        128        CONCAT                                           ~99     ~98, '%26postcode%3D'
        129        INIT_FCALL                                               'urlencode'
        130        SEND_VAR                                                 !22
        131        DO_ICALL                                         $100    
        132        CONCAT                                           ~101    ~99, $100
        133        CONCAT                                           ~102    ~101, '%26telephone%3D'
        134        INIT_FCALL                                               'urlencode'
        135        SEND_VAR                                                 !23
        136        DO_ICALL                                         $103    
        137        CONCAT                                           ~104    ~102, $103
        138        CONCAT                                           ~105    ~104, '%26age%3D'
        139        INIT_FCALL                                               'urlencode'
        140        SEND_VAR                                                 !13
        141        DO_ICALL                                         $106    
        142        CONCAT                                           ~107    ~105, $106
        143        CONCAT                                           ~108    ~107, '%26debt_amount%3D'
        144        INIT_FCALL                                               'urlencode'
        145        SEND_VAR                                                 !24
        146        DO_ICALL                                         $109    
        147        CONCAT                                           ~110    ~108, $109
        148        CONCAT                                           ~111    ~110, '%26debt_with%3D'
        149        INIT_FCALL                                               'urlencode'
        150        SEND_VAR                                                 !25
        151        DO_ICALL                                         $112    
        152        CONCAT                                           ~113    ~111, $112
        153        CONCAT                                           ~114    ~113, '%26disposable_income%3D'
        154        INIT_FCALL                                               'urlencode'
        155        SEND_VAR                                                 !26
        156        DO_ICALL                                         $115    
        157        CONCAT                                           ~116    ~114, $115
        158        CONCAT                                           ~117    ~116, '%26iva_bankruptcy%3D'
        159        INIT_FCALL                                               'urlencode'
        160        SEND_VAR                                                 !27
        161        DO_ICALL                                         $118    
        162        CONCAT                                           ~119    ~117, $118
        163        CONCAT                                           ~120    ~119, '%26securekey%3D6e5af886-22e5-4f04-b97b-946539aa70f1'
        164        ASSIGN                                                   !16, ~120
  264   165        FETCH_CONSTANT                                   ~122    'CURLOPT_URL'
        166        INIT_ARRAY                                       ~123    !16, ~122
  265   167        FETCH_CONSTANT                                   ~124    'CURLOPT_RETURNTRANSFER'
  264   168        ADD_ARRAY_ELEMENT                                ~123    <true>, ~124
  266   169        FETCH_CONSTANT                                   ~125    'CURLOPT_SSL_VERIFYPEER'
  264   170        ADD_ARRAY_ELEMENT                                ~123    <true>, ~125
  267   171        FETCH_CONSTANT                                   ~126    'CURLOPT_SSL_VERIFYHOST'
  264   172        ADD_ARRAY_ELEMENT                                ~123    <true>, ~126
  268   173        FETCH_CONSTANT                                   ~127    'CURLOPT_FOLLOWLOCATION'
  264   174        ADD_ARRAY_ELEMENT                                ~123    <true>, ~127
  269   175        FETCH_CONSTANT                                   ~128    'CURLOPT_FAILONERROR'
  264   176        ADD_ARRAY_ELEMENT                                ~123    <true>, ~128
  263   177        ASSIGN                                                   !28, ~123
  272   178        INIT_FCALL_BY_NAME                                       'curl_setopt_array'
        179        SEND_VAR_EX                                              !15
        180        SEND_VAR_EX                                              !28
        181        DO_FCALL                                      0  $130    
        182        BOOL_NOT                                         ~131    $130
        183      > JMPZ                                                     ~131, ->186
  274   184    >   ECHO                                                     'Unable+to+set+properties+on+CURL+object%0A'
        185      > JMP                                                      ->233
  277   186    >   INIT_FCALL_BY_NAME                                       'curl_exec'
        187        SEND_VAR_EX                                              !15
        188        DO_FCALL                                      0  $132    
        189        ASSIGN                                                   !29, $132
  278   190        INIT_FCALL_BY_NAME                                       'curl_getinfo'
        191        SEND_VAR_EX                                              !15
        192        FETCH_CONSTANT                                   ~134    'CURLINFO_HTTP_CODE'
        193        SEND_VAL_EX                                              ~134
        194        DO_FCALL                                      0  $135    
        195        ASSIGN                                                   !30, $135
  279   196        TYPE_CHECK                                   12  ~137    !29
        197      > JMPZ_EX                                          ~137    ~137, ->200
        198    >   BOOL_NOT                                         ~138    !29
        199        BOOL                                             ~137    ~138
        200    > > JMPZ                                                     ~137, ->216
  282   201    >   ECHO                                                     'Error+from+CURL+in+livefeed%3A+%22'
        202        INIT_FCALL_BY_NAME                                       'curl_error'
        203        SEND_VAR_EX                                              !15
        204        DO_FCALL                                      0  $139    
        205        ECHO                                                     $139
        206        ECHO                                                     '%22+'
        207        INIT_FCALL                                               'var_export'
        208        INIT_FCALL_BY_NAME                                       'curl_getinfo'
        209        SEND_VAR_EX                                              !15
        210        DO_FCALL                                      0  $140    
        211        SEND_VAR                                                 $140
        212        SEND_VAL                                                 <true>
        213        DO_ICALL                                         $141    
        214        ECHO                                                     $141
        215      > JMP                                                      ->233
  283   216    >   IS_SMALLER_OR_EQUAL                              ~142    200, !30
        217      > JMPZ_EX                                          ~142    ~142, ->220
        218    >   IS_SMALLER_OR_EQUAL                              ~143    !30, 299
        219        BOOL                                             ~142    ~143
        220    >   BOOL_NOT                                         ~144    ~142
        221      > JMPZ                                                     ~144, ->227
  286   222    >   ROPE_INIT                                     3  ~146    'Error%3A+Tracking+URL+returned+HTTP+'
        223        ROPE_ADD                                      1  ~146    ~146, !30
        224        ROPE_END                                      2  ~145    ~146, '%0A'
        225        ECHO                                                     ~145
        226      > JMP                                                      ->233
  289   227    >   ECHO                                                     'Success%2C+response+was%3A%0A'
  290   228        INIT_FCALL                                               'var_export'
        229        SEND_VAR                                                 !29
        230        DO_ICALL                                         $148    
        231        ECHO                                                     $148
        232        ECHO                                                     '%0A'
  297   233    >   INIT_FCALL_BY_NAME                                       'curl_close'
        234        SEND_VAR_EX                                              !15
        235        DO_FCALL                                      0          
  300   236        ASSIGN_DIM                                               !31
        237        OP_DATA                                                  !29
  301   238        ASSIGN_DIM                                               !31
        239        OP_DATA                                                  !30
  302   240        ASSIGN_DIM                                               !31
        241        OP_DATA                                                  !16
  303   242        INIT_FCALL                                               'logresults'
        243        SEND_VAR                                                 !31
        244        SEND_VAL                                                 'Madison_financial'
        245        DO_FCALL                                      0          
  304   246      > RETURN                                                   1

Function mobileisvalid:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 65
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 64
Branch analysis from position: 62
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 64
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 65
2 jumps found. (Code = 43) Position 1 = 76, Position 2 = 80
Branch analysis from position: 76
2 jumps found. (Code = 43) Position 1 = 84, Position 2 = 86
Branch analysis from position: 84
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 86
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 80
filename:       /in/Kd2EH
function name:  MobileIsValid
number of ops:  88
compiled vars:  !0 = $telephone, !1 = $d8username, !2 = $d8password, !3 = $mobile_tbl, !4 = $con_ptr, !5 = $three_months_ago, !6 = $sql, !7 = $res, !8 = $numrows, !9 = $row, !10 = $params, !11 = $options, !12 = $client, !13 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   52     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   54     3        BIND_GLOBAL                                              !3, 'mobile_tbl'
          4        BIND_GLOBAL                                              !4, 'con_ptr'
   56     5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          7        INIT_FCALL                                               'mktime'
          8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'H'
         10        DO_ICALL                                         $14     
         11        SEND_VAR                                                 $14
         12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'i'
         14        DO_ICALL                                         $15     
         15        SEND_VAR                                                 $15
         16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 's'
         18        DO_ICALL                                         $16     
         19        SEND_VAR                                                 $16
         20        INIT_FCALL                                               'date'
         21        SEND_VAL                                                 'm'
         22        DO_ICALL                                         $17     
         23        SUB                                              ~18     $17, 3
         24        SEND_VAL                                                 ~18
         25        INIT_FCALL                                               'date'
         26        SEND_VAL                                                 'd'
         27        DO_ICALL                                         $19     
         28        SEND_VAR                                                 $19
         29        INIT_FCALL                                               'date'
         30        SEND_VAL                                                 'Y'
         31        DO_ICALL                                         $20     
         32        SEND_VAR                                                 $20
         33        DO_ICALL                                         $21     
         34        SEND_VAR                                                 $21
         35        DO_ICALL                                         $22     
         36        ASSIGN                                                   !5, $22
   57    37        CONCAT                                           ~24     'SELECT+%2A+FROM+', !3
         38        CONCAT                                           ~25     ~24, '+WHERE+Number+%3D+%27'
         39        CONCAT                                           ~26     ~25, !0
         40        CONCAT                                           ~27     ~26, '%27+AND+dos+%3E+%27'
         41        CONCAT                                           ~28     ~27, !5
         42        CONCAT                                           ~29     ~28, '%27'
         43        ASSIGN                                                   !6, ~29
   59    44        INIT_FCALL_BY_NAME                                       'mysql_query'
         45        SEND_VAR_EX                                              !6
         46        SEND_VAR_EX                                              !4
         47        DO_FCALL                                      0  $31     
         48        ASSIGN                                                   !7, $31
   60    49        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
         50        SEND_VAR_EX                                              !7
         51        DO_FCALL                                      0  $33     
         52        ASSIGN                                                   !8, $33
   61    53        IS_SMALLER                                               0, !8
         54      > JMPZ                                                     ~35, ->65
   63    55    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         56        SEND_VAR_EX                                              !7
         57        DO_FCALL                                      0  $36     
         58        ASSIGN                                                   !9, $36
   64    59        FETCH_DIM_R                                      ~38     !9, 'Result'
         60        IS_EQUAL                                                 ~38, 'Success'
         61      > JMPZ                                                     ~39, ->64
   66    62    > > RETURN                                                   <true>
         63*       JMP                                                      ->65
   69    64    > > RETURN                                                   <false>
   73    65    >   INIT_ARRAY                                       ~40     !1, 'username'
   74    66        ADD_ARRAY_ELEMENT                                ~40     !2, 'password'
   75    67        ADD_ARRAY_ELEMENT                                ~40     !0, 'number'
   76    68        ADD_ARRAY_ELEMENT                                ~40     !11, 'options'
   72    69        ASSIGN                                                   !10, ~40
   78    70        NEW                                              $42     'SoapClient'
         71        SEND_VAL_EX                                              'http%3A%2F%2Fwebservices.data-8.co.uk%2FMobileValidation.asmx%3FWSDL'
         72        DO_FCALL                                      0          
         73        ASSIGN                                                   !12, $42
   79    74        IS_EQUAL                                                 !8, 0
        

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
270.48 ms | 1435 KiB | 30 Q