| OLD | NEW |
| 1 <?php | 1 <?php |
| 2 if ($_GET["suborigin"]) { | 2 if ($_GET["suborigin"]) { |
| 3 header("Suborigin: " . $_GET["suborigin"]); | 3 header("Suborigin: " . $_GET["suborigin"]); |
| 4 } | 4 } |
| 5 ?> | 5 ?> |
| 6 <!DOCTYPE html> | 6 <!DOCTYPE html> |
| 7 <html> | 7 <html> |
| 8 <head> |
| 9 <meta charset="utf-8"> |
| 10 </head> |
| 8 <script> | 11 <script> |
| 9 window.secret = ''; | 12 window.secret = ''; |
| 10 window.onmessage = function() { | 13 window.onmessage = function() { |
| 11 window.parent.postMessage(secret, '*'); | 14 window.parent.postMessage(secret, '*'); |
| 12 }; | 15 }; |
| 13 </script> | 16 </script> |
| 14 <?php | 17 <?php |
| 15 if ($_GET["childsuborigin"]) { | 18 if ($_GET["childsuborigin"]) { |
| 16 echo "<iframe id=\"iframe\" src=\"post-to-parent.php?suborigin=" . $_GET["ch
ildsuborigin"] . "\"></iframe>"; | 19 echo "<iframe id=\"iframe\" src=\"post-to-parent.php?suborigin=" . |
| 20 $_GET["childsuborigin"] . "\"></iframe>"; |
| 17 } else { | 21 } else { |
| 18 echo "<iframe id=\"iframe\" src=\"post-to-parent.php\"></iframe>"; | 22 echo "<iframe id=\"iframe\" src=\"post-to-parent.php\"></iframe>"; |
| 19 } | 23 } |
| 20 ?> | 24 ?> |
| 21 </html> | 25 </html> |
| OLD | NEW |