home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 May / INTERNET103.ISO / pc / software / windows / building / php_nuke / html / modules / webmail / mailattach.php < prev    next >
Encoding:
PHP Script  |  2002-09-16  |  2.0 KB  |  43 lines

  1. <?php
  2.  
  3. /*************************************************************************/
  4.  #  Mailbox 0.9.2a   by Sivaprasad R.L (http://netlogger.net)             #
  5.  #  eMailBox 0.9.3   by Don Grabowski  (http://ecomjunk.com)              #
  6.  #          --  A pop3 client addon for phpnuked websites --              #
  7.  #                                                                        #
  8.  # This program is distributed in the hope that it will be useful,        #
  9.  # but WITHOUT ANY WARRANTY; without even the implied warranty of         #
  10.  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          #
  11.  # GNU General Public License for more details.                           #
  12.  #                                                                        #
  13.  # You should have received a copy of the GNU General Public License      #
  14.  # along with this program; if not, write to the Free Software            #
  15.  # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.              #
  16.  #                                                                        #
  17.  #             Copyright (C) by Sivaprasad R.L                            #
  18.  #            Script completed by Ecomjunk.com 2001                       #
  19. /*************************************************************************/
  20.  
  21. include("../../config.php");
  22.  
  23. if (isset($userfile) AND $userfile != "none") {
  24.     if (ini_get(file_uploads) AND $attachments == 1) {
  25.     $updir = "tmp";
  26.     @copy($userfile, "$updir/$userfile_name");
  27.     @unlink($userfile);
  28.     }
  29. }
  30.  
  31. echo "<html>\n"
  32.     ."<title>$sitename: Attach Files</title>\n"
  33.     ."<body text=\"#63627f\">\n"
  34.     ."<form action=\"mailattach.php\" method=\"post\" ENCTYPE=\"multipart/form-data\" name=\"attchform\">\n"
  35.     ."<center>\n"
  36.     ."<b>Attach Files</b><br><br>\n"
  37.     ."File: <input type=\"file\" name=\"userfile\">  <input type=\"submit\" value=\"Attach File\">\n"
  38.     ."</center>\n"
  39.     ."</form>\n"
  40.     ."</body>\n"
  41.     ."</html>";
  42.  
  43. ?>