3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); //db include_once('db.php'); include_once 'time_stamp.php'; include_once 'tolink.php'; $user_email = $_SESSION['email']; //get id by matching email address $q4id = mysql_query("SELECT id FROM tbluser WHERE email = '$user_email'"); $row_id = mysql_fetch_assoc($q4id); $user_id = $row_id['id']; // id of the user //limit of group posts $i_limit='15'; //number of posts to show on a page if($_GET['next']){ $limit = $i_limit*$_GET['next']; $_i = ($_GET['next']-1)*$i_limit; } else { $limit=$i_limit; $_i='0'; } if($_GET['msg']){ echo "<span style='border-radius:5px;display:block;border:2px solid red;text-align:center;background:#cfc'> ".htmlentities($_GET['msg'])." </span>"; } if($_GET['id']){ echo "<link rel='stylesheet' type='text/css' href='groups.css' />"; $gid=$_GET['id']; $qcheck = mysql_query("SELECT * FROM groups WHERE id = '$gid'") or die("Error! Cheating the system is not tolerated here!"); $qgroupname = mysql_query("SELECT * FROM groups WHERE id = '$gid' AND active = '1'"); $ex = mysql_num_rows($qgroupname); if($ex==0){ echo "No such group exists!<br/>You may have clicked a wrong link or the group may have been deleted or suspended."; } else { $row_gname = mysql_fetch_array($qgroupname); //following are the variables to display group name and/or description. place them where u want $gdescription = $row_gname['description']; $gname = $row_gname['name']; $qgroups = mysql_query("SELECT * FROM groupmembers WHERE member = '$user_id' AND id = '$gid' AND flag = '1'"); $countgroups = mysql_num_rows($qgroups); if($countgroups == 0){ //user is not a member of group or is banned //place $msg to show the following msg, u may edit it. $msg="You are not a member of this group. Join this group"; //following is the link variable. u can appy css to it by editing it! $jl='<a href="join.php?id='.$gid.'">Join</a>'; } elseif($countgroups == 1){ //user is a member $query4admin = mysql_query("SELECT * FROM groups WHERE id = '$gid' AND admin = '$user_id'"); $admin = mysql_num_rows($query4admin); if($admin == 1){ //user is admin so it will display admin link, msg etc. u can edit! $msg="You are admin of this group"; $jl='<a href="admin.php?id='.$gid.'">Admin</a>'; } elseif($admin == 0){ //you can also customize these variables! $msg="You are a member of this group."; $jl='<a href="leave.php?id='.$gid.'">Leave</a>'; } ?> <div style="text-align:left;background-color:#FFFFFF;padding:10px;width:550px;"> <div id="updateboxarea" style="margin-bottom:20px;"> <h4>Share something</h4> <form method="post" action="post.php?id=<?=$gid?>" > <textarea cols="30" rows="4" name="message" id="update" maxlength="200" ></textarea> <br /> <input type="submit" value="Post" class="update_button"/> </form> </div> <?php $queryposts = mysql_query("SELECT * FROM groupmessages WHERE gid = '$gid' AND type = 'text' LIMIT $_i, $limit ") or die(mysql_error()); $posts = mysql_num_rows($queryposts); while($post = mysql_fetch_array($queryposts)){ $uid=$post['author']; $quser = mysql_query("SELECT * FROM tbluser WHERE id = '$uid'"); $row_user = mysql_fetch_assoc($quser); $user_name = $row_user['fname']." ".$row_user['lname']; $user_photo = $row_user['photo']; $user_photo="http://nitofa.com/user_pics/users/$user_photo"; $msg_id=$post['msg_id']; $message=$post['message']; $message=tolink(htmlentities($message)); $time=$post['created']; $q4 = mysql_query("SELECT * FROM groups WHERE id = '$gid' AND admin = '$user_id'"); $info = mysql_fetch_array($q4); $admin = mysql_num_rows($q4); if($admin == 1){ //if user is admin, than we will also show delete link! $del = '<a class="stdelete" href="delete.php?id='.$msg_id.'" id="'.$msg_id.'" title="Delete post">X</a>'; } elseif($uid==$user_id){ //if the post is by the user than delete link is shown also! $del = '<a class="stdelete" href="delete.php?id='.$msg_id.'" id="'.$msg_id.'" title="Delete post">X</a>'; } ?> <div class="stbody" id="stbody<?php echo $msg_id;?>"> <div class="stimg"> <img src="<?php echo $user_photo;?>" class='big_face'/> </div> <div class="sttext"> <?php if($del) { echo $del; } ?> <b><a href="<?php echo 'http://nitofa.com/browse-user.php?fid='.$uid;?>"><?php echo $user_name;?></a></b> <br/><?php echo $message;?> <div class="sttime"><?php time_stamp($time);?><!-- | <a href='#commentbox<?php echo $msg_id;?>' class='commentopen' id='<?php echo $msg_id;?>' title='Comment'>Comment </a> --></div> <div id="stexpandbox"> <div id="stexpand<?php echo $msg_id;?>"></div> </div> <div class="commentcontainer" id="commentload<?php echo $msg_id;?>"> <?php include('comments.php'); ?> </div> <div class="commentupdate" style='display:none;' id='commentbox<?php echo $msg_id;?>'> <div class="stcommentimg"> <img src="<?php echo $user_photo;?>" class='small_face'/> </div> <div class="stcommenttext" > <form method="post" action="comment.php"> <textarea name="comment" class="comment" maxlength="200" id="ctextarea<?php echo $msg_id;?>"></textarea> <br /> <input type="submit" value=" Comment " id="<?php echo $msg_id;?>" class="comment_button"/> </form> </div> </div> <!--close sttext--> </div> <!--close stbody--> </div> <?php } if(!$posts < $i_limit){ if(!$_GET['next']){ $page = '2'; } else { $page = $_GET['next']+1; } echo '<a style="text-align:center;margin:0 auto;" href="?id='.$gid.'&next='.$page.'">View More</a>'; } echo "</div>"; } } } else { //user joined groups $qgroups = mysql_query("SELECT * FROM groupmembers WHERE member = '$id'"); $countgroups = mysql_num_rows($qgroups); if ($countgroups == 0) { //u can make the following a variable by changing echo with $variablename= and place where u want echo "You have not joined any group yet."; } else { echo "<h2 id=\"groups\">Groups you have joined:</h2>"; while($groups = mysql_fetch_array($qgroups)){ $gid=$groups['id']; $qgroupname = mysql_query("SELECT name FROM groups WHERE id = '$gid' AND active = '1'"); $cq = mysql_num_rows($qgroupname); if($cq==0){ //group is deleted one so continue continue; } else { $row_gname = mysql_fetch_assoc($qgroupname); $gname = $row_gname['name']; echo "<a href='?id=".$gid."'>".$gname."</a><br/>"; } } } echo "<hr/>"; // user created groups $qmygroups = mysql_query("SELECT * FROM groups WHERE admin = '$user_id' AND active = '1'"); $countmygroups = mysql_num_rows($qmygroups); echo "<h2 id=\"mygroups\">Your Groups:</h2>"; if($countmygroups==0){ echo "You have not created any group yet!"; } else { while($mygroups = mysql_fetch_array($qmygroups)){ $gid=$mygroups['id']; $mygname=$mygroups['name']; echo "<a href='?id=".$gid."'>".$mygname."</a> &nbsp; - &nbsp; <a style='text-decoration:none;border-bottom:1px solid grey;font-size:small;' href='admin.php?id=".$gid."'>Admin</a><br/>"; } } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 35
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 48
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 290
Branch analysis from position: 51
2 jumps found. (Code = 47) Position 1 = 63, Position 2 = 65
Branch analysis from position: 63
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 65
2 jumps found. (Code = 43) Position 1 = 78, Position 2 = 80
Branch analysis from position: 78
1 jumps found. (Code = 42) Position 1 = 289
Branch analysis from position: 289
1 jumps found. (Code = 42) Position 1 = 374
Branch analysis from position: 374
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 80
2 jumps found. (Code = 43) Position 1 = 103, Position 2 = 108
Branch analysis from position: 103
1 jumps found. (Code = 42) Position 1 = 289
Branch analysis from position: 289
Branch analysis from position: 108
2 jumps found. (Code = 43) Position 1 = 110, Position 2 = 289
Branch analysis from position: 110
2 jumps found. (Code = 43) Position 1 = 125, Position 2 = 130
Branch analysis from position: 125
1 jumps found. (Code = 42) Position 1 = 136
Branch analysis from position: 136
2 jumps found. (Code = 47) Position 1 = 151, Position 2 = 155
Branch analysis from position: 151
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 155
1 jumps found. (Code = 42) Position 1 = 265
Branch analysis from position: 265
2 jumps found. (Code = 44) Position 1 = 270, Position 2 = 160
Branch analysis from position: 270
2 jumps found. (Code = 43) Position 1 = 273, Position 2 = 288
Branch analysis from position: 273
2 jumps found. (Code = 43) Position 1 = 277, Position 2 = 279
Branch analysis from position: 277
1 jumps found. (Code = 42) Position 1 = 283
Branch analysis from position: 283
1 jumps found. (Code = 42) Position 1 = 374
Branch analysis from position: 374
Branch analysis from position: 279
1 jumps found. (Code = 42) Position 1 = 374
Branch analysis from position: 374
Branch analysis from position: 288
Branch analysis from position: 160
2 jumps found. (Code = 43) Position 1 = 215, Position 2 = 221
Branch analysis from position: 215
1 jumps found. (Code = 42) Position 1 = 228
Branch analysis from position: 228
2 jumps found. (Code = 43) Position 1 = 234, Position 2 = 235
Branch analysis from position: 234
2 jumps found. (Code = 44) Position 1 = 270, Position 2 = 160
Branch analysis from position: 270
Branch analysis from position: 160
Branch analysis from position: 235
Branch analysis from position: 221
2 jumps found. (Code = 43) Position 1 = 223, Position 2 = 228
Branch analysis from position: 223
2 jumps found. (Code = 43) Position 1 = 234, Position 2 = 235
Branch analysis from position: 234
Branch analysis from position: 235
Branch analysis from position: 228
Branch analysis from position: 130
2 jumps found. (Code = 43) Position 1 = 132, Position 2 = 136
Branch analysis from position: 132
2 jumps found. (Code = 47) Position 1 = 151, Position 2 = 155
Branch analysis from position: 151
Branch analysis from position: 155
Branch analysis from position: 136
Branch analysis from position: 289
Branch analysis from position: 290
2 jumps found. (Code = 43) Position 1 = 303, Position 2 = 305
Branch analysis from position: 303
1 jumps found. (Code = 42) Position 1 = 340
Branch analysis from position: 340
2 jumps found. (Code = 43) Position 1 = 355, Position 2 = 357
Branch analysis from position: 355
1 jumps found. (Code = 42) Position 1 = 374
Branch analysis from position: 374
Branch analysis from position: 357
1 jumps found. (Code = 42) Position 1 = 369
Branch analysis from position: 369
2 jumps found. (Code = 44) Position 1 = 374, Position 2 = 358
Branch analysis from position: 374
Branch analysis from position: 358
2 jumps found. (Code = 44) Position 1 = 374, Position 2 = 358
Branch analysis from position: 374
Branch analysis from position: 358
Branch analysis from position: 305
1 jumps found. (Code = 42) Position 1 = 335
Branch analysis from position: 335
2 jumps found. (Code = 44) Position 1 = 340, Position 2 = 307
Branch analysis from position: 340
Branch analysis from position: 307
2 jumps found. (Code = 43) Position 1 = 322, Position 2 = 324
Branch analysis from position: 322
1 jumps found. (Code = 42) Position 1 = 335
Branch analysis from position: 335
Branch analysis from position: 324
2 jumps found. (Code = 44) Position 1 = 340, Position 2 = 307
Branch analysis from position: 340
Branch analysis from position: 307
Branch analysis from position: 48
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 48
Branch analysis from position: 40
Branch analysis from position: 48
filename:       /in/nhdZG
function name:  (null)
number of ops:  375
compiled vars:  !0 = $user_email, !1 = $q4id, !2 = $row_id, !3 = $user_id, !4 = $i_limit, !5 = $limit, !6 = $_i, !7 = $gid, !8 = $qcheck, !9 = $qgroupname, !10 = $ex, !11 = $row_gname, !12 = $gdescription, !13 = $gname, !14 = $qgroups, !15 = $countgroups, !16 = $msg, !17 = $jl, !18 = $query4admin, !19 = $admin, !20 = $queryposts, !21 = $posts, !22 = $uid, !23 = $post, !24 = $quser, !25 = $row_user, !26 = $user_name, !27 = $user_photo, !28 = $msg_id, !29 = $message, !30 = $time, !31 = $q4, !32 = $info, !33 = $del, !34 = $page, !35 = $id, !36 = $groups, !37 = $cq, !38 = $qmygroups, !39 = $countmygroups, !40 = $mygroups, !41 = $mygname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    5     2        INCLUDE_OR_EVAL                                          'db.php', INCLUDE_ONCE
    6     3        INCLUDE_OR_EVAL                                          'time_stamp.php', INCLUDE_ONCE
    7     4        INCLUDE_OR_EVAL                                          'tolink.php', INCLUDE_ONCE
    9     5        FETCH_R                      global              ~46     '_SESSION'
          6        FETCH_DIM_R                                      ~47     ~46, 'email'
          7        ASSIGN                                                   !0, ~47
   11     8        INIT_FCALL_BY_NAME                                       'mysql_query'
          9        ROPE_INIT                                     3  ~50     'SELECT+id+FROM+tbluser+WHERE+email+%3D+%27'
         10        ROPE_ADD                                      1  ~50     ~50, !0
         11        ROPE_END                                      2  ~49     ~50, '%27'
         12        SEND_VAL_EX                                              ~49
         13        DO_FCALL                                      0  $52     
         14        ASSIGN                                                   !1, $52
   12    15        INIT_FCALL_BY_NAME                                       'mysql_fetch_assoc'
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0  $54     
         18        ASSIGN                                                   !2, $54
   13    19        FETCH_DIM_R                                      ~56     !2, 'id'
         20        ASSIGN                                                   !3, ~56
   16    21        ASSIGN                                                   !4, '15'
   18    22        FETCH_R                      global              ~59     '_GET'
         23        FETCH_DIM_R                                      ~60     ~59, 'next'
         24      > JMPZ                                                     ~60, ->35
   19    25    >   FETCH_R                      global              ~61     '_GET'
         26        FETCH_DIM_R                                      ~62     ~61, 'next'
         27        MUL                                              ~63     !4, ~62
         28        ASSIGN                                                   !5, ~63
   20    29        FETCH_R                      global              ~65     '_GET'
         30        FETCH_DIM_R                                      ~66     ~65, 'next'
         31        SUB                                              ~67     ~66, 1
         32        MUL                                              ~68     !4, ~67
         33        ASSIGN                                                   !6, ~68
         34      > JMP                                                      ->37
   22    35    >   ASSIGN                                                   !5, !4
   23    36        ASSIGN                                                   !6, '0'
   29    37    >   FETCH_R                      global              ~72     '_GET'
         38        FETCH_DIM_R                                      ~73     ~72, 'msg'
         39      > JMPZ                                                     ~73, ->48
         40    >   INIT_FCALL                                               'htmlentities'
         41        FETCH_R                      global              ~74     '_GET'
         42        FETCH_DIM_R                                      ~75     ~74, 'msg'
         43        SEND_VAL                                                 ~75
         44        DO_ICALL                                         $76     
         45        CONCAT                                           ~77     '%3Cspan+style%3D%27border-radius%3A5px%3Bdisplay%3Ablock%3Bborder%3A2px+solid+red%3Btext-align%3Acenter%3Bbackground%3A%23cfc%27%3E+', $76
         46        CONCAT                                           ~78     ~77, '+%3C%2Fspan%3E'
         47        ECHO                                                     ~78
   32    48    >   FETCH_R                      global              ~79     '_GET'
         49        FETCH_DIM_R                                      ~80     ~79, 'id'
         50      > JMPZ                                                     ~80, ->290
   33    51    >   ECHO                                                     '%3Clink+rel%3D%27stylesheet%27+type%3D%27text%2Fcss%27+href%3D%27groups.css%27+%2F%3E'
   34    52        FETCH_R                      global              ~81     '_GET'
         53        FETCH_DIM_R                                      ~82     ~81, 'id'
         54        ASSIGN                                                   !7, ~82
   35    55        INIT_FCALL_BY_NAME                                       'mysql_query'
         56        ROPE_INIT                                     3  ~85     'SELECT+%2A+FROM+groups+WHERE+id+%3D+%27'
         57        ROPE_ADD                                      1  ~85     ~85, !7
         58        ROPE_END                                      2  ~84     ~85, '%27'
         59        SEND_VAL_EX                                              ~84
         60        DO_FCALL                                      0  $87     
         61        ASSIGN                                           ~88     !8, $87
         62      > JMPNZ_EX                                         ~88     ~88, ->65
         63    > > EXIT                                                     'Error%21+Cheating+the+system+is+not+tolerated+here%21'
         64*       BOOL                                             ~88     <true>
   36    65    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         66        ROPE_INIT                                     3  ~90     'SELECT+%2A+FROM+groups+WHERE+id+%3D+%27'
         67        ROPE_ADD                                      1  ~90     ~90, !7
         68        ROPE_END                                      2  ~89     ~90, '%27+AND+active+%3D+%271%27'
         69        SEND_VAL_EX                                              ~89
         70        DO_FCALL                                      0  $92     
         71        ASSIGN                                                   !9, $92
   37    72        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
         73        SEND_VAR_EX                                              !9
         74        DO_FCALL                                      0  $94     
         75        ASSIGN                                                   !10, $94
   38    76        IS_EQUAL                                                 !10, 0
         77      > JMPZ                                                     ~96, ->80
         78    >   ECHO                                                     'No+such+group+exists%21%3Cbr%2F%3EYou+may+have+clicked+a+wrong+link+or+the+group+may+have+been+deleted+or+suspended.'
         79      > JMP                                                      ->289
   39    80    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         81        SEND_VAR_EX                                              !9
         82        DO_FCALL                                      0  $97     
         83        ASSIGN                                                   !11, $97
   42    84        FETCH_DIM_R                                      ~99     !11, 'description'
         85        ASSIGN                                                   !12, ~99
   43    86        FETCH_DIM_R                                      ~101    !11, 'name'
         87        ASSIGN                                                   !13, ~101
   45    88        INIT_FCALL_BY_NAME                                       'mysql_query'
         89        ROPE_INIT                                     5  ~104    'SELECT+%2A+FROM+groupmembers+WHERE+member+%3D+%27'
         90        ROPE_ADD                                      1  ~104    ~104, !3
         91        ROPE_ADD                                      2  ~104    ~104, '%27+AND+id+%3D+%27'
         92        ROPE_ADD                                      3  ~104    ~104, !7
         93        ROPE_END                                      4  ~103    ~104, '%27+AND+flag+%3D+%271%27'
         94        SEND_VAL_EX                                              ~103
         95        DO_FCALL                                      0  $107    
         96        ASSIGN                                                   !14, $107
   46    97        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
         98        SEND_VAR_EX                                              !14
         99        DO_FCALL                                      0  $109    
        100        ASSIGN                                                   !15, $109
   47   101        IS_EQUAL                                                 !15, 0
        102      > JMPZ                                                     ~111, ->108
   51   103    >   ASSIGN                                                   !16, 'You+are+not+a+member+of+this+group.+Join+this+group'
   54   104        CONCAT                                           ~113    '%3Ca+href%3D%22join.php%3Fid%3D', !7
        105        CONCAT                                           ~114    ~113, '%22%3EJoin%3C%2Fa%3E'
        106        ASSIGN                                                   !17, ~114
        107      > JMP                                                      ->289
   57   108    >   IS_EQUAL                                                 !15, 1
        109      > JMPZ                                                     ~116, ->289
   60   110    >   INIT_FCALL_BY_NAME                                       'mysql_query'
        111        ROPE_INIT                                     5  ~118    'SELECT+%2A+FROM+groups+WHERE+id+%3D+%27'
        112        ROPE_ADD                                      1  ~118    ~118, !7
        113        ROPE_ADD                                      2  ~118    ~118, '%27+AND+admin+%3D+%27'
        114        ROPE_ADD                                      3  ~118    ~118, !3
        115        ROPE_END                                      4  ~117    ~118, '%27'
        116        SEND_VAL_EX                                              ~117
        117        DO_FCALL                                      0  $121    
        118        ASSIGN                                                   !18, $121
   61   119        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
        120        SEND_VAR_EX                                              !18
        121        DO_FCALL                                      0  $123    
        122        ASSIGN                                                   !19, $123
   62   123        IS_EQUAL                                                 !19, 1
        124      > JMPZ                                                     ~125, ->130
   64   125    >   ASSIGN                                                   !16, 'You+are+admin+of+this+group'
   65   126        CONCAT                                           ~127    '%3Ca+href%3D%22admin.php%3Fid%3D', !7
        127        CONCAT                                           ~128    ~127, '%22%3EAdmin%3C%2Fa%3E'
        128        ASSIGN                                                   !17, ~128
        129      > JMP                                                      ->136
   67   130    >   IS_EQUAL                                                 !19, 0
        131      > JMPZ                                                     ~130, ->136
   69   132    >   ASSIGN                                                   !16, 'You+are+a+member+of+this+group.'
   70   133        CONCAT                                           ~132    '%3Ca+href%3D%22leave.php%3Fid%3D', !7
        134        CONCAT                                           ~133    ~132, '%22%3ELeave%3C%2Fa%3E'
        135        ASSIGN                                                   !17, ~133
   74   136    >   ECHO                                                     '%3Cdiv+style%3D%22text-align%3Aleft%3Bbackground-color%3A%23FFFFFF%3Bpadding%3A10px%3Bwidth%3A550px%3B%22%3E%0A%3Cdiv+id%3D%22updateboxarea%22+style%3D%22margin-bottom%3A20px%3B%22%3E%0A%3Ch4%3EShare+something%3C%2Fh4%3E%0A%3Cform+method%3D%22post%22+action%3D%22post.php%3Fid%3D'
   77   137        ECHO                                                     !7
        138        ECHO                                                     '%22+%3E%0A%3Ctextarea+cols%3D%2230%22+rows%3D%224%22+name%3D%22message%22+id%3D%22update%22+maxlength%3D%22200%22+%3E%3C%2Ftextarea%3E%0A%3Cbr+%2F%3E%0A%3Cinput+type%3D%22submit%22+value%3D%22Post%22+class%3D%22update_button%22%2F%3E%0A%3C%2Fform%3E%0A%3C%2Fdiv%3E%0A%0A%0A'
   86   139        INIT_FCALL_BY_NAME                                       'mysql_query'
        140        ROPE_INIT                                     7  ~136    'SELECT+%2A+FROM+groupmessages+WHERE+gid+%3D+%27'
        141        ROPE_ADD                                      1  ~136    ~136, !7
        142        ROPE_ADD                                      2  ~136    ~136, '%27+AND+type+%3D+%27text%27+LIMIT+'
        143        ROPE_ADD                                      3  ~136    ~136, !6
        144        ROPE_ADD                                      4  ~136    ~136, '%2C+'
        145        ROPE_ADD                                      5  ~136    ~136, !5
        146        ROPE_END                                      6  ~135    ~136, '+'
        147        SEND_VAL_EX                                              ~135
        148        DO_FCALL                                      0  $140    
        149        ASSIGN                                           ~141    !20, $140
        150      > JMPNZ_EX                                         ~141    ~141, ->155
        151    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        152        DO_FCALL                                      0  $142    
        153      > EXIT                                                     $142
        154*       BOOL                                             ~141    <true>
   87   155    >   INIT_FCALL_BY_NAME                                       'mysql_num_rows'
        156        SEND_VAR_EX                                              !20
        157        DO_FCALL                                      0  $143    
        158        ASSIGN                                                   !21, $143
   88   159      > JMP                                                      ->265
   89   160    >   FETCH_DIM_R                                      ~145    !23, 'author'
        161        ASSIGN                                                   !22, ~145
   90   162        INIT_FCALL_BY_NAME                                       'mysql_query'
        163        ROPE_INIT                                     3  ~148    'SELECT+%2A+FROM+tbluser+WHERE+id+%3D+%27'
        164        ROPE_ADD                                      1  ~148    ~148, !22
        165        ROPE_END                                      2  ~147    ~148, '%27'
        166        SEND_VAL_EX                                              ~147
        167        DO_FCALL                                      0  $150    
        168        ASSIGN                                                   !24, $150
   91   169        INIT_FCALL_BY_NAME                                       'mysql_fetch_assoc'
        170        SEND_VAR_EX                                              !24
        171        DO_FCALL                                      0  $152    
        172        ASSIGN                                                   !25, $152
   92   173        FETCH_DIM_R                                      ~154    !25, 'fname'
        174        CONCAT                                           ~155    ~154, '+'
        175        FETCH_DIM_R                                      ~156    !25, 'lname'
        176        CONCAT                                           ~157    ~155, ~156
        177        ASSIGN                                                   !26, ~157
   93   178        FETCH_DIM_R                                      ~159    !25, 'photo'
        179        ASSIGN                                                   !27, ~159
   94   180        NOP                                                      
        181        FAST_CONCAT                                      ~161    'http%3A%2F%2Fnitofa.com%2Fuser_pics%2Fusers%2F', !27
        182        ASSIGN                                                   !27, ~161
   95   183        FETCH_DIM_R                                      ~163    !23, 'msg_id'
        184        ASSIGN                                                   !28, ~163
   96   185        FETCH_DIM_R                                      ~165    !23, 'message'
        186        ASSIGN                                                   !29, ~165
   97   187        INIT_FCALL_BY_NAME                                       'tolink'
        188        INIT_FCALL                                               'htmlentities'
        189        SEND_VAR                                                 !29
        190        DO_ICALL                                         $167    
        191        SEND_VAR_NO_REF_EX                                       $167
        192        DO_FCALL                                      0  $168    
        193        ASSIGN                                                   !29, $168
   98   194        FETCH_DIM_R                                      ~170    !23, 'created'
        195        ASSIGN                                                   !30, ~170
   99   196        INIT_FCALL_BY_NAME                                       'mysql_query'
        197        ROPE_INIT                                     5  ~173    'SELECT+%2A+FROM+groups+WHERE+id+%3D+%27'
        198        ROPE_ADD                                      1  ~173    ~173, !7
        199        ROPE_ADD                                      2  ~173    ~173, '%27+AND+admin+%3D+%27'
        200        ROPE_ADD                                      3  ~173    ~173, !3
        201        ROPE_END                                      4  ~172    ~173, '%27'
        202        SEND_VAL_EX                                              ~172
        203        DO_FCALL                                      0  $176    
        204        ASSIGN                                                   !31, $176
  100   205        INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
        206        SEND_VAR_EX                                              !31
        207        DO_FCALL                                      0  $178    
        208        ASSIGN                                                   !32, $178
  101   209        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
        210        SEND_VAR_EX                                              !31
        211        DO_FCALL                                      0  $180    
        212        ASSIGN                                                   !19, $180
  102   213        IS_EQUAL                                                 !19, 1
        214      > JMPZ                                                     ~182, ->221
  103   215    >   CONCAT                                           ~183    '%3Ca+class%3D%22stdelete%22+href%3D%22delete.php%3Fid%3D', !28
        216        CONCAT                                           ~184    ~183, '%22+id%3D%22'
        217        CONCAT                                           ~185    ~184, !28
        218        CONCAT                                           ~186    ~185, '%22+title%3D%22Delete+post%22%3EX%3C%2Fa%3E'
        219        ASSIGN                                                   !33, ~186
        220      > JMP                                                      ->228
  104   221    >   IS_EQUAL                                                 !22, !3
        222      > JMPZ                                                     ~188, ->228
  105   223    >   CONCAT                                           ~189    '%3Ca+class%3D%22stdelete%22+href%3D%22delete.php%3Fid%3D', !28
        224        CONCAT                                           ~190    ~189, '%22+id%3D%22'
        225        CONCAT                                           ~191    ~190, !28
        226        CONCAT                                           ~192    ~191, '%22+title%3D%22Delete+post%22%3EX%3C%2Fa%3E'
        227        ASSIGN                                                   !33, ~192
  110   228    >   ECHO                                                     '%0A%3Cdiv+class%3D%22stbody%22+id%3D%22stbody'
  111   229        ECHO                                                     !28
        230        ECHO                                                     '%22%3E%0A%0A%3Cdiv+class%3D%22stimg%22%3E%0A%3Cimg+src%3D%22'
  114   231        ECHO                                                     !27
        232        ECHO                                                     '%22+class%3D%27big_face%27%2F%3E%0A%3C%2Fdiv%3E+%0A%3Cdiv+class%3D%22sttext%22%3E%0A'
  117   233      > JMPZ                                                     !33, ->235
        234    >   ECHO                                                     !33
  118   235    >   ECHO                                                     '%3Cb%3E%3Ca+href%3D%22'
        236        CONCAT                                           ~194    'http%3A%2F%2Fnitofa.com%2Fbrowse-user.php%3Ffid%3D', !22
        237        ECHO                                                     ~194
        238        ECHO                                                     '%22%3E'
        239        ECHO                                                     !26
        240        ECHO                                                     '%3C%2Fa%3E%3C%2Fb%3E+%3Cbr%2F%3E'
        241        ECHO                                                     !29
  119   242        ECHO                                                     '%3Cdiv+class%3D%22sttime%22%3E'
        243        INIT_FCALL_BY_NAME                                       'time_stamp'
        244        SEND_VAR_EX                                              !30
        245        DO_FCALL                                      0          
        246        ECHO                                                     '%3C%21--+%7C+%3Ca+href%3D%27%23commentbox'
        247        ECHO                                                     !28
        248        ECHO                                                     '%27+class%3D%27commentopen%27+id%3D%27'
        249        ECHO                                                     !28
        250        ECHO                                                     '%27+title%3D%27Comment%27%3EComment+%3C%2Fa%3E+--%3E%3C%2Fdiv%3E+%0A%0A%3Cdiv+id%3D%22stexpandbox%22%3E%0A%3Cdiv+id%3D%22stexpand'
  122   251        ECHO                                                     !28
        252        ECHO                                                     '%22%3E%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A%0A%3Cdiv+class%3D%22commentcontainer%22+id%3D%22commentload'
  125   253        ECHO                                                     !28
        254        ECHO                                                     '%22%3E%0A%0A'
  127   255        INCLUDE_OR_EVAL                                          'comments.php', INCLUDE
  128   256        ECHO                                                     '%0A%3C%2Fdiv%3E%0A%3Cdiv+class%3D%22commentupdate%22+style%3D%27display%3Anone%3B%27+id%3D%27commentbox'
  130   257        ECHO                                                     !28
        258        ECHO                                                     '%27%3E%0A%3Cdiv+class%3D%22stcommentimg%22%3E%0A%3Cimg+src%3D%22'
  132   259        ECHO                                                     !27
        260        ECHO                                                     '%22+class%3D%27small_face%27%2F%3E%0A%3C%2Fdiv%3E+%0A%3Cdiv+class%3D%22stcommenttext%22+%3E%0A%3Cform+method%3D%22post%22+action%3D%22comment.php%22%3E%0A%0A%3Ctextarea+name%3D%22comment%22+class%3D%22comment%22+maxlength%3D%22200%22++id%3D%22ctextarea'
  137   261        ECHO                                                     !28
        262        ECHO                                                     '%22%3E%3C%2Ftextarea%3E%0A%3Cbr+%2F%3E%0A%3Cinput+type%3D%22submit%22++value%3D%22+Comment+%22++id%3D%22'
  139   263        ECHO                                                     !28
        264        ECHO                                                     '%22+class%3D%22comment_button%22%2F%3E%0A%3C%2Fform%3E%0A%0A%0A%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A%0A%3C%21--close+sttext--%3E%0A%3C%2Fdiv%3E%0A%3C%21--close+stbody--%3E%0A%3C%2Fdiv%3E%0A%0A'
   88   265    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
        266        SEND_VAR_EX                                              !20
        267        DO_FCALL                                      0  $197    
        268        ASSIGN                                           ~198    !23, $197
        269      > JMPNZ                                                    ~198, ->160
  153   270    >   BOOL_NOT                                         ~199    !21
        271        IS_SMALLER                                               ~199, !4
        272      > JMPZ                                                     ~200, ->288
  154   273    >   FETCH_R                      global              ~201    '_GET'
        274        FETCH_DIM_R                                      ~202    ~201, 'next'
        275        BOOL_NOT                                         ~203    ~202
        276      > JMPZ                                                     ~203, ->279
        277    >   ASSIGN                                                   !34, '2'
        278      > JMP                                                      ->283
        279    >   FETCH_R                      global              ~205    '_GET'
        280        FETCH_DIM_R                                      ~206    ~205, 'next'
        281        ADD                                   

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
263.53 ms | 1428 KiB | 18 Q