3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* , , / \ ((__-^^-,-^^-__)) `-_---' `---_-' `--|o` 'o|--' \ ` / ): :( :o_o: "-" This file is part of CookieLayer. CookieLayer is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. CookieLayer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Foobar. If not, see <http://www.gnu.org/licenses/>. */ /** * CakePHP CookieLayerHelper to use without cakephp framework. * @author Juan Fran */ if(!defined('ROOT')) die('ROOT constant not defined!'); if(!defined('DS')) die('DS constant not defined!'); class CookieLayerHelper { /* Default settings This script have some options more that cakephp CookieLayerHelper script. */ private $settings = array( // Text messages to show. If you want to change the messages values, you´ll need to change the Locales files from cakephp. // IMPORTANT TO CHANGE THE MESSAGE VALUES: // You can change the msg string (msgstr) param in the .po files inside the locale folder. // or You can change the following text array values and then change the msgid and msgstr in each .po file, and compile the .po file. 'texts' => array( 'normalText' => 'we use our own cookies and cookies from others to improve our services by analyzing their browsing habits. If you continue to browse, we consider that you accept the terms. You can change the settings or get more information ', 'strictText' => 'we use our own cookies and cookies from others to improve our services by analyzing their browsing habits. By accepting, you approve our cookies policy. You can change the settings or get more information ', 'underStdText' => 'Understood', 'agreeText' => 'Agree', 'disagreeTest' => 'Disagree', 'title' => 'Cookie Policy', 'here' => 'here' ), 'locale' => 'en_GB.UTF-8', // this may differ depending on the server. Default en_GB.UTF-8 'langDomain' => 'cakeCookieLayerHelper', // Domain for cakephp translations. Default cakeCookieLayerHelper. 'localeDir' => 'Locale', // Dir name only. Default /php_js/Locale 'mode' => 'strict', // normal: show understood button and include all cookies without ask. // strict: show agree and disagree buttons, and only include cookies when user press agre button. It takes normalText or strictText 'position' => 'bottom', // Layer position. Default is bottom. Options: [poisition => 'top' or 'bottom'] 'themePath' => '', // Css file. Relative path. Default /php_js/css/CookieLayer.css 'theme' => 'Dark', // Theme. Default theme Dark. 'separator' => ' - ', // Separator for links. Default '-'. 'showLayerOnce' => false, // Show the layer once and then it hides. Default false. 'autoHide' => true, // Auto hide. Indicates that the bar is going to hide in x (how is indicated in param timeOut) seconds. Default true. 'timeOut' => 10, // Time out for auto hide and showLayerOnce. 'scriptPath' => '', // Js file. Relative path. Default /php_js/js/CookieLayer.js 'scriptLoader' => '', // Js Loader file. Relative path. Default is /php_js/js/CookieLayerLoader.js // Function to execute when the user click the accept button or understood. // When the user enter twice to the site, this function is going to execute again, because the user accepted the terms the first time. 'onAceptClick' => ' /* Instead of load the source code via CookieLayerLoader.js, here you can include more source code. */ ', 'onDisagreeClick' => ' /* Here you can include code that is going to execute when disagree button was pressed */ ', ); public function __construct($settings = array()) { $this->settings = (array_merge($this->settings, (array) $settings)); // Default paths if(empty($this->settings['themePath'])) $this->settings['themePath'] = 'css' . DS . 'CookieLayer.css'; if(empty($this->settings['scriptPath'])) $this->settings['scriptPath'] = 'js' . DS . 'CookieLayer.js'; if(empty($this->settings['scriptLoader'])) $this->settings['scriptLoader'] = 'js' . DS . 'CookieLayerLoader.js'; // Check files if(!file_exists(ROOT . $this->settings['themePath'])){ throw new Exception('Error. Css theme file ' . ROOT . $this->settings['themePath'] . ' not found!'); } if(!file_exists(ROOT . $this->settings['scriptPath'])){ throw new Exception('Error. Js script file ' . ROOT . $this->settings['scriptPath'] . ' not found!'); } if(!file_exists(ROOT . $this->settings['scriptLoader'])){ throw new Exception('Error. Js Loader script file ' . ROOT . $this->settings['scriptLoader'] . ' not found!'); } if(!file_exists(ROOT . $this->settings['localeDir'])){ throw new Exception('Error. Locale dir ' . ROOT . $this->settings['localeDir'] . ' not found!'); } // If you made a call to a setLocale function before call constructor, this line can be commented setlocale(LC_ALL, $this->settings['locale']); bindtextdomain($this->settings['langDomain'], $this->settings['localeDir']); bind_textdomain_codeset($this->settings['langDomain'], 'UTF-8'); textdomain($this->settings['langDomain']); } private function getOptions() { if ($this->settings['mode'] == 'normal') // Get links return '<a href=\'#\' class=\'lAgree\'>' . _($this->settings['texts']['underStdText']) . '</a>'; else return '<a href=\'#\' class=\'lAgree\'>' . _($this->settings['texts']['agreeText']) . '</a>' . ' ' . '<a href=\'#\' class=\'lDisagree\'>' . _($this->settings['texts']['disagreeTest']) . '</a>'; } function url(){ if(isset($_SERVER['HTTPS'])){ $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http"; } else{ $protocol = 'http'; } //return $protocol . "://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; return $protocol . "://localhost/dev.cookielayer.com/php_js/"; } public function render() { echo '<link rel=\'stylesheet\' href=\'' . $this->url() . $this->settings['themePath'] . '\' type=\'text/css\'>'; /* * * <div id="CookieLayer" style="bottom: -66px;" class="hideToBottom"> * <div id="cL_Dark"> * * <div id="CookieLayerHeader" class="border-top"> * * <span class="title"> * <a href="#">Política de Cookies</a></span></div> * * <div id="CookieLayerBody" class="border-top"><p>Utilizamos cookies propias y de terceros para mejorar nuestros servicios mediante el análisis de sus hábitos de navegación. Si continua navegando, consideramos que aceptas los terminos. Puede cambiar la configuración u obtener más información <a href="/pages/aviso">aquí</a>. - <a href="#" class="lAgree">Entendido</a></p></div> * * <div id="CookieLayerFooter" style="display: none;"><span class="title"><a href="#">Política de Cookies</a></span></div></div></div> * * * */ $text = ($this->settings['mode']=='normal') ? _($this->settings['texts']['normalText']): _($this->settings['texts']['strictText']); echo '<div id=\'CookieLayer\'> <div id=\'' . 'cL_' . $this->settings['theme'] . '\'> <div id=\'CookieLayerHeader\' class=\'border-top\'> <span class=\'title\'><a href=\'#\'>' . _($this->settings['texts']['title']) . '</a></span> </div> <div id=\'CookieLayerBody\' class=\'border-top\'> <p>' . $text . $this->getOptions() . '</p> </div> <div id=\'CookieLayerFooter\'> <span class=\'title\'><a href=\'#\'>' . _($this->settings['texts']['title']) . '</a></span> </div> </div> </div> '; echo '<script src=\'' . $this->url() . $this->settings['scriptPath'] . '\' type=\'text/javascript\'></script>'; ?> <script type="text/javascript"> var config = { theme : '<?php echo $this->settings['theme']; ?>', mode : '<?php echo $this->settings['mode']; ?>', position : '<?php echo $this->settings['position']; ?>', autoHide : <?php if($this->settings['position']) echo 'true'; else echo 'false'; ?>, showLayerOnce : <?php if($this->settings['showLayerOnce']) echo 'true'; else echo 'false'; ?>, timeOut : <?php echo $this->settings['timeOut']; ?>, scriptLoader : '<?php echo $this->url() . $this->settings['scriptLoader']; ?>', onAceptClick : function(){<?php echo $this->settings['onAceptClick']; ?>}, onDisagreeClick: function(){<?php echo $this->settings['onDisagreeClick']; ?>} }; // Initialize. window.CookieLayer.initialize(config); </script> <?php } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VvMU8
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   DEFINED                                          ~0      'ROOT'
          1        BOOL_NOT                                         ~1      ~0
          2      > JMPZ                                                     ~1, ->4
          3    > > EXIT                                                     'ROOT+constant+not+defined%21'
   37     4    >   DEFINED                                          ~2      'DS'
          5        BOOL_NOT                                         ~3      ~2
          6      > JMPZ                                                     ~3, ->8
          7    > > EXIT                                                     'DS+constant+not+defined%21'
  221     8    > > RETURN                                                   1

Class CookieLayerHelper:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 27
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 36
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 55
Branch analysis from position: 45
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 74
Branch analysis from position: 64
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 74
2 jumps found. (Code = 43) Position 1 = 83, Position 2 = 93
Branch analysis from position: 83
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 93
2 jumps found. (Code = 43) Position 1 = 102, Position 2 = 112
Branch analysis from position: 102
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 112
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
Branch analysis from position: 27
Branch analysis from position: 18
filename:       /in/VvMU8
function name:  __construct
number of ops:  142
compiled vars:  !0 = $settings
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   96     0  E >   RECV_INIT                                        !0      <array>
   97     1        INIT_FCALL                                               'array_merge'
          2        FETCH_OBJ_R                                      ~2      'settings'
          3        SEND_VAL                                                 ~2
          4        CAST                                          7  ~3      !0
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7        ASSIGN_OBJ                                               'settings'
          8        OP_DATA                                                  $4
  101     9        FETCH_OBJ_IS                                     ~5      'settings'
         10        ISSET_ISEMPTY_DIM_OBJ                         1          ~5, 'themePath'
         11      > JMPZ                                                     ~6, ->18
  102    12    >   FETCH_CONSTANT                                   ~9      'DS'
         13        CONCAT                                           ~10     'css', ~9
         14        CONCAT                                           ~11     ~10, 'CookieLayer.css'
         15        FETCH_OBJ_W                                      $7      'settings'
         16        ASSIGN_DIM                                               $7, 'themePath'
         17        OP_DATA                                                  ~11
  104    18    >   FETCH_OBJ_IS                                     ~12     'settings'
         19        ISSET_ISEMPTY_DIM_OBJ                         1          ~12, 'scriptPath'
         20      > JMPZ                                                     ~13, ->27
  105    21    >   FETCH_CONSTANT                                   ~16     'DS'
         22        CONCAT                                           ~17     'js', ~16
         23        CONCAT                                           ~18     ~17, 'CookieLayer.js'
         24        FETCH_OBJ_W                                      $14     'settings'
         25        ASSIGN_DIM                                               $14, 'scriptPath'
         26        OP_DATA                                                  ~18
  107    27    >   FETCH_OBJ_IS                                     ~19     'settings'
         28        ISSET_ISEMPTY_DIM_OBJ                         1          ~19, 'scriptLoader'
         29      > JMPZ                                                     ~20, ->36
  108    30    >   FETCH_CONSTANT                                   ~23     'DS'
         31        CONCAT                                           ~24     'js', ~23
         32        CONCAT                                           ~25     ~24, 'CookieLayerLoader.js'
         33        FETCH_OBJ_W                                      $21     'settings'
         34        ASSIGN_DIM                                               $21, 'scriptLoader'
         35        OP_DATA                                                  ~25
  112    36    >   INIT_FCALL                                               'file_exists'
         37        FETCH_CONSTANT                                   ~26     'ROOT'
         38        FETCH_OBJ_R                                      ~27     'settings'
         39        FETCH_DIM_R                                      ~28     ~27, 'themePath'
         40        CONCAT                                           ~29     ~26, ~28
         41        SEND_VAL                                                 ~29
         42        DO_ICALL                                         $30     
         43        BOOL_NOT                                         ~31     $30
         44      > JMPZ                                                     ~31, ->55
  113    45    >   NEW                                              $32     'Exception'
         46        FETCH_CONSTANT                                   ~33     'ROOT'
         47        CONCAT                                           ~34     'Error.+Css+theme+file+', ~33
         48        FETCH_OBJ_R                                      ~35     'settings'
         49        FETCH_DIM_R                                      ~36     ~35, 'themePath'
         50        CONCAT                                           ~37     ~34, ~36
         51        CONCAT                                           ~38     ~37, '+not+found%21'
         52        SEND_VAL_EX                                              ~38
         53        DO_FCALL                                      0          
         54      > THROW                                         0          $32
  116    55    >   INIT_FCALL                                               'file_exists'
         56        FETCH_CONSTANT                                   ~40     'ROOT'
         57        FETCH_OBJ_R                                      ~41     'settings'
         58        FETCH_DIM_R                                      ~42     ~41, 'scriptPath'
         59        CONCAT                                           ~43     ~40, ~42
         60        SEND_VAL                                                 ~43
         61        DO_ICALL                                         $44     
         62        BOOL_NOT                                         ~45     $44
         63      > JMPZ                                                     ~45, ->74
  117    64    >   NEW                                              $46     'Exception'
         65        FETCH_CONSTANT                                   ~47     'ROOT'
         66        CONCAT                                           ~48     'Error.+Js+script+file+', ~47
         67        FETCH_OBJ_R                                      ~49     'settings'
         68        FETCH_DIM_R                                      ~50     ~49, 'scriptPath'
         69        CONCAT                                           ~51     ~48, ~50
         70        CONCAT                                           ~52     ~51, '+not+found%21'
         71        SEND_VAL_EX                                              ~52
         72        DO_FCALL                                      0          
         73      > THROW                                         0          $46
  120    74    >   INIT_FCALL                                               'file_exists'
         75        FETCH_CONSTANT                                   ~54     'ROOT'
         76        FETCH_OBJ_R                                      ~55     'settings'
         77        FETCH_DIM_R                                      ~56     ~55, 'scriptLoader'
         78        CONCAT                                           ~57     ~54, ~56
         79        SEND_VAL                                                 ~57
         80        DO_ICALL                                         $58     
         81        BOOL_NOT                                         ~59     $58
         82      > JMPZ                                                     ~59, ->93
  121    83    >   NEW                                              $60     'Exception'
         84        FETCH_CONSTANT                                   ~61     'ROOT'
         85        CONCAT                                           ~62     'Error.+Js+Loader+script+file+', ~61
         86        FETCH_OBJ_R                                      ~63     'settings'
         87        FETCH_DIM_R                                      ~64     ~63, 'scriptLoader'
         88        CONCAT                                           ~65     ~62, ~64
         89        CONCAT                                           ~66     ~65, '+not+found%21'
         90        SEND_VAL_EX                                              ~66
         91        DO_FCALL                                      0          
         92      > THROW                                         0          $60
  124    93    >   INIT_FCALL                                               'file_exists'
         94        FETCH_CONSTANT                                   ~68     'ROOT'
         95        FETCH_OBJ_R                                      ~69     'settings'
         96        FETCH_DIM_R                                      ~70     ~69, 'localeDir'
         97        CONCAT                                           ~71     ~68, ~70
         98        SEND_VAL                                                 ~71
         99        DO_ICALL                                         $72     
        100        BOOL_NOT                                         ~73     $72
        101      > JMPZ                                                     ~73, ->112
  125   102    >   NEW                                              $74     'Exception'
        103        FETCH_CONSTANT                                   ~75     'ROOT'
        104        CONCAT                                           ~76     'Error.+Locale+dir+', ~75
        105        FETCH_OBJ_R                                      ~77     'settings'
        106        FETCH_DIM_R                                      ~78     ~77, 'localeDir'
        107        CONCAT                                           ~79     ~76, ~78
        108        CONCAT                                           ~80     ~79, '+not+found%21'
        109        SEND_VAL_EX                                              ~80
        110        DO_FCALL                                      0          
        111      > THROW                                         0          $74
  130   112    >   INIT_FCALL                                               'setlocale'
        113        SEND_VAL                                                 6
        114        FETCH_OBJ_R                                      ~82     'settings'
        115        FETCH_DIM_R                                      ~83     ~82, 'locale'
        116        SEND_VAL                                                 ~83
        117        DO_ICALL                                                 
  132   118        INIT_FCALL_BY_NAME                                       'bindtextdomain'
        119        CHECK_FUNC_ARG                                           
        120        FETCH_OBJ_FUNC_ARG                               $85     'settings'
        121        FETCH_DIM_FUNC_ARG                               $86     $85, 'langDomain'
        122        SEND_FUNC_ARG                                            $86
        123        CHECK_FUNC_ARG                                           
        124        FETCH_OBJ_FUNC_ARG                               $87     'settings'
        125        FETCH_DIM_FUNC_ARG                               $88     $87, 'localeDir'
        126        SEND_FUNC_ARG                                            $88
        127        DO_FCALL                                      0          
  133   128        INIT_FCALL_BY_NAME                                       'bind_textdomain_codeset'
        129        CHECK_FUNC_ARG                                           
        130        FETCH_OBJ_FUNC_ARG                               $90     'settings'
        131        FETCH_DIM_FUNC_ARG                               $91     $90, 'langDomain'
        132        SEND_FUNC_ARG                                            $91
        133        SEND_VAL_EX                                              'UTF-8'
        134        DO_FCALL                                      0          
  134   135        INIT_FCALL_BY_NAME                                       'textdomain'
        136        CHECK_FUNC_ARG                                           
        137        FETCH_OBJ_FUNC_ARG                               $93     'settings'
        138        FETCH_DIM_FUNC_ARG                               $94     $93, 'langDomain'
        139        SEND_FUNC_ARG                                            $94
        140        DO_FCALL                                      0          
  135   141      > RETURN                                                   null

End of function __construct

Function getoptions:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VvMU8
function name:  getOptions
number of ops:  37
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  138     0  E >   FETCH_OBJ_R                                      ~0      'settings'
          1        FETCH_DIM_R                                      ~1      ~0, 'mode'
          2        IS_EQUAL                                                 ~1, 'normal'
          3      > JMPZ                                                     ~2, ->15
  139     4    >   INIT_FCALL_BY_NAME                                       '_'
          5        CHECK_FUNC_ARG                                           
          6        FETCH_OBJ_FUNC_ARG                               $3      'settings'
          7        FETCH_DIM_FUNC_ARG                               $4      $3, 'texts'
          8        FETCH_DIM_FUNC_ARG                               $5      $4, 'underStdText'
          9        SEND_FUNC_ARG                                            $5
         10        DO_FCALL                                      0  $6      
         11        CONCAT                                           ~7      '%3Ca+href%3D%27%23%27+class%3D%27lAgree%27%3E', $6
         12        CONCAT                                           ~8      ~7, '%3C%2Fa%3E'
         13      > RETURN                                                   ~8
         14*       JMP                                                      ->36
  141    15    >   INIT_FCALL_BY_NAME                                       '_'
         16        CHECK_FUNC_ARG                                           
         17        FETCH_OBJ_FUNC_ARG                               $9      'settings'
         18        FETCH_DIM_FUNC_ARG                               $10     $9, 'texts'
         19        FETCH_DIM_FUNC_ARG                               $11     $10, 'agreeText'
         20        SEND_FUNC_ARG                                            $11
         21        DO_FCALL                                      0  $12     
         22        CONCAT                                           ~13     '%3Ca+href%3D%27%23%27+class%3D%27lAgree%27%3E', $12
         23        CONCAT                                           ~14     ~13, '%3C%2Fa%3E'
         24        CONCAT                                           ~15     ~14, '+'
         25        CONCAT                                           ~16     ~15, '%3Ca+href%3D%27%23%27+class%3D%27lDisagree%27%3E'
         26        INIT_FCALL_BY_NAME                                       '_'
         27        CHECK_FUNC_ARG                                           
         28        FETCH_OBJ_FUNC_ARG                               $17     'settings'
         29        FETCH_DIM_FUNC_ARG                               $18     $17, 'texts'
         30        FETCH_DIM_FUNC_ARG                               $19     $18, 'disagreeTest'
         31        SEND_FUNC_ARG                                            $19
         32        DO_FCALL                                      0  $20     
         33        CONCAT                                           ~21     ~16, $20
         34        CONCAT                                           ~22     ~21, '%3C%2Fa%3E'
         35      > RETURN                                                   ~22
  143    36*     > RETURN                                                   null

End of function getoptions

Function url:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 10
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VvMU8
function name:  url
number of ops:  20
compiled vars:  !0 = $protocol
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  146     0  E >   FETCH_IS                                         ~1      '_SERVER'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~1, 'HTTPS'
          2      > JMPZ                                                     ~2, ->16
  147     3    >   FETCH_R                      global              ~3      '_SERVER'
          4        FETCH_DIM_R                                      ~4      ~3, 'HTTPS'
          5      > JMPZ_EX                                          ~4      ~4, ->10
          6    >   FETCH_R                      global              ~5      '_SERVER'
          7        FETCH_DIM_R                                      ~6      ~5, 'HTTPS'
          8        IS_NOT_EQUAL                                     ~7      ~6, 'off'
          9        BOOL                                             ~4      ~7
         10    > > JMPZ                                                     ~4, ->13
         11    >   QM_ASSIGN                                        ~8      'https'
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~8      'http'
         14    >   ASSIGN                                                   !0, ~8
         15      > JMP                                                      ->17
  150    16    >   ASSIGN                                                   !0, 'http'
  153    17    >   CONCAT                                           ~11     !0, '%3A%2F%2Flocalhost%2Fdev.cookielayer.com%2Fphp_js%2F'
         18      > RETURN                                                   ~11
  154    19*     > RETURN                                                   null

End of function url

Function render:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 21
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 82, Position 2 = 84
Branch analysis from position: 82
1 jumps found. (Code = 42) Position 1 = 85
Branch analysis from position: 85
2 jumps found. (Code = 43) Position 1 = 89, Position 2 = 91
Branch analysis from position: 89
1 jumps found. (Code = 42) Position 1 = 92
Branch analysis from position: 92
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 91
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 84
2 jumps found. (Code = 43) Position 1 = 89, Position 2 = 91
Branch analysis from position: 89
Branch analysis from position: 91
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 82, Position 2 = 84
Branch analysis from position: 82
Branch analysis from position: 84
filename:       /in/VvMU8
function name:  render
number of ops:  113
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  158     0  E >   INIT_METHOD_CALL                                         'url'
          1        DO_FCALL                                      0  $1      
          2        CONCAT                                           ~2      '%3Clink+rel%3D%27stylesheet%27+href%3D%27', $1
          3        FETCH_OBJ_R                                      ~3      'settings'
          4        FETCH_DIM_R                                      ~4      ~3, 'themePath'
          5        CONCAT                                           ~5      ~2, ~4
          6        CONCAT                                           ~6      ~5, '%27+type%3D%27text%2Fcss%27%3E'
          7        ECHO                                                     ~6
  179     8        FETCH_OBJ_R                                      ~7      'settings'
          9        FETCH_DIM_R                                      ~8      ~7, 'mode'
         10        IS_EQUAL                                                 ~8, 'normal'
         11      > JMPZ                                                     ~9, ->21
         12    >   INIT_FCALL_BY_NAME                                       '_'
         13        CHECK_FUNC_ARG                                           
         14        FETCH_OBJ_FUNC_ARG                               $10     'settings'
         15        FETCH_DIM_FUNC_ARG                               $11     $10, 'texts'
         16        FETCH_DIM_FUNC_ARG                               $12     $11, 'normalText'
         17        SEND_FUNC_ARG                                            $12
         18        DO_FCALL                                      0  $13     
         19        QM_ASSIGN                                        ~14     $13
         20      > JMP                                                      ->29
         21    >   INIT_FCALL_BY_NAME                                       '_'
         22        CHECK_FUNC_ARG                                           
         23        FETCH_OBJ_FUNC_ARG                               $15     'settings'
         24        FETCH_DIM_FUNC_ARG                               $16     $15, 'texts'
         25        FETCH_DIM_FUNC_ARG                               $17     $16, 'strictText'
         26        SEND_FUNC_ARG                                            $17
         27        DO_FCALL                                      0  $18     
         28        QM_ASSIGN                                        ~14     $18
         29    >   ASSIGN                                                   !0, ~14
  183    30        FETCH_OBJ_R                                      ~20     'settings'
         31        FETCH_DIM_R                                      ~21     ~20, 'theme'
         32        CONCAT                                           ~22     '%3Cdiv+id%3D%27CookieLayer%27%3E%0A++++++++++++++++%3Cdiv+id%3D%27cL_', ~21
         33        CONCAT                                           ~23     ~22, '%27%3E%0A++++++++++++++++++++%3Cdiv+id%3D%27CookieLayerHeader%27+class%3D%27border-top%27%3E%0A++++++++++++++++++++++++%3Cspan+class%3D%27title%27%3E%3Ca+href%3D%27%23%27%3E'
  185    34        INIT_FCALL_BY_NAME                                       '_'
         35        CHECK_FUNC_ARG                                           
         36        FETCH_OBJ_FUNC_ARG                               $24     'settings'
         37        FETCH_DIM_FUNC_ARG                               $25     $24, 'texts'
         38        FETCH_DIM_FUNC_ARG                               $26     $25, 'title'
         39        SEND_FUNC_ARG                                            $26
         40        DO_FCALL                                      0  $27     
         41        CONCAT                                           ~28     ~23, $27
         42        CONCAT                                           ~29     ~28, '%3C%2Fa%3E%3C%2Fspan%3E%0A++++++++++++++++++++%3C%2Fdiv%3E%0A++++++++++++++++++++%3Cdiv+id%3D%27CookieLayerBody%27+class%3D%27border-top%27%3E%0A++++++++++++++++++++++++%3Cp%3E'
  188    43        CONCAT                                           ~30     ~29, !0
         44        INIT_METHOD_CALL                                         'getOptions'
         45        DO_FCALL                                      0  $31     
         46        CONCAT                                           ~32     ~30, $31
         47        CONCAT                                           ~33     ~32, '%3C%2Fp%3E%0A++++++++++++++++++++%3C%2Fdiv%3E%0A++++++++++++++++++++%3Cdiv+id%3D%27CookieLayerFooter%27%3E%0A++++++++++++++++++++++++%3Cspan+class%3D%27title%27%3E%3Ca+href%3D%27%23%27%3E'
  191    48        INIT_FCALL_BY_NAME                                       '_'
         49        CHECK_FUNC_ARG                                           
         50        FETCH_OBJ_FUNC_ARG                               $34     'settings'
         51        FETCH_DIM_FUNC_ARG                               $35     $34, 'texts'
         52        FETCH_DIM_FUNC_ARG                               $36     $35, 'title'
         53        SEND_FUNC_ARG                                            $36
         54        DO_FCALL                                      0  $37     
         55        CONCAT                                           ~38     ~33, $37
         56        CONCAT                                           ~39     ~38, '%3C%2Fa%3E%3C%2Fspan%3E%0A++++++++++++++++++++%3C%2Fdiv%3E%0A++++++++++++++++%3C%2Fdiv%3E%0A++++++++++++++%3C%2Fdiv%3E%0A++++++++'
         57        ECHO                                                     ~39
  197    58        INIT_METHOD_CALL                                         'url'
         59        DO_FCALL                                      0  $40     
         60        CONCAT                                           ~41     '%3Cscript+src%3D%27', $40
         61        FETCH_OBJ_R                                      ~42     'settings'
         62        FETCH_DIM_R                                      ~43     ~42, 'scriptPath'
         63        CONCAT                                           ~44     ~41, ~43
         64        CONCAT                                           ~45     ~44, '%27+type%3D%27text%2Fjavascript%27%3E%3C%2Fscript%3E'
         65        ECHO                                                     ~45
  200    66        ECHO                                                     '+++++++%3Cscript+type%3D%22text%2Fjavascript%22%3E%0A++++++++++++var+config+%3D+%7B%0A++++++++++++++++theme+%3A+%27'
  202    67        FETCH_OBJ_R                                      ~46     'settings'
         68        FETCH_DIM_R                                      ~47     ~46, 'theme'
         69        ECHO                                                     ~47
         70        ECHO                                                     '%27%2C%0A++++++++++++++++mode+%3A+%27'
  203    71        FETCH_OBJ_R                                      ~48     'settings'
         72        FETCH_DIM_R                                      ~49     ~48, 'mode'
         73        ECHO                                                     ~49
         74        ECHO                                                     '%27%2C%0A++++++++++++++++position+%3A+%27'
  204    75        FETCH_OBJ_R                                      ~50     'settings'
         76        FETCH_DIM_R                                      ~51     ~50, 'position'
         77        ECHO                                                     ~51
         78        ECHO                                                     '%27%2C%0A++++++++++++++++autoHide+%3A+'
  205    79        FETCH_OBJ_R                                      ~52     'settings'
         80        FETCH_DIM_R                                      ~53     ~52, 'position'
         81      > JMPZ                                                     ~53, ->84
         82    >   ECHO                                                     'true'
         83      > JMP                                                      ->85
         84    >   ECHO                                                     'false'
         85    >   ECHO                                                     '%2C%0A++++++++++++++++showLayerOnce+%3A+'
  206    86        FETCH_OBJ_R                                      ~54     'settings'
         87        FETCH_DIM_R                                      ~55     ~54, 'showLayerOnce'
         88      > JMPZ                                                     ~55, ->91
         89    >   ECHO                                                     'true'
         90      > JMP                                                      ->92
         91    >   ECHO                                                     'false'
         92    >   ECHO                                                     '%2C%0A++++++++++++++++timeOut+%3A+'
  207    93        FETCH_OBJ_R                                      ~56     'settings'
         94        FETCH_DIM_R                                      ~57     ~56, 'timeOut'
         95        ECHO                                                     ~57
         96        ECHO                                                     '%2C%0A++++++++++++++++scriptLoader+%3A+%27'
  208    97        INIT_METHOD_CALL                                         'url'
         98        DO_FCALL                                      0  $58     
         99        FETCH_OBJ_R                                      ~59     'settings'
        100        FETCH_DIM_R                  

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
261.43 ms | 1428 KiB | 20 Q