| |
| | |

CodersClub

 Forgot password?
 Register
Search
Author: alen
Collapse the left

chatting room

[Copy link]
Post time: 2013-07-17 20:26
| Show all posts
Edited by mj1919 at 2013-7-17 21:28

here you are(first 147 lines of 865 lines):
  1. <?
  2. if(!defined('IN_DISCUZ')) {
  3. exit('Access Denied');
  4. }
  5. loadcache('plugin');
  6. $chat = array();
  7. $config = $_G['cache']['plugin']['th_chat'];
  8. $chat['bgcss'] = 'background:#FFF';
  9. if($config['chat_bg']){
  10. $chat['bgcss'] .= ' url('.$config['chat_bg'].')';
  11. switch($config['chat_bgpos']){
  12. case 1: $x = 'left top';break;
  13. case 2: $x = 'center top';break;
  14. case 3: $x = 'right top';break;
  15. case 4: $x = 'left center';break;
  16. case 5: $x = 'center center';break;
  17. case 6: $x = 'right center';break;
  18. case 7: $x = 'left buttom';break;
  19. case 8: $x = 'center buttom';break;
  20. case 9: $x = 'right buttom';break;
  21. }
  22. switch($config['chat_bgrepeat']){
  23. case 1: $y = 'no-repeat';break;
  24. case 2: $y = 'repeat-x';break;
  25. case 3: $y = 'repeat-y';break;
  26. case 4: $y = 'repeat';break;
  27. }
  28. $chat['bgcss'] .= ' '.$x.' '.$y;
  29. }
  30. $chat['bgcss'] .= ';';
  31. $chat['delay'] = intval($config['chat_delay']);
  32. $chat['reload'] = intval($config['chat_reload']);
  33. $chat['guest_show'] = $config['guest_show'];
  34. $chat['chatrowmax'] = $config['chat_init'];
  35. $chat['iscleardata'] = $config['typechatrow'];
  36. $chat['editor'] = '';
  37. if($config['usedzc']){
  38. $chat['editor'] .= '<a href="javascript:void(0);" title="Bold" class="fbld" onclick="seditor_insertunit(\'nzchat\', \'[b]\', \'[/b]\')">B</a>
  39. <a href="javascript:void(0);" title="Italics" style="background-position: -20px 0px;" onclick="seditor_insertunit(\'nzchat\', \'[i]\', \'[/i]\')">I</a>
  40. <a href="javascript:void(0);" title="Underlined" style="background-position: -40px 0px;" onclick="seditor_insertunit(\'nzchat\', \'[u]\', \'[/u]\')">U</a>
  41. <a href="javascript:void(0);" title="Color" class="fclr" id="nzchatforecolor" onclick="showColorBox(this.id, 2, \'nzchat\');doane(event)">Color</a>
  42. ';
  43. }
  44. if($config['useimg']){
  45. $chat['editor'] .= '<a id="nzchatimg" href="javascript:void(0);" title="Insert IMG" class="fmg" onclick="seditor_menu(\'nzchat\', \'img\')">Image</a>
  46. ';
  47. }
  48. if($config['usedzc']){
  49. $chat['editor'] .= '<a id="nzchaturl" href="javascript:void(0);" title="Insert link" class="flnk" onclick="seditor_menu(\'nzchat\', \'url\')">Link</a>
  50. ';
  51. }
  52. if($config['useemo']){
  53. $chat['editor'] .= '<a href="javascript:void(0);" class="fsml" id="nzchatsml" title="Insert Emotion" onclick="showMenu({\'ctrlid\':this.id,\'evt\':\'click\',\'layer\':2});return false;">Smilies</a>
  54. ';
  55. }
  56. $chat['welcometext'] = $config['welcometext'];
  57. $chat['sort'] = $config['chat_type'];
  58. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  59. <!--vot--><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
  60. <head>
  61. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  62. <title>Forum -  Powered by Discuz!</title>

  63. <meta name="keywords" content="Forum" />
  64. <meta name="description" content="Forum " />
  65. <meta name="generator" content="Discuz! X2.5" />
  66. <meta name="author" content="Discuz! Team and Comsenz UI Team" />
  67. <meta name="copyright" content="2001-2012 Comsenz Inc." />
  68. <meta name="MSSmartTagsPreventParsing" content="True" />
  69. <meta http-equiv="MSThemeCompatible" content="Yes" />
  70. <base href="http://localhost/discuz25/" /><link rel="stylesheet" type="text/css" href="data/cache/style_1_common.css?p9B" /><link rel="stylesheet" type="text/css" href="data/cache/style_1_forum_index.css?p9B" /><!-- Multi-Lingual Javascript Support by Valery Votintsev  -->
  71. <!--vot--><script src="/discuz25/source/language/en/lang_js.js?p9B" type="text/javascript"></script>
  72. <!--vot--><script type="text/javascript">var STYLEID = '1', STATICURL = 'static/', IMGDIR = 'static/image/common', VERHASH = 'p9B', charset = 'utf-8', discuz_uid = '1', cookiepre = 'EHfp_2132_', cookiedomain = '', cookiepath = '/', showusercard = '1', attackevasive = '0', disallowfloat = 'newthread', creditnotice = '1|Reputation|,2|Money|,3|Contribution|', defaultstyle = '', REPORTURL = 'aHR0cDovL2xvY2FsaG9zdC9kaXNjdXoyNS9mb3J1bS5waHA=', SITEURL = 'http://localhost/discuz25/', JSPATH = 'static/js/', LANG = 'en', LANGURL = 'http://localhost/discuz25/source/language/en/', LANGDIR = 'ltr', RTLSUFFIX = '';</script>

  73. <script src="static/js/common.js?p9B" type="text/javascript"></script>
  74. <meta name="application-name" content="Discuz! Board" />
  75. <meta name="msapplication-tooltip" content="Discuz! Board" />
  76. <meta name="msapplication-task" content="name=Forum;action-uri=http://localhost/discuz25/forum.php;icon-uri=http://localhost/discuz25/static/image/common/bbs.ico" />
  77. <link rel="archives" title="Discuz! Board" href="http://localhost/discuz25/archiver/" />
  78. <!--vot-->        <link rel="stylesheet" id="css_widthauto" type="text/css" href="data/cache/style_1_widthauto.css?p9B" />
  79. <script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
  80. <script src="static/js/forum.js?p9B" type="text/javascript"></script>
  81. </head>

  82. <body id="nv_forum" class="pg_index" onkeydown="if(event.keyCode==27) return false;">
  83. <div id="append_parent"></div><div id="ajaxwaitid"></div>

  84. <div id="toptb" class="cl">
  85. <div class="wp">
  86. <div class="z"><!--vot-->                                        <a href="javascript:;"  onclick="setHomepage('http://localhost/discuz25/');"><img src="static/image/common/home.gif" title="Set as Homepage"></a><span class="pipe">|</span><!--vot-->                                        <a href="http://localhost/discuz25/"  onclick="addFavorite(this.href, 'Discuz! Board');return false;"><img src="static/image/common/fav.gif" title="Add to Favorites"></a><span class="pipe">|</span></div>
  87. <div class="y">
  88. <a id="switchblind" href="javascript:;" onclick="toggleBlind(this)" title="Enable Auxiliary Access" class="switchblind"><img src="static/image/common/switch_blind.png"></a>
  89. <!--vot-->                                <span class="pipe">|</span>

  90. <!-- vot Multi-Lingual -->
  91. <a id="lslct" href="javascript:;" onmouseover="delayShow(this, function() {showMenu({'ctrlid':'lslct','pos':'34!'})});" title="Change language"><img class="flag" src="/discuz25/source/language/en/en.gif"/></a>
  92. <span class="pipe">|</span>
  93. <!--vot-->                                        <a href="javascript:;" onclick="widthauto(this)" title="Narrow screen"><img src="static/image/common/shrink.png"></a>
  94. <!--vot-->                                        <span class="pipe">|</span>
  95. <!--vot-->                                <a id="sslct" href="javascript:;" onmouseover="delayShow(this, function() {showMenu({'ctrlid':'sslct','pos':'34!'})});" title="Change Style"><img src="static/image/common/style_switch.png"></a>
  96. <a id="diy-tg" href="javascript:openDiy();" title="Layout Panel" class="xi1 xw1" onmouseover="showMenu(this.id)"><img src="static/image/diy/panel-toggle.png" alt="DIY" /></a>
  97. <div id="diy-tg_menu" style="display: none;">
  98. <ul>
  99. <li><a href="javascript:saveUserdata('diy_advance_mode', '');openDiy();" class="xi2">Simple mode</a></li>
  100. <li><a href="javascript:saveUserdata('diy_advance_mode', '1');openDiy();" class="xi2">Advanced Mode</a></li>
  101. </ul>
  102. </div>
  103. </div>
  104. </div>
  105. </div>

  106. <!-- vot Multi-Lingual -->
  107. <div id="lslct_menu" class="cl p_pop" style="display: none; width:120px;"><a href="javascript:;" onclick="setlang('ar')" title="Arabic">
  108. <img src="/discuz25/source/language/ar/ar.gif"/> العربية</a>
  109. <a href="javascript:;" onclick="setlang('de')" title="German">
  110. <img src="/discuz25/source/language/de/de.gif"/> Deutsch</a>
  111. <a href="javascript:;" onclick="setlang('en')" title="English">
  112. <img src="/discuz25/source/language/en/en.gif"/> English</a>
  113. <a href="javascript:;" onclick="setlang('es')" title="Spanish">
  114. <img src="/discuz25/source/language/es/es.gif"/> Español</a>
  115. <a href="javascript:;" onclick="setlang('fr')" title="French">
  116. <img src="/discuz25/source/language/fr/fr.gif"/> Français</a>
  117. <a href="javascript:;" onclick="setlang('kr')" title="Korean">
  118. <img src="/discuz25/source/language/kr/kr.gif"/> 한국어</a>
  119. <a href="javascript:;" onclick="setlang('pl')" title="Polish">
  120. <img src="/discuz25/source/language/pl/pl.gif"/> Polski</a>
  121. <a href="javascript:;" onclick="setlang('ru')" title="Russian">
  122. <img src="/discuz25/source/language/ru/ru.gif"/> Русский</a>
  123. <a href="javascript:;" onclick="setlang('sc')" title="Simplified Chinese">
  124. <img src="/discuz25/source/language/sc/zh.gif"/> 简体中文</a>
  125. <a href="javascript:;" onclick="setlang('tc')" title="Traditional Chinese">
  126. <img src="/discuz25/source/language/tc/tw.gif"/> 繁體中文</a>
  127. <a href="javascript:;" onclick="setlang('th')" title="Thai">
  128. <img src="/discuz25/source/language/th/th.gif"/> ภาษาไทย</a>
  129. <a href="javascript:;" onclick="setlang('tr')" title="Turkish">
  130. <img src="/discuz25/source/language/tr/tr.gif"/> Türkçe</a>
  131. <a href="javascript:;" onclick="setlang('vn')" title="Vietnamese">
  132. <img src="/discuz25/source/language/vn/vn.gif"/> Tiếng Việt</a>
  133. </div>

  134. <!--vot-->                <div id="sslct_menu" class="cl p_pop" style="display: none;">
  135. <!--vot-->                                <a class="sslct_btn" onclick="extstyle('')"><i></i>Default</a><!--vot-->                                        <a class="sslct_btn" onclick="extstyle('./template/default/style/t1')"><i style='background:#BA350F'></i>Red</a>
  136. <!--vot-->                                        <a class="sslct_btn" onclick="extstyle('./template/default/style/t2')"><i style='background:#429296'></i>Green</a>
  137. <!--vot-->                                        <a class="sslct_btn" onclick="extstyle('./template/default/style/t3')"><i style='background:#FE9500'></i>Orange</a>
  138. <!--vot-->                                        <a class="sslct_btn" onclick="extstyle('./template/default/style/t4')"><i style='background:#9934B7'></i>Purple</a>
  139. <!--vot-->                                        <a class="sslct_btn" onclick="extstyle('./template/default/style/t5')"><i style='background:#0053B9'></i>Blue</a>
  140. </div>
Copy the Code
Post time: 2013-07-18 15:57
| Show all posts
up up

 Russia

Post time: 2013-07-18 16:26
| Show all posts
It is very strange...
The plugin PHP code just prepended to the main page HTML code...
It need to test more deep...
Post time: 2013-07-24 15:36
| Show all posts
i installed on live site,
not works on Discuz X2.5ML
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-24 05:36 GMT+3 , Processed in 0.045354 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list