Location: PHPKode > projects > Akasha > upload.php
<?

if ($akashaID == $ID) {
	include ("includes/global.inc"); 	// Global Variables
	include ("includes/functions.inc"); 	// Global Functions

		$dosyaadi = "msgbody.txt";
		$fp = fopen("$attach_dir$ID######$dosyaadi", "w+");
		if ($fp) {
			$sonuc = fputs($fp, $msgbody);
			fclose($fp);
		}

	if(@copy($userfile, "$attach_dir$ID######$userfile_name")) {
		Header("Location: attachments.php?ID=$ID&to=$to&cc=$cc&bcc=$bcc&subject=$subject&attached=1");
	} else {
		echo "&nbsp;<p>&nbsp;<p><div align='center'><h1>There was a problem uploading the file you selected</h1><p>";
		echo "<h2>Click <a href='attachments.php?ID=$ID&to=$to&cc=$cc&bcc=$bcc&subject=$subject&attached=1'>here</a> to retry</h2></div>\n";
	}
} else {
		Header("Location: main.php?error_code=1");
}

?>
Return current item: Akasha