JS: 24 ( )?
    ~
Advanced Hosters -

Yabuti
V.I.P.
: 28.11.2008
: 11262
Contest (: 2)
# : Dec 13, 2012 10:48 am
!
, JS-. 24 .
24 , .
24 expired .

( Codd') Cool :
:
123

<script type="text/javascript">
/* **********/
var url = 'http://codd.ws/'; // ,
var time = 24; // ,

function getCookie(super) {
   var cookie = " " + document.cookie;
   var search = " " + super + "=";
   var setStr = null;
   var offset = 0;
   var end = 0;
   if (cookie.length > 0) {
      offset = cookie.indexOf(search);
      if (offset != -1) {
         offset += search.length;
         end = cookie.indexOf(";", offset)
         if (end == -1) {
            end = cookie.length;
         }
         setStr = unescape(cookie.substring(offset, end));
      }
   }
   return(setStr);
}

var D = new Date();
D.setHours( D.getHours()+time );
var expires = D.toUTCString();

window.onload = function() { 
   if( getCookie('super') !== 'true' ){
      window.cookie='super=true; path=/; expires=' +expires;
      window.location.href=''+url;     
   }
}
</script>



JS, , , .. .

! Drinks or Beer
PQCService.net 7 , icq: 87244588
EvaPharmacy. , ! Jabber: [email protected] ICQ: 750000

Yabuti
V.I.P.
: 28.11.2008
: 11262
Contest (: 2)
# : Dec 13, 2012 12:57 pm
PHP, .
, , , ( , , r5 ):
:
<?php

//

//
if(!$_COOKIE['prefcookie'] == "prefcookie1") {
   //
   setcookie("prefcookie", "prefcookie1", time()+60*60*24);     // 24 (60*60*24)
   //
   header("Location: http://google.com/");
}
?>


Drinks or Beer
PQCService.net 7 , icq: 87244588
EvaPharmacy. , ! Jabber: [email protected] ICQ: 750000

Yabuti
V.I.P.
: 28.11.2008
: 11262
Contest (: 2)
# : Dec 13, 2012 3:58 pm
( , ):

:
<?php

// , "google"

//
$original_referer = $_SERVER['HTTP_REFERER'];
 
//
$referer='google';

//
$pos = strpos($original_referer, $referer);

if ($pos) {
   //
   if(!$_COOKIE['prefcookie'] == "prefcookie1") {
      //
      setcookie("prefcookie", "prefcookie1", time()+60*60*24);     // 24
      //
      header("Location: http://google.com/");
   }
}

?>

PQCService.net 7 , icq: 87244588
EvaPharmacy. , ! Jabber: [email protected] ICQ: 750000
    ~