2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

added config directive TEMPORARY_DIRECTORY

This commit is contained in:
azammitdcarf
2011-03-02 00:28:46 +00:00
parent e9997305fc
commit 57879e7a4e
2 changed files with 6 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ else if (isset($_POST['import_file']))
<form action="" method="post"> <form action="" method="post">
<? <?
$tmpfname = tempnam("/tmp", "FOO"); $tmpfname = tempnam(TEMPORARY_DIRECTORY, "FOO");
move_uploaded_file($_FILES['file']['tmp_name'],$tmpfname); move_uploaded_file($_FILES['file']['tmp_name'],$tmpfname);
display_table(get_first_row($tmpfname)); display_table(get_first_row($tmpfname));

View File

@@ -247,12 +247,16 @@ if (!defined('ALLOW_PAGE_REFRESH')) define ('ALLOW_PAGE_REFRESH',true);
*/ */
if (!defined('ALLOW_RESPONDENT_SELECTOR')) define ('ALLOW_RESPONDENT_SELECTOR',true); if (!defined('ALLOW_RESPONDENT_SELECTOR')) define ('ALLOW_RESPONDENT_SELECTOR',true);
/** /**
* Number of log records to display * Number of log records to display
*/ */
if (!defined('PROCESS_LOG_LIMIT')) define('PROCESS_LOG_LIMIT', 500); if (!defined('PROCESS_LOG_LIMIT')) define('PROCESS_LOG_LIMIT', 500);
/**
* Temporary upload directory
*/
if (!defined('TEMPORARY_DIRECTORY')) define('TEMPORARY_DIRECTORY', "/tmp");
/** /**
* Database configuration for queXS * Database configuration for queXS
*/ */