3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*************** PHP LOGIN SCRIPT V 2.0********************* ***************** Auto Approve Version********************** (c) Balakrishnan 2009. All Rights Reserved Usage: This script can be used FREE of charge for any commercial or personal projects. Limitations: - This script cannot be sold. - This script may not be provided for download except on its original site. For further usage, please contact me. ***********************************************************/ include 'dbc.php'; $err = array(); /********** formulier verzonden***************************/ if($_SERVER['REQUEST_METHOD']=="POST") { echo "Je formulier is via POST verstuurd"; } else { echo "Je formulier is niet verstuurd. Hier kan je bijvoorbeeld je formulier tonen"; } if($_SERVER['REQUEST_METHOD']=="POST") { /******************* Filtering/Sanitizing Input ***************************** This code filters harmful script code and escapes data of all POST data from the user submitted form. *****************************************************************/ foreach($_POST as $key => $value) { $data[$key] = filter($value); } /********************* RECAPTCHA CHECK ******************************* This code checks and validates recaptcha ****************************************************************/ /** * Sample PHP code to use reCAPTCHA V2. * * @copyright Copyright (c) 2014, Google Inc. * @link http://www.google.com/recaptcha * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ require_once "recaptchalib.php"; // Register API keys at https://www.google.com/recaptcha/admin $siteKey = "*********************************ui"; $secret = "**********************************rS"; // reCAPTCHA supported 40+ languages listed here: https://developers.google.com/recaptcha/docs/language $lang = "en"; // The response from reCAPTCHA $resp = null; // The error code from reCAPTCHA, if any $error = null; $reCaptcha = new ReCaptcha($secret); // Was there a reCAPTCHA response? if ($_POST["g-recaptcha-response"]) { $resp = $reCaptcha->verifyResponse( $_SERVER["REMOTE_ADDR"], $_POST["g-recaptcha-response"] ); } /************************ SERVER SIDE VALIDATION **************************************/ /********** This validation is useful if javascript is disabled in the browswer ***/ if(empty($data['full_name']) || strlen($data['full_name']) < 4) { $err[] = "ERROR - Invalid name. Please enter atleast 3 or more characters for your name"; //header("Location: register.php?msg=$err"); //exit(); } // Validate User Name if (!isUserID($data['user_name'])) { $err[] = "ERROR - Invalid user name. It can contain alphabet, number and underscore."; //header("Location: register.php?msg=$err"); //exit(); } // Validate Email if(!isEmail($data['usr_email'])) { $err[] = "ERROR - Invalid email address."; //header("Location: register.php?msg=$err"); //exit(); } // Check User Passwords if (!checkPwd($data['pwd'],$data['pwd2'])) { $err[] = "ERROR - Invalid Password or mismatch. Enter 5 chars or more"; //header("Location: register.php?msg=$err"); //exit(); } // ReCapcha check if ($resp != null && $resp->success) { echo "You got it!"; } $user_ip = $_SERVER['REMOTE_ADDR']; // stores sha1 of password $sha1pass = PwdHash($data['pwd']); // Automatically collects the hostname or domain like example.com) $host = $_SERVER['HTTP_HOST']; $host_upper = strtoupper($host); $path = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); // Generates activation code simple 4 digit number $activ_code = rand(1000,9999); $usr_email = $data['usr_email']; $user_name = $data['user_name']; /************ USER EMAIL CHECK ************************************ This code does a second check on the server side if the email already exists. It queries the database and if it has any existing email it throws user email already exists *******************************************************************/ $rs_duplicate = mysql_query("select count(*) as total from users where user_email='$usr_email' OR user_name='$user_name'") or die(mysql_error()); list($total) = mysql_fetch_row($rs_duplicate); if ($total > 0) { $err[] = "ERROR - The username/email already exists. Please try again with different username and email."; //header("Location: register.php?msg=$err"); //exit(); } /***************************************************************************/ if(empty($err)) { $sql_insert = "INSERT into `users` (`full_name`,`user_email`,`pwd`,`address`,`tel`,`fax`,`website`,`date`,`users_ip`,`activation_code`,`country`,`user_name` ) VALUES ('$data[full_name]','$usr_email','$sha1pass','$data[address]','$data[tel]','$data[fax]','$data[web]' ,now(),'$user_ip','$activ_code','$data[country]','$user_name' ) "; mysql_query($sql_insert,$link) or die("Insertion Failed:" . mysql_error()); $user_id = mysql_insert_id($link); $md5_id = md5($user_id); mysql_query("update users set md5_id='$md5_id' where id='$user_id'"); // echo "<h3>Thank You</h3> We received your submission."; if($user_registration) { $a_link = " *****ACTIVATION LINK*****\n http://$host$path/activate.php?user=$md5_id&activ_code=$activ_code "; } else { $a_link = "Your account is *PENDING APPROVAL* and will be soon activated the administrator. "; } $message = "Hello \n Thank you for registering with us. Here are your login details...\n User ID: $user_name Email: $usr_email \n Passwd: $data[pwd] \n $a_link Thank You Administrator $host_upper ______________________________________________________ THIS IS AN AUTOMATED RESPONSE. ***DO NOT RESPOND TO THIS EMAIL**** "; mail($usr_email, "Login Details", $message, "From: \"Member Registration\" <mijn Mailadrss>\r\n" . "X-Mailer: PHP/" . phpversion()); header("Location: thankyou.php"); exit(); } } ?> <html> <head> <title>PHP Login :: Free Registration/Signup Form</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script language="JavaScript" type="text/javascript" src="js/jquery.validate.js"></script> <script> $(document).ready(function(){ $.validator.addMethod("username", function(value, element) { return this.optional(element) || /^[a-z0-9\_]+$/i.test(value); }, "Username must contain only letters, numbers, or underscore."); $("#regForm").validate(); }); </script> <link href="styles.css" rel="stylesheet" type="text/css"> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="5" class="main"> <tr> <td colspan="3">&nbsp;</td> </tr> <tr> <td width="160" valign="top"><p>&nbsp;</p> <p>&nbsp; </p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p></td> <td width="732" valign="top"><p> <?php if (isset($_GET['done'])) { ?> <h2>Thank you</h2> Your registration is now complete and you can <a href="login.php">login here</a>"; <?php exit(); } ?></p> <h3 class="titlehdr">Free Registration / Signup</h3> <p>Please register a free account, before you can start posting your ads. Registration is quick and free! Please note that fields marked <span class="required">*</span> are required.</p> <?php if(!empty($err)) { echo "<div class=\"msg\">"; foreach ($err as $e) { echo "* $e <br>"; } echo "</div>"; } ?> <br> <form action="register.php" method="post" name="regForm" id="regForm" > <table width="95%" border="0" cellpadding="3" cellspacing="3" class="forms"> <tr> <td colspan="2">Your Name / Company Name<span class="required"><font color="#CC0000">*</font></span><br> <input name="full_name" type="text" id="full_name" size="40" class="required"></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2">Contact Address (with ZIP)<span class="required"><font color="#CC0000">*</font></span><br> <textarea name="address" cols="40" rows="4" id="address" class="required"></textarea> <span class="example">VALID CONTACT DETAILS</span> </td> </tr> <tr> <td>Country <font color="#CC0000">*</font></span></td> </tr> <tr> <td>Phone<span class="required"><font color="#CC0000">*</font></span> </td> <td><input name="tel" type="text" id="tel" class="required"></td> </tr> <tr> <td>Fax </td> <td><input name="fax" type="text" id="fax"> </td> </tr> <tr> <td>Website </td> <td><input name="web" type="text" id="web" class="optional defaultInvalid url"> <span class="example">http://www.example.com</span></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2"><h4><strong>Login Details</strong></h4></td> </tr> <tr> <td>Username<span class="required"><font color="#CC0000">*</font></span></td> <td><input name="user_name" type="text" id="user_name" class="required username" minlength="5" > <input name="btnAvailable" type="button" id="btnAvailable" onclick='$("#checkid").html("Please wait..."); $.get("checkuser.php",{ cmd: "check", user: $("#user_name").val() } ,function(data){ $("#checkid").html(data); });' value="Check Availability"> <span style="color:red; font: bold 12px verdana; " id="checkid" ></span> </td> </tr> <tr> <td>Your Email<span class="required"><font color="#CC0000">*</font></span> </td> <td><input name="usr_email" type="text" id="usr_email3" class="required email"> <span class="example">** Valid email please..</span></td> </tr> <tr> <td>Password<span class="required"><font color="#CC0000">*</font></span> </td> <td><input name="pwd" type="password" class="required password" minlength="5" id="pwd"> <span class="example">** 5 chars minimum..</span></td> </tr> <tr> <td>Retype Password<span class="required"><font color="#CC0000">*</font></span> </td> <td><input name="pwd2" id="pwd2" class="required password" type="password" minlength="5" equalto="#pwd"></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td width="22%"><strong>Image Verification </strong></td> <td width="78%"> <div class="g-recaptcha" data-sitekey="<?php echo $siteKey;?>"></div> <script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=<?php echo $lang;?>"> </script> <br/> </td> </tr> </table> <p align="center"> <input name="doRegister" type="submit" id="doRegister" value="Register"> </p> </form> <p align="right"><span style="font: normal 9px verdana">Powered by <a href="http://php-login-script.com">PHP Login Script v2.0</a></span></p> </td> <td width="196" valign="top">&nbsp;</td> </tr> <tr> <td colspan="3">&nbsp;</td> </tr> </table> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 248
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 48
Branch analysis from position: 37
2 jumps found. (Code = 47) Position 1 = 50, Position 2 = 54
Branch analysis from position: 50
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 57
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 66
Branch analysis from position: 64
2 jumps found. (Code = 43) Position 1 = 73, Position 2 = 75
Branch analysis from position: 73
2 jumps found. (Code = 43) Position 1 = 85, Position 2 = 87
Branch analysis from position: 85
2 jumps found. (Code = 46) Position 1 = 89, Position 2 = 91
Branch analysis from position: 89
2 jumps found. (Code = 43) Position 1 = 92, Position 2 = 93
Branch analysis from position: 92
2 jumps found. (Code = 47) Position 1 = 138, Position 2 = 142
Branch analysis from position: 138
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 142
2 jumps found. (Code = 43) Position 1 = 150, Position 2 = 152
Branch analysis from position: 150
2 jumps found. (Code = 43) Position 1 = 154, Position 2 = 248
Branch analysis from position: 154
2 jumps found. (Code = 47) Position 1 = 189, Position 2 = 194
Branch analysis from position: 189
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 194
2 jumps found. (Code = 43) Position 1 = 211, Position 2 = 221
Branch analysis from position: 211
1 jumps found. (Code = 42) Position 1 = 222
Branch analysis from position: 222
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 221
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 248
2 jumps found. (Code = 43) Position 1 = 252, Position 2 = 254
Branch analysis from position: 252
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 254
2 jumps found. (Code = 43) Position 1 = 258, Position 2 = 268
Branch analysis from position: 258
2 jumps found. (Code = 77) Position 1 = 260, Position 2 = 266
Branch analysis from position: 260
2 jumps found. (Code = 78) Position 1 = 261, Position 2 = 266
Branch analysis from position: 261
1 jumps found. (Code = 42) Position 1 = 260
Branch analysis from position: 260
Branch analysis from position: 266
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 266
Branch analysis from position: 268
Branch analysis from position: 152
Branch analysis from position: 93
Branch analysis from position: 91
Branch analysis from position: 87
Branch analysis from position: 75
Branch analysis from position: 66
Branch analysis from position: 57
Branch analysis from position: 54
Branch analysis from position: 48
Branch analysis from position: 23
Branch analysis from position: 248
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 248
Branch analysis from position: 13
Branch analysis from position: 248
filename:       /in/9Wi2S
function name:  (null)
number of ops:  274
compiled vars:  !0 = $err, !1 = $value, !2 = $key, !3 = $data, !4 = $siteKey, !5 = $secret, !6 = $lang, !7 = $resp, !8 = $error, !9 = $reCaptcha, !10 = $user_ip, !11 = $sha1pass, !12 = $host, !13 = $host_upper, !14 = $path, !15 = $activ_code, !16 = $usr_email, !17 = $user_name, !18 = $rs_duplicate, !19 = $total, !20 = $sql_insert, !21 = $link, !22 = $user_id, !23 = $md5_id, !24 = $user_registration, !25 = $a_link, !26 = $message, !27 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INCLUDE_OR_EVAL                                          'dbc.php', INCLUDE
   19     1        ASSIGN                                                   !0, <array>
   25     2        FETCH_R                      global              ~30     '_SERVER'
          3        FETCH_DIM_R                                      ~31     ~30, 'REQUEST_METHOD'
          4        IS_EQUAL                                                 ~31, 'POST'
          5      > JMPZ                                                     ~32, ->8
   26     6    >   ECHO                                                     'Je+formulier+is+via+POST+verstuurd'
   25     7      > JMP                                                      ->9
   28     8    >   ECHO                                                     'Je+formulier+is+niet+verstuurd.+Hier+kan+je+bijvoorbeeld+je+formulier+tonen'
   33     9    >   FETCH_R                      global              ~33     '_SERVER'
         10        FETCH_DIM_R                                      ~34     ~33, 'REQUEST_METHOD'
         11        IS_EQUAL                                                 ~34, 'POST'
         12      > JMPZ                                                     ~35, ->248
   41    13    >   FETCH_R                      global              ~36     '_POST'
         14      > FE_RESET_R                                       $37     ~36, ->23
         15    > > FE_FETCH_R                                       ~38     $37, !1, ->23
         16    >   ASSIGN                                                   !2, ~38
   42    17        INIT_FCALL_BY_NAME                                       'filter'
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0  $41     
         20        ASSIGN_DIM                                               !3, !2
         21        OP_DATA                                                  $41
   41    22      > JMP                                                      ->15
         23    >   FE_FREE                                                  $37
   72    24        INCLUDE_OR_EVAL                                          'recaptchalib.php', REQUIRE_ONCE
   74    25        ASSIGN                                                   !4, '%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2Aui'
   75    26        ASSIGN                                                   !5, '%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2ArS'
   77    27        ASSIGN                                                   !6, 'en'
   79    28        ASSIGN                                                   !7, null
   81    29        ASSIGN                                                   !8, null
   82    30        NEW                                              $48     'ReCaptcha'
         31        SEND_VAR_EX                                              !5
         32        DO_FCALL                                      0          
         33        ASSIGN                                                   !9, $48
   84    34        FETCH_R                      global              ~51     '_POST'
         35        FETCH_DIM_R                                      ~52     ~51, 'g-recaptcha-response'
         36      > JMPZ                                                     ~52, ->48
   85    37    >   INIT_METHOD_CALL                                         !9, 'verifyResponse'
         38        CHECK_FUNC_ARG                                           
   86    39        FETCH_FUNC_ARG               global              $53     '_SERVER'
         40        FETCH_DIM_FUNC_ARG                               $54     $53, 'REMOTE_ADDR'
         41        SEND_FUNC_ARG                                            $54
         42        CHECK_FUNC_ARG                                           
   87    43        FETCH_FUNC_ARG               global              $55     '_POST'
         44        FETCH_DIM_FUNC_ARG                               $56     $55, 'g-recaptcha-response'
         45        SEND_FUNC_ARG                                            $56
   85    46        DO_FCALL                                      0  $57     
         47        ASSIGN                                                   !7, $57
   94    48    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~59     !3, 'full_name'
         49      > JMPNZ_EX                                         ~59     ~59, ->54
         50    >   FETCH_DIM_R                                      ~60     !3, 'full_name'
         51        STRLEN                                           ~61     ~60
         52        IS_SMALLER                                       ~62     ~61, 4
         53        BOOL                                             ~59     ~62
         54    > > JMPZ                                                     ~59, ->57
   96    55    >   ASSIGN_DIM                                               !0
         56        OP_DATA                                                  'ERROR+-+Invalid+name.+Please+enter+atleast+3+or+more+characters+for+your+name'
  102    57    >   INIT_FCALL_BY_NAME                                       'isUserID'
         58        CHECK_FUNC_ARG                                           
         59        FETCH_DIM_FUNC_ARG                               $64     !3, 'user_name'
         60        SEND_FUNC_ARG                                            $64
         61        DO_FCALL                                      0  $65     
         62        BOOL_NOT                                         ~66     $65
         63      > JMPZ                                                     ~66, ->66
  103    64    >   ASSIGN_DIM                                               !0
         65        OP_DATA                                                  'ERROR+-+Invalid+user+name.+It+can+contain+alphabet%2C+number+and+underscore.'
  109    66    >   INIT_FCALL_BY_NAME                                       'isEmail'
         67        CHECK_FUNC_ARG                                           
         68        FETCH_DIM_FUNC_ARG                               $68     !3, 'usr_email'
         69        SEND_FUNC_ARG                                            $68
         70        DO_FCALL                                      0  $69     
         71        BOOL_NOT                                         ~70     $69
         72      > JMPZ                                                     ~70, ->75
  110    73    >   ASSIGN_DIM                                               !0
         74        OP_DATA                                                  'ERROR+-+Invalid+email+address.'
  115    75    >   INIT_FCALL_BY_NAME                                       'checkPwd'
         76        CHECK_FUNC_ARG                                           
         77        FETCH_DIM_FUNC_ARG                               $72     !3, 'pwd'
         78        SEND_FUNC_ARG                                            $72
         79        CHECK_FUNC_ARG                                           
         80        FETCH_DIM_FUNC_ARG                               $73     !3, 'pwd2'
         81        SEND_FUNC_ARG                                            $73
         82        DO_FCALL                                      0  $74     
         83        BOOL_NOT                                         ~75     $74
         84      > JMPZ                                                     ~75, ->87
  116    85    >   ASSIGN_DIM                                               !0
         86        OP_DATA                                                  'ERROR+-+Invalid+Password+or+mismatch.+Enter+5+chars+or+more'
  121    87    >   IS_NOT_EQUAL                                     ~77     !7, null
         88      > JMPZ_EX                                          ~77     ~77, ->91
         89    >   FETCH_OBJ_R                                      ~78     !7, 'success'
         90        BOOL                                             ~77     ~78
         91    > > JMPZ                                                     ~77, ->93
  122    92    >   ECHO                                                     'You+got+it%21'
  126    93    >   FETCH_R                      global              ~79     '_SERVER'
         94        FETCH_DIM_R                                      ~80     ~79, 'REMOTE_ADDR'
         95        ASSIGN                                                   !10, ~80
  129    96        INIT_FCALL_BY_NAME                                       'PwdHash'
         97        CHECK_FUNC_ARG                                           
         98        FETCH_DIM_FUNC_ARG                               $82     !3, 'pwd'
         99        SEND_FUNC_ARG                                            $82
        100        DO_FCALL                                      0  $83     
        101        ASSIGN                                                   !11, $83
  132   102        FETCH_R                      global              ~85     '_SERVER'
        103        FETCH_DIM_R                                      ~86     ~85, 'HTTP_HOST'
        104        ASSIGN                                                   !12, ~86
  133   105        INIT_FCALL                                               'strtoupper'
        106        SEND_VAR                                                 !12
        107        DO_ICALL                                         $88     
        108        ASSIGN                                                   !13, $88
  134   109        INIT_FCALL                                               'rtrim'
        110        INIT_FCALL                                               'dirname'
        111        FETCH_R                      global              ~90     '_SERVER'
        112        FETCH_DIM_R                                      ~91     ~90, 'PHP_SELF'
        113        SEND_VAL                                                 ~91
        114        DO_ICALL                                         $92     
        115        SEND_VAR                                                 $92
        116        SEND_VAL                                                 '%2F%5C'
        117        DO_ICALL                                         $93     
        118        ASSIGN                                                   !14, $93
  137   119        INIT_FCALL                                               'rand'
        120        SEND_VAL                                                 1000
        121        SEND_VAL                                                 9999
        122        DO_ICALL                                         $95     
        123        ASSIGN                                                   !15, $95
  139   124        FETCH_DIM_R                                      ~97     !3, 'usr_email'
        125        ASSIGN                                                   !16, ~97
  140   126        FETCH_DIM_R                                      ~99     !3, 'user_name'
        127        ASSIGN                                                   !17, ~99
  147   128        INIT_FCALL_BY_NAME                                       'mysql_query'
        129        ROPE_INIT                                     5  ~102    'select+count%28%2A%29+as+total+from+users+where+user_email%3D%27'
        130        ROPE_ADD                                      1  ~102    ~102, !16
        131        ROPE_ADD                                      2  ~102    ~102, '%27+OR+user_name%3D%27'
        132        ROPE_ADD                                      3  ~102    ~102, !17
        133        ROPE_END                                      4  ~101    ~102, '%27'
        134        SEND_VAL_EX                                              ~101
        135        DO_FCALL                                      0  $105    
        136        ASSIGN                                           ~106    !18, $105
        137      > JMPNZ_EX                                         ~106    ~106, ->142
        138    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        139        DO_FCALL                                      0  $107    
        140      > EXIT                                                     $107
        141*       BOOL                                             ~106    <true>
  148   142    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_row'
        143        SEND_VAR_EX                                              !18
        144        DO_FCALL                                      0  $108    
        145        FETCH_LIST_R                                     $109    $108, 0
        146        ASSIGN                                                   !19, $109
        147        FREE                                                     $108
  150   148        IS_SMALLER                                               0, !19
        149      > JMPZ                                                     ~111, ->152
  152   150    >   ASSIGN_DIM                                               !0
        151        OP_DATA                                                  'ERROR+-+The+username%2Femail+already+exists.+Please+try+again+with+different+username+and+email.'
  158   152    >   ISSET_ISEMPTY_CV                                         !0
        153      > JMPZ                                                     ~113, ->248
  160   154    >   ROPE_INIT                                    23  ~121    'INSERT+into+%60users%60%0A++++++++++++++%28%60full_name%60%2C%60user_email%60%2C%60pwd%60%2C%60address%60%2C%60tel%60%2C%60fax%60%2C%60website%60%2C%60date%60%2C%60users_ip%60%2C%60activation_code%60%2C%60country%60%2C%60user_name%60%0A++++++++++++%29%0A++++++++++++VALUES%0A++++++++++++%28%27'
  164   155        FETCH_DIM_R                                      ~114    !3, 'full_name'
        156        ROPE_ADD                                      1  ~121    ~121, ~114
        157        ROPE_ADD                                      2  ~121    ~121, '%27%2C%27'
        158        ROPE_ADD                                      3  ~121    ~121, !16
        159        ROPE_ADD                                      4  ~121    ~121, '%27%2C%27'
        160        ROPE_ADD                                      5  ~121    ~121, !11
        161        ROPE_ADD                                      6  ~121    ~121, '%27%2C%27'
        162        FETCH_DIM_R                                      ~115    !3, 'address'
        163        ROPE_ADD                                      7  ~121    ~121, ~115
        164        ROPE_ADD                                      8  ~121    ~121, '%27%2C%27'
        165        FETCH_DIM_R                                      ~116    !3, 'tel'
        166        ROPE_ADD                                      9  ~121    ~121, ~116
        167        ROPE_ADD                                     10  ~121    ~121, '%27%2C%27'
        168        FETCH_DIM_R                                      ~117    !3, 'fax'
        169        ROPE_ADD                                     11  ~121    ~121, ~117
        170        ROPE_ADD                                     12  ~121    ~121, '%27%2C%27'
        171        FETCH_DIM_R                                      ~118    !3, 'web'
        172        ROPE_ADD                                     13  ~121    ~121, ~118
        173        ROPE_ADD                                     14  ~121    ~121, '%27%0A++++++++++++%2Cnow%28%29%2C%27'
  165   174        ROPE_ADD                                     15  ~121    ~121, !10
        175        ROPE_ADD                                     16  ~121    ~121, '%27%2C%27'
        176        ROPE_ADD                                     17  ~121    ~121, !15
        177        ROPE_ADD                                     18  ~121    ~121, '%27%2C%27'
        178        FETCH_DIM_R                                      ~119    !3, 'country'
        179        ROPE_ADD                                     19  ~121    ~121, ~119
        180        ROPE_ADD                                     20  ~121    ~121, '%27%2C%27'
        181        ROPE_ADD                                     21  ~121    ~121, !17
        182        ROPE_END                                     22  ~120    ~121, '%27%0A++++++++++++%29%0A++++++++++++'
  160   183        ASSIGN                                                   !20, ~120
  169   184        INIT_FCALL_BY_NAME                                       'mysql_query'
        185        SEND_VAR_EX                                              !20
        186        SEND_VAR_EX                                              !21
        187        DO_FCALL                                      0  $134    
        188      > JMPNZ_EX                                         ~135    $134, ->194
        189    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        190        DO_FCALL                                      0  $136    
        191        CONCAT                                           ~137    'Insertion+Failed%3A', $136
        192      > EXIT                                                     ~137
        193*       BOOL                                             ~135    <true>
  170   194    >   INIT_FCALL_BY_NAME                                       'mysql_insert_id'
        195        SEND_VAR_EX                                              !21
        196        DO_FCALL                                      0  $138    
        197        ASSIGN                                                   !22, $138
  171   198        INIT_FCALL                                               'md5'
        199        SEND_VAR                                                 !22
        200        DO_ICALL                                         $140    
        201        ASSIGN                                                   !23, $140
  172   202        INIT_FCALL_BY_NAME                                       'mysql_query'
        203        ROPE_INIT                                     5  ~143    'update+users+set+md5_id%3D%27'
        204        ROPE_ADD                                      1  ~143    ~143, !23
        205        ROPE_ADD                                      2  ~143    ~143, '%27+where+id%3D%27'
        206        ROPE_ADD                                      3  ~143    ~143, !22
        207        ROPE_END                                      4  ~142    ~143, '%27'
        208        SEND_VAL_EX                                              ~142
        209        DO_FCALL                                      0          
  175   210      > JMPZ                                                     !24, ->221
  176   211    >   ROPE_INIT                                     8  ~148    '%0A%2A%2A%2A%2A%2AACTIVATION+LINK%2A%2A%2A%2A%2A%0A%0Ahttp%3A%2F%2F'
  178   212        ROPE_ADD                                      1  ~148    ~148, !12
        213        ROPE_ADD                                      2  ~148    ~148, !14
        214        ROPE_ADD                                      3  ~148    ~148, '%2Factivate.php%3Fuser%3D'
        215        ROPE_ADD                                      4  ~148    ~148, !23
        216        ROPE_ADD                                      5  ~148    ~148, '%26activ_code%3D'
        217        ROPE_ADD                                      6  ~148    ~148, !15
        218        ROPE_END                                      7  ~147    ~148, '%0A'
  176   219        ASSIGN                                                   !25, ~147
  175   220      > JMP                                                      ->222
  181   221    >   ASSIGN                                                   !25, 'Your+account+is+%2APENDING+APPROVAL%2A+and+will+be+soon+activated+the+administrator.%0A'
  187   222    >   ROPE_INIT                                    11  ~156    'Hello+%0A%0AThank+you+for+registering+with+us.+Here+are+your+login+details...%0A%0A%0AUser+ID%3A+'
  190   223        ROPE_ADD                                      1  ~156    ~156, !17
        224        ROPE_ADD                                      2  ~156    ~156, '%0AEmail%3A+'
  191   225        ROPE_ADD                                      3  ~156    ~156, !16
        226        ROPE_ADD                                      4  ~156    ~156, '+%0A%0APasswd%3A+'
  192   227        FETCH_DIM_R                                      ~154    !3, 'pwd'
        228        ROPE_ADD                                      5  ~156    ~156, ~154
        229        ROPE_ADD                                      6  ~156    ~156, '+%0A%0A%0A'
  194   230        ROPE_ADD                                      7  ~156    ~156, !25
        231        ROPE_ADD                                      8  ~156    ~156, '%0A%0AThank+You%0A%0AAdministrator%0A'
  199   232        ROPE_ADD                                      9  ~156    ~156, !13
        233        ROPE_END                                     10  ~155    ~156, '%0A______________________________________________________%0ATHIS+IS+AN+AUTOMATED+RESPONSE.%0A%2A%2A%2ADO+NOT+RESPOND+TO+THIS+EMAIL%2A%2A%2A%2A%0A'
  186   234        ASSIGN                                                   !26, ~155
  205   235        INIT_FCALL                                               'mail'
        236        SEND_VAR                                                 !16
        237        SEND_VAL                                                 'Login+Details'
        238        SEND_VAR                                                 !26
  207   239        INIT_FCALL                                               'phpversion'
        240        DO_ICALL                                         $163    
        241        CONCAT                                           ~164    'From%3A+%22Member+Registration%22+%3Cmijn+Mailadrss%3E%0D%0AX-Mailer%3A+PHP%2F', $163
        242        SEND_VAL                                                 ~164
  205   243        DO_ICALL                                                 
  209   244        INIT_FCALL                                               'header'
        245        SEND_VAL                                                 'Location%3A+thankyou.php'
        246        DO_ICALL                                                 
  210   247      > EXIT                                                     
  216   248    >   ECHO                                                     '%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3EPHP+Login+%3A%3A+Free+Registration%2FSignup+Form%3C%2Ftitle%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3Diso-8859-1%22%3E%0A%3Cscript+language%3D%22JavaScript%22+type%3D%22text%2Fjavascript%22+src%3D%22js%2Fjquery-1.3.2.min.js%22%3E%3C%2Fscript%3E%0A%3Cscript+language%3D%22JavaScript%22+type%3D%22text%2Fjavascript%22+src%3D%22js%2Fjquery.validate.js%22%3E%3C%2Fscript%3E%0A%0A++%3Cscript%3E%0A++%24%28document%29.ready%28function%28%29%7B%0A++++%24.validator.addMethod%28%22username%22%2C+function%28value%2C+element%29+%7B%0A++++++++return+this.optional%28element%29+%7C%7C+%2F%5E%5Ba-z0-9%5C_%5D%2B%24%2Fi.test%28value%29%3B%0A++++%7D%2C+%22Username+must+contain+only+letters%2C+numbers%2C+or+underscore.%22%29%3B%0A%0A++++%24%28%22%23regForm%22%29.validate%28%29%3B%0A++%7D%29%3B%0A++%3C%2Fscript%3E%0A%0A%3Clink+href%3D%22styles.css%22+rel%3D%22stylesheet%22+type%3D%22text%2Fcss%22%3E%0A%0A%0A%0A%0A%3C%2Fhead%3E%0A%0A%3Cbody%3E%0A%3Ctable+width%3D%22100%25%22+border%3D%220%22+cellspacing%3D%220%22+cellpadding%3D%225%22+class%3D%22main%22%3E%0A++%3Ctr%3E%0A++++%3Ctd+colspan%3D%223%22%3E%26nbsp%3B%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A++%3Ctr%3E%0A++++%3Ctd+width%3D%22160%22+valign%3D%22top%22%3E%3Cp%3E%26nbsp%3B%3C%2Fp%3E%0A++++++%3Cp%3E%26nbsp%3B+%3C%2Fp%3E%0A++++++%3Cp%3E%26nbsp%3B%3C%2Fp%3E%0A++++++%3Cp%3E%26nbsp%3B%3C%2Fp%3E%0A++++++%3Cp%3E%26nbsp%3B%3C%2Fp%3E%3C%2Ftd%3E%0A++++%3Ctd+width%3D%22732%22+valign%3D%22top%22%3E%3Cp%3E%0A++++'
  253   249        FETCH_IS                                         ~167    '_GET'
        250        ISSET_ISEMPTY_DIM_OBJ                         0          ~167, 'done'
        251      > JMPZ                                                     ~168, ->254
  254   252    >   ECHO                                                     '++++++%3Ch2%3EThank+you%3C%2Fh2%3E+Your+registration+is+now+complete+and+you+can+%3Ca+href%3D%22login.php%22%3Elogin+here%3C%2Fa%3E%22%3B%0A+++++'
  255   253      > EXIT                                                     
  257   254    >   ECHO                                                     '%3C%2Fp%3E%0A++++++%3Ch3+class%3D%22titlehdr%22%3EFree+Registration+%2F+Signup%3C%2Fh3%3E%0A++++++%3Cp%3EPlease+register+a+free+account%2C+before+you+can+start+posting+your+ads.%0A++++++++Registration+is+quick+and+free%21+Please+note+that+fields+marked+%3Cspan+class%3D%22required%22%3E%2A%3C%2Fspan%3E%0A++++++++are+required.%3C%2Fp%3E%0A+++++'
  263   255        ISSET_ISEMPTY_CV                                 ~169    !0
        256        BOOL_NOT                                         ~170    ~169
        257      > JMPZ                                                     ~170, ->268
  264   258    >   ECHO                                                     '%3Cdiv+class%3D%22msg%22%3E'
  265   259      > FE_RESET_R                                       $171    !0, ->266
        260    > > FE_FETCH_R                                               $171, !27, ->266
  266   261    >   ROPE_INIT                                     3  ~173    '%2A+'
        262        ROPE_ADD                                      1  ~173    ~173, !27
        263        ROPE_END                                      2  ~172    ~173, '+%3Cbr%3E'
        264        ECHO                                                     ~172
  265   265      > JMP                                                      ->260
        266    >   FE_FREE                                                  $171
  268   267        ECHO                                                     '%3C%2Fdiv%3E'
  271   268    >   ECHO                                                     '++++%0A++++++%3Cbr%3E%0A++++++%3Cform+action%3D%22register.php%22+method%3D%22post%22+name%3D%22regForm%22+id%3D%22regForm%22+%3E%0A++++++++%3Ctable+width%3D%2295%25%22+border%3D%220%22+cellpadding%3D%223%22+cellspacing%3D%223%22+class%3D%22forms%22%3E%0A++++++++++%3Ctr%3E%0A++++++++++++%3Ctd+colspan%3D%222%22%3EYour+Name+%2F+Company+Name%3Cspan+class%3D%22required%22%3E%3Cfont+color%3D%22%23CC0000%22%3E%2A%3C%2Ffont%3E%3C%2Fspan%3E%3Cbr%3E%0A++++++++++++++%3Cinput+name%3D%22full_name%22+type%3D%22text%22+id%3D%22full_name%22+size%3D%2240%22+class%3D%22required%22%3E%3C%2Ftd%3E%0A++++++++++%3C%2Ftr%3E%0A++++++++++%3Ctr%3E%0A++++++++++++%3Ctd+colspan%3D%222%22%3E%26nbsp%3B%3C%2Ftd%3E%0A++++++++++%3C%2Ftr%3E%0A++++++++++%3Ctr%3E%0A++++++++++++%3Ctd+colspan%3D%222%22%3EContact+Address+%28with+ZIP%29%3Cspan+class%3D%22required%22%3E%3Cfont+color%3D%22%23CC0000%22%3E%2A%3C%2Ffont%3E%3C%2Fspan%3E%3Cbr%3E%0A++++++++++++++%3Ctextarea+name%3D%22address%22+cols%3D%2240%22+rows%3D%224%22+id%3D%22address%22+class%3D%22required%22%3E%3C%2Ftextarea%3E%0A++++++++++++++%3Cspan+class%3D%22example%22%3EVALID+CONTACT+DETAILS%3C%2Fspan%3E+%3C%2Ftd%3E%0A++++++++++%3C%2Ftr%3E%0A++++++++++%3Ctr%3E%0A++++++++++++%3Ctd%3ECountry+%3Cfont+color%3D%22%23CC0000%22%3E%2A%3C%2Ffont%3E%3C%2Fspan%3E%3C%2Ftd%3E%0A%0A++++++++++%3C%2Ftr%3E%0A++++++++++%3Ctr%3E%0A++++++++++++%3Ctd%3EPhone%3Cspan+class%3D%22required%22%3E%3Cfont+color%3D%22%23CC0000%22%3E%2A%3C%2Ffont%3E%3C%2Fspan%3E%0A++++++++++++%3C%2Ftd%3E%0A++++++++++++%3Ctd%3E%3Cinput+name%3D%22tel%22+type%3D%22text%22+id%3D%22tel%22+class%3D%22required%22%3E%3C%2Ftd%3E%0A++++++++++%3C%2Ftr%3E%0A++++++++++%3Ctr%3E%0A++++++++++++%3Ctd%3EFax+%3C%2Ftd%3E%0A++++++++++++%3Ctd%3E%3Cinput+name%3D%22fax%22+type%3D%22text%22+id%3D%22fax%22%3E%0A++++++++++++%3C%2Ftd%3E%0A++++++++++%3C%2Ftr%3E%0A++++++++++%3Ctr%3E%0A++++++++++++%3Ctd%3EWebsite+%3C%2Ftd%3E%0A++++++++++++%3Ctd%3E%3Cinput+name%3D%22web%22+type%3D%22text%22+id%3D%22web%22+class%3D%22optional+defaultInvalid+url%22%3E%0A++++++++++++++%3Cspan+class%3D%22ex

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.97 ms | 1494 KiB | 21 Q