Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $rola = rand(0,1);// Sorteia 1 ou 2
- $cookie = $_COOKIE['Ads'];
- if($cookie == 0){ //
- if($rola == 1){
- //Se o numero do sorteio for: 1 (PEDIR CLIQUE)
- setcookie('Ads', '1');
- }else{
- //Se o numero do sorteio for: 0 (NÃO PEDIR CLIQUE)
- setcookie('Ads', '0');
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement