3v4l.org

run code in 300+ PHP versions simultaneously
<?php class vRequest { public static function getUword($field, $default='', $custom=''){ $source = self::getVar($field,$default); return self::filterUword($source,$custom); } //static $filters = array( '' =>); public static function uword($field, $default='', $custom=''){ $source = self::getVar($field,$default); return self::filterUword($source,$custom); } public static function filterUword($source, $custom,$replace=''){ if(function_exists('mb_ereg_replace')){ //$source is string that will be filtered, $custom is string that contains custom characters return mb_ereg_replace('[^\w'.preg_quote($custom).']', $replace, $source); } else { return preg_replace("~[^\w".preg_quote($custom,'~')."]~", $replace, $source); //We use Tilde as separator, and give the preq_quote function the used separator } } public static function getBool($name, $default = 0){ $tmp = self::get($name, $default, FILTER_SANITIZE_NUMBER_INT); if($tmp){ $tmp = true; } else { $tmp = false; } return $tmp; } public static function getInt($name, $default = 0){ return self::get($name, $default, FILTER_SANITIZE_NUMBER_INT); } public static function getFloat($name,$default=0.0){ return self::get($name,$default,FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_SCIENTIFIC|FILTER_FLAG_ALLOW_FRACTION); } /** * - Strips all characters that has a numerical value <32. * - Strips all html. * * @param $name * @param null $default * @return mixed|null */ public static function getVar($name, $default = null){ return self::get($name, $default, FILTER_SANITIZE_STRING,FILTER_FLAG_STRIP_LOW ); } /** * - Strips all characters that has a numerical value <32. * - encodes html * * @param $name * @param string $default * @return mixed|null */ public static function getString($name, $default = ''){ return self::get($name, $default, FILTER_SANITIZE_SPECIAL_CHARS,FILTER_FLAG_STRIP_LOW); } public static function getHtml($name, $default = ''){ $tmp = self::get($name, $default); return JComponentHelper::filterText($tmp); } /** * Gets a filtered request value * - Strips all characters that has a numerical value <32 and >127. * - strips html * @author Max Milbers * @param $name * @param string $default * @return mixed|null */ public static function getCmd($name, $default = ''){ return self::get($name, $default, FILTER_SANITIZE_STRING,FILTER_FLAG_STRIP_LOW|FILTER_FLAG_STRIP_HIGH); } /** * Main filter function, called by the others with set Parameters * The standard filter is non restrictiv. * * @author Max Milbers * @param $name * @param null $default * @param int $filter * @param int $flags * @return mixed|null */ public static function get($name, $default = null, $filter = FILTER_UNSAFE_RAW, $flags = FILTER_FLAG_STRIP_LOW){ //vmSetStartTime(); if(!empty($name)){ if(!isset($_REQUEST[$name])) return $default; //if(strpos($name,'[]'!==FALSE)){ if(is_array($_REQUEST[$name])){ return filter_var_array($_REQUEST[$name], $filter ); } else { return filter_var($_REQUEST[$name], $filter, $flags); } } else { vmTrace('empty name in vRequest::get'); return $default; } } /** * Gets the request and filters it directly. It uses the standard php function filter_var_array, * The standard filter allows all chars, also the special ones. But removes dangerous html tags. * * @author Max Milbers * @param array $filter * @return mixed cleaned $_REQUEST */ public static function getRequest( ){ return filter_var_array($_REQUEST, FILTER_SANITIZE_STRING); } public static function getPost( ){ return filter_var_array($_POST, FILTER_SANITIZE_STRING); } public static function getGet( ){ return filter_var_array($_GET, FILTER_SANITIZE_STRING); } public static function getFiles($name){ return filter_var_array($_FILES[$name], FILTER_SANITIZE_STRING); } public static function setVar($name, $value = null){ if(isset($_REQUEST[$name])){ $tmp = $_REQUEST[$name]; $_REQUEST[$name] = $value; return $tmp; } else { $_REQUEST[$name] = $value; return null; } } /** * Checks for a form token in the request. * * @return boolean True if token valid * */ public static function vmCheckToken($redirectMsg=0){ $token = self::getFormToken(); if (!self::uword($token, false)){ if ($rToken = self::uword('token', false)){ if($rToken == $token){ return true; } } $session = JFactory::getSession(); if ($session->isNew()){ // Redirect to login screen. $app = JFactory::getApplication(); $app->redirect(JRoute::_('index.php'), vmText::_('JLIB_ENVIRONMENT_SESSION_EXPIRED')); $app->close(); } else { if($redirectMsg===0){ $redirectMsg = 'Invalid Token, in ' . vRequest::getCmd('options') .' view='.vRequest::getCmd('view'). ' task='.vRequest::getCmd('task'); //jexit('Invalid Token, in ' . vRequest::getCmd('options') .' view='.vRequest::getCmd('view'). ' task='.vRequest::getCmd('task')); } else { $redirectMsg = vmText::_($redirectMsg); } // Redirect to login screen. $app = JFactory::getApplication(); $session->close(); $app->redirect(JRoute::_('index.php'), $redirectMsg); $app->close(); return false; } } else { return false; } } public static function getFormToken($fNew = false){ $user = JFactory::getUser(); $session = JFactory::getSession(); if(empty($user->id)) $user->id = 0; $hash = JApplication::getHash($user->id . $session->getToken($fNew)); return $hash; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  210     0  E > > RETURN                                                   1

Class vRequest:
Function getuword:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getUword
number of ops:  14
compiled vars:  !0 = $field, !1 = $default, !2 = $custom, !3 = $source
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
          2        RECV_INIT                                        !2      ''
    6     3        INIT_STATIC_METHOD_CALL                                  'getVar'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !3, $4
    7     8        INIT_STATIC_METHOD_CALL                                  'filterUword'
          9        SEND_VAR_EX                                              !3
         10        SEND_VAR_EX                                              !2
         11        DO_FCALL                                      0  $6      
         12      > RETURN                                                   $6
    8    13*     > RETURN                                                   null

End of function getuword

Function uword:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  uword
number of ops:  14
compiled vars:  !0 = $field, !1 = $default, !2 = $custom, !3 = $source
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
          2        RECV_INIT                                        !2      ''
   12     3        INIT_STATIC_METHOD_CALL                                  'getVar'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !3, $4
   13     8        INIT_STATIC_METHOD_CALL                                  'filterUword'
          9        SEND_VAR_EX                                              !3
         10        SEND_VAR_EX                                              !2
         11        DO_FCALL                                      0  $6      
         12      > RETURN                                                   $6
   14    13*     > RETURN                                                   null

End of function uword

Function filteruword:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  filterUword
number of ops:  32
compiled vars:  !0 = $source, !1 = $custom, !2 = $replace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      ''
   17     3        INIT_FCALL                                               'function_exists'
          4        SEND_VAL                                                 'mb_ereg_replace'
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->19
   19     7    >   INIT_FCALL                                               'mb_ereg_replace'
          8        INIT_FCALL                                               'preg_quote'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $4      
         11        CONCAT                                           ~5      '%5B%5E%5Cw', $4
         12        CONCAT                                           ~6      ~5, '%5D'
         13        SEND_VAL                                                 ~6
         14        SEND_VAR                                                 !2
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $7      
         17      > RETURN                                                   $7
         18*       JMP                                                      ->31
   21    19    >   INIT_FCALL                                               'preg_replace'
         20        INIT_FCALL                                               'preg_quote'
         21        SEND_VAR                                                 !1
         22        SEND_VAL                                                 '%7E'
         23        DO_ICALL                                         $8      
         24        CONCAT                                           ~9      '%7E%5B%5E%5Cw', $8
         25        CONCAT                                           ~10     ~9, '%5D%7E'
         26        SEND_VAL                                                 ~10
         27        SEND_VAR                                                 !2
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                         $11     
         30      > RETURN                                                   $11
   23    31*     > RETURN                                                   null

End of function filteruword

Function getbool:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getBool
number of ops:  14
compiled vars:  !0 = $name, !1 = $default, !2 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
   27     2        INIT_STATIC_METHOD_CALL                                  'get'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        SEND_VAL_EX                                              519
          6        DO_FCALL                                      0  $3      
          7        ASSIGN                                                   !2, $3
   28     8      > JMPZ                                                     !2, ->11
   29     9    >   ASSIGN                                                   !2, <true>
         10      > JMP                                                      ->12
   31    11    >   ASSIGN                                                   !2, <false>
   33    12    > > RETURN                                                   !2
   34    13*     > RETURN                                                   null

End of function getbool

Function getint:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getInt
number of ops:  9
compiled vars:  !0 = $name, !1 = $default
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
   37     2        INIT_STATIC_METHOD_CALL                                  'get'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        SEND_VAL_EX                                              519
          6        DO_FCALL                                      0  $2      
          7      > RETURN                                                   $2
   38     8*     > RETURN                                                   null

End of function getint

Function getfloat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getFloat
number of ops:  10
compiled vars:  !0 = $name, !1 = $default
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   40     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
   41     2        INIT_STATIC_METHOD_CALL                                  'get'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        SEND_VAL_EX                                              520
          6        SEND_VAL_EX                                              20480
          7        DO_FCALL                                      0  $2      
          8      > RETURN                                                   $2
   42     9*     > RETURN                                                   null

End of function getfloat

Function getvar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getVar
number of ops:  10
compiled vars:  !0 = $name, !1 = $default
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   52     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
   53     2        INIT_STATIC_METHOD_CALL                                  'get'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        SEND_VAL_EX                                              513
          6        SEND_VAL_EX                                              4
          7        DO_FCALL                                      0  $2      
          8      > RETURN                                                   $2
   54     9*     > RETURN                                                   null

End of function getvar

Function getstring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getString
number of ops:  10
compiled vars:  !0 = $name, !1 = $default
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   64     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
   65     2        INIT_STATIC_METHOD_CALL                                  'get'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        SEND_VAL_EX                                              515
          6        SEND_VAL_EX                                              4
          7        DO_FCALL                                      0  $2      
          8      > RETURN                                                   $2
   66     9*     > RETURN                                                   null

End of function getstring

Function gethtml:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getHtml
number of ops:  12
compiled vars:  !0 = $name, !1 = $default, !2 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   68     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
   69     2        INIT_STATIC_METHOD_CALL                                  'get'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !2, $3
   70     7        INIT_STATIC_METHOD_CALL                                  'JComponentHelper', 'filterText'
          8        SEND_VAR_EX                                              !2
          9        DO_FCALL                                      0  $5      
         10      > RETURN                                                   $5
   71    11*     > RETURN                                                   null

End of function gethtml

Function getcmd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getCmd
number of ops:  10
compiled vars:  !0 = $name, !1 = $default
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   83     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
   84     2        INIT_STATIC_METHOD_CALL                                  'get'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        SEND_VAL_EX                                              513
          6        SEND_VAL_EX                                              12
          7        DO_FCALL                                      0  $2      
          8      > RETURN                                                   $2
   85     9*     > RETURN                                                   null

End of function getcmd

Function get:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 33
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  get
number of ops:  38
compiled vars:  !0 = $name, !1 = $default, !2 = $filter, !3 = $flags
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   98     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2        RECV_INIT                                        !2      <const ast>
          3        RECV_INIT                                        !3      <const ast>
  100     4        ISSET_ISEMPTY_CV                                 ~4      !0
          5        BOOL_NOT                                         ~5      ~4
          6      > JMPZ                                                     ~5, ->33
  102     7    >   FETCH_IS                                         ~6      '_REQUEST'
          8        ISSET_ISEMPTY_DIM_OBJ                         0  ~7      ~6, !0
          9        BOOL_NOT                                         ~8      ~7
         10      > JMPZ                                                     ~8, ->12
         11    > > RETURN                                                   !1
  105    12    >   FETCH_R                      global              ~9      '_REQUEST'
         13        FETCH_DIM_R                                      ~10     ~9, !0
         14        TYPE_CHECK                                  128          ~10
         15      > JMPZ                                                     ~11, ->24
  106    16    >   INIT_FCALL                                               'filter_var_array'
         17        FETCH_R                      global              ~12     '_REQUEST'
         18        FETCH_DIM_R                                      ~13     ~12, !0
         19        SEND_VAL                                                 ~13
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $14     
         22      > RETURN                                                   $14
         23*       JMP                                                      ->32
  109    24    >   INIT_FCALL                                               'filter_var'
         25        FETCH_R                      global              ~15     '_REQUEST'
         26        FETCH_DIM_R                                      ~16     ~15, !0
         27        SEND_VAL                                                 ~16
         28        SEND_VAR                                                 !2
         29        SEND_VAR                                                 !3
         30        DO_ICALL                                         $17     
         31      > RETURN                                                   $17
         32*       JMP                                                      ->37
  113    33    >   INIT_FCALL_BY_NAME                                       'vmTrace'
         34        SEND_VAL_EX                                              'empty+name+in+vRequest%3A%3Aget'
         35        DO_FCALL                                      0          
  114    36      > RETURN                                                   !1
  117    37*     > RETURN                                                   null

End of function get

Function getrequest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getRequest
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  128     0  E >   INIT_FCALL                                               'filter_var_array'
          1        FETCH_R                      global              ~0      '_REQUEST'
          2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 513
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
  129     6*     > RETURN                                                   null

End of function getrequest

Function getpost:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getPost
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  132     0  E >   INIT_FCALL                                               'filter_var_array'
          1        FETCH_R                      global              ~0      '_POST'
          2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 513
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
  133     6*     > RETURN                                                   null

End of function getpost

Function getget:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getGet
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  136     0  E >   INIT_FCALL                                               'filter_var_array'
          1        FETCH_R                      global              ~0      '_GET'
          2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 513
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
  137     6*     > RETURN                                                   null

End of function getget

Function getfiles:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  getFiles
number of ops:  9
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  139     0  E >   RECV                                             !0      
  140     1        INIT_FCALL                                               'filter_var_array'
          2        FETCH_R                      global              ~1      '_FILES'
          3        FETCH_DIM_R                                      ~2      ~1, !0
          4        SEND_VAL                                                 ~2
          5        SEND_VAL                                                 513
          6        DO_ICALL                                         $3      
          7      > RETURN                                                   $3
  141     8*     > RETURN                                                   null

End of function getfiles

Function setvar:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  setVar
number of ops:  18
compiled vars:  !0 = $name, !1 = $value, !2 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  143     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
  144     2        FETCH_IS                                         ~3      '_REQUEST'
          3        ISSET_ISEMPTY_DIM_OBJ                         0          ~3, !0
          4      > JMPZ                                                     ~4, ->13
  145     5    >   FETCH_R                      global              ~5      '_REQUEST'
          6        FETCH_DIM_R                                      ~6      ~5, !0
          7        ASSIGN                                                   !2, ~6
  146     8        FETCH_W                      global              $8      '_REQUEST'
          9        ASSIGN_DIM                                               $8, !0
         10        OP_DATA                                                  !1
  147    11      > RETURN                                                   !2
         12*       JMP                                                      ->17
  149    13    >   FETCH_W                      global              $10     '_REQUEST'
         14        ASSIGN_DIM                                               $10, !0
         15        OP_DATA                                                  !1
  150    16      > RETURN                                                   null
  152    17*     > RETURN                                                   null

End of function setvar

Function vmchecktoken:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 79
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 41
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 78
Branch analysis from position: 78
1 jumps found. (Code = 42) Position 1 = 80
Branch analysis from position: 80
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 59
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 59
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 79
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cPS5
function name:  vmCheckToken
number of ops:  81
compiled vars:  !0 = $redirectMsg, !1 = $token, !2 = $rToken, !3 = $session, !4 = $app
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  160     0  E >   RECV_INIT                                        !0      0
  162     1        INIT_STATIC_METHOD_CALL                                  'getFormToken'
          2        DO_FCALL                                      0  $5      
          3        ASSIGN                                                   !1, $5
  164     4        INIT_STATIC_METHOD_CALL                                  'uword'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 <false>
          7        DO_FCALL                                      0  $7      
          8        BOOL_NOT                                         ~8      $7
          9      > JMPZ                                                     ~8, ->79
  166    10    >   INIT_STATIC_METHOD_CALL                                  'uword'
         11        SEND_VAL                                                 'token'
         12        SEND_VAL                                                 <false>
         13        DO_FCALL                                      0  $9      
         14        ASSIGN                                           ~10     !2, $9
         15      > JMPZ                                                     ~10, ->19
  167    16    >   IS_EQUAL                                                 !2, !1
         17      > JMPZ                                                     ~11, ->19
  168    18    > > RETURN                                                   <true>
  172    19    >   INIT_STATIC_METHOD_CALL                                  'JFactory', 'getSession'
         20        DO_FCALL                                      0  $12     
         21        ASSIGN                                                   !3, $12
  174    22        INIT_METHOD_CALL                                         !3, 'isNew'
         23        DO_FCALL                                      0  $14     
         24      > JMPZ                                                     $14, ->41
  176    25    >   INIT_STATIC_METHOD_CALL                                  'JFactory', 'getApplication'
         26        DO_FCALL                                      0  $15     
         27        ASSIGN                                                   !4, $15
  177    28        INIT_METHOD_CALL                                         !4, 'redirect'
         29        INIT_STATIC_METHOD_CALL                                  'JRoute', '_'
         30        SEND_VAL_EX                                              'index.php'
         31        DO_FCALL                                      0  $17     
         32        SEND_VAR_NO_REF_EX                                       $17
         33        INIT_STATIC_METHOD_CALL                                  'vmText', '_'
         34        SEND_VAL_EX                                              'JLIB_ENVIRONMENT_SESSION_EXPIRED'
         35        DO_FCALL                                      0  $18     
         36        SEND_VAR_NO_REF_EX                                       $18
         37        DO_FCALL                                      0          
  178    38        INIT_METHOD_CALL                                         !4, 'close'
         39        DO_FCALL                                      0          
         40      > JMP                                                      ->78
  181    41    >   IS_IDENTICAL                                             !0, 0
         42      > JMPZ                                                     ~21, ->59
  182    43    >   INIT_STATIC_METHOD_CALL                                  'vRequest', 'getCmd'
         44        SEND_VAL                                                 'options'
         45        DO_FCALL                                      0  $22     
         46        CONCAT                                           ~23     'Invalid+Token%2C+in+', $22
         47        CONCAT                                           ~24     ~23, '+view%3D'
         48        INIT_STATIC_METHOD_CALL                                  'vRequest', 'getCmd'
         49        SEND_VAL                                                 'view'
         50        DO_FCALL                                      0  $25     
         51        CONCAT                                           ~26     ~24, $25
         52        CONCAT                                           ~27     ~26, '+task%3D'
         53        INIT_STATIC_METHOD_CALL                                  'vRequest', 'getCmd'
         54        SEND_VAL                                                 'task'
         55        DO_FCALL                                      0  $28     
         56        CONCAT                                           ~29     ~27, $28
         57        ASSIGN                                                   !0, ~29
         58      > JMP             

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.4 ms | 1428 KiB | 25 Q