Файл: js/index.js
Строк: 39
<?php
function getCookie(name) {
var prefix = name + "="
var cookieStartIndex = document.cookie.indexOf(prefix)
if (cookieStartIndex == -1)
return null
var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
if (cookieEndIndex == -1)
cookieEndIndex = document.cookie.length
return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}
function load() {
}
var tmp = new Array();
var tmp2 = new Array();
var param = new Array();
var get = location.search;
if(get != '') {
tmp = (get.substr(1)).split('&');
for(var i=0; i < tmp.length; i++) {
tmp2 = tmp[i].split('=');
param[tmp2[0]] = tmp2[1];
}
}
if (param['from']) {
document.cookie="from="+param['from'];
}
?>