I got a reply from a programmer, but she isn't familiar with Nirvanix. She gave the following suggestions, so could you please look it over and give feedback? Thanks!
Normal
0
0
2
false
false
false
EN-US
ZH-TW
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
mso-bidi-font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-font-kerning:1.0pt;}
After observing "download.php",
my opinions are as follows:
1.Check whether the SESSION
Variable: userData exists
In your code:
if (!isset($_SESSION['userData']))
{
header( 'Location: index.php');
}
I guess there is a problem when setting the value of "userData" , so
you always see the index.
Maybe you can print userData on the screen to see what it is and try to correct
it.
2.Move the line: "session_start();
" to line2 ; (under "<?php")
3.About some variables:
$appkey =
"C8BCF626-XXX-4D18-XXX-53849EB259F2";
$username =
"myusername";
$password
= "mypassword";
You have to save the value into variable rather than take them as array's
index.