[Chameleon-dev] [Bug 797] [Chameleon-Widget]Unable to save a
context file with "sample_ogc.phtml" application
bugzilla-daemon at www.maptools.org
bugzilla-daemon at www.maptools.org
Fri Oct 29 13:25:43 EDT 2004
http://www.maptools.org/bugzilla/show_bug.cgi?id=797
------- Additional Comments From nsavard at dmsolutions.ca 2004-10-29 13:25 -------
Paul, I added the lines to output variable values. I got no PHP output. I only
see the message "here" I added in the popup. Here is a snippet of the code I
modified.
----------------------
Code snippet:
....
$http_form_vars = (count($_POST) > 0) ?
$_POST : ((count($_GET) > 0) ? $_GET : array() );
$szFileName = '';
$szSaveAs = '';
$szURL = '';
if (isset($_GET['sid']))
{
include_once( 'session.inc.php' );
if (isset($_SESSION['DOWNLOADFILE']))
$szFileName = $_SESSION['DOWNLOADFILE'];
if (isset($_SESSION['DOWNLOADFILE_SAVEAS']))
$szSaveAs = $_SESSION['DOWNLOADFILE_SAVEAS'];
if (isset($_SESSION['DOWNLOAD_URL']))
$szURL = $_SESSION['DOWNLOAD_URL'];
echo "here!";
unset($_SESSION['DOWNLOADFILE']);
unset($_SESSION['DOWNLOADFILE_SAVEAS']);
unset($_SESSION['DOWNLOAD_URL']);
}
//make sure file_name is set.
if ($szFileName == '')
{
if (!isset( $http_form_vars["file_name"] ) ||
trim($http_form_vars["file_name"]) == "" )
{
echo "file id not set or empty";
exit;
}
else
$szFileName = trim($http_form_vars["file_name"]);
//download it
$szSaveAs = ((isset($http_form_vars['save_as'])) ?
$http_form_vars['save_as'] : basename( $file_name ));
print_r($_GET);
print_r($_SESSION);
//make sure file_name is valid
....
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Chameleon-dev
mailing list