\n";
$importerror=false; // Put a var for continue
if ($action == 'importsurvey')
{
$the_full_file_path = $tempdir . "/" . sRandomChars(20).'_'.$_FILES['the_file']['name'];
if (!@move_uploaded_file($_FILES['the_file']['tmp_name'], $the_full_file_path))
{
$importsurvey .= "
".$clang->gT("Error")."
\n";
$importsurvey .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."
\n";
}
if (isset($aImportResults['deniedcountls']) && $aImportResults['deniedcountls']>0)
{
$importsurvey .= "\t
".$clang->gT("Not imported label sets").": {$aImportResults['deniedcountls']} ".$clang->gT("(Label sets were not imported since you do not have the permission to create new label sets.)")."
".$clang->gT("Quotas").": {$aImportResults['quota']} ({$aImportResults['quotamembers']} ".$clang->gT("quota members")." ".$clang->gT("and")." {$aImportResults['quotals']} ".$clang->gT("quota language settings").")
\n
\n";
if (count($aImportResults['importwarnings'])>0)
{
$importsurvey .= "
".$clang->gT("Warnings").":
";
foreach ($aImportResults['importwarnings'] as $warning)
{
$importsurvey .='
'.$warning.'
';
}
$importsurvey .= "
\n";
}
if ($action == 'importsurvey')
{
$importsurvey .= "".$clang->gT("Import of Survey is completed.")." \n"
. "".$clang->gT("Go to survey")." \n";
}
elseif($action == 'copysurvey')
{
$importsurvey .= "".$clang->gT("Copy of survey is completed.")." \n"
. "".$clang->gT("Go to survey")." \n";
}
if ($action == 'importsurvey')
{
unlink($sFullFilepath);
}
}
// end of traitment an close message box
$importsurvey .= "