3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once("include.php"); if(!xml2php("Email")) { $smarty->assign('error_msg',"Error in language file"); } //Get current password $sql = mysql_query("SELECT * FROM ".PRFX."EMAIL_CONNECTOR_SETTINGS"); $sql=mysql_fetch_array($sql); $eml_account_pword=$sql['EMAIL_ACCOUNT_PASSWORD']; //Get password from form $eml_pass = $VAR['email_account_password']; //Encrypt the password $enc_pass = encrypt_decrypt('encrypt', $eml_pass); if($eml_account_pword == $eml_pass){ $eml_acc_pass = $eml_account_pword; } else { $eml_acc_pass = $enc_pass; } if ($VAR["eml_settings"]) { $sql = 'UPDATE '.PRFX.'EMAIL_CONNECTOR_SETTINGS SET EMAIL_SERVER = '. $db->qstr( $VAR['email_server']) .', EMAIL_SERVER_PORT = '. $db->qstr( $VAR['email_server_port']) .', CONNECTION_TYPE = '. $db->qstr( $VAR['connection_type']) .', EMAIL_ACCOUNT = '. $db->qstr( $VAR['email_account']) .', EMAIL_ACCOUNT_USERNAME = '. $db->qstr( $VAR['email_account_username']) .', EMAIL_ACCOUNT_PASSWORD = '. $db->qstr($eml_acc_pass) .', SERVICE_CONTROL = '. $db->qstr( $VAR['service_control']) .', ENABLE_EMAIL_FLOOD_CONTROL = '. $db->qstr( $VAR['enable_email_flood_control']) .', FETCH_EMAIL_FROM = '. $db->qstr( $VAR['fetch_email_from']) .', EMAIL_FLOOD_CONTROL = '. $db->qstr( $VAR['email_flood_control']); if(!$result = $db->Execute($sql)) { force_page('core', 'error&error_msg=MySQL Error: '.$db->ErrorMsg().'&menu=1&type=database'); } else { force_page('email', 'email_settings&page_title=Email | Email Settings'); exit; } } /* Get Email Settings */ $sql = 'SELECT * FROM '.PRFX.'EMAIL_CONNECTOR_SETTINGS'; if(!$result = $db->Execute($sql)) { force_page('core', 'error&error_msg=MySQL Error: '.$db->ErrorMsg().'&menu=1&type=database'); exit; } $email_settings = $result->GetArray(); $smarty->assign('email_settings', $email_settings); $smarty->display('email'.SEP.'email_settings.tpl'); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 128
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 114, Position 2 = 123
Branch analysis from position: 114
1 jumps found. (Code = 42) Position 1 = 128
Branch analysis from position: 128
2 jumps found. (Code = 43) Position 1 = 138, Position 2 = 147
Branch analysis from position: 138
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 147
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 123
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 128
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 128
Branch analysis from position: 37
Branch analysis from position: 128
Branch analysis from position: 10
filename:       /in/LegRN
function name:  (null)
number of ops:  161
compiled vars:  !0 = $smarty, !1 = $sql, !2 = $eml_account_pword, !3 = $eml_pass, !4 = $VAR, !5 = $enc_pass, !6 = $eml_acc_pass, !7 = $db, !8 = $result, !9 = $email_settings
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'include.php', REQUIRE_ONCE
    3     1        INIT_FCALL_BY_NAME                                       'xml2php'
          2        SEND_VAL_EX                                              'Email'
          3        DO_FCALL                                      0  $11     
          4        BOOL_NOT                                         ~12     $11
          5      > JMPZ                                                     ~12, ->10
    4     6    >   INIT_METHOD_CALL                                         !0, 'assign'
          7        SEND_VAL_EX                                              'error_msg'
          8        SEND_VAL_EX                                              'Error+in+language+file'
          9        DO_FCALL                                      0          
    9    10    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         11        FETCH_CONSTANT                                   ~14     'PRFX'
         12        CONCAT                                           ~15     'SELECT+%2A+FROM+', ~14
         13        CONCAT                                           ~16     ~15, 'EMAIL_CONNECTOR_SETTINGS'
         14        SEND_VAL_EX                                              ~16
         15        DO_FCALL                                      0  $17     
         16        ASSIGN                                                   !1, $17
   10    17        INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0  $19     
         20        ASSIGN                                                   !1, $19
   11    21        FETCH_DIM_R                                      ~21     !1, 'EMAIL_ACCOUNT_PASSWORD'
         22        ASSIGN                                                   !2, ~21
   14    23        FETCH_DIM_R                                      ~23     !4, 'email_account_password'
         24        ASSIGN                                                   !3, ~23
   17    25        INIT_FCALL_BY_NAME                                       'encrypt_decrypt'
         26        SEND_VAL_EX                                              'encrypt'
         27        SEND_VAR_EX                                              !3
         28        DO_FCALL                                      0  $25     
         29        ASSIGN                                                   !5, $25
   19    30        IS_EQUAL                                                 !2, !3
         31      > JMPZ                                                     ~27, ->34
   20    32    >   ASSIGN                                                   !6, !2
         33      > JMP                                                      ->35
   24    34    >   ASSIGN                                                   !6, !5
   27    35    >   FETCH_DIM_R                                      ~30     !4, 'eml_settings'
         36      > JMPZ                                                     ~30, ->128
   29    37    >   FETCH_CONSTANT                                   ~31     'PRFX'
         38        CONCAT                                           ~32     'UPDATE+', ~31
         39        CONCAT                                           ~33     ~32, 'EMAIL_CONNECTOR_SETTINGS+SET%0A%0AEMAIL_SERVER%09%09%3D+'
   31    40        INIT_METHOD_CALL                                         !7, 'qstr'
         41        CHECK_FUNC_ARG                                           
         42        FETCH_DIM_FUNC_ARG                               $34     !4, 'email_server'
         43        SEND_FUNC_ARG                                            $34
         44        DO_FCALL                                      0  $35     
         45        CONCAT                                           ~36     ~33, $35
         46        CONCAT                                           ~37     ~36, '%2C%0AEMAIL_SERVER_PORT%09%3D+'
   32    47        INIT_METHOD_CALL                                         !7, 'qstr'
         48        CHECK_FUNC_ARG                                           
         49        FETCH_DIM_FUNC_ARG                               $38     !4, 'email_server_port'
         50        SEND_FUNC_ARG                                            $38
         51        DO_FCALL                                      0  $39     
         52        CONCAT                                           ~40     ~37, $39
         53        CONCAT                                           ~41     ~40, '%2C%0ACONNECTION_TYPE%09%09%3D+'
   33    54        INIT_METHOD_CALL                                         !7, 'qstr'
         55        CHECK_FUNC_ARG                                           
         56        FETCH_DIM_FUNC_ARG                               $42     !4, 'connection_type'
         57        SEND_FUNC_ARG                                            $42
         58        DO_FCALL                                      0  $43     
         59        CONCAT                                           ~44     ~41, $43
         60        CONCAT                                           ~45     ~44, '%2C%0AEMAIL_ACCOUNT+%09%3D+'
   34    61        INIT_METHOD_CALL                                         !7, 'qstr'
         62        CHECK_FUNC_ARG                                           
         63        FETCH_DIM_FUNC_ARG                               $46     !4, 'email_account'
         64        SEND_FUNC_ARG                                            $46
         65        DO_FCALL                                      0  $47     
         66        CONCAT                                           ~48     ~45, $47
         67        CONCAT                                           ~49     ~48, '%2C%0AEMAIL_ACCOUNT_USERNAME+%09%09%3D+'
   35    68        INIT_METHOD_CALL                                         !7, 'qstr'
         69        CHECK_FUNC_ARG                                           
         70        FETCH_DIM_FUNC_ARG                               $50     !4, 'email_account_username'
         71        SEND_FUNC_ARG                                            $50
         72        DO_FCALL                                      0  $51     
         73        CONCAT                                           ~52     ~49, $51
         74        CONCAT                                           ~53     ~52, '%2C%0AEMAIL_ACCOUNT_PASSWORD%09%09%3D+'
   36    75        INIT_METHOD_CALL                                         !7, 'qstr'
         76        SEND_VAR_EX                                              !6
         77        DO_FCALL                                      0  $54     
         78        CONCAT                                           ~55     ~53, $54
         79        CONCAT                                           ~56     ~55, '%2C%0ASERVICE_CONTROL%09%09%3D+'
   37    80        INIT_METHOD_CALL                                         !7, 'qstr'
         81        CHECK_FUNC_ARG                                           
         82        FETCH_DIM_FUNC_ARG                               $57     !4, 'service_control'
         83        SEND_FUNC_ARG                                            $57
         84        DO_FCALL                                      0  $58     
         85        CONCAT                                           ~59     ~56, $58
         86        CONCAT                                           ~60     ~59, '%2C%0AENABLE_EMAIL_FLOOD_CONTROL%09%3D+'
   38    87        INIT_METHOD_CALL                                         !7, 'qstr'
         88        CHECK_FUNC_ARG                                           
         89        FETCH_DIM_FUNC_ARG                               $61     !4, 'enable_email_flood_control'
         90        SEND_FUNC_ARG                                            $61
         91        DO_FCALL                                      0  $62     
         92        CONCAT                                           ~63     ~60, $62
         93        CONCAT                                           ~64     ~63, '%2C%0AFETCH_EMAIL_FROM%09%3D+'
   39    94        INIT_METHOD_CALL                                         !7, 'qstr'
         95        CHECK_FUNC_ARG                                           
         96        FETCH_DIM_FUNC_ARG                               $65     !4, 'fetch_email_from'
         97        SEND_FUNC_ARG                                            $65
         98        DO_FCALL                                      0  $66     
         99        CONCAT                                           ~67     ~64, $66
        100        CONCAT                                           ~68     ~67, '%2C%0AEMAIL_FLOOD_CONTROL%09%09%3D+'
   40   101        INIT_METHOD_CALL                                         !7, 'qstr'
        102        CHECK_FUNC_ARG                                           
        103        FETCH_DIM_FUNC_ARG                               $69     !4, 'email_flood_control'
        104        SEND_FUNC_ARG                                            $69
        105        DO_FCALL                                      0  $70     
        106        CONCAT                                           ~71     ~68, $70
   29   107        ASSIGN                                                   !1, ~71
   43   108        INIT_METHOD_CALL                                         !7, 'Execute'
        109        SEND_VAR_EX                                              !1
        110        DO_FCALL                                      0  $73     
        111        ASSIGN                                           ~74     !8, $73
        112        BOOL_NOT                                         ~75     ~74
        113      > JMPZ                                                     ~75, ->123
   44   114    >   INIT_FCALL_BY_NAME                                       'force_page'
        115        SEND_VAL_EX                                              'core'
        116        INIT_METHOD_CALL                                         !7, 'ErrorMsg'
        117        DO_FCALL                                      0  $76     
        118        CONCAT                                           ~77     'error%26error_msg%3DMySQL+Error%3A+', $76
        119        CONCAT                                           ~78     ~77, '%26menu%3D1%26type%3Ddatabase'
        120        SEND_VAL_EX                                              ~78
        121        DO_FCALL                                      0          
        122      > JMP                                                      ->128
   46   123    >   INIT_FCALL_BY_NAME                                       'force_page'
        124        SEND_VAL_EX                                              'email'
        125        SEND_VAL_EX                                              'email_settings%26page_title%3DEmail+%7C+Email+Settings'
        126        DO_FCALL                                      0          
   47   127      > EXIT                                                     
   53   128    >   FETCH_CONSTANT                                   ~81     'PRFX'
        129        CONCAT                                           ~82     'SELECT+%2A+FROM+', ~81
        130        CONCAT                                           ~83     ~82, 'EMAIL_CONNECTOR_SETTINGS'
        131        ASSIGN                                                   !1, ~83
   55   132        INIT_METHOD_CALL                                         !7, 'Execute'
        133        SEND_VAR_EX                                              !1
        134        DO_FCALL                                      0  $85     
        135        ASSIGN                                           ~86     !8, $85
        136        BOOL_NOT                                         ~87     ~86
        137      > JMPZ                                                     ~87, ->147
   56   138    >   INIT_FCALL_BY_NAME                                       'force_page'
        139        SEND_VAL_EX                                              'core'
        140        INIT_METHOD_CALL                                         !7, 'ErrorMsg'
        141        DO_FCALL                                      0  $88     
        142        CONCAT                                           ~89     'error%26error_msg%3DMySQL+Error%3A+', $88
        143        CONCAT                                           ~90     ~89, '%26menu%3D1%26type%3Ddatabase'
        144        SEND_VAL_EX                                              ~90
        145        DO_FCALL                                      0          
   57   146      > EXIT                                                     
   59   147    >   INIT_METHOD_CALL                                         !8, 'GetArray'
        148        DO_FCALL                                      0  $92     
        149        ASSIGN                                                   !9, $92
   60   150        INIT_METHOD_CALL                                         !0, 'assign'
        151        SEND_VAL_EX                                              'email_settings'
        152        SEND_VAR_EX                                              !9
        153        DO_FCALL                                      0          
   61   154        INIT_METHOD_CALL                                         !0, 'display'
        155        FETCH_CONSTANT                                   ~95     'SEP'
        156        CONCAT                                           ~96     'email', ~95
        157        CONCAT                                           ~97     ~96, 'email_settings.tpl'
        158        SEND_VAL_EX                                              ~97
        159        DO_FCALL                                      0          
   65   160      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.35 ms | 1407 KiB | 13 Q