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 = 'I am a secret'; | 12 window.secret = 'I am a secret'; |
10 try { | 13 try { |
11 window.parent.secret = 'I am a secret'; | 14 window.parent.secret = 'I am a secret'; |
12 } catch(e) { | 15 } catch(e) { |
13 // Ignore. The fact that secret hasn't changed in the parent will be | 16 // Ignore. The fact that secret hasn't changed in the parent will be |
14 // recognized in the parent. | 17 // recognized in the parent. |
15 } | 18 } |
16 window.parent.postMessage('Done', '*'); | 19 window.parent.postMessage('Done', '*'); |
17 </script> | 20 </script> |
18 </html> | 21 </html> |
OLD | NEW |