Changeset 641978
- Timestamp:
- 12/19/2012 09:21:55 PM (13 years ago)
- Location:
- quick-chat/trunk
- Files:
-
- 12 edited
-
js/quick-chat-admin.dev.js (modified) (1 diff)
-
js/quick-chat-admin.js (modified) (1 diff)
-
js/quick-chat-core.dev.js (modified) (1 diff)
-
js/quick-chat-core.js (modified) (1 diff)
-
js/quick-chat-init.dev.js (modified) (2 diffs)
-
js/quick-chat-init.js (modified) (1 diff)
-
js/quick-chat-load.dev.js (modified) (1 diff)
-
js/quick-chat-load.js (modified) (1 diff)
-
js/quick-chat-power.dev.js (modified) (1 diff)
-
js/quick-chat-power.js (modified) (1 diff)
-
quick-chat.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
quick-chat/trunk/js/quick-chat-admin.dev.js
r640157 r641978 1 // Quick Chat 4.1 1- admin1 // Quick Chat 4.12 - admin 2 2 function quick_chat_clean_private(){ 3 3 jQuery.post(quick_chat_admin.ajaxurl, { -
quick-chat/trunk/js/quick-chat-admin.js
r640157 r641978 1 // Quick Chat 4.1 1- admin1 // Quick Chat 4.12 - admin 2 2 function quick_chat_clean_private(){jQuery.post(quick_chat_admin.ajaxurl,{action:"quick-chat-ajax-clean-private"},function(){alert(quick_chat_admin.i18n.clean_private_done)})} 3 3 jQuery(window).load(function(){jQuery("a#quick_chat_clean_private").bind("click",function(a){a.preventDefault();confirm(quick_chat_admin.i18n.clean_private_confirm)&&quick_chat_clean_private()});jQuery("a.quick_chat_show_hide").bind("click",function(a){a.preventDefault();"Show"==jQuery(this).text()?jQuery(this).text("Hide").siblings("textarea").slideDown("slow"):jQuery(this).text("Show").siblings("textarea").slideUp("slow")})}); -
quick-chat/trunk/js/quick-chat-core.dev.js
r640157 r641978 1 // Quick Chat 4.1 1- core1 // Quick Chat 4.12 - core 2 2 jQuery.fn.quick_chat_insert_at_caret = function(myValue) { 3 3 -
quick-chat/trunk/js/quick-chat-core.js
r640157 r641978 1 // Quick Chat 4.1 1- core1 // Quick Chat 4.12 - core 2 2 jQuery.fn.quick_chat_insert_at_caret=function(a){return this.each(function(){if(document.selection)this.focus(),sel=document.selection.createRange(),sel.text=a,this.focus();else if(this.selectionStart||"0"==this.selectionStart){var b=this.selectionStart,c=this.selectionEnd,e=this.scrollTop;this.value=this.value.substring(0,b)+a+this.value.substring(c,this.value.length);this.focus();this.selectionStart=b+a.length;this.selectionEnd=b+a.length;this.scrollTop=e}else this.value+=a,this.focus()})}; 3 3 var quick_chat=jQuery.extend(quick_chat||{},{last_timestamp:0,rooms:[],private_queue:{},private_current:{},private_count:0,audio_support:0,play_audio:0,audio_element:document.createElement("audio"),update_users_limit:Math.floor(quick_chat.inactivity_timeout/quick_chat.timeout_refresh_users),update_users_counter:0,private_queue_name:"quick_chat_private_queue_"+quick_chat.user_id,random_string:function(a){for(var b=0,c="",e;b<a;)e=Math.floor(100*Math.random())%94+33,!(33<=e&&47>=e)&&(!(58<=e&&64>=e)&& -
quick-chat/trunk/js/quick-chat-init.dev.js
r640157 r641978 1 // Quick Chat 4.1 1- init1 // Quick Chat 4.12 - init 2 2 var quick_chat = jQuery.extend(quick_chat || {}, { 3 3 data: [] … … 97 97 var chat_data = {}; 98 98 chat_data['room_name'] = jQuery(this).attr('data-quick-chat-room-name'); 99 chat_data['userlist -position'] = userlist_position;99 chat_data['userlist_position'] = userlist_position; 100 100 chat_data['avatars'] = jQuery(this).attr('data-quick-chat-avatars'); 101 101 chat_data['scroll_enable'] = 1; -
quick-chat/trunk/js/quick-chat-init.js
r640157 r641978 1 // Quick Chat 4.1 1- init1 // Quick Chat 4.12 - init 2 2 var quick_chat=jQuery.extend(quick_chat||{},{data:[]}); 3 jQuery.post(quick_chat.ajaxurl,{action:"quick-chat-ajax-init"},function(d){quick_chat=jQuery.extend(!0,quick_chat||{},d.js_vars);jQuery("div.quick-chat-container").each(function(){var b=jQuery(this).attr("data-quick-chat-height"),d=jQuery(this).attr("data-quick-chat-userlist"),c=jQuery(this).attr("data-quick-chat-userlist-position"),f=jQuery(this).attr("data-quick-chat-smilies"),g=jQuery(this).attr("data-quick-chat-send-button"),h=jQuery(this).attr("data-quick-chat-loggedin-visible"), i=jQuery(this).attr("data-quick-chat-guests-visible"),4 j=jQuery(this).attr("data-quick-chat-counter"),a="";if(0==quick_chat.user_status||2>quick_chat.user_status&&1==h||2==quick_chat.user_status&&1==i)if(a+='<div class="quick-chat-top">',1==d&&("right"==c?a+='<div class="quick-chat-users-container quick-chat-users-container-right" style="height:'+b+'px;">':"top"==c?a+='<div class="quick-chat-users-container quick-chat-users-container-top">':"left"==c&&(a+='<div class="quick-chat-users-container quick-chat-users-container-left" style="height:'+b+'px;">'),3 jQuery.post(quick_chat.ajaxurl,{action:"quick-chat-ajax-init"},function(d){quick_chat=jQuery.extend(!0,quick_chat||{},d.js_vars);jQuery("div.quick-chat-container").each(function(){var b=jQuery(this).attr("data-quick-chat-height"),d=jQuery(this).attr("data-quick-chat-userlist"),c=jQuery(this).attr("data-quick-chat-userlist-position"),f=jQuery(this).attr("data-quick-chat-smilies"),g=jQuery(this).attr("data-quick-chat-send-button"),h=jQuery(this).attr("data-quick-chat-loggedin-visible"),j=jQuery(this).attr("data-quick-chat-guests-visible"), 4 k=jQuery(this).attr("data-quick-chat-counter"),a="";if(0==quick_chat.user_status||2>quick_chat.user_status&&1==h||2==quick_chat.user_status&&1==j)if(a+='<div class="quick-chat-top">',1==d&&("right"==c?a+='<div class="quick-chat-users-container quick-chat-users-container-right" style="height:'+b+'px;">':"top"==c?a+='<div class="quick-chat-users-container quick-chat-users-container-top">':"left"==c&&(a+='<div class="quick-chat-users-container quick-chat-users-container-left" style="height:'+b+'px;">'), 5 5 a+="</div>"),a=a+('<div class="quick-chat-history-container" style="height:'+b+'px;"></div></div>')+' <div class="quick-chat-links">',0==quick_chat.user_status&&(a+='<div class="quick-chat-left-link quick-chat-ban-link"><a title="'+quick_chat.i18n.add_blocklist_s+'" href="">'+quick_chat.i18n.ban_s+"</a></div>",a+='<div class="quick-chat-left-link quick-chat-transcript-link"><a title="'+quick_chat.i18n.fetch_transcript_s+'" href="">'+quick_chat.i18n.transcript_s+"</a></div>"),0==quick_chat.user_status&& 6 6 (a+='<div class="quick-chat-right-link quick-chat-select-all-link"><a title="'+quick_chat.i18n.all_toggle_s+'" href="">'+quick_chat.i18n.toggle_s+'</a></div><div class="quick-chat-right-link quick-chat-delete-link"><a title="'+quick_chat.i18n.delete_selected_s+'" href="">'+quick_chat.i18n.delete_s+'</a></div><div class="quick-chat-right-link quick-chat-clean-link"><a title="'+quick_chat.i18n.clean_all_except_s.replace("%s",quick_chat.clean_target)+'" href="">'+quick_chat.i18n.clean_s+"</a></div>"), 7 7 a+='<div class="quick-chat-right-link quick-chat-scroll-link"><a style="text-decoration: none;" title="'+quick_chat.i18n.scroll_toggle_s+'" href="">'+quick_chat.i18n.scroll_s+'</a></div><div style="display: none;" class="quick-chat-right-link quick-chat-sound-link"><a title="'+quick_chat.i18n.sound_toggle_s+'" href="">'+quick_chat.i18n.sound_s+"</a></div></div>",1==quick_chat.no_participation)1==quick_chat.ip_blocked?a+='<div class="quick-chat-bootom-notice">'+quick_chat.i18n.ip_banned_s+"</div>": 8 1==quick_chat.must_login&&(a+='<div class="quick-chat-bootom-notice">'+quick_chat.i18n.must_login_s+"</div>");else{a+='<div class="quick-chat-alias-container"><input class="quick-chat-alias" type="text" autocomplete="off" maxlength="20" value="'+quick_chat.user_name+'"';0!=quick_chat.user_status&&0==quick_chat.allow_change_username&&(a+='readonly="readonly"');a+="/>";0!=quick_chat.user_status&&1== j&&(a+='<span class="quick-chat-counter">'+quick_chat.message_maximum_number_chars+"</span>");a+='<span class="quick-chat-username-status"></span></div>';8 1==quick_chat.must_login&&(a+='<div class="quick-chat-bootom-notice">'+quick_chat.i18n.must_login_s+"</div>");else{a+='<div class="quick-chat-alias-container"><input class="quick-chat-alias" type="text" autocomplete="off" maxlength="20" value="'+quick_chat.user_name+'"';0!=quick_chat.user_status&&0==quick_chat.allow_change_username&&(a+='readonly="readonly"');a+="/>";0!=quick_chat.user_status&&1==k&&(a+='<span class="quick-chat-counter">'+quick_chat.message_maximum_number_chars+"</span>");a+='<span class="quick-chat-username-status"></span></div>'; 9 9 ""!=quick_chat.adsense_content&&(a+='<div class="quick-chat-adsense">'+quick_chat.adsense_content+"</div>");a+='<textarea class="quick-chat-message"></textarea>';if(1==f){var a=a+'<div class="quick-chat-smilies-container">',e;for(e in quick_chat.smilies)a+='<div class="quick-chat-smile-container quick-chat-smile quick-chat-smile-'+quick_chat.smilies[e]+'" title="'+e+'"></div>';a+="</div>"}1==g&&(a+='<input class="quick-chat-send-button" type="button" value="'+quick_chat.i18n.send_s+'">')}jQuery(this).append(a); 10 b=jQuery("div.quick-chat-loading");b.is(":visible")&&b.hide();b={};b.room_name=jQuery(this).attr("data-quick-chat-room-name");b ["userlist-position"]=c;b.avatars=jQuery(this).attr("data-quick-chat-avatars");b.scroll_enable=1;quick_chat.data[jQuery(this).attr("data-quick-chat-id")]=b});quick_chat.get_script(quick_chat.url+"js/jquery.json"+quick_chat.script_suffix+".js?"+quick_chat.version,function(){quick_chat.get_script(quick_chat.url+"js/quick-chat-core"+quick_chat.script_suffix+".js?"+quick_chat.version)});10 b=jQuery("div.quick-chat-loading");b.is(":visible")&&b.hide();b={};b.room_name=jQuery(this).attr("data-quick-chat-room-name");b.userlist_position=c;b.avatars=jQuery(this).attr("data-quick-chat-avatars");b.scroll_enable=1;quick_chat.data[jQuery(this).attr("data-quick-chat-id")]=b});quick_chat.get_script(quick_chat.url+"js/jquery.json"+quick_chat.script_suffix+".js?"+quick_chat.version,function(){quick_chat.get_script(quick_chat.url+"js/quick-chat-core"+quick_chat.script_suffix+".js?"+quick_chat.version)}); 11 11 0==quick_chat.user_status&&quick_chat.get_script(quick_chat.url+"js/quick-chat-power"+quick_chat.script_suffix+".js?"+quick_chat.version)}); -
quick-chat/trunk/js/quick-chat-load.dev.js
r640157 r641978 1 // Quick Chat 4.1 1- load1 // Quick Chat 4.12 - load 2 2 var quick_chat = jQuery.extend(quick_chat || {}, { 3 3 script_suffix: (quick_chat.debug_mode == 1) ? '.dev' : '', -
quick-chat/trunk/js/quick-chat-load.js
r640157 r641978 1 // Quick Chat 4.1 1- load1 // Quick Chat 4.12 - load 2 2 var quick_chat=jQuery.extend(quick_chat||{},{script_suffix:1==quick_chat.debug_mode?".dev":"",private_current_name:"quick_chat_private_current_"+quick_chat.user_id,get_script:function(b,c,a){a=jQuery.extend(a||{},{crossDomain:1==quick_chat.debug_mode?!0:!1,dataType:"script",cache:!0,success:c,url:b});return jQuery.ajax(a)},load:function(){(0!=jQuery("div.quick-chat-container").length||jQuery.cookie(quick_chat.private_current_name)&&"{}"!=jQuery.cookie(quick_chat.private_current_name))&&quick_chat.get_script(quick_chat.url+ 3 3 "js/quick-chat-init"+quick_chat.script_suffix+".js?"+quick_chat.version)}});jQuery.browser.webkit?jQuery(window).load(quick_chat.load()):jQuery(document).ready(quick_chat.load()); -
quick-chat/trunk/js/quick-chat-power.dev.js
r640157 r641978 1 // Quick Chat 4.1 1- power1 // Quick Chat 4.12 - power 2 2 var quick_chat = jQuery.extend(quick_chat || {}, { 3 3 toggle: false, -
quick-chat/trunk/js/quick-chat-power.js
r640157 r641978 1 // Quick Chat 4.1 1- power1 // Quick Chat 4.12 - power 2 2 var quick_chat=jQuery.extend(quick_chat||{},{toggle:!1,delete_messages:function(a,b){var c=quick_chat.data[a].room_name;jQuery.post(quick_chat.ajaxurl,{action:"quick-chat-ajax-delete",to_delete_ids:b,to_delete_room_name:c},function(a){if(a.rows_affected==b.length)for(var e in quick_chat.data){if(quick_chat.data[e].room_name==c)for(a=0;"undefined"!=typeof b[a];a++)jQuery("div[data-quick-chat-id="+e+'] input[type=checkbox][value="'+b[a]+'"]').parents(".quick-chat-history-message-alias-container").remove()}else location.reload(!0)})}, 3 3 clean_messages:function(a){var b=quick_chat.data[a].room_name,a=jQuery("div[data-quick-chat-id="+a+"] div.quick-chat-history-container"),c=jQuery(a).children().size();c>quick_chat.clean_target&&jQuery.post(quick_chat.ajaxurl,{action:"quick-chat-ajax-clean",to_clean_room_name:b},function(a){var e=c-quick_chat.clean_target;if(a.rows_affected==e)for(var f in quick_chat.data){if(quick_chat.data[f].room_name==b)for(var g=e,a=jQuery("div[data-quick-chat-id="+f+"] div.quick-chat-history-container");0<g;g--)jQuery(a).children(":first").remove()}else location.reload(!0)})}, -
quick-chat/trunk/quick-chat.php
r640157 r641978 5 5 Description: Self hosted WordPress chat plugin supporting private chat, chat rooms, avatars, user list, words filtering, smilies, caching plugins and more. 6 6 Author: Marko Martinović 7 Version: 4.1 17 Version: 4.12 8 8 Author URI: http://www.techytalk.info 9 9 License: GPL2 … … 26 26 27 27 class Quick_Chat { 28 const version = '4.1 1';28 const version = '4.12'; 29 29 const default_db_version = '26'; 30 30 const default_badwords_list = '4r5e, 5h1t, 5hit, a55, anal, anus, ar5e, arrse, arse, ass, ass-fucker, asses, assfucker, assfukka, asshole, assholes, asswhole, a_s_s, b!tch, b00bs, b17ch, b1tch, ballbag, balls, ballsack, bastard, beastial, beastiality, bellend, bestial, bestiality, bi+ch, biatch, bitch, bitcher, bitchers, bitches, bitchin, bitching, bloody, blow job, blowjob, blowjobs, boiolas, bollock, bollok, boner, boob, boobs, booobs, boooobs, booooobs, booooooobs, breasts, buceta, bugger, bum, bunny fucker, butt, butthole, buttmuch, buttplug, c0ck, c0cksucker, carpet muncher, cawk, chink, cipa, cl1t, clit, clitoris, clits, cnut, cock, cock-sucker, cockface, cockhead, cockmunch, cockmuncher, cocks, cocksuck , cocksucked , cocksucker, cocksucking, cocksucks , cocksuka, cocksukka, cok, cokmuncher, coksucka, coon, cox, crap, cum, cummer, cumming, cums, cumshot, cunilingus, cunillingus, cunnilingus, cunt, cuntlick , cuntlicker , cuntlicking , cunts, cyalis, cyberfuc, cyberfuck , cyberfucked , cyberfucker, cyberfuckers, cyberfucking , d1ck, damn, dick, dickhead, dildo, dildos, dink, dinks, dirsa, dlck, dog-fucker, doggin, dogging, donkeyribber, doosh, duche, dyke, ejaculate, ejaculated, ejaculates , ejaculating , ejaculatings, ejaculation, ejakulate, f u c k, f u c k e r, f4nny, fag, fagging, faggitt, faggot, faggs, fagot, fagots, fags, fanny, fannyflaps, fannyfucker, fanyy, fatass, fcuk, fcuker, fcuking, feck, fecker, felching, fellate, fellatio, fingerfuck , fingerfucked , fingerfucker , fingerfuckers, fingerfucking , fingerfucks , fistfuck, fistfucked , fistfucker , fistfuckers , fistfucking , fistfuckings , fistfucks , flange, fook, fooker, fuck, fucka, fucked, fucker, fuckers, fuckhead, fuckheads, fuckin, fucking, fuckings, fuckingshitmotherfucker, fuckme , fucks, fuckwhit, fuckwit, fudge packer, fudgepacker, fuk, fuker, fukker, fukkin, fuks, fukwhit, fukwit, fux, fux0r, f_u_c_k, gangbang, gangbanged , gangbangs , gaylord, gaysex, goatse, God, god-dam, god-damned, goddamn, goddamned, hardcoresex , hell, heshe, hoar, hoare, hoer, homo, hore, horniest, horny, hotsex, jack-off , jackoff, jap, jerk-off , jism, jiz , jizm , jizz, kawk, knob, knobead, knobed, knobend, knobhead, knobjocky, knobjokey, kock, kondum, kondums, kum, kummer, kumming, kums, kunilingus, l3i+ch, l3itch, labia, lmfao, lust, lusting, m0f0, m0fo, m45terbate, ma5terb8, ma5terbate, masochist, master-bate, masterb8, masterbat*, masterbat3, masterbate, masterbation, masterbations, masturbate, mo-fo, mof0, mofo, mothafuck, mothafucka, mothafuckas, mothafuckaz, mothafucked , mothafucker, mothafuckers, mothafuckin, mothafucking , mothafuckings, mothafucks, mother fucker, motherfuck, motherfucked, motherfucker, motherfuckers, motherfuckin, motherfucking, motherfuckings, motherfuckka, motherfucks, muff, mutha, muthafecker, muthafuckker, muther, mutherfucker, n1gga, n1gger, nazi, nigg3r, nigg4h, nigga, niggah, niggas, niggaz, nigger, niggers , nob, nob jokey, nobhead, nobjocky, nobjokey, numbnuts, nutsack, orgasim , orgasims , orgasm, orgasms , p0rn, pawn, pecker, penis, penisfucker, phonesex, phuck, phuk, phuked, phuking, phukked, phukking, phuks, phuq, pigfucker, pimpis, piss, pissed, pisser, pissers, pisses , pissflaps, pissin , pissing, pissoff , poop, porn, porno, pornography, pornos, prick, pricks , pron, pube, pusse, pussi, pussies, pussy, pussys , rectum, retard, rimjaw, rimming, s hit, s.o.b., sadist, schlong, screwing, scroat, scrote, scrotum, semen, sex, sh!+, sh!t, sh1t, shag, shagger, shaggin, shagging, shemale, shi+, shit, shitdick, shite, shited, shitey, shitfuck, shitfull, shithead, shiting, shitings, shits, shitted, shitter, shitters , shitting, shittings, shitty , skank, slut, sluts, smegma, smut, snatch, son-of-a-bitch, spac, spunk, s_h_i_t, t1tt1e5, t1tties, teets, teez, testical, testicle, tit, titfuck, tits, titt, tittie5, tittiefucker, titties, tittyfuck, tittywank, titwank, tosser, turd, tw4t, twat, twathead, twatty, twunt, twunter, v14gra, v1gra, vagina, viagra, vulva, w00se, wang, wank, wanker, wanky, whoar, whore, willies, willy, xrated, xxx'; … … 60 60 public $ip_blocked; 61 61 public $must_login; 62 63 62 public $options; 63 64 64 protected $basename; 65 65 protected $log_file; … … 1291 1291 } 1292 1292 1293 1294 1293 public function dashboard_widget(){ 1295 1294 echo $this->quick_chat(400, 'admin_room_'.substr(md5(AUTH_SALT),0,5), 1, 'left', 0, 0, 1, 1, 1); -
quick-chat/trunk/readme.txt
r640157 r641978 177 177 178 178 == Changelog == 179 = 4.12 (19.12.2012.) = 180 * Fix bug where user list in 'top' position doesn't use comma to separate users 181 179 182 = 4.11 (16.12.2012.) = 180 183 * Fix bug where chat was not working if back-end uses SSL 181 184 * Fix bug where clicking smilies would not trigger counter 182 185 * Fix bug where private chat window would show up even after users logs out 186 * Include updated translations since last version 183 187 184 188 = 4.10 (22.08.2012.) =
Note: See TracChangeset
for help on using the changeset viewer.