home *** CD-ROM | disk | FTP | other *** search
/ grafika-wolowiec.cba.pl / grafika-wolowiec.cba.pl.tar / grafika-wolowiec.cba.pl / admin / download.php < prev    next >
PHP Script  |  2014-01-24  |  641b  |  26 lines

  1. <?php
  2. require_once "../res/x5engine.php";
  3. require_once "../res/l10n.php";
  4. require_once "../res/x5settings.php";
  5. require_once "checkaccess.php";
  6.  
  7. if (!isset($_GET['what']))
  8.     return;
  9.  
  10. // Let's provide a ice way to add more files
  11.  
  12. switch ($_GET['what']) {
  13.     case "emaillibrary": 
  14.         // Download the email.inc.php file
  15.         if (!file_exists("../res/imemail.inc.php"))
  16.             return;
  17.         header("Cache-Control: public");
  18.         header("Content-Description: File Transfer");
  19.         header("Content-Disposition: attachment; filename=imemail.inc.php");
  20.         header("Content-Transfer-Encoding: text/plain");
  21.         @readfile("../res/imemail.inc.php");
  22.         break;
  23. }
  24.  
  25. // End of file
  26.