3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Copyright 2013 Christoph Bultmann This file is part of the MAKERGAUL-package. The MAKERGAUL-package 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. The MAKERGAUL-package 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 the MAKERGAUL-package. If not, see <http://www.gnu.org/licenses/>. */ /*Session direkt starten (An dieser Stelle ist z.B. auch die Integration in ein passwortgeschütztes Accountsystem mit MySQL-Benutzerdatenbank zu realisieren)*/ session_start(); /*----Progamminformation----*/ const PROGRAMM = "MAKERGAUL"; //Programmname (Bleibt für alle Versionen fix) const MAJOR_RELEASE = 1; //Hauptversion const MINOR_RELEASE = 0; //Entwicklungsversion const PATCH_LEVEL = 0; //Patch zur Hauptversion const INDEXFILE = __FILE__; //Datei, in der sich das Script befindet //Datei zur Bestimmung der absoluten Pfadangabe des Binary-Verzeichnisses //(Wird zum Aufrufen externer Anwendungen zwingend benötigt) include_once("modules/analysis/binarys/exec_getpath.php"); //Absoluter Pfad des Binary-Verzeichnisses, endet mit "/" (UNIX) oder "\" (Windows) //Wird aus Sicherheitsgründen bei jedem Aufrufen aktualisiert! $EXEC_PATH = exec_getpath(); //Aus Sicherheitsgründen bei jedem Seitenaufruf vor Include-Vorgang Modulpfade zurücksetzen und aktualisieren /*Einbinden aller Dateien, die sich in den Erweiterungsverzeichnissen befinden*/ $Modules_Main = scandir("modules/main"); $Modules_Menus = scandir("modules/menus"); $Modules_Models = scandir("modules/analysis"); //Nur Schleife starten, wenn im Verzeichniss auch Dateien zum Einlesen da sind if($Modules_Main !== FALSE) { for($i=2;$i<count($Modules_Main);$i++) //Erst bei 2 starten, da die ersten beiden Arrayeinträge nichts nützliches enthalten { if(stristr($Modules_Main[$i],".php") !== FALSE && stristr($Modules_Main[$i],"\~") === FALSE) {include_once("modules/main/".$Modules_Main[$i]);} //PHP-Datei? } } if($Modules_Menus !== FALSE) { for($a=2;$a<count($Modules_Menus);$a++) { if(stristr($Modules_Menus[$a],".php") !== FALSE && stristr($Modules_Menus[$a],"\~") === FALSE) {include_once("modules/menus/".$Modules_Menus[$a]);} } } if($Modules_Models !== FALSE) { for($b=2;$b<count($Modules_Models);$b++) { if(stristr($Modules_Models[$b],".php") !== FALSE && stristr($Modules_Models[$b],"\~") === FALSE) {include_once("modules/analysis/".$Modules_Models[$b]);} } } /*Daten über geladene Module in Session-Arrays übertragen*/ $_SESSION["Modules_Main"] = $Modules_Main; $_SESSION["Modules_Menus"] = $Modules_Menus; $_SESSION["Modules_Models"] = $Modules_Models; $_SESSION["Modules_Classes"] = get_declared_classes(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <?php echo(" <title>".PROGRAMM." ".MAJOR_RELEASE.".".MINOR_RELEASE.".".PATCH_LEVEL."</title>\n"); $Css_Sheets = scandir("css"); if($Css_Sheets !== FALSE) { for($i=2;$i<count($Css_Sheets);$i++) { if(stristr($Css_Sheets[$i],".css") !== FALSE) {echo(" <link rel=\"stylesheet\" type=\"text/css\" href=\"css/".$Css_Sheets[$i]."\">\n");} //CSS-Datei?-->Einbinden! } } ?> <!-- Favicon für alle/ IE--> <link rel="icon" href="gfx/favicon.ico" type="image/x-icon"> <link rel="shortcut icon" href="gfx/favicon.ico" type="image/x-icon"> <script type="text/javascript"> window.setInterval("scrolldown()",1); function scrolldown() { var logdivs = window.document.getElementsByName("logdiv"); for (i=0;i<logdivs.length;i++) { //Alle Logdivs automatisch nach unten scrollen logdivs.item(i).scrollTop = logdivs.item(i).scrollHeight; } } </script> </head> <body> <?php /*Beim Wiederaufruf( = Aktualisierung der Seite) werden alle an die Seite per "post" übergebenen Daten geprüft*/ control_submit(); /*--------Programm starten & Anzeige aktualisieren------------*/ show_main(); ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 49
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 27
Branch analysis from position: 49
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 75
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 72
Branch analysis from position: 72
2 jumps found. (Code = 44) Position 1 = 75, Position 2 = 53
Branch analysis from position: 75
2 jumps found. (Code = 43) Position 1 = 77, Position 2 = 101
Branch analysis from position: 77
1 jumps found. (Code = 42) Position 1 = 98
Branch analysis from position: 98
2 jumps found. (Code = 44) Position 1 = 101, Position 2 = 79
Branch analysis from position: 101
2 jumps found. (Code = 43) Position 1 = 135, Position 2 = 152
Branch analysis from position: 135
1 jumps found. (Code = 42) Position 1 = 149
Branch analysis from position: 149
2 jumps found. (Code = 44) Position 1 = 152, Position 2 = 137
Branch analysis from position: 152
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 137
2 jumps found. (Code = 43) Position 1 = 144, Position 2 = 148
Branch analysis from position: 144
2 jumps found. (Code = 44) Position 1 = 152, Position 2 = 137
Branch analysis from position: 152
Branch analysis from position: 137
Branch analysis from position: 148
Branch analysis from position: 152
Branch analysis from position: 79
2 jumps found. (Code = 46) Position 1 = 86, Position 2 = 93
Branch analysis from position: 86
2 jumps found. (Code = 43) Position 1 = 94, Position 2 = 97
Branch analysis from position: 94
2 jumps found. (Code = 44) Position 1 = 101, Position 2 = 79
Branch analysis from position: 101
Branch analysis from position: 79
Branch analysis from position: 97
Branch analysis from position: 93
Branch analysis from position: 101
Branch analysis from position: 53
2 jumps found. (Code = 46) Position 1 = 60, Position 2 = 67
Branch analysis from position: 60
2 jumps found. (Code = 43) Position 1 = 68, Position 2 = 71
Branch analysis from position: 68
2 jumps found. (Code = 44) Position 1 = 75, Position 2 = 53
Branch analysis from position: 75
Branch analysis from position: 53
Branch analysis from position: 71
Branch analysis from position: 67
Branch analysis from position: 75
Branch analysis from position: 27
2 jumps found. (Code = 46) Position 1 = 34, Position 2 = 41
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 45
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 27
Branch analysis from position: 49
Branch analysis from position: 27
Branch analysis from position: 45
Branch analysis from position: 41
Branch analysis from position: 49
filename:       /in/LCY2J
function name:  (null)
number of ops:  159
compiled vars:  !0 = $EXEC_PATH, !1 = $Modules_Main, !2 = $Modules_Menus, !3 = $Modules_Models, !4 = $i, !5 = $a, !6 = $b, !7 = $Css_Sheets
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
   20     2        DECLARE_CONST                                            'PROGRAMM', 'MAKERGAUL'
   21     3        DECLARE_CONST                                            'MAJOR_RELEASE', 1
   22     4        DECLARE_CONST                                            'MINOR_RELEASE', 0
   23     5        DECLARE_CONST                                            'PATCH_LEVEL', 0
   24     6        DECLARE_CONST                                            'INDEXFILE', '%2Fin%2FLCY2J'
   27     7        INCLUDE_OR_EVAL                                          'modules%2Fanalysis%2Fbinarys%2Fexec_getpath.php', INCLUDE_ONCE
   30     8        INIT_FCALL_BY_NAME                                       'exec_getpath'
          9        DO_FCALL                                      0  $10     
         10        ASSIGN                                                   !0, $10
   36    11        INIT_FCALL                                               'scandir'
         12        SEND_VAL                                                 'modules%2Fmain'
         13        DO_ICALL                                         $12     
         14        ASSIGN                                                   !1, $12
   37    15        INIT_FCALL                                               'scandir'
         16        SEND_VAL                                                 'modules%2Fmenus'
         17        DO_ICALL                                         $14     
         18        ASSIGN                                                   !2, $14
   38    19        INIT_FCALL                                               'scandir'
         20        SEND_VAL                                                 'modules%2Fanalysis'
         21        DO_ICALL                                         $16     
         22        ASSIGN                                                   !3, $16
   40    23        TYPE_CHECK                                  1018          !1
         24      > JMPZ                                                     ~18, ->49
   43    25    >   ASSIGN                                                   !4, 2
         26      > JMP                                                      ->46
   45    27    >   INIT_FCALL                                               'stristr'
         28        FETCH_DIM_R                                      ~20     !1, !4
         29        SEND_VAL                                                 ~20
         30        SEND_VAL                                                 '.php'
         31        DO_ICALL                                         $21     
         32        TYPE_CHECK                                  1018  ~22     $21
         33      > JMPZ_EX                                          ~22     ~22, ->41
         34    >   INIT_FCALL                                               'stristr'
         35        FETCH_DIM_R                                      ~23     !1, !4
         36        SEND_VAL                                                 ~23
         37        SEND_VAL                                                 '%5C%7E'
         38        DO_ICALL                                         $24     
         39        TYPE_CHECK                                    4  ~25     $24
         40        BOOL                                             ~22     ~25
         41    > > JMPZ                                                     ~22, ->45
         42    >   FETCH_DIM_R                                      ~26     !1, !4
         43        CONCAT                                           ~27     'modules%2Fmain%2F', ~26
         44        INCLUDE_OR_EVAL                                          ~27, INCLUDE_ONCE
   43    45    >   PRE_INC                                                  !4
         46    >   COUNT                                            ~30     !1
         47        IS_SMALLER                                               !4, ~30
         48      > JMPNZ                                                    ~31, ->27
   49    49    >   TYPE_CHECK                                  1018          !2
         50      > JMPZ                                                     ~32, ->75
   51    51    >   ASSIGN                                                   !5, 2
         52      > JMP                                                      ->72
   53    53    >   INIT_FCALL                                               'stristr'
         54        FETCH_DIM_R                                      ~34     !2, !5
         55        SEND_VAL                                                 ~34
         56        SEND_VAL                                                 '.php'
         57        DO_ICALL                                         $35     
         58        TYPE_CHECK                                  1018  ~36     $35
         59      > JMPZ_EX                                          ~36     ~36, ->67
         60    >   INIT_FCALL                                               'stristr'
         61        FETCH_DIM_R                                      ~37     !2, !5
         62        SEND_VAL                                                 ~37
         63        SEND_VAL                                                 '%5C%7E'
         64        DO_ICALL                                         $38     
         65        TYPE_CHECK                                    4  ~39     $38
         66        BOOL                                             ~36     ~39
         67    > > JMPZ                                                     ~36, ->71
         68    >   FETCH_DIM_R                                      ~40     !2, !5
         69        CONCAT                                           ~41     'modules%2Fmenus%2F', ~40
         70        INCLUDE_OR_EVAL                                          ~41, INCLUDE_ONCE
   51    71    >   PRE_INC                                                  !5
         72    >   COUNT                                            ~44     !2
         73        IS_SMALLER                                               !5, ~44
         74      > JMPNZ                                                    ~45, ->53
   56    75    >   TYPE_CHECK                                  1018          !3
         76      > JMPZ                                                     ~46, ->101
   58    77    >   ASSIGN                                                   !6, 2
         78      > JMP                                                      ->98
   60    79    >   INIT_FCALL                                               'stristr'
         80        FETCH_DIM_R                                      ~48     !3, !6
         81        SEND_VAL                                                 ~48
         82        SEND_VAL                                                 '.php'
         83        DO_ICALL                                         $49     
         84        TYPE_CHECK                                  1018  ~50     $49
         85      > JMPZ_EX                                          ~50     ~50, ->93
         86    >   INIT_FCALL                                               'stristr'
         87        FETCH_DIM_R                                      ~51     !3, !6
         88        SEND_VAL                                                 ~51
         89        SEND_VAL                                                 '%5C%7E'
         90        DO_ICALL                                         $52     
         91        TYPE_CHECK                                    4  ~53     $52
         92        BOOL                                             ~50     ~53
         93    > > JMPZ                                                     ~50, ->97
         94    >   FETCH_DIM_R                                      ~54     !3, !6
         95        CONCAT                                           ~55     'modules%2Fanalysis%2F', ~54
         96        INCLUDE_OR_EVAL                                          ~55, INCLUDE_ONCE
   58    97    >   PRE_INC                                                  !6
         98    >   COUNT                                            ~58     !3
         99        IS_SMALLER                                               !6, ~58
        100      > JMPNZ                                                    ~59, ->79
   65   101    >   FETCH_W                      global              $60     '_SESSION'
        102        ASSIGN_DIM                                               $60, 'Modules_Main'
        103        OP_DATA                                                  !1
   66   104        FETCH_W                      global              $62     '_SESSION'
        105        ASSIGN_DIM                                               $62, 'Modules_Menus'
        106        OP_DATA                                                  !2
   67   107        FETCH_W                      global              $64     '_SESSION'
        108        ASSIGN_DIM                                               $64, 'Modules_Models'
        109        OP_DATA                                                  !3
   68   110        INIT_FCALL                                               'get_declared_classes'
        111        DO_ICALL                                         $68     
        112        FETCH_W                      global              $66     '_SESSION'
        113        ASSIGN_DIM                                               $66, 'Modules_Classes'
        114        OP_DATA                                                  $68
   70   115        ECHO                                                     '%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.01%2F%2FEN%22+%22http%3A%2F%2Fwww.w3.org%2FTR%2Fhtml4%2Fstrict.dtd%22%3E%0A%3Chtml%3E%0A%3Chead%3E%0A+++++%3Cmeta+http-equiv%3D%22content-type%22+content%3D%22text%2Fhtml%3B+charset%3DISO-8859-1%22%3E%0A+++++'
   75   116        FETCH_CONSTANT                                   ~69     'PROGRAMM'
        117        CONCAT                                           ~70     '+++++%3Ctitle%3E', ~69
        118        CONCAT                                           ~71     ~70, '+'
        119        FETCH_CONSTANT                                   ~72     'MAJOR_RELEASE'
        120        CONCAT                                           ~73     ~71, ~72
        121        CONCAT                                           ~74     ~73, '.'
        122        FETCH_CONSTANT                                   ~75     'MINOR_RELEASE'
        123        CONCAT                                           ~76     ~74, ~75
        124        CONCAT                                           ~77     ~76, '.'
        125        FETCH_CONSTANT                                   ~78     'PATCH_LEVEL'
        126        CONCAT                                           ~79     ~77, ~78
        127        CONCAT                                           ~80     ~79, '%3C%2Ftitle%3E%0A'
        128        ECHO                                                     ~80
   76   129        INIT_FCALL                                               'scandir'
        130        SEND_VAL                                                 'css'
        131        DO_ICALL                                         $81     
        132        ASSIGN                                                   !7, $81
   77   133        TYPE_CHECK                                  1018          !7
        134      > JMPZ                                                     ~83, ->152
   79   135    >   ASSIGN                                                   !4, 2
        136      > JMP                                                      ->149
   81   137    >   INIT_FCALL                                               'stristr'
        138        FETCH_DIM_R                                      ~85     !7, !4
        139        SEND_VAL                                                 ~85
        140        SEND_VAL                                                 '.css'
        141        DO_ICALL                                         $86     
        142        TYPE_CHECK                                  1018          $86
        143      > JMPZ                                                     ~87, ->148
        144    >   FETCH_DIM_R                                      ~88     !7, !4
        145        CONCAT                                           ~89     '+++++%3Clink+rel%3D%22stylesheet%22+type%3D%22text%2Fcss%22+href%3D%22css%2F', ~88
        146        CONCAT                                           ~90     ~89, '%22%3E%0A'
        147        ECHO                                                     ~90
   79   148    >   PRE_INC                                                  !4
        149    >   COUNT                                            ~92     !7
        150        IS_SMALLER                                               !4, ~92
        151      > JMPNZ                                                    ~93, ->137
   85   152    >   ECHO                                                     '+++++%3C%21--+Favicon+f%C3%BCr+alle%2F+IE--%3E%0A+++++%3Clink+rel%3D%22icon%22+href%3D%22gfx%2Ffavicon.ico%22+type%3D%22image%2Fx-icon%22%3E%0A+++++%3Clink+rel%3D%22shortcut+icon%22+href%3D%22gfx%2Ffavicon.ico%22+type%3D%22image%2Fx-icon%22%3E%0A+++++%3Cscript+type%3D%22text%2Fjavascript%22%3E%0A++++++++++window.setInterval%28%22scrolldown%28%29%22%2C1%29%3B%0A++++++++++function+scrolldown%28%29%0A++++++++++++++%7B%0A++++++++++++++++++var+logdivs+%3D+window.document.getElementsByName%28%22logdiv%22%29%3B%0A++++++++++++++++++for+%28i%3D0%3Bi%3Clogdivs.length%3Bi%2B%2B%29%0A++++++++++++++++++++++%7B%0A++++++++++++++++++++++++++%2F%2FAlle+Logdivs+automatisch+nach+unten+scrollen%0A++++++++++++++++++++++++++logdivs.item%28i%29.scrollTop+%3D+logdivs.item%28i%29.scrollHeight%3B%0A++++++++++++++++++++++%7D%0A++++++++++++++%7D%0A+++++%3C%2Fscript%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E+++%0A'
  104   153        INIT_FCALL_BY_NAME                                       'control_submit'
        154        DO_FCALL                                      0          
  106   155        INIT_FCALL_BY_NAME                                       'show_main'
        156        DO_FCALL                                      0          
  108   157        ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
  109   158      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.94 ms | 1412 KiB | 21 Q