examples.php 212 B

12345678910
  1. <?php
  2. if ( isset( $_POST['src'] ) && preg_match( '/scripts\/[a-zA-Z_\-_]+\.php/', $_POST['src'] ) !== 0 ) {
  3. echo htmlspecialchars( file_get_contents( '../server_side/'.$_POST['src'] ) );
  4. }
  5. else {
  6. echo '';
  7. }