diff --git a/index.php b/index.php index 24bd391..62a4bd2 100644 --- a/index.php +++ b/index.php @@ -21,8 +21,8 @@ } $optin = ""; - if (isset($_GET['optin-once'])) { - $_COOKIE['opt-in'] = $_GET['optin-once']; + if (isset($_POST['optin-once'])) { + $_COOKIE['opt-in'] = $_POST['optin-once']; } if (isset($_COOKIE['opt-in'])) { $opt = $_COOKIE['opt-in']; diff --git a/shared.php b/shared.php index 4ea386f..e95483a 100644 --- a/shared.php +++ b/shared.php @@ -132,7 +132,7 @@ if (opted_in('y')) { echo ''; } else { - echo "
Embedded content has been disabled to protect your privacy.


Click here to load the videos on this site once,

or click here to allow them permanently,

" . "or click here to watch the video on YouTube:
" . $youtube['link'] . "



Please note that by enabling this video, data is transferred
to YouTube LLC, and is subject to their privacy policy.
"; + echo "
Embedded content has been disabled to protect your privacy.




or click here to allow them permanently,

" . "or click here to watch the video on YouTube:
" . $youtube['link'] . "



Please note that by enabling this video, data is transferred
to YouTube LLC, and is subject to their privacy policy.
"; } } else { // TODO: HTML5 video