3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once('config.php'); require_once('login.php'); if($_SESSION['admin']!=='true'){ header("Location: members.php?msg=Ehm, ehm. You are not admin or you logged out (if so, please log in again)."); echo "You are not admin so please behave yourself :)"; } elseif($_SESSION['admin']=='true'){ if($_GET['action']=='addresult'){ if($_GET['user']){ $user = mysql_real_escape_string($_GET['user']); if($_POST){ if($_POST['subject1']){ $subject=$_POST['subject1']; $marks=$_POST['marks1']; mysql_query("INERT INTO $tbl2 (user, subject, marks) VALUES ('$user', '$subject', '$marks'") or die(mysql_error()); } if($_POST['subject2']){ $subject=$_POST['subject2']; $marks=$_POST['marks2']; mysql_query("INERT INTO $tbl2 (user, subject, marks) VALUES ('$user', '$subject', '$marks'") or die(mysql_error()); } if($_POST['subject3']){ $subject=$_POST['subject3']; $marks=$_POST['marks3']; mysql_query("INERT INTO $tbl2 (user, subject, marks) VALUES ('$user', '$subject', '$marks'") or die(mysql_error()); } if($_POST['subject4']){ $subject=$_POST['subject4']; $marks=$_POST['marks4']; mysql_query("INERT INTO $tbl2 (user, subject, marks) VALUES ('$user', '$subject', '$marks'") or die(mysql_error()); } if($_POST['subject5']){ $subject=$_POST['subject5']; $marks=$_POST['marks5']; mysql_query("INERT INTO $tbl2 (user, subject, marks) VALUES ('$user', '$subject', '$marks'") or die(mysql_error()); } if($_POST['subject6']){ $subject=$_POST['subject6']; $marks=$_POST['marks6']; mysql_query("INERT INTO $tbl2 (user, subject, marks) VALUES ('$user', '$subject', '$marks'") or die(mysql_error()); } if($_POST['subject7']){ $subject=$_POST['subject7']; $marks=$_POST['marks7']; mysql_query("INERT INTO $tbl2 (user, subject, marks) VALUES ('$user', '$subject', '$marks'") or die(mysql_error()); } if($_POST['subject8']){ $subject=$_POST['subject8']; $marks=$_POST['marks8']; mysql_query("INERT INTO $tbl2 (user, subject, marks) VALUES ('$user', '$subject', '$marks'") or die(mysql_error()); } echo "Subject and marks added. Add more if you want!"; } echo "<style>.admin { display:none; } .back { display: block !important; }</style><br />"; echo '<form method="POST" action="">'; for ($i = 1; $i <= 8; $i++) { echo '<div style="border:1px solid #666;">Subject: <input type="text" name="subject'.$i.'" id="subject'.$i.'" placeholder="Subject name" /><br /> Marks: <input type="text" name="marks'.$i.'" id="marks'.$i.'" placeholder="Marks gained" /></div>'; } echo '<input type="submit" value="Add" /></form>'; } } elseif($_GET['action']=='updateresult'){ if($_GET['user']){ if($_POST){ foreach ($_POST as $name => $val){ if($name=='submit'){ break; } //echo htmlspecialchars($name . ': ' . $val) . "\n"; mysql_query("UPDATE $tbl2 SET marks='$val' WHERE subject='$name'") or die(mysql_error()); } echo "<style>.admin { display:none; } .back { display: block !important; }</style> <br /> Record Updated!"; } else { $user = $_GET['user']; // profile name. $user = mysql_real_escape_string($user); $qr = mysql_query("SELECT * FROM $tbl2 WHERE user_name='$user'"); $rr = mysql_num_rows($qr); if($rr=='0'){ echo "<style>.admin { display:none; } .back { display: block !important; }</style> <br /> No subjects added. You may need to add subjects first so <a href='?action=addresult&user=".$user."'>click here to do so</a>"; } else { echo 'Total subjects: '.$rr; echo '<br /> <form method="POST" action="" name="form21">'; while($s=mysql_fetch_array($qr)){ $subject=$s['subject']; $marks=$s['marks']; echo "<div style='border:1px solid #666;'> Subject: ".$subject."<br/> Marks: <input name='".$subject."' type='text' id='".$subject."' value='".$marks."' /></div><br/>"; } echo '<input type="submit" value="Update" /></form>'; } } } } elseif($_GET['action']=='updateuser'){ if($_GET['user']){ $user = $_GET['user']; // profile name. $user = mysql_real_escape_string($user); if($_POST){ $pwd = mysql_real_escape_string($_POST['upassword']); $fullname = mysql_real_escape_string($_POST['ufullname']); $session = mysql_real_escape_string($_POST['usession']); $class = mysql_real_escape_string($_POST['uclass']); $campus = mysql_real_escape_string($_POST['ucampus']); $fine = mysql_real_escape_string($_POST['ufine']); $fee = mysql_real_escape_string($_POST['ufee']); $attendance = mysql_real_escape_string($_POST['uattendance']); $result_last = mysql_real_escape_string($_POST['uresult_last']); $fone = mysql_real_escape_string($_POST['ufone']); $addr = mysql_real_escape_string($_POST['uaddr']); $email = mysql_real_escape_string($_POST['uemail']); mysql_query("UPDATE $tbl_name SET fone='$fone', addr='$addr', email='$email', password='$pwd', fullname='$fullname', session='$session', class='$class', campus='$campus', fine='$fine', fee='$fee', attendance='$attendance', resul_last='$result_last' WHERE user_name='$user'") or die(mysql_error()); echo "<style>.admin { display:none; } .back { display: block !important; }</style> <br /> User has been updated!"; } else { $sql22="SELECT * FROM $tbl_name WHERE user_name='$user'"; $result22=mysql_query($sql22) or die(mysql_error()); $user22=mysql_fetch_array($result22); ?> <style>.admin { display:none; } .back { display: block !important; }</style> <form name="form3" method="post" action=""> <strong>Edit a user </strong><br/><br/> Fullname: <input name="ufullname" type="text" id="ufullname" value="<?=$user22['fullname']?>" /><br/> Password: <input name="upassword" type="password" id="upassword" value="<?=$user22['password']?>" /><br/> <strong> If student:</strong><br/> Session: <input name="usession" type="text" id="usession" value="<?=$user22['session']?>" /><br/> Class: <input name="uclass" type="text" id="uclass" value="<?=$user22['class']?>" /><br/> Campus: <input name="ucampus" type="text" id="ucampus" value="<?=$user22['campus']?>" /><br/> Fine: <input name="ufine" type="text" id="ufine" value="<?=$user22['fine']?>" /><br/> Fee status: <input name="ufee" type="text" id="ufee" value="<?=$user22['fee']?>" /><br/> Attendance: <input name="uattendance" type="text" id="uattendance" value="<?=$user22['attendance']?>" /><br/> Last month result: <input name="uresult_last" type="text" id="uresult_last" value="<?=$user22['resul_last']?>" /><br/> Phone: <input name="ufone" type="text" id="ufone" value="<?=$user22['fone']?>" /><br/> Address: <input name="uaddr" type="text" id="uaddr" value="<?=$user22['addr']?>" /><br/> Email: <input name="uemail" type="text" id="uemail" value="<?=$user22['email']?>" /><br/> <br/><input type="submit" name="Submit" value="Update" /></form> <?php } } } elseif($_GET['action']=='logout'){ unset($_SESSION['admin']); header("Location: index.php?msg_gr=You have been logged out of the admin panel!"); } elseif($_GET['action']=='adduser'){ if($_POST['user_name_add']){ $user_name = mysql_real_escape_string($_POST['user_name_add']); $pwd = mysql_real_escape_string($_POST['password']); $fullname = mysql_real_escape_string($_POST['fullname']); $rank = mysql_real_escape_string($_POST['rank']); $session = mysql_real_escape_string($_POST['session']); $class = mysql_real_escape_string($_POST['class']); $campus = mysql_real_escape_string($_POST['campus']); $fine = mysql_real_escape_string($_POST['fine']); $fee = mysql_real_escape_string($_POST['fee']); $attendance = mysql_real_escape_string($_POST['attendance']); $result_last = mysql_real_escape_string($_POST['result_last']); if($rank=='1'){ $rank='teacher'; } else { $rank='student'; } $insert_query = "INSERT INTO $tbl_name (user_name, fullname, password, session, class, campus, fine, fee, attendance, resul_last) VALUES ('$user_name', '$fullname', '$pwd', '$rank','$session', '$class', '$campus', '$fine', '$fee', '$attendance', '$result_last')"; $insert_result = mysql_query($insert_query) or die(mysql_error()); $responsemsg = "User has been added!"; echo '<style>.admin { display:none; } .back { display: block !important; }</style>'; } else { ?> <style>.admin { display:none; } .back { display: block !important; }</style> <form name="form2" method="post" action="admin.php?action=adduser"> <strong>Add a user </strong><br/><br/> Fullname: <input name="fullname" type="text" id="fullname" /><br/> Username: <input name="user_name_add" type="text" id="user_name_add" /><br/> Password: <input name="password" type="password" id="password" /><br/> Rank: <input type="radio" value="2" name="rank" id="rank" /> Student <input type="radio" value="1" name="rank" id="rank" /> Teacher<br /> <strong> If student:</strong><br/> Session: <input name="session" type="text" id="session" /><br/> Class: <input name="class" type="text" id="class" /><br/> Campus: <input name="campus" type="text" id="campus" /><br/> Fine: <input name="fine" type="text" id="fine" /><br/> Fee status: <input name="fee" type="text" id="fee" /><br/> Attendance: <input name="attendance" type="text" id="attendance" /><br/> Last month result: <input name="result_last" type="text" id="result_last" /><br/> <br/><input type="submit" name="Submit" value="Add" /></form> <?php } } elseif($_GET['action']=='deleteuser'){ if($_GET['user']){ $user = $_GET['user']; // profile name. $user = mysql_real_escape_string($user); $query5 = "DELETE FROM $tbl_name WHERE user_name = '$user'"; $result = mysql_query( $query5 ) or die(mysql_error()); $responsemsg = "User has been deleted!"; } else { $qfo = "SELECT * FROM $tbl_name WHERE (rank = 'teacher' OR rank = 'student')"; $fo = mysql_query($qfo) or die(mysql_error()); $rowfo = mysql_num_rows($fo); echo "<style>.admin { display:none; } .back { display: block !important; }</style>"; if ($rowfo == 0 ) { // no user echo "No users."; } else { while($users = mysql_fetch_array($fo)){ $user_name = $users['user_name']; $fullname = $users['fullname']; $rank = $users['rank']; $uid = $users['id']; $session = $users['session']; $class = $users['class']; echo "<div> ".$uid." ~ ".$fullname." (".$user_name.") of Class ".$class." and session ".$session." - ".$rank." | <a href='?action=deleteuser&user=".$user_name."'>Delete</a> - <a href='?action=viewpwd&user=".$user_name."'>View password</a> - <a href='?action=updateuser&user=".$user_name."'>Update profile</a> - <a href='?action=updateresult&user=".$user_name."'>Update result</a></div>"; } } } } elseif($_GET['action']=='viewpwd') { echo '<style>.admin { display:none; } .back { display: block !important; }</style>'; if($_GET['user']){ $user = $_GET['user']; // profile name. $user = mysql_real_escape_string($user); $qfo = "SELECT * FROM $tbl_name WHERE user_name = '$user' AND (rank = 'teacher' OR rank = 'student')"; $fo = mysql_query($qfo) or die(mysql_error()); $foundu = mysql_num_rows($fo); if($foundu=='0'){ echo "No such user found!"; } else { $userinfo = mysql_fetch_array($fo); $pwd = $userinfo['password']; echo "Password is: <b>".$pwd."</b>"; } } } ?> <?php if (isSet($_GET['msg'])){ echo "<span id='postmsg'>".htmlentities($_GET['msg'])."</span><br/>"; } ?> <?php if (isSet($responsemsg)){ echo "<span id='postmsg'>".htmlentities($responsemsg)."</span><br/>"; } ?> <div class="admin"> Welcome, <?=$_SESSION['fullname']?><br /> What you want to do? <br /><br /> <a href="?action=adduser&noredirect=1">Add a user</a><br /> <a href="?action=deleteuser&noredirect=1">View a user</a><br /> <a href="?action=logout&noredirect=1">Logout from admin panel</a><br /> </div> <div class="back" style="display:none"> <a href="admin.php" >Go back</a><br /> </div> <?php } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 842
Branch analysis from position: 842
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 842
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 258
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 257
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 240
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 57
Branch analysis from position: 34
2 jumps found. (Code = 47) Position 1 = 53, Position 2 = 57
Branch analysis from position: 53
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 57
2 jumps found. (Code = 43) Position 1 = 60, Position 2 = 83
Branch analysis from position: 60
2 jumps found. (Code = 47) Position 1 = 79, Position 2 = 83
Branch analysis from position: 79
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 83
2 jumps found. (Code = 43) Position 1 = 86, Position 2 = 109
Branch analysis from position: 86
2 jumps found. (Code = 47) Position 1 = 105, Position 2 = 109
Branch analysis from position: 105
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 109
2 jumps found. (Code = 43) Position 1 = 112, Position 2 = 135
Branch analysis from position: 112
2 jumps found. (Code = 47) Position 1 = 131, Position 2 = 135
Branch analysis from position: 131
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 135
2 jumps found. (Code = 43) Position 1 = 138, Position 2 = 161
Branch analysis from position: 138
2 jumps found. (Code = 47) Position 1 = 157, Position 2 = 161
Branch analysis from position: 157
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 161
2 jumps found. (Code = 43) Position 1 = 164, Position 2 = 187
Branch analysis from position: 164
2 jumps found. (Code = 47) Position 1 = 183, Position 2 = 187
Branch analysis from position: 183
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 187
2 jumps found. (Code = 43) Position 1 = 190, Position 2 = 213
Branch analysis from position: 190
2 jumps found. (Code = 47) Position 1 = 209, Position 2 = 213
Branch analysis from position: 209
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 213
2 jumps found. (Code = 43) Position 1 = 216, Position 2 = 239
Branch analysis from position: 216
2 jumps found. (Code = 47) Position 1 = 235, Position 2 = 239
Branch analysis from position: 235
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 239
1 jumps found. (Code = 42) Position 1 = 254
Branch analysis from position: 254
2 jumps found. (Code = 44) Position 1 = 256, Position 2 = 244
Branch analysis from position: 256
1 jumps found. (Code = 42) Position 1 = 818
Branch analysis from position: 818
2 jumps found. (Code = 43) Position 1 = 821, Position 2 = 829
Branch analysis from position: 821
2 jumps found. (Code = 43) Position 1 = 831, Position 2 = 837
Branch analysis from position: 831
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 837
Branch analysis from position: 829
Branch analysis from position: 244
2 jumps found. (Code = 44) Position 1 = 256, Position 2 = 244
Branch analysis from position: 256
Branch analysis from position: 244
Branch analysis from position: 239
Branch analysis from position: 213
Branch analysis from position: 187
Branch analysis from position: 161
Branch analysis from position: 135
Branch analysis from position: 109
Branch analysis from position: 83
Branch analysis from position: 57
Branch analysis from position: 240
Branch analysis from position: 257
Branch analysis from position: 258
2 jumps found. (Code = 43) Position 1 = 262, Position 2 = 343
Branch analysis from position: 262
2 jumps found. (Code = 43) Position 1 = 265, Position 2 = 342
Branch analysis from position: 265
2 jumps found. (Code = 43) Position 1 = 267, Position 2 = 293
Branch analysis from position: 267
2 jumps found. (Code = 77) Position 1 = 269, Position 2 = 290
Branch analysis from position: 269
2 jumps found. (Code = 78) Position 1 = 270, Position 2 = 290
Branch analysis from position: 270
2 jumps found. (Code = 43) Position 1 = 273, Position 2 = 274
Branch analysis from position: 273
1 jumps found. (Code = 42) Position 1 = 290
Branch analysis from position: 290
1 jumps found. (Code = 42) Position 1 = 342
Branch analysis from position: 342
1 jumps found. (Code = 42) Position 1 = 818
Branch analysis from position: 818
Branch analysis from position: 274
2 jumps found. (Code = 47) Position 1 = 285, Position 2 = 289
Branch analysis from position: 285
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 289
1 jumps found. (Code = 42) Position 1 = 269
Branch analysis from position: 269
Branch analysis from position: 290
Branch analysis from position: 290
Branch analysis from position: 293
2 jumps found. (Code = 43) Position 1 = 315, Position 2 = 319
Branch analysis from position: 315
1 jumps found. (Code = 42) Position 1 = 342
Branch analysis from position: 342
Branch analysis from position: 319
1 jumps found. (Code = 42) Position 1 = 336
Branch analysis from position: 336
2 jumps found. (Code = 44) Position 1 = 341, Position 2 = 323
Branch analysis from position: 341
1 jumps found. (Code = 42) Position 1 = 818
Branch analysis from position: 818
Branch analysis from position: 323
2 jumps found. (Code = 44) Position 1 = 341, Position 2 = 323
Branch analysis from position: 341
Branch analysis from position: 323
Branch analysis from position: 342
Branch analysis from position: 343
2 jumps found. (Code = 43) Position 1 = 347, Position 2 = 539
Branch analysis from position: 347
2 jumps found. (Code = 43) Position 1 = 350, Position 2 = 538
Branch analysis from position: 350
2 jumps found. (Code = 43) Position 1 = 359, Position 2 = 482
Branch analysis from position: 359
2 jumps found. (Code = 47) Position 1 = 476, Position 2 = 480
Branch analysis from position: 476
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 480
1 jumps found. (Code = 42) Position 1 = 538
Branch analysis from position: 538
1 jumps found. (Code = 42) Position 1 = 818
Branch analysis from position: 818
Branch analysis from position: 482
2 jumps found. (Code = 47) Position 1 = 493, Position 2 = 497
Branch analysis from position: 493
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 497
1 jumps found. (Code = 42) Position 1 = 818
Branch analysis from position: 818
Branch analysis from position: 538
Branch analysis from position: 539
2 jumps found. (Code = 43) Position 1 = 543, Position 2 = 549
Branch analysis from position: 543
1 jumps found. (Code = 42) Position 1 = 818
Branch analysis from position: 818
Branch analysis from position: 549
2 jumps found. (Code = 43) Position 1 = 553, Position 2 = 678
Branch analysis from position: 553
2 jumps found. (Code = 43) Position 1 = 556, Position 2 = 676
Branch analysis from position: 556
2 jumps found. (Code = 43) Position 1 = 635, Position 2 = 637
Branch analysis from position: 635
1 jumps found. (Code = 42) Position 1 = 638
Branch analysis from position: 638
2 jumps found. (Code = 47) Position 1 = 669, Position 2 = 673
Branch analysis from position: 669
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 673
1 jumps found. (Code = 42) Position 1 = 677
Branch analysis from position: 677
1 jumps found. (Code = 42) Position 1 = 818
Branch analysis from position: 818
Branch analysis from position: 637
2 jumps found. (Code = 47) Position 1 = 669, Position 2 = 673
Branch analysis from position: 669
Branch analysis from position: 673
Branch analysis from position: 676
1 jumps found. (Code = 42) Position 1 = 818
Branch analysis from position: 818
Branch analysis from position: 678
2 jumps found. (Code = 43) Position 1 = 682, Position 2 = 771
Branch analysis from position: 682
2 jumps found. (Code = 43) Position 1 = 685, Position 2 = 709
Branch analysis from position: 685
2 jumps found. (Code = 47) Position 1 = 703, Position 2 = 707
Branch analysis from position: 703
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 707
1 jumps found. (Code = 42) Position 1 = 770
Branch analysis from position: 770
1 jumps found. (Code = 42) Position 1 = 818
Branch analysis from position: 818
Branch analysis from position: 709
2 jumps found. (Code = 47) Position 1 = 718, Position 2 = 722
Branch analysis from position: 718
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 722
2 jumps found. (Code = 43) Position 1 = 729, Position 2 = 731
Branch analysis from position: 729
1 jumps found. (Code = 42) Position 1 = 770
Branch analysis from position: 770
Branch analysis from position: 731
1 jumps found. (Code = 42) Position 1 = 765
Branch analysis from position: 765
2 jumps found. (Code = 44) Position 1 = 770, Position 2 = 732
Branch analysis from position: 770
Branch analysis from position: 732
2 jumps found. (Code = 44) Position 1 = 770, Position 2 = 732
Branch analysis from position: 770
Branch analysis from position: 732
Branch analysis from position: 771
2 jumps found. (Code = 43) Position 1 = 775, Position 2 = 818
Branch analysis from position: 775
2 jumps found. (Code = 43) Position 1 = 779, Position 2 = 818
Branch analysis from position: 779
2 jumps found. (Code = 47) Position 1 = 797, Position 2 = 801
Branch analysis from position: 797
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 801
2 jumps found. (Code = 43) Position 1 = 807, Position 2 = 809
Branch analysis from position: 807
1 jumps found. (Code = 42) Position 1 = 818
Branch analysis from position: 818
Branch analysis from position: 809
2 jumps found. (Code = 43) Position 1 = 821, Position 2 = 829
Branch analysis from position: 821
Branch analysis from position: 829
Branch analysis from position: 818
Branch analysis from position: 818
Branch analysis from position: 842
filename:       /in/Wnv7Q
function name:  (null)
number of ops:  843
compiled vars:  !0 = $user, !1 = $subject, !2 = $marks, !3 = $tbl2, !4 = $i, !5 = $val, !6 = $name, !7 = $qr, !8 = $rr, !9 = $s, !10 = $pwd, !11 = $fullname, !12 = $session, !13 = $class, !14 = $campus, !15 = $fine, !16 = $fee, !17 = $attendance, !18 = $result_last, !19 = $fone, !20 = $addr, !21 = $email, !22 = $tbl_name, !23 = $sql22, !24 = $result22, !25 = $user22, !26 = $user_name, !27 = $rank, !28 = $insert_query, !29 = $insert_result, !30 = $responsemsg, !31 = $query5, !32 = $result, !33 = $qfo, !34 = $fo, !35 = $rowfo, !36 = $users, !37 = $uid, !38 = $foundu, !39 = $userinfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'config.php', REQUIRE_ONCE
    4     1        INCLUDE_OR_EVAL                                          'login.php', REQUIRE_ONCE
    5     2        FETCH_R                      global              ~42     '_SESSION'
          3        FETCH_DIM_R                                      ~43     ~42, 'admin'
          4        IS_NOT_IDENTICAL                                         ~43, 'true'
          5      > JMPZ                                                     ~44, ->11
    6     6    >   INIT_FCALL                                               'header'
          7        SEND_VAL                                                 'Location%3A+members.php%3Fmsg%3DEhm%2C+ehm.+You+are+not+admin+or+you+logged+out+%28if+so%2C+please+log+in+again%29.'
          8        DO_ICALL                                                 
    7     9        ECHO                                                     'You+are+not+admin+so+please+behave+yourself+%3A%29'
         10      > JMP                                                      ->842
    8    11    >   FETCH_R                      global              ~46     '_SESSION'
         12        FETCH_DIM_R                                      ~47     ~46, 'admin'
         13        IS_EQUAL                                                 ~47, 'true'
         14      > JMPZ                                                     ~48, ->842
   13    15    >   FETCH_R                      global              ~49     '_GET'
         16        FETCH_DIM_R                                      ~50     ~49, 'action'
         17        IS_EQUAL                                                 ~50, 'addresult'
         18      > JMPZ                                                     ~51, ->258
   14    19    >   FETCH_R                      global              ~52     '_GET'
         20        FETCH_DIM_R                                      ~53     ~52, 'user'
         21      > JMPZ                                                     ~53, ->257
   15    22    >   INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
         23        CHECK_FUNC_ARG                                           
         24        FETCH_FUNC_ARG               global              $54     '_GET'
         25        FETCH_DIM_FUNC_ARG                               $55     $54, 'user'
         26        SEND_FUNC_ARG                                            $55
         27        DO_FCALL                                      0  $56     
         28        ASSIGN                                                   !0, $56
   17    29        FETCH_R                      global              ~58     '_POST'
         30      > JMPZ                                                     ~58, ->240
   18    31    >   FETCH_R                      global              ~59     '_POST'
         32        FETCH_DIM_R                                      ~60     ~59, 'subject1'
         33      > JMPZ                                                     ~60, ->57
   19    34    >   FETCH_R                      global              ~61     '_POST'
         35        FETCH_DIM_R                                      ~62     ~61, 'subject1'
         36        ASSIGN                                                   !1, ~62
   20    37        FETCH_R                      global              ~64     '_POST'
         38        FETCH_DIM_R                                      ~65     ~64, 'marks1'
         39        ASSIGN                                                   !2, ~65
   21    40        INIT_FCALL_BY_NAME                                       'mysql_query'
         41        ROPE_INIT                                     9  ~68     'INERT+INTO+'
         42        ROPE_ADD                                      1  ~68     ~68, !3
         43        ROPE_ADD                                      2  ~68     ~68, '+%28user%2C+subject%2C+marks%29+VALUES+%28%27'
         44        ROPE_ADD                                      3  ~68     ~68, !0
         45        ROPE_ADD                                      4  ~68     ~68, '%27%2C+%27'
         46        ROPE_ADD                                      5  ~68     ~68, !1
         47        ROPE_ADD                                      6  ~68     ~68, '%27%2C+%27'
         48        ROPE_ADD                                      7  ~68     ~68, !2
         49        ROPE_END                                      8  ~67     ~68, '%27'
         50        SEND_VAL_EX                                              ~67
         51        DO_FCALL                                      0  $73     
         52      > JMPNZ_EX                                         ~74     $73, ->57
         53    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         54        DO_FCALL                                      0  $75     
         55      > EXIT                                                     $75
         56*       BOOL                                             ~74     <true>
   23    57    >   FETCH_R                      global              ~76     '_POST'
         58        FETCH_DIM_R                                      ~77     ~76, 'subject2'
         59      > JMPZ                                                     ~77, ->83
   24    60    >   FETCH_R                      global              ~78     '_POST'
         61        FETCH_DIM_R                                      ~79     ~78, 'subject2'
         62        ASSIGN                                                   !1, ~79
   25    63        FETCH_R                      global              ~81     '_POST'
         64        FETCH_DIM_R                                      ~82     ~81, 'marks2'
         65        ASSIGN                                                   !2, ~82
   26    66        INIT_FCALL_BY_NAME                                       'mysql_query'
         67        ROPE_INIT                                     9  ~85     'INERT+INTO+'
         68        ROPE_ADD                                      1  ~85     ~85, !3
         69        ROPE_ADD                                      2  ~85     ~85, '+%28user%2C+subject%2C+marks%29+VALUES+%28%27'
         70        ROPE_ADD                                      3  ~85     ~85, !0
         71        ROPE_ADD                                      4  ~85     ~85, '%27%2C+%27'
         72        ROPE_ADD                                      5  ~85     ~85, !1
         73        ROPE_ADD                                      6  ~85     ~85, '%27%2C+%27'
         74        ROPE_ADD                                      7  ~85     ~85, !2
         75        ROPE_END                                      8  ~84     ~85, '%27'
         76        SEND_VAL_EX                                              ~84
         77        DO_FCALL                                      0  $90     
         78      > JMPNZ_EX                                         ~91     $90, ->83
         79    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         80        DO_FCALL                                      0  $92     
         81      > EXIT                                                     $92
         82*       BOOL                                             ~91     <true>
   28    83    >   FETCH_R                      global              ~93     '_POST'
         84        FETCH_DIM_R                                      ~94     ~93, 'subject3'
         85      > JMPZ                                                     ~94, ->109
   29    86    >   FETCH_R                      global              ~95     '_POST'
         87        FETCH_DIM_R                                      ~96     ~95, 'subject3'
         88        ASSIGN                                                   !1, ~96
   30    89        FETCH_R                      global              ~98     '_POST'
         90        FETCH_DIM_R                                      ~99     ~98, 'marks3'
         91        ASSIGN                                                   !2, ~99
   31    92        INIT_FCALL_BY_NAME                                       'mysql_query'
         93        ROPE_INIT                                     9  ~102    'INERT+INTO+'
         94        ROPE_ADD                                      1  ~102    ~102, !3
         95        ROPE_ADD                                      2  ~102    ~102, '+%28user%2C+subject%2C+marks%29+VALUES+%28%27'
         96        ROPE_ADD                                      3  ~102    ~102, !0
         97        ROPE_ADD                                      4  ~102    ~102, '%27%2C+%27'
         98        ROPE_ADD                                      5  ~102    ~102, !1
         99        ROPE_ADD                                      6  ~102    ~102, '%27%2C+%27'
        100        ROPE_ADD                                      7  ~102    ~102, !2
        101        ROPE_END                                      8  ~101    ~102, '%27'
        102        SEND_VAL_EX                                              ~101
        103        DO_FCALL                                      0  $107    
        104      > JMPNZ_EX                                         ~108    $107, ->109
        105    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        106        DO_FCALL                                      0  $109    
        107      > EXIT                                                     $109
        108*       BOOL                                             ~108    <true>
   33   109    >   FETCH_R                      global              ~110    '_POST'
        110        FETCH_DIM_R                                      ~111    ~110, 'subject4'
        111      > JMPZ                                                     ~111, ->135
   34   112    >   FETCH_R                      global              ~112    '_POST'
        113        FETCH_DIM_R                                      ~113    ~112, 'subject4'
        114        ASSIGN                                                   !1, ~113
   35   115        FETCH_R                      global              ~115    '_POST'
        116        FETCH_DIM_R                                      ~116    ~115, 'marks4'
        117        ASSIGN                                                   !2, ~116
   36   118        INIT_FCALL_BY_NAME                                       'mysql_query'
        119        ROPE_INIT                                     9  ~119    'INERT+INTO+'
        120        ROPE_ADD                                      1  ~119    ~119, !3
        121        ROPE_ADD                                      2  ~119    ~119, '+%28user%2C+subject%2C+marks%29+VALUES+%28%27'
        122        ROPE_ADD                                      3  ~119    ~119, !0
        123        ROPE_ADD                                      4  ~119    ~119, '%27%2C+%27'
        124        ROPE_ADD                                      5  ~119    ~119, !1
        125        ROPE_ADD                                      6  ~119    ~119, '%27%2C+%27'
        126        ROPE_ADD                                      7  ~119    ~119, !2
        127        ROPE_END                                      8  ~118    ~119, '%27'
        128        SEND_VAL_EX                                              ~118
        129        DO_FCALL                                      0  $124    
        130      > JMPNZ_EX                                         ~125    $124, ->135
        131    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        132        DO_FCALL                                      0  $126    
        133      > EXIT                                                     $126
        134*       BOOL                                             ~125    <true>
   38   135    >   FETCH_R                      global              ~127    '_POST'
        136        FETCH_DIM_R                                      ~128    ~127, 'subject5'
        137      > JMPZ                                                     ~128, ->161
   39   138    >   FETCH_R                      global              ~129    '_POST'
        139        FETCH_DIM_R                                      ~130    ~129, 'subject5'
        140        ASSIGN                                                   !1, ~130
   40   141        FETCH_R                      global              ~132    '_POST'
        142        FETCH_DIM_R                                      ~133    ~132, 'marks5'
        143        ASSIGN                                                   !2, ~133
   41   144        INIT_FCALL_BY_NAME                                       'mysql_query'
        145        ROPE_INIT                                     9  ~136    'INERT+INTO+'
        146        ROPE_ADD                                      1  ~136    ~136, !3
        147        ROPE_ADD                                      2  ~136    ~136, '+%28user%2C+subject%2C+marks%29+VALUES+%28%27'
        148        ROPE_ADD                                      3  ~136    ~136, !0
        149        ROPE_ADD                                      4  ~136    ~136, '%27%2C+%27'
        150        ROPE_ADD                                      5  ~136    ~136, !1
        151        ROPE_ADD                                      6  ~136    ~136, '%27%2C+%27'
        152        ROPE_ADD                                      7  ~136    ~136, !2
        153        ROPE_END                                      8  ~135    ~136, '%27'
        154        SEND_VAL_EX                                              ~135
        155        DO_FCALL                                      0  $141    
        156      > JMPNZ_EX                                         ~142    $141, ->161
        157    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        158        DO_FCALL                                      0  $143    
        159      > EXIT                                                     $143
        160*       BOOL                                             ~142    <true>
   43   161    >   FETCH_R                      global              ~144    '_POST'
        162        FETCH_DIM_R                                      ~145    ~144, 'subject6'
        163      > JMPZ                                                     ~145, ->187
   44   164    >   FETCH_R                      global              ~146    '_POST'
        165        FETCH_DIM_R                                      ~147    ~146, 'subject6'
        166        ASSIGN                                                   !1, ~147
   45   167        FETCH_R                      global              ~149    '_POST'
        168        FETCH_DIM_R                                      ~150    ~149, 'marks6'
        169        ASSIGN                                                   !2, ~150
   46   170        INIT_FCALL_BY_NAME                                       'mysql_query'
        171        ROPE_INIT                                     9  ~153    'INERT+INTO+'
        172        ROPE_ADD                                      1  ~153    ~153, !3
        173        ROPE_ADD                                      2  ~153    ~153, '+%28user%2C+subject%2C+marks%29+VALUES+%28%27'
        174        ROPE_ADD                                      3  ~153    ~153, !0
        175        ROPE_ADD                                      4  ~153    ~153, '%27%2C+%27'
        176        ROPE_ADD                                      5  ~153    ~153, !1
        177        ROPE_ADD                                      6  ~153    ~153, '%27%2C+%27'
        178        ROPE_ADD                                      7  ~153    ~153, !2
        179        ROPE_END                                      8  ~152    ~153, '%27'
        180        SEND_VAL_EX                                              ~152
        181        DO_FCALL                                      0  $158    
        182      > JMPNZ_EX                                         ~159    $158, ->187
        183    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        184        DO_FCALL                                      0  $160    
        185      > EXIT                                                     $160
        186*       BOOL                                             ~159    <true>
   48   187    >   FETCH_R                      global              ~161    '_POST'
        188        FETCH_DIM_R                                      ~162    ~161, 'subject7'
        189      > JMPZ                                                     ~162, ->213
   49   190    >   FETCH_R                      global              ~163    '_POST'
        191        FETCH_DIM_R                                      ~164    ~163, 'subject7'
        192        ASSIGN                                                   !1, ~164
   50   193        FETCH_R                      global              ~166    '_POST'
        194        FETCH_DIM_R                                      ~167    ~166, 'marks7'
        195        ASSIGN                                                   !2, ~167
   51   196        INIT_FCALL_BY_NAME                                       'mysql_query'
        197        ROPE_INIT                                     9  ~170    'INERT+INTO+'
        198        ROPE_ADD                                      1  ~170    ~170, !3
        199        ROPE_ADD                                      2  ~170    ~170, '+%28user%2C+subject%2C+marks%29+VALUES+%28%27'
        200        ROPE_ADD                                      3  ~170    ~170, !0
        201        ROPE_ADD                                      4  ~170    ~170, '%27%2C+%27'
        202        ROPE_ADD                                      5  ~170    ~170, !1
        203        ROPE_ADD                                      6  ~170    ~170, '%27%2C+%27'
        204        ROPE_ADD                                      7  ~170    ~170, !2
        205        ROPE_END                                      8  ~169    ~170, '%27'
        206        SEND_VAL_EX                                              ~169
        207        DO_FCALL                                      0  $175    
        208      > JMPNZ_EX                                         ~176    $175, ->213
        209    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        210        DO_FCALL                                      0  $177    
        211      > EXIT                                                     $177
        212*       BOOL                                             ~176    <true>
   53   213    >   FETCH_R                      global              ~178    '_POST'
        214        FETCH_DIM_R                                      ~179    ~178, 'subject8'
        215      > JMPZ                                                     ~179, ->239
   54   216    >   FETCH_R                      global              ~180    '_POST'
        217        FETCH_DIM_R                                      ~181    ~180, 'subject8'
        218        ASSIGN                                                   !1, ~181
   55   219        FETCH_R                      global              ~183    '_POST'
        220        FETCH_DIM_R                                      ~184    ~183, 'marks8'
        221        ASSIGN                                                   !2, ~184
   56   222        INIT_FCALL_BY_NAME                                       'mysql_query'
        223        ROPE_INIT                                     9  ~187    'INERT+INTO+'
        224        ROPE_ADD                                      1  ~187    ~187, !3
        225        ROPE_ADD                                      2  ~187    ~187, '+%28user%2C+subject%2C+marks%29+VALUES+%28%27'
        226        ROPE_ADD                                      3  ~187    ~187, !0
        227        ROPE_ADD                                      4  ~187    ~187, '%27%2C+%27'
        228        ROPE_ADD                                      5  ~187    ~187, !1
        229        ROPE_ADD                                      6  ~187    ~187, '%27%2C+%27'
        230        ROPE_ADD                                      7  ~187    ~187, !2
        231        ROPE_END                                      8  ~186    ~187, '%27'
        232        SEND_VAL_EX                                              ~186
        233        DO_FCALL                                      0  $192    
        234      > JMPNZ_EX                                         ~193    $192, ->239
        235    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        236        DO_FCALL                                      0  $194    
        237      > EXIT                                                     $194
        238*       BOOL                                             ~193    <true>
   62   239    >   ECHO                                                     'Subject+and+marks+added.+Add+more+if+you+want%21'
   64   240    >   ECHO                                                     '%3Cstyle%3E.admin+%7B+display%3Anone%3B+%7D+.back+%7B+display%3A+block+%21important%3B+%7D%3C%2Fstyle%3E%3Cbr+%2F%3E'
   65   241        ECHO                                                     '%3Cform+method%3D%22POST%22+action%3D%22%22%3E'
   66   242        ASSIGN                                                   !4, 1
        243      > JMP                            

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.47 ms | 1433 KiB | 15 Q