/upload/develop/show_source.php

http://torrentpier2.googlecode.com/ · PHP · 18 lines · 12 code · 5 blank · 1 comment · 0 complexity · d3c07edb82e14a0121008d3b2a1dd82b MD5 · raw file

  1. <?php
  2. // Comment the following line to enable
  3. die('Please REMOVE THIS FILE from your production environment!<br /><br />'. basename(__FILE__));
  4. define('IN_FORUM', true);
  5. define('BB_ROOT', './../');
  6. require('./dbg_config.php');
  7. require('./functions_debug.php');
  8. $file = @$_GET['file'];
  9. $line = @$_GET['line'];
  10. $prev = @$_GET['prev'] ? $_GET['prev'] : 15;
  11. $next = @$_GET['next'] ? $_GET['next'] : 15;
  12. require('./dbg_header.php');
  13. echo showSource($file, $line, $prev, $next);