Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Gábor Papp
Added: Sep 20, 2019 8:01 AM
Views: 8
Tags: no tags
  1.         if ($_GET['teszt']=='igen') { // https://kandalloaruhaz.hu/index.php?teszt=igen
  2.             // print('<pre>');print_r($_GET['teszt']);print('</pre>');
  3.             setcookie('teszt','igen', time()+3600 ,"/"); // 3600 = 1 nap
  4.             // exit;
  5.             header("Location: https://kandalloaruhaz.hu"); exit;
  6.         }
  7.         if ($_COOKIE['teszt']!='igen') {
  8.             echo 'hamarosan...'; exit;
  9.         }