3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); include ('db_connect.php'); if (isset($_POST['S1'])) { $A1 = $_POST['T1']; $A2 = $_POST['T2']; $Q = @mysql_query("SELECT * FROM emct_instructor WHERE ins_id='$A1' AND ins_password='$A2'"); $R = @mysql_fetch_array($Q); if (@mysql_num_rows($Q) == 1) { $_SESSION['FULLNAME'] = $R['ins_fname']; print "<script>window.location='faculty.php';</script>"; } else print "<script>alert('Invalid Username or password')</script>"; } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Faculty Log-in</title> <meta name="keywords" content="" /> <meta name="description" content="" /> <link href="default.css" rel="stylesheet" type="text/css" media="screen" /> <style type="text/css"> <!-- .style1 { color: #1C74A4; font-size: 13px; } .style17 {font-size: 14px; color: #006AD5; } --> </style> </head> <body> <!-- start header --> <div id="header"> <div id="logo"> <h1></a></h1> <p>&nbsp;</p> <p>&nbsp;</p> </div> <div id="menu"> <ul> <li><a href="facultyoverview.php">Faculty overview </a></li> <li class="current_page_item"><a href="facultylog.php">faculty log-in </a></li> </ul> </div> </div> <!-- end header --> <!-- start page --> <div id="page"> <!-- start leftbar --> <div id="leftbar" class="sidebar"> <ul> <li> <h2>&nbsp;</h2> </li> <li></li> </ul> </div> <!-- end leftbar --> <!-- start content --> <div id="content"> <div class="post"> <h1 class="title">Faculty Log-in </h1> <div class="entry"> <form name="F1" method="POST"> <p><fieldset> <table width="364" border="0"> <tr> <td width="75"><span class="style17">Faculty ID: </span></td> <td width="273"><input type="text" name="T1"></td> </tr> <tr> <td><span class="style17">Password:</span></td> <td><input type="password" name="T2"></td> </tr> <tr> <td>&nbsp;</td> <td><input name="S1" type="submit" value="Login"> <span class="style1">Forgot password? </span></td> </tr> </table> </fieldset> </form> </div> <p class="links">Faculty must remember your password or ID number to Log-n. </p> </div> </div> <!-- end content --> <!-- start rightbar --> <div id="rightbar" class="sidebar"> <ul> <li> </li> <li></li> <li> <div id="calendar_wrap"> <table summary="Calendar"> <caption> January 2014 </caption> <thead> <tr> <th abbr="Monday" scope="col" title="Monday">M</th> <th abbr="Tuesday" scope="col" title="Tuesday">T</th> <th abbr="Wednesday" scope="col" title="Wednesday">W</th> <th abbr="Thursday" scope="col" title="Thursday">T</th> <th abbr="Friday" scope="col" title="Friday">F</th> <th abbr="Saturday" scope="col" title="Saturday">S</th> <th abbr="Sunday" scope="col" title="Sunday">S</th> </tr> </thead> <tfoot> <tr> <td abbr="September" colspan="3" id="prev"><a href="#" title="View posts for September 2007">&laquo; Sep</a></td> <td class="pad">&nbsp;</td> <td colspan="3" id="next">&nbsp;</td> </tr> </tfoot> <tbody> <tr> <td>1</td> <td>2</td> <td>3</td> <td id="today">4</td> <td>5</td> <td>6</td> <td>7</td> </tr> <tr> <td>8</td> <td>9</td> <td>10</td> <td>11</td> <td>12</td> <td>13</td> <td>14</td> </tr> <tr> <td>15</td> <td>16</td> <td>17</td> <td>18</td> <td>19</td> <td>20</td> <td>21</td> </tr> <tr> <td>22</td> <td>23</td> <td>24</td> <td>25</td> <td>26</td> <td>27</td> <td>28</td> </tr> <tr> <td>29</td> <td>30</td> <td><a href="#">31</a></td> <td class="pad" colspan="4">&nbsp;</td> </tr> </tbody> </table> </div> </li> </ul> </div> <!-- end rightbar --> <div style="clear: both;">&nbsp; <p>&nbsp; </p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> </div> </div> <!-- end page --> <hr /> <div id="footer"> <p>&copy;2014 All Rights Reserved. &nbsp;&bull;&nbsp;EMCOTECH</p> </div> <div align=center></div> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 43
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 42
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
filename:       /in/30JA6
function name:  (null)
number of ops:  45
compiled vars:  !0 = $A1, !1 = $A2, !2 = $Q, !3 = $R
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    3     2        INCLUDE_OR_EVAL                                          'db_connect.php', INCLUDE
    5     3        FETCH_IS                                         ~6      '_POST'
          4        ISSET_ISEMPTY_DIM_OBJ                         0          ~6, 'S1'
          5      > JMPZ                                                     ~7, ->43
    7     6    >   FETCH_R                      global              ~8      '_POST'
          7        FETCH_DIM_R                                      ~9      ~8, 'T1'
          8        ASSIGN                                                   !0, ~9
    8     9        FETCH_R                      global              ~11     '_POST'
         10        FETCH_DIM_R                                      ~12     ~11, 'T2'
         11        ASSIGN                                                   !1, ~12
   10    12        BEGIN_SILENCE                                    ~14     
         13        INIT_FCALL_BY_NAME                                       'mysql_query'
         14        ROPE_INIT                                     5  ~16     'SELECT+%2A+FROM+emct_instructor+WHERE+ins_id%3D%27'
         15        ROPE_ADD                                      1  ~16     ~16, !0
         16        ROPE_ADD                                      2  ~16     ~16, '%27+AND+ins_password%3D%27'
         17        ROPE_ADD                                      3  ~16     ~16, !1
         18        ROPE_END                                      4  ~15     ~16, '%27'
         19        SEND_VAL_EX                                              ~15
         20        DO_FCALL                                      0  $19     
         21        END_SILENCE                                              ~14
         22        ASSIGN                                                   !2, $19
   11    23        BEGIN_SILENCE                                    ~21     
         24        INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         25        SEND_VAR_EX                                              !2
         26        DO_FCALL                                      0  $22     
         27        END_SILENCE                                              ~21
         28        ASSIGN                                                   !3, $22
   12    29        BEGIN_SILENCE                                    ~24     
         30        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
         31        SEND_VAR_EX                                              !2
         32        DO_FCALL                                      0  $25     
         33        END_SILENCE                                              ~24
         34        IS_EQUAL                                                 $25, 1
         35      > JMPZ                                                     ~26, ->42
   14    36    >   FETCH_DIM_R                                      ~29     !3, 'ins_fname'
         37        FETCH_W                      global              $27     '_SESSION'
         38        ASSIGN_DIM                                               $27, 'FULLNAME'
         39        OP_DATA                                                  ~29
   15    40        ECHO                                                     '%3Cscript%3Ewindow.location%3D%27faculty.php%27%3B%3C%2Fscript%3E'
         41      > JMP                                                      ->43
   18    42    >   ECHO                                                     '%3Cscript%3Ealert%28%27Invalid+Username+or+password%27%29%3C%2Fscript%3E'
   21    43    >   ECHO                                                     '%3Chtml+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%0A%3Chead%3E%0A%3Cmeta+http-equiv%3D%22content-type%22+content%3D%22text%2Fhtml%3B+charset%3Dutf-8%22+%2F%3E%0A%3Ctitle%3EFaculty+Log-in%3C%2Ftitle%3E%0A%3Cmeta+name%3D%22keywords%22+content%3D%22%22+%2F%3E%0A%3Cmeta+name%3D%22description%22+content%3D%22%22+%2F%3E%0A%3Clink+href%3D%22default.css%22+rel%3D%22stylesheet%22+type%3D%22text%2Fcss%22+media%3D%22screen%22+%2F%3E%0A%3Cstyle+type%3D%22text%2Fcss%22%3E%0A%3C%21--%0A.style1+%7B%0A%09color%3A+%231C74A4%3B%0A%09font-size%3A+13px%3B%0A%7D%0A.style17+%7Bfont-size%3A+14px%3B+color%3A+%23006AD5%3B+%7D%0A--%3E%0A%3C%2Fstyle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%3C%21--+start+header+--%3E%0A%3Cdiv+id%3D%22header%22%3E%0A++%3Cdiv+id%3D%22logo%22%3E%0A%09%09%3Ch1%3E%3C%2Fa%3E%3C%2Fh1%3E%0A%09++%3Cp%3E%26nbsp%3B%3C%2Fp%3E%0A%09%09%3Cp%3E%26nbsp%3B%3C%2Fp%3E%0A++%3C%2Fdiv%3E%0A%09%3Cdiv+id%3D%22menu%22%3E%0A%09%09%3Cul%3E%0A%09%09%09%3Cli%3E%3Ca+href%3D%22facultyoverview.php%22%3EFaculty+overview+%3C%2Fa%3E%3C%2Fli%3E%0A%09%09%09%3Cli+class%3D%22current_page_item%22%3E%3Ca+href%3D%22facultylog.php%22%3Efaculty+log-in+%3C%2Fa%3E%3C%2Fli%3E%0A%09%09%3C%2Ful%3E%0A%09%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A%3C%21--+end+header+--%3E%0A%3C%21--+start+page+--%3E%0A%3Cdiv+id%3D%22page%22%3E%0A%09%3C%21--+start+leftbar+--%3E%0A%09%3Cdiv+id%3D%22leftbar%22+class%3D%22sidebar%22%3E%0A%09%09%3Cul%3E%0A%09%09%09%3Cli%3E%0A%09%09%09%09%3Ch2%3E%26nbsp%3B%3C%2Fh2%3E%0A%09%09%09%3C%2Fli%3E%0A%09%09++%3Cli%3E%3C%2Fli%3E%0A%09++%3C%2Ful%3E%0A%09%3C%2Fdiv%3E%0A%09%3C%21--+end+leftbar+--%3E%0A%09%3C%21--+start+content+--%3E%0A%09%3Cdiv+id%3D%22content%22%3E%0A%09%09%3Cdiv+class%3D%22post%22%3E%0A%09%09%09%3Ch1+class%3D%22title%22%3EFaculty+Log-in+%3C%2Fh1%3E%0A%09%09++%3Cdiv+class%3D%22entry%22%3E%0A%09%09+%0A%3Cform+name%3D%22F1%22+method%3D%22POST%22%3E%0A++%3Cp%3E%3Cfieldset%3E%0A++%3Ctable+width%3D%22364%22+border%3D%220%22%3E%0A++++%3Ctr%3E%0A++++++%3Ctd+width%3D%2275%22%3E%3Cspan+class%3D%22style17%22%3EFaculty+ID%3A+%3C%2Fspan%3E%3C%2Ftd%3E%0A++++++%3Ctd+width%3D%22273%22%3E%3Cinput+type%3D%22text%22+name%3D%22T1%22%3E%3C%2Ftd%3E%0A++++%3C%2Ftr%3E%0A++++%3Ctr%3E%0A++++++%3Ctd%3E%3Cspan+class%3D%22style17%22%3EPassword%3A%3C%2Fspan%3E%3C%2Ftd%3E%0A++++++%3Ctd%3E%3Cinput+type%3D%22password%22+name%3D%22T2%22%3E%3C%2Ftd%3E%0A++++%3C%2Ftr%3E%0A++++%3Ctr%3E%0A++++++%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A++++++%3Ctd%3E%3Cinput+name%3D%22S1%22+type%3D%22submit%22+value%3D%22Login%22%3E%0A++++++++++%3Cspan+class%3D%22style1%22%3EForgot+password%3F+%3C%2Fspan%3E%3C%2Ftd%3E%0A++++%3C%2Ftr%3E%0A++%3C%2Ftable%3E%0A++%3C%2Ffieldset%3E%0A%3C%2Fform%3E%0A++++++++++%3C%2Fdiv%3E%0A%09%09%09%3Cp+class%3D%22links%22%3EFaculty+must+remember+your+password+or+ID+number+to+Log-n.+%3C%2Fp%3E%0A%09%09%3C%2Fdiv%3E%0A++%3C%2Fdiv%3E%0A%09%3C%21--+end+content+--%3E%0A%09%3C%21--+start+rightbar+--%3E%0A%09%3Cdiv+id%3D%22rightbar%22+class%3D%22sidebar%22%3E%0A%09%09%3Cul%3E%0A%09%09%09%3Cli%3E%0A%0A%09%09%09%3C%2Fli%3E%0A%09%09%09%3Cli%3E%3C%2Fli%3E%0A%09%09%09%3Cli%3E%0A%09%09%09++%3Cdiv+id%3D%22calendar_wrap%22%3E%0A%09%09%09++++%3Ctable+summary%3D%22Calendar%22%3E%0A%09%09%09++++++%3Ccaption%3E%0A%09%09%09++++++January+2014%0A%3C%2Fcaption%3E%0A%09%09%09++++++%3Cthead%3E%0A%09%09%09++++++++%3Ctr%3E%0A%09%09%09++++++++++%3Cth+abbr%3D%22Monday%22+scope%3D%22col%22+title%3D%22Monday%22%3EM%3C%2Fth%3E%0A%09%09%09++++++++++%3Cth+abbr%3D%22Tuesday%22+scope%3D%22col%22+title%3D%22Tuesday%22%3ET%3C%2Fth%3E%0A%09%09%09++++++++++%3Cth+abbr%3D%22Wednesday%22+scope%3D%22col%22+title%3D%22Wednesday%22%3EW%3C%2Fth%3E%0A%09%09%09++++++++++%3Cth+abbr%3D%22Thursday%22+scope%3D%22col%22+title%3D%22Thursday%22%3ET%3C%2Fth%3E%0A%09%09%09++++++++++%3Cth+abbr%3D%22Friday%22+scope%3D%22col%22+title%3D%22Friday%22%3EF%3C%2Fth%3E%0A%09%09%09++++++++++%3Cth+abbr%3D%22Saturday%22+scope%3D%22col%22+title%3D%22Saturday%22%3ES%3C%2Fth%3E%0A%09%09%09++++++++++%3Cth+abbr%3D%22Sunday%22+scope%3D%22col%22+title%3D%22Sunday%22%3ES%3C%2Fth%3E%0A%09%09++++++++++++%3C%2Ftr%3E%0A%09%09++++++++++%3C%2Fthead%3E%0A%09%09%09++++++%3Ctfoot%3E%0A%09%09%09++++++++%3Ctr%3E%0A%09%09%09++++++++++%3Ctd+abbr%3D%22September%22+colspan%3D%223%22+id%3D%22prev%22%3E%3Ca+href%3D%22%23%22+title%3D%22View+posts+for+September+2007%22%3E%26laquo%3B+Sep%3C%2Fa%3E%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd+class%3D%22pad%22%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd+colspan%3D%223%22+id%3D%22next%22%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%09++++++++++++%3C%2Ftr%3E%0A%09%09++++++++++%3C%2Ftfoot%3E%0A%09%09%09++++++%3Ctbody%3E%0A%09%09%09++++++++%3Ctr%3E%0A%09%09%09++++++++++%3Ctd%3E1%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E2%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E3%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd+id%3D%22today%22%3E4%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E5%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E6%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E7%3C%2Ftd%3E%0A%09%09++++++++++++%3C%2Ftr%3E%0A%09%09%09++++++++%3Ctr%3E%0A%09%09%09++++++++++%3Ctd%3E8%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E9%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E10%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E11%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E12%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E13%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E14%3C%2Ftd%3E%0A%09%09++++++++++++%3C%2Ftr%3E%0A%09%09%09++++++++%3Ctr%3E%0A%09%09%09++++++++++%3Ctd%3E15%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E16%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E17%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E18%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E19%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E20%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E21%3C%2Ftd%3E%0A%09%09++++++++++++%3C%2Ftr%3E%0A%09%09%09++++++++%3Ctr%3E%0A%09%09%09++++++++++%3Ctd%3E22%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E23%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E24%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E25%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E26%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E27%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E28%3C%2Ftd%3E%0A%09%09++++++++++++%3C%2Ftr%3E%0A%09%09%09++++++++%3Ctr%3E%0A%09%09%09++++++++++%3Ctd%3E29%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E30%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd%3E%3Ca+href%3D%22%23%22%3E31%3C%2Fa%3E%3C%2Ftd%3E%0A%09%09%09++++++++++%3Ctd+class%3D%22pad%22+colspan%3D%224%22%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%09++++++++++++%3C%2Ftr%3E%0A%09%09++++++++++%3C%2Ftbody%3E%0A%09%09++++++++%3C%2Ftable%3E%0A%09%09++++++%3C%2Fdiv%3E%0A%09%09%09%3C%2Fli%3E%0A%09%09%3C%2Ful%3E%0A%09%3C%2Fdiv%3E%0A%09%3C%21--+end+rightbar+--%3E%0A%09%3Cdiv+style%3D%22clear%3A+both%3B%22%3E%26nbsp%3B%0A%0A%09++%3Cp%3E%26nbsp%3B+%3C%2Fp%3E%0A%09++%3Cp%3E%26nbsp%3B%3C%2Fp%3E%0A%09++%3Cp%3E%26nbsp%3B%3C%2Fp%3E%0A%09++%3Cp%3E%26nbsp%3B%3C%2Fp%3E%0A%09++%3Cp%3E%26nbsp%3B%3C%2Fp%3E%0A%09%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A%3C%21--+end+page+--%3E%0A%3Chr+%2F%3E%0A%3Cdiv+id%3D%22footer%22%3E%0A%09%3Cp%3E%26copy%3B2014+All+Rights+Reserved.+%26nbsp%3B%26bull%3B%26nbsp%3BEMCOTECH%3C%2Fp%3E%0A%3C%2Fdiv%3E%0A%3Cdiv+align%3Dcenter%3E%3C%2Fdiv%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
  193    44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.47 ms | 1404 KiB | 15 Q