Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified BLOB field to LONGBLOB. Added file upload into database. Ren…
…amed g_store_file_to to g_file_upload_method. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@586 f5dc347c-c33d-0410-90a0-b07cc1902cb9
- Loading branch information
Kenzaburo Ito
committed
Dec 28, 2001
1 parent
b40c647
commit 423dad7
Showing
11 changed files
with
106 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<? | ||
# Mantis - a php based bugtracking system | ||
# Copyright (C) 2000, 2001 Kenzaburo Ito - kenito@300baud.org | ||
# This program is distributed under the terms and conditions of the GPL | ||
# See the README and LICENSE files for details | ||
?> | ||
<? | ||
### Add file and redirect to the referring page | ||
?> | ||
<? include( "core_API.php" ) ?> | ||
<? login_cookie_check() ?> | ||
<? | ||
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name ); | ||
#check_access( DEVELOPER ); | ||
|
||
switch ( $f_type ) { | ||
case "bug": $query = "SELECT * | ||
FROM $g_mantis_bug_file_table | ||
WHERE id='$f_id'"; | ||
break; | ||
case "doc": $query = "SELECT * | ||
FROM $g_mantis_project_file_table | ||
WHERE id='$f_id'"; | ||
break; | ||
} | ||
|
||
$result = db_query( $query ); | ||
$row = db_fetch_array( $result ); | ||
extract( $row, EXTR_PREFIX_ALL, "v" ); | ||
|
||
header( "Content-type: $v_file_type" ); | ||
header( "Content-Length: ".$v_filesize ); | ||
header( "Content-Disposition: filename=$v_filename" ); | ||
header( "Content-Description: Download Data" ); | ||
|
||
echo $v_content; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters