Feature #2712 change top.location by window.parent.location and adding waiting messages

skala
Juan Carlos Raña 14 years ago
parent d0fc592cc4
commit 1460baaf98
  1. 5
      main/document/exit_pixlr.php
  2. 5
      main/document/save_pixlr.php

@ -15,12 +15,13 @@ api_protect_course_script();
api_block_anonymous_users();
if (!isset($_SESSION['exit_pixlr'])){
$location=api_get_path(WEB_CODE_PATH).'document/document.php';
echo '<script>top.location.href="'.$location.'"</script>';
echo '<script>window.parent.location.href="'.$location.'"</script>';
api_not_allowed(true);
}
else{
echo '<div align="center" style="padding-top:150; font-family:Arial, Helvetica, Sans-serif;font-size:25px;color:#aaa;font-weight:bold;">'.get_lang('PleaseStandBy').'</div>';
$location=api_get_path(WEB_CODE_PATH).'document/document.php?curdirpath='.Security::remove_XSS($_SESSION['exit_pixlr']);
echo '<script>top.location.href="'.$location.'"</script>';
echo '<script>window.parent.location.href="'.$location.'"</script>';
unset($_SESSION['exit_pixlr']);
}
?>

@ -129,12 +129,13 @@ unset($_SESSION['whereami']);
if (!isset($_SESSION['exit_pixlr'])){
$location=api_get_path(WEB_CODE_PATH).'document/document.php';
echo '<script>top.location.href="'.$location.'"</script>';
echo '<script>window.parent.location.href="'.$location.'"</script>';
api_not_allowed(true);
}
else{
echo '<div align="center" style="padding-top:150; font-family:Arial, Helvetica, Sans-serif;font-size:25px;color:#aaa;font-weight:bold;">'.get_lang('PleaseStandBy').'</div>';
$location=api_get_path(WEB_CODE_PATH).'document/document.php?curdirpath='.Security::remove_XSS($_SESSION['exit_pixlr']);
echo '<script>top.location.href="'.$location.'"</script>';
echo '<script>window.parent.location.href="'.$location.'"</script>';
unset($_SESSION['exit_pixlr']);
}

Loading…
Cancel
Save