Guest User

index.html

a guest
Mar 1st, 2021
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.79 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <html>
  4.  
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>Minecraft RCON v1.0b by NC22</title>
  8.  
  9. <style>
  10. * {margin: 0px; padding: 0px;}
  11.  
  12. body {
  13. background: #fff url(bg0.png) repeat top left;
  14. font-size: 16px;
  15. font-family: Cambria, Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;
  16. -webkit-font-smoothing: antialiased;
  17. -moz-font-smoothing: antialiased;
  18. font-smoothing: antialiased;
  19. }
  20.  
  21. * html body {height: 100%;}
  22.  
  23. a{
  24. color: #eaf0f6;
  25. text-decoration: none;
  26. }
  27.  
  28. .console_holder{
  29. margin: 0 auto;
  30. margin-top: 20px;
  31. padding: none;
  32. height: auto;
  33. width: 80%;
  34. }
  35.  
  36. .help_block {
  37.  
  38. display: block;
  39. clear: both;
  40. float:right;
  41. margin-left: 8px;
  42. text-align: left;
  43. color:#e9e9e9;
  44. background: #929292;
  45. width: 250px;
  46. max-height: 600px;
  47. overflow:auto;
  48. border: 2px dashed #747474;
  49. }
  50.  
  51. .main_left_block{
  52.  
  53. background: #929292;
  54. color: #e5e5e5;
  55. text-align: center;
  56. border: 2px dashed #747474;
  57. padding: 4px;
  58. margin-bottom: 10px;
  59.  
  60. }
  61.  
  62. .main_left_block #console_log {
  63.  
  64. text-align: left;
  65. height: 300px;
  66. font-size: 14px;
  67. overflow:auto;
  68. background:#676767;
  69. }
  70.  
  71. </style>
  72.  
  73. <!--[if IE]>
  74. <style>
  75. .console_holder{
  76. position:absolute;
  77. left:10%;
  78. }
  79.  
  80. .main_left_block{
  81. margin-right:260px;
  82. }
  83.  
  84. </style>
  85. <![endif]-->
  86.  
  87. </head>
  88.  
  89. <body>
  90. <script type='text/javascript'>
  91. var sendBeasy = false;
  92.  
  93. function _getTime() {
  94. var currentTime = new Date();
  95. var hours = currentTime.getHours();
  96. var minutes = currentTime.getMinutes();
  97.  
  98. if (minutes < 10){
  99. minutes = "0" + minutes;
  100. }
  101. return hours + ":" + minutes;
  102. }
  103.  
  104. function showResult(result) {
  105. document.getElementById('console_log').innerHTML += '<p>[' + _getTime() + '] ' + result + '</p>'
  106. }
  107.  
  108. function addNickButton(name,id) {
  109.  
  110. var tmp = document.getElementById('nickButton'+id)
  111. if (tmp != null) tmp.onclick = function(){
  112.  
  113. document.command_form.command.value += ' '+name
  114.  
  115. return false
  116. }
  117.  
  118. }
  119.  
  120. function cType(com) {
  121.  
  122. document.command_form.command.value += com + ' '
  123.  
  124. return false
  125.  
  126. }
  127.  
  128. function cShow(m) {
  129.  
  130. if (m==1) {
  131. document.getElementById('help_buttons').innerHTML = '<b>Игроки</b> | <a href="#" onclick="cShow(2)">Команды</a>'
  132. document.getElementById('commands-list').style.display = 'none'
  133. document.getElementById('users-list').style.display = 'block'
  134. } else if (m==2) {
  135. document.getElementById('help_buttons').innerHTML = '<a href="#" onclick="cShow(1)">Игроки</a> | <b>Команды</b>'
  136. document.getElementById('commands-list').style.display = 'block'
  137. document.getElementById('users-list').style.display = 'none'
  138. }
  139.  
  140. return false
  141. }
  142.  
  143. window.onload = function () {
  144. var tmp = document.getElementById('command_send')
  145. if (tmp != null) tmp.onclick = function(){
  146.  
  147. if (sendBeasy) return false
  148.  
  149. if (document.command_form.command.value == '') return false
  150.  
  151. document.getElementById('console_log').innerHTML += '<p>[' + _getTime() + '] ' + document.command_form.command.value + '</p>'
  152. var log = document.getElementById("console_log")
  153. log.scrollTop = log.scrollHeight
  154.  
  155. document.command_form.submit();
  156.  
  157. document.command_form.command.value = ''
  158. //document.command_form.command.disabled = !document.command_form.command.disabled
  159. sendBeasy = !sendBeasy
  160.  
  161. document.getElementById('systemFrame01').onload = function(){
  162.  
  163. //document.command_form.command.disabled = !document.command_form.command.disabled
  164. sendBeasy = !sendBeasy
  165. var log = document.getElementById("console_log")
  166. log.scrollTop = log.scrollHeight
  167.  
  168. }
  169. }
  170.  
  171. tmp = document.command_form.command
  172. if (tmp != null) tmp.onkeyup = function(event){
  173. if ( event.keyCode == 13 ) document.getElementById('command_send').onclick()
  174. }
  175.  
  176. tmp = document.getElementById('users_online_refresh')
  177. if (tmp != null) tmp.onclick = function(){
  178.  
  179. document.getElementById('users_online_refresh').disabled = !document.getElementById('users_online_refresh').disabled
  180.  
  181. document.userlist_form.submit();
  182.  
  183. document.getElementById('systemFrame01').onload = function(){
  184.  
  185. document.getElementById('users_online_refresh').disabled = !document.getElementById('users_online_refresh').disabled
  186.  
  187. }
  188. }
  189. }
  190. </script>
  191.  
  192. <h1 style="color: #e5e5e5;"> Minecraft RCON session </h1>
  193.  
  194. <div class="console_holder">
  195.  
  196. <div class="help_block">
  197. <div style="background:#747474; text-align:center; padding:2px;" id="help_buttons"><a href="#" onclick="cShow(1)">Игроки</a> | <b>Команды</b></div>
  198.  
  199. <div style="text-align:center; display: none;" id="users-list">
  200. <div><input type="button" value="Обновить" id="users_online_refresh" /></div>
  201. <div id="users_online"></div>
  202. </div>
  203. <div style="text-align:left;" id="commands-list">
  204. <p>Список комманд</p>
  205.  
  206. <p><a href="#" onclick="cType('tell')">tell [playername] [message]</a></p>
  207. <p><a href="#" onclick="cType('me')">me [actiontext]</a></p>
  208. <p><a href="#" onclick="cType('kill')">kill</a></p>
  209. <p><a href="#" onclick="cType('ban')">ban [playername]</a></p>
  210. <p><a href="#" onclick="cType('ban-ip')">ban-ip [ip-address]</a></p>
  211. <p><a href="#" onclick="cType('banlist')">banlist</a></p>
  212. <p><a href="#" onclick="cType('deop')">deop [playername]</a></p>
  213. <p><a href="#" onclick="cType('gamemode')">gamemode [playername] 0/1</a></p>
  214. <p><a href="#" onclick="cType('give')">give [player] [item] [amount]</a></p>
  215. <p><a href="#" onclick="cType('help')">help</a></p>
  216. <p><a href="#" onclick="cType('kick')">kick [playername]</a></p>
  217. <p><a href="#" onclick="cType('list')">list</a></p>
  218. <p><a href="#" onclick="cType('op')">op [playername]</a></p>
  219. <p><a href="#" onclick="cType('pardon')">pardon [playername]</a></p>
  220. <p><a href="#" onclick="cType('pardon-ip')">pardon-ip [ip-address]</a></p>
  221. <p><a href="#" onclick="cType('save-all')">save-all</a></p>
  222. <p><a href="#" onclick="cType('save-off')">save-off</a></p>
  223. <p><a href="#" onclick="cType('save-on')">save-on</a></p>
  224. <p><a href="#" onclick="cType('say')">say [message]</a></p>
  225. <p><a href="#" onclick="cType('stop')">stop</a></p>
  226. <p><a href="#" onclick="cType('time')">time [set|add] [number]</a></p>
  227. <p><a href="#" onclick="cType('toggledownfall')">toggledownfall</a></p>
  228. <p><a href="#" onclick="cType('tp')">tp [playername] [targetplayer]</a></p>
  229. <p><a href="#" onclick="cType('whitelist')">whitelist</a></p>
  230. <p><a href="#" onclick="cType('whitelist reload')">whitelist reload</a></p>
  231. <p><a href="#" onclick="cType('xp')">xp [playername] [amount]</a></p>
  232. <p><a href="#" onclick="cType('defaultgamemode')">defaultgamemode [2/1/0]</a></p>
  233.  
  234. </div>
  235. </div>
  236.  
  237. <div style="overflow: hidden;">
  238.  
  239.  
  240. <div class="main_left_block">
  241.  
  242. <div style="background:#747474; text-align:center;"> Лог консоли</div>
  243.  
  244. <div id="console_log">
  245.  
  246.  
  247. </div>
  248. <div style="background:#747474; text-align:center;">Ввод команды</div>
  249.  
  250. <div style="background:#818181; text-align:center; padding: 5px;">
  251. <form action="mcraft.rcon.php" method="POST" name="command_form" target="systemFrame">
  252.  
  253. <p><input name="command" type="text" style="width: 80%;">&nbsp;<a href="#" id="command_send" style="border: 2px solid #363636;">SEND</a></p>
  254.  
  255. </form>
  256.  
  257. </div>
  258.  
  259.  
  260. </div>
  261.  
  262.  
  263. </div>
  264.  
  265.  
  266.  
  267. </div>
  268.  
  269. <iframe name="systemFrame" id="systemFrame01" src="" style="display: none;"></iframe>
  270.  
  271. <form action="mcraft.rcon.php" method="POST" name="userlist_form" target="systemFrame" style="display: none;">
  272. <input type="hidden" name="userlist" value="1" />
  273. </form>
  274.  
  275. </body>
  276.  
  277. </html>
Advertisement
Add Comment
Please, Sign In to add comment