3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap --> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <?php $passwd=$_POST["passwd"]; # settare nella riga seguente la password if ($passwd=="med2014"): ?> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Language" content="it"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Area Riservata Clinica del Mediterraneo - Ragusa</title> </head> <body bgcolor="#FFFFFF"> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="bootstrap/js/bootstrap.min.js"></script> </body> <br/> <div class="container"> <div class="row"> <div class="col-md-2"></div> <div class="col-md-8"> <?php print " <table class='table table-bordered table-striped table-hover' > <thead> <tr> <th >Numero cartella</th> <th >Link per Download</th> </tr> </thead>"; //Imposto la directory da leggere //$directory = "/web/htdocs/www.gemis.it/ftp/riservata/"; foreach (glob("*.pdf") as $filename) { print " <tr> <td>".$filename."</td> <td><a href=".$filename." target='_blank' ><font color='red' size='3' face='Verdana, Arial, Helvetica, sans-serif'>Download</font></a></td> <tr/>"; } print "</table>"; ?> </div> <div class="col-md-2"></div> </div> </div> <!------------------- fine html pagina riservata--------------------> <? else: ?> <!------------------- inizio html pagina errore--------------------> <body bgcolor="#FFCB8C"> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" width="90%"> <tr> <td width="100%" bgcolor="#0099CC"> <p align="center"><font face="Verdana" size="2" color="#FFFFFF">area protetta, non sei autorizzato all'accesso</font></td> </tr> <tr> <td width="100%" height="290"> <p align="center"><font face="Verdana" size="2"><b><a href="accesso_area.htm">L'ACCESSO ALL'AREA NON E' STATO GARANTITO: RITENTARE O RIVOLGERSI ALL'AMMINISTRATORE SE SI RITIENE DI AVER DIRITTO ALL'ACCESSO</a></b></font></td> </tr> </table> </center> </div> <!------------------- fine html pagina errore--------------------> <? endif; ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 23
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfGLE
function name:  (null)
number of ops:  26
compiled vars:  !0 = $passwd, !1 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml+lang%3D%22en%22%3E%0A++%3Chead%3E%0A++++%3Cmeta+charset%3D%22utf-8%22%3E%0A++++%3Cmeta+http-equiv%3D%22X-UA-Compatible%22+content%3D%22IE%3Dedge%22%3E%0A++++%3Cmeta+name%3D%22viewport%22+content%3D%22width%3Ddevice-width%2C+initial-scale%3D1%22%3E%0A%0A++++%3C%21--+Bootstrap+--%3E%0A++++%3Clink+href%3D%22bootstrap%2Fcss%2Fbootstrap.min.css%22+rel%3D%22stylesheet%22%3E%0A%0A++++%3C%21--+HTML5+Shim+and+Respond.js+IE8+support+of+HTML5+elements+and+media+queries+--%3E%0A++++%3C%21--+WARNING%3A+Respond.js+doesn%27t+work+if+you+view+the+page+via+file%3A%2F%2F+--%3E%0A++++%3C%21--%5Bif+lt+IE+9%5D%3E%0A++++++%3Cscript+src%3D%22https%3A%2F%2Foss.maxcdn.com%2Flibs%2Fhtml5shiv%2F3.7.0%2Fhtml5shiv.js%22%3E%3C%2Fscript%3E%0A++++++%3Cscript+src%3D%22https%3A%2F%2Foss.maxcdn.com%2Flibs%2Frespond.js%2F1.4.2%2Frespond.min.js%22%3E%3C%2Fscript%3E%0A++++%3C%21%5Bendif%5D--%3E%0A++%3C%2Fhead%3E%0A'
   20     1        FETCH_R                      global              ~2      '_POST'
          2        FETCH_DIM_R                                      ~3      ~2, 'passwd'
          3        ASSIGN                                                   !0, ~3
   24     4        IS_EQUAL                                                 !0, 'med2014'
          5      > JMPZ                                                     ~5, ->23
          6    >   ECHO                                                     '+%0A%3Chtml%3E%0A%3Chead%3E%0A%3Cmeta+charset%3D%22utf-8%22%3E%0A%3Cmeta+http-equiv%3D%22X-UA-Compatible%22+content%3D%22IE%3Dedge%22%3E%0A%3Cmeta+name%3D%22viewport%22+content%3D%22width%3Ddevice-width%2C+initial-scale%3D1%22%3E%0A%3Cmeta+http-equiv%3D%22Content-Language%22+content%3D%22it%22%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3Dwindows-1252%22%3E%0A%0A%3Ctitle%3EArea+Riservata+Clinica+del+Mediterraneo+-+Ragusa%3C%2Ftitle%3E%0A%0A%3C%2Fhead%3E%0A%0A%3Cbody+bgcolor%3D%22%23FFFFFF%22%3E%0A%3C%21--+jQuery+%28necessary+for+Bootstrap%27s+JavaScript+plugins%29+--%3E%0A++++%3Cscript+src%3D%22https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.0%2Fjquery.min.js%22%3E%3C%2Fscript%3E%0A++++%3C%21--+Include+all+compiled+plugins+%28below%29%2C+or+include+individual+files+as+needed+--%3E%0A++++%3Cscript+src%3D%22bootstrap%2Fjs%2Fbootstrap.min.js%22%3E%3C%2Fscript%3E%0A%3C%2Fbody%3E%0A%0A%3Cbr%2F%3E%0A%3Cdiv+class%3D%22container%22%3E%0A++%3Cdiv+class%3D%22row%22%3E%0A++%3Cdiv+class%3D%22col-md-2%22%3E%3C%2Fdiv%3E%0A++%3Cdiv+class%3D%22col-md-8%22%3E++%0A%0A'
   52     7        ECHO                                                     '%0A%3Ctable+class%3D%27table+table-bordered+table-striped+table-hover%27+%3E%0A%3Cthead%3E%0A%3Ctr%3E%0A%3Cth+%3ENumero+cartella%3C%2Fth%3E%0A%3Cth+%3ELink+per+Download%3C%2Fth%3E%0A%3C%2Ftr%3E%0A%3C%2Fthead%3E'
   64     8        INIT_FCALL                                               'glob'
          9        SEND_VAL                                                 '%2A.pdf'
         10        DO_ICALL                                         $6      
         11      > FE_RESET_R                                       $7      $6, ->19
         12    > > FE_FETCH_R                                               $7, !1, ->19
   68    13    >   CONCAT                                           ~8      '%0A%09%3Ctr%3E%0A%09%3Ctd%3E', !1
         14        CONCAT                                           ~9      ~8, '%3C%2Ftd%3E%0A%09%3Ctd%3E%3Ca+href%3D'
   69    15        CONCAT                                           ~10     ~9, !1
         16        CONCAT                                           ~11     ~10, '+target%3D%27_blank%27+%3E%3Cfont+color%3D%27red%27+size%3D%273%27+face%3D%27Verdana%2C+Arial%2C+Helvetica%2C+sans-serif%27%3EDownload%3C%2Ffont%3E%3C%2Fa%3E%3C%2Ftd%3E%0A++++%3Ctr%2F%3E'
         17        ECHO                                                     ~11
   64    18      > JMP                                                      ->12
         19    >   FE_FREE                                                  $7
   74    20        ECHO                                                     '%3C%2Ftable%3E'
   77    21        ECHO                                                     '++%3C%2Fdiv%3E%0A++%3Cdiv+class%3D%22col-md-2%22%3E%3C%2Fdiv%3E%0A++%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A%3C%21-------------------+fine+html+pagina+riservata--------------------%3E%0A'
         22      > JMP                                                      ->24
   83    23    >   ECHO                                                     '%3C%21-------------------+inizio+html+pagina+errore--------------------%3E%0A%0A%3Cbody+bgcolor%3D%22%23FFCB8C%22%3E%0A%0A%3Cdiv+align%3D%22center%22%3E%0A++%3Ccenter%3E%0A++%3Ctable+border%3D%220%22+cellpadding%3D%220%22+cellspacing%3D%220%22+width%3D%2290%25%22%3E%0A++++%3Ctr%3E%0A++++++%3Ctd+width%3D%22100%25%22+bgcolor%3D%22%230099CC%22%3E%0A++++++++%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Verdana%22+size%3D%222%22+color%3D%22%23FFFFFF%22%3Earea%0A++++++++protetta%2C+non+sei+autorizzato+all%27accesso%3C%2Ffont%3E%3C%2Ftd%3E%0A++++%3C%2Ftr%3E%0A++++%3Ctr%3E%0A++++++%3Ctd+width%3D%22100%25%22+height%3D%22290%22%3E%0A++++++++%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Verdana%22+size%3D%222%22%3E%3Cb%3E%3Ca+href%3D%22accesso_area.htm%22%3EL%27ACCESSO%0A++++++++ALL%27AREA+NON+E%27+STATO+GARANTITO%3A+RITENTARE+O+RIVOLGERSI%0A++++++++ALL%27AMMINISTRATORE+SE+SI+RITIENE+DI+AVER+DIRITTO+ALL%27ACCESSO%3C%2Fa%3E%3C%2Fb%3E%3C%2Ffont%3E%3C%2Ftd%3E%0A++++%3C%2Ftr%3E%0A++%3C%2Ftable%3E%0A++%3C%2Fcenter%3E%0A%3C%2Fdiv%3E%0A%3C%21-------------------+fine+html+pagina+errore--------------------%3E%0A'
  106    24    >   ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
  107    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.78 ms | 1405 KiB | 15 Q