topical media & game development

talk show tell print

professional-sql-12-public-files-exploit-02.php / php



  <?php
  define('TEMPLATE_DIR', '../templates/');
  
  GLOBALS['TEMPLATE']['content'] = '<p>Hello World!</p>';
  
  if (isset(_GET['t']))
  {
      template = TEMPLATE_DIR . _GET['t'];
  }
  
  if (isset(template) && file_exists(template))
  {
      include template;
  }
  else
  {
      include TEMPLATE_DIR . 'default.php';
  }
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.