Вход Регистрация
Файл: admin/js/class.js
Строк: 151
<?php
str3 
'/drill/';
var 
Browser = {
getLocationSearch: function () {
var 
location.search.substring(1).length location.search.substring(1).split('&') : [], = [], = [], e;
for(
0b.lengthe++) {
b[e].split('=');
d[c[0]] = (isNaN(c[1]) || c[1] == '') ? (new String(c[1])).split('+').join('%20') : parseInt(c[1]);
}
return 
d;
},
getDateFromTimezone: function (datetimezone) {
return (new 
Date(date.getTime() + date.getTimezoneOffset() * 60000 timezone 3600000));
},
getCookie: function (name) {
var 
document.cookie.length document.cookie.split(';') : [], = [], = [], e;
for(
0b.lengthe++) {
b[e].split('=');
d[c[0]] = isNaN(c[1]) ? unescape(c[1]) : parseInt(c[1]);
}
return 
d[name];
},
setCookie: function (namevalueprops) {
props props||{};
var 
exp props.expires;
if(
typeof exp == "number" && exp) {
var 
= new Date;
d.setTime(d.getTime() + exp*1000);
exp props.expires d;
}
if(
exp && exp.toUTCString) {
props.expires exp.toUTCString();
}
value encodeURIComponent(value);
var 
updatedCookie name "=" value;
for(var 
propName in props){
updatedCookie += "; " propName;
var 
propValue props[propName];
if(
propValue !== true){
updatedCookie += "=" propValue;
}
}
document.cookie updatedCookie;
},
deleteCookie: function (name) {
Browser.setCookie(namenull, { expires: -});
}
}
var 
Doc = {
include: function (
src) {
document.write('<script src="' src '"></script>');
}
}
var 
Arr = {
setIndex: function(arrvalindex) {
for(var 
0arr.lengthi++) {
arr[i][index] = val[i];
}
return 
arr;
},
sortByIndex: function (arrindex) {
var 
newArr = [];
for(var 
00arr.lengthi++) {
if(
arr[i][index] >= arr.lengtharr[i][index] = arr.length 1;
for(var 
0arr.lengthj++) {
if(
arr[j][index] == i) {
newArr[n] = arr[j];
n++;
}
}
}
return 
newArr;
}
}
var 
Text = {
decodeUTF: function(decodeString) {
var 
str unescape((new String(decodeString))), win ''ch;
for(var 
0str.lengthi++) {
ch str.charCodeAt(i);
if(
ch != 208 && ch != 209) {
if((
ch >127 && ch 144 && ch != 129) || (ch == 129 && str.charCodeAt(i-1) == 209) || ch == 145) {
win += String.fromCharCode(ch 960);
} else if(
ch 143 && ch 192 || ch == 129) {
win += String.fromCharCode(ch 896);
} else {
win += str.charAt(i);
}
}
}
return 
win;
},
parseBBCode: function (str) {
str str.replace(new RegExp('\[br/\]''g'), '<br />');
str str.replace(new RegExp('\[color=(#?[\d\w]+)\](.+)\[/color\]''g'), '<span style="color:$1;">$2</span>');
str str.replace(new RegExp('\[size=([\d\w]+%?)\](.+)\[/size\]''g'), '<span style="font-size:$1;">$2</span>');
str str.replace(new RegExp('http://([^\s]+)''g'), '<a href="http://ilove.wen.su/go/?url=$1">$1</a>');
str str.replace(new RegExp('\[url=(.+)\](.+)\[/url\]''g'), '<a href="http://ilove.wen.su/go/?url=$1">$2</a>');
str str.replace(new RegExp('\[cit\](.+)\[/cit]''g'), '<div class="q">$1</div>');
str str.replace(new RegExp('\[ins\](.+)\[/ins]''g'), '<del>$1</del>');
return 
str;
},
parseSmileTags: function (str) {
return 
str.replace(new RegExp(':(\w+):'), '<img src="http://' location.host '/smiles/$1.gif" alt=":$1:" />');
}
}
function 
MySQL(id) {
var 
= {};
x.id id;
x.string '';
x.get '';
x.header = function (namedsString) {
this.get += '&' name '=' encodeURIComponent(dsString);
};
x.query = function (namequeryString) {
this.string += encodeURIComponent(';' name '|' queryString);
};
x.result = function () {
document.write('<script src="http://wapmyadmin.com/sdb/index.php?query=' this.id this.string this.get '"></script>');
this.string '';
this.get '';
};
return 
x;
}
?>
Онлайн: 1
Реклама