Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
-
- var $fms, $i = 0,
- $c = 0,
- $mfd35, $drl74, $hdg73, $lir80, $asd12, $ker32, $des33, $ldp43, $psl59, $gnx13;
- var attr = ['#chat_iframe', '#chat_content', '.chat_privat', '.chat_ya', 'id="ichat"', '.chat_message',
- 'chat_priv', '#fp', '#fp:first', '/mchat', '#chat_sound', '.forumOnlineBar', '#chat_online',
- '#chat_input', '#chat_privat', '#chat_forprivat', '#chat_check', '#chat_smiles', '#chat_ssid',
- '/mchat/0-1', '#chat_info, #chat_content', '#chat_moder', 'br', 'div[id*="entryID"]',
- '/index/14-0-0-1', 'style="display:none"', 'div[class*="cBlock"]', '<b>> ', '</b> ',
- 'type="application/x-shockwave-flash"', 'width="100" height="100"', 'width="0" height="0"',
- 'border="0"', 'style="margin-top:15px" class="myWinError"', 'script type="text/javascript">',
- '/script>', 'input[name="ssid"]', 'div[id*="comEntT"]', 'style="float:right"', '#messagepm', '#nikpm',
- '#capcode', '#capImgSpan', '#postpm', '#st', '#secuImg', 'input[name="seckey"]', 'iframe',
- '</iframe>', '<embed ',
- 'http://s51.ucoz.net/flash/audio1.swf?song_url=http://trane73.ru/js/chat/resource/newmsg.mp3&autoplay=1&loop=0',
- '<span title="', '</span>', '<img src="/js/chat/resource/u.png" ', ' <a href="javascript://" ',
- '<div ', '<br />', 'ajax', 'onclick', 'border-bottom', '1px solid #cecece', ' a:last', 'cap', 'psend',
- 'Внимание', 'код б', 'успешно', 'Успех', 'Сообщение отправлено', 'Сообщение из чата',
- 'Отправить сообщение', 'Код с картинки', ' Идёт отправка...', 'Отправка сообщения',
- 'Закрыть модерацию сообщений', 'Вы точно хотите открыть панель модерации сообщений?',
- 'Редактирование комментария', 'Вы подтверждаете удаление?', 'Отменить',
- 'Сейчас Вы пишите приватное сообщение для ', 'Отправить', 'Жди 5 сек', 'Пожалуйста, подождите!',
- 'Меньше 4 символов отправлять нельзя', 'Не заполнено поле', 'Сообщение', 'В чате никого нет',
- 'А может быть и есть, просто подождите, когда чат обновится!', 'Обновлено',
- 'Сообщения успешно обновлены!', 'Автор: ',
- 'Не убирай копирайты!'
- ];
- var $per = attr[50].substr(46, 17),
- $rep = $per.substr(7, 7).toUpperCase(),
- $erp = attr[52].substr(0, 2),
- $epr = $per.substr(9, 1),
- $rpe = attr[54].substr(0, 10),
- $pre = Math.floor(Math.random() * (5436 - 3143 + 1)) + 3143,
- $hdg73 = attr[20].substr(0, 10) + ' ' + attr[55].substr(1, 3) + '[' + attr[38] + ']';
- function chat_iframe() {
- $(attr[0]).html('<' + attr[47] + ' ' + attr[30] + ' name="ichat" ' + attr[4] + ' ' + attr[32] +
- ' src="' + $furl + '" ' + attr[25] + '>' + attr[48]);
- $mfd35 = $per, $lir80 = $rep, $drl74 = chat_message($($hdg73).html(), $mfd35), $asd12 = chat_message(
- $($hdg73).html(), $lir80)
- };
- function get_chat_first() {
- $.get(attr[9], function (c) {
- $(attr[1]).html('');
- $(attr[26], c).each(function () {
- var a = $(attr[2], this).text();
- var b = $(attr[3], this).text();
- if (a == '') {
- $(attr[1]).append($(this).html())
- } else {
- if (a == $mynik || b == $mynik) {
- $(attr[5], this).addClass(attr[6]);
- $(attr[7], this).before(attr[27] + a + attr[28]);
- $(attr[1]).append($(this).html())
- }
- }
- })
- });
- setTimeout("newms()", 1000)
- };
- function get_chat() {
- if ($c == 0) {
- $drl74 = chat_message($($hdg73).html(), $mfd35);
- $asd12 = chat_message($($hdg73).html(), $lir80);
- $ker32 = chat_radio();
- if ($drl74 != -1 && $asd12 != -1 && $ker32 != -1) {
- $.get(attr[9], function (c) {
- $(attr[1]).html('');
- $(attr[26], c).each(function () {
- var a = $(attr[2], this).text();
- var b = $(attr[3], this).text();
- if (a == '') {
- $(attr[1]).append($(this).html())
- } else {
- if (a == $mynik || b == $mynik) {
- $(attr[5], this).addClass(attr[6]);
- $(attr[7], this).before(attr[27] + a +
- attr[28]);
- $(attr[1]).append($(this).html())
- }
- }
- })
- });
- setTimeout("check_newms()", 1000);
- _uWnd.alert(attr[89], attr[88], {
- w: 200,
- h: 60,
- tm: 3000
- })
- } else {
- $(attr[1] + ',' + $hdg73).html('');
- new _uWnd(attr[63], attr[64], 260, 100, {
- alert: 1,
- modal: 1,
- resize: 1,
- nomove: 1,
- fadespeed: 500,
- maxh: 425,
- align: 0,
- header: 0
- }, '<center><h2><br />' + attr[91] + '</h2></center>');
- $c = 0
- }
- }
- };
- function check_newms() {
- if ($fms !== $(attr[8]).text()) {
- chat_sound();
- $fms = $(attr[8]).text()
- }
- };
- function newms() {
- $fms = $(attr[8]).text()
- };
- function chat_sound() {
- $(attr[10]).html(attr[49] + attr[29] + ' src="' + attr[50] + '" ' + attr[31] + ' />')
- };
- function reload_users() {
- if ($c == 0) {
- $ker32 = chat_radio();
- $drl74 = chat_message($($hdg73).html(), $mfd35);
- $asd12 = chat_message($($hdg73).html(), $lir80);
- if ($drl74 != -1 && $asd12 != -1 && $ker32 != -1) {
- $.get($furl2, function (a) {
- var b = $(attr[11], a).html();
- if (b) {
- b = b.substr(21)
- } else {
- b = attr[86] + " (" + attr[51] + attr[87] + "\">?" + attr[52] +
- ")"
- };
- $(attr[12]).html(b);
- $(attr[12]).html($(attr[12]).html().split(',').join('<br />'));
- $(attr[12]).find('a').each(function () {
- $(this).after(attr[54] + 'onclick="nik(\'' + $(this).text() +
- '\')">' + $(this).text() + '</a>');
- $(this).html(attr[53] + attr[32] + '>')
- })
- })
- }
- }
- };
- function chat_post() {
- if ($(attr[13]).val().length < 4) {
- _uWnd.alert(attr[55] + attr[33] + '>' + attr[84] + ' \"' + attr[85] + '\"' + attr[56] + '(' +
- attr[83] + ')</div>', '', {
- w: 250,
- h: 90,
- tm: 3000
- })
- } else {
- $.post(attr[9], {
- a: 18,
- ajax: 1,
- ajaxFlag: 1,
- numa832: 0,
- custom1: $(attr[14]).val(),
- mcmessage: $(attr[13]).val()
- }, function (a) {
- $(attr[13]).val('');
- $(attr[14]).val('');
- $(attr[15]).html('');
- get_chat_first();
- reload_users();
- $(attr[13]).after('<' + attr[34] + $(attr[57], a).text() + '<' + attr[35])
- })
- }
- };
- function nik(a) {
- $(attr[13]).val('[b]' + a + '[/b], ' + $(attr[13]).val())
- };
- function smile(a) {
- $(attr[13]).val($(attr[13]).val() + ' ' + a);
- $(attr[17]).slideToggle()
- };
- function privat(a) {
- $(attr[14]).val(a);
- $(attr[15]).html(attr[79] + a + ' (' + attr[54] + 'onclick="$(\'' + attr[14] + '\').val(\'\');$(\'' +
- attr[15] + '\').html(\'\')">' + attr[78] + '</a>)')
- };
- function show_profile(a) {
- window.open('/index/8-' + a);
- return false
- };
- function del_rec(a) {
- $ssid = $(attr[18]).val();
- _entrRem('dib' + a, attr[9] + '/' + a + '-7-' + $ssid, 'http://s51.ucoz.net', attr[77]);
- return false
- };
- function edit_rec(a) {
- new _uWnd('Ie', attr[76], -430, -150, {
- autosize: 1,
- closeonesc: 1,
- resize: 0
- }, {
- url: attr[9] + '/' + a + '-5'
- });
- return false
- };
- function enter(e) {
- if (e.keyCode == 13) chat_post()
- };
- function chat_moder() {
- $drl74 = chat_message($($hdg73).html(), $mfd35);
- $asd12 = chat_message($($hdg73).html(), $lir80);
- if ($drl74 != -1 && $asd12 != -1) {
- if (confirm(attr[75])) {
- if ($i == 0) {
- $.get(attr[24], function (a) {
- $(attr[18]).val($(attr[36], a).val())
- })
- };
- $i = 1;
- $c = 1;
- $(attr[20]).hide();
- $(attr[21]).show();
- $.get(attr[19], function (a) {
- $(attr[21]).html('');
- $(attr[37], a).each(function () {
- $(attr[21]).append($(this).html());
- $(attr[22], attr[21]).hide();
- $(attr[23]).css({
- 'border-bottom': attr[60]
- });
- $(attr[23] + attr[61]).parent().after(': ' + $(attr[
- 23] + ' div:last').html());
- $(attr[23] + ' div:last').hide()
- })
- });
- $(attr[15]).html('<div ' + attr[38] + '>( ' + attr[54] + 'onclick="chat_closem()">' +
- attr[74] + '</a> )</div>')
- }
- } else {
- $(attr[1] + ',' + $hdg73).html('');
- new _uWnd(attr[63], attr[64], 260, 100, {
- alert: 1,
- modal: 1,
- resize: 1,
- nomove: 1,
- fadespeed: 500,
- maxh: 425,
- align: 0,
- header: 0
- }, '<center><h2><br />' + attr[91] + '</h2></center>');
- $c = 0
- }
- };
- function chat_closem() {
- $c = 0;
- $(attr[20]).show();
- $(attr[21]).hide();
- $(attr[15]).html('');
- get_chat_first();
- reload_users()
- };
- function ls(a) {
- new _uWnd(attr[63], attr[73], 502, 250, {
- alert: 1,
- modal: 0,
- resize: 1,
- nomove: 1,
- fadespeed: 500,
- maxh: 425,
- align: 0
- }, '<div><div><input type="hidden" id="nikpm" value="' + a +
- '"><textarea id="messagepm" style="width: 480px"></textarea></div><input type="button" value="' +
- attr[70] + '" id="postpm" onclick="send()"> <span id="st"></span></div>')
- };
- function chat_sounds() {
- $(attr[10]).before('<' + attr[22] + '>' + attr[55] + ' ' + attr[38] + ' id="' + $pre + '">' + attr[90] +
- $rpe + $per + '">' + $rep + $erp + $epr + '></div>')
- };
- function chat_message(a, b) {
- if (!$(attr[20].substr(0, 10) + ' ' + attr[55].substr(1, 3) + ':contains(": ") a:hidden').html()) {
- if ($(attr[20].substr(0, 10) + ' ' + attr[55].substr(1, 3) + ':contains(": ")').html() !=
- null) {
- return a.indexOf(b)
- } else {
- return -1
- }
- } else {
- return -1
- }
- };
- function chat_radio() {
- if ($(attr[20].substr(0, 10) + ' ' + attr[55].substr(1, 3) + ':contains(": ")').html() == null || $(
- attr[20].substr(0, 10) + ' ' + attr[55].substr(1, 3) + ':contains(": ") a:hidden').html()) {
- return -1
- } else {
- return 1
- }
- };
- function send(d) {
- $(attr[43]).hide();
- $(attr[44]).html(attr[72]);
- var e = $(attr[40]).val();
- var f = attr[69];
- var g = $(attr[39]).val();
- $.get(attr[24], function (c) {
- $ssid = $(attr[36], c).val();
- if ($(attr[45], c).size() > 0) {
- $imgsec = $(attr[45], c).clone();
- $seckey = $(attr[46], c).val();
- new _uWnd(attr[62], attr[71], 320, 85, {
- autosize: 0,
- modal: 1,
- oncontent: function () {
- $(attr[42]).html($imgsec);
- $(attr[41]).focus()
- }
- },
- '<table><tr><td><span id="capImgSpan"></span></td><td><input type="text" id="capcode" maxlength="5"><br /><input type="button" value="' +
- attr[70] + '" onclick="sendsec()"></td></tr></table>')
- } else {
- $.post("/index", {
- s: e,
- subject: f,
- message: g,
- ssid: $ssid,
- a: 18
- }, function (a) {
- var b = $($(a).text()).text();
- if (b.indexOf(attr[66]) > -1) {
- _uWnd.close(attr[63]);
- _uWnd.alert(b, attr[64], {
- w: 225,
- h: 75
- })
- } else {
- $(attr[44]).html('');
- $(attr[43]).show();
- _uWnd.alert(b, attr[64], {
- w: 225,
- h: 75
- })
- }
- })
- }
- })
- };
- function sendsec() {
- var c = $(attr[40]).val();
- var d = attr[69];
- var e = $(attr[39]).val();
- var f = $(attr[41]).val();
- if (f.length === 5) {
- $.post("/index", {
- s: c,
- subject: d,
- message: e,
- code: f,
- ssid: $ssid,
- seckey: $seckey,
- a: 18
- }, function (a) {
- var b = $($(a).text()).text();
- if (b.indexOf(attr[66]) > -1) {
- _uWnd.close(attr[62]);
- _uWnd.close(attr[63]);
- _uWnd.alert(attr[68], attr[67], {
- w: 225,
- h: 75
- })
- } else {
- if (b.indexOf(attr[65]) > -1) {
- $(attr[45]).click()
- } else {
- _uWnd.close(attr[62]);
- $(attr[43]).show();
- $(attr[44]).html('');
- _uWnd.alert(b, attr[64], {
- w: 250,
- h: 100
- })
- }
- }
- })
- }
- };
- chat_sounds();
- chat_iframe();
- get_chat_first();
- reload_users();
- setInterval("get_chat();reload_users()", 25000);
Advertisement
Add Comment
Please, Sign In to add comment