<?php
foreach ($_GET as $k=>$v){
  $k=$v;
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xml:lang="fr"
    lang="fr"
    dir="ltr">
<script type="text/javascript" language="javascript">
// <![CDATA[
function reload(win){
  win.location='<?php print($_GET['backurl']); ?>';
}
// ]]>
</script>
<head>
<title>Wims in Moodle</title>
<meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1" />
</head>
<frameset cols="*" rows="40,*" id="mainFrameset" onUnLoad="reload(window.opener)">
        <frame frameborder="0" id="frame_control"
        src="closing.php?msg=<?php print(urlencode($_GET['closemsg'])); ?>" name="frame_control" />
        <frame frameborder="0" id="frame_content"
        src="<?php print ($_GET['url']); ?>" name="frame_content" />

        <noframes>
        <body>
            <p>Il vous faut un navigateur supportant les frames</p>
        </body>
    </noframes>
</frameset>
</html>

<?
?>
