mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Replaced _top with _self to make sure windows only open within frame
This commit is contained in:
@@ -29,7 +29,7 @@ if (!@move_uploaded_file($_FILES['the_file']['tmp_name'], $the_full_file_path))
|
||||
{
|
||||
$importlabeloutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
|
||||
$importlabeloutput .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."<br /><br />\n";
|
||||
$importlabeloutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n";
|
||||
$importlabeloutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n";
|
||||
$importlabeloutput .= "</td></tr></table><br /> \n";
|
||||
return;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ if (substr($bigarray[0], 0, 27) != "# LimeSurvey Label Set Dump" && substr($biga
|
||||
{
|
||||
$importlabeloutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
|
||||
$importlabeloutput .= $clang->gT("This file is not a LimeSurvey label set file. Import failed.")."<br /><br />\n";
|
||||
$importlabeloutput .= "<input type='submit' value='".$clang->gT("Return to Labels Admin")."' onclick=\"window.open('$scriptname?action=labels', '_top')\">\n";
|
||||
$importlabeloutput .= "<input type='submit' value='".$clang->gT("Return to Labels Admin")."' onclick=\"window.open('$scriptname?action=labels', '_self')\">\n";
|
||||
$importlabeloutput .= "</td></tr></table>\n";
|
||||
$importlabeloutput .= "</body>\n</html>\n";
|
||||
unlink($the_full_file_path);
|
||||
@@ -209,7 +209,7 @@ if (isset($labelsetsarray) && $labelsetsarray) {
|
||||
|
||||
|
||||
$importlabeloutput .= "<strong>".$clang->gT("Import of Label Set is completed.")."</strong><br />\n";
|
||||
$importlabeloutput .= "<input type='submit' value='".$clang->gT("Return to Labels Admin")."' onclick=\"window.open('$scriptname?action=labels&lid=$newlid', '_top')\">\n";
|
||||
$importlabeloutput .= "<input type='submit' value='".$clang->gT("Return to Labels Admin")."' onclick=\"window.open('$scriptname?action=labels&lid=$newlid', '_self')\">\n";
|
||||
|
||||
$importlabeloutput .= "</td></tr></table>\n";
|
||||
unlink($the_full_file_path);
|
||||
|
||||
Reference in New Issue
Block a user