Guest User

milkAdmin

a guest
Jun 21st, 2011
343
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--
  2.     milkAdmin - WebAdministrator of Minecraft Server for Bukkit
  3.    Copyright (C) 2010-2011  Alejandro Barreiro (Sharkiller)
  4.    
  5.    This file is part of milkAdmin.
  6.  
  7.    This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
  8.     To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to
  9.     Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
  10. -->
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  12. <html>
  13. <head>
  14.     <title>milkAdmin - Login</title>
  15.     <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  16.     <link rel="stylesheet" type="text/css" href="http://www.sharkale.com.ar/milkAdmin/css/style.css" />
  17.     <link rel="stylesheet" type="text/css" href="http://www.sharkale.com.ar/milkAdmin/css/jquery.jnotify.min.css" />
  18.     <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
  19.     <script type="text/javascript" src="http://www.sharkale.com.ar/milkAdmin/js/jquery.jnotify.min.js"></script>
  20.     <script type="text/javascript" src="js/lang/default.js"></script>
  21.     <script type="text/javascript">
  22.         $.ajaxSetup({
  23.             timeout: 5000
  24.         });
  25.        
  26.         function login(form){
  27.             $.ajax({
  28.                 url: form.action,
  29.                 data: $(form).serialize(),
  30.                 success: function(data) {
  31.                     if(data == "ok"){
  32.                         $.jnotify(jsLogin["welcome"], 5000);
  33.                         window.location.href = "/index.html";
  34.                     }else if(data == "error"){
  35.                         $.jnotify(jsLogin["invalidlogin"], "error", 2000);
  36.                     }else{
  37.                         $.jnotify(jsLogin["UnknownError"], "error", 2000);
  38.                     }
  39.                 },
  40.                 error: function(error){
  41.                     $.jnotify(jsLogin["NotResponse"], "error", 2000);
  42.                 },
  43.                 dataType: "text"
  44.             });
  45.            
  46.             return false;
  47.         }
  48.        
  49.         function replaceText() {
  50.             for(var prop in langLogin){
  51.                 var patt=new RegExp(prop, "g");
  52.                 $('body').html($('body').html().replace(patt, langLogin[prop]));
  53.             }
  54.         }
  55.        
  56.         $(document).ready(function() {
  57.             replaceText();
  58.         });
  59.     </script>
  60. </head>
  61. <body>
  62.     <div id="header" class="fluid">
  63.         <div class="container">
  64.             <h1>milkAdmin</h1>
  65.         </div>
  66.     </div>
  67.     <div id="features" class="fluid" style="border-bottom:outset 1px #ffffff;">
  68.         <div class="container">
  69.             <div class="subtitle">Minecraft Administration Tool</div>
  70.         </div>
  71.     </div>
  72.     <div id="darkLayer" class="darkClass"></div>
  73.    
  74.     <div id="box" style="min-height:300px">
  75.         <p><h2>langmilkAdminLogin:</h2></p>
  76.         <form name="input" action="/server/login" id="login" method="get" onsubmit="return login(this)">
  77.             <h9>langUsername:</h9>
  78.             <INPUT TYPE="text" NAME="username" id="username" class="username" SIZE="25"><br />
  79.             <h9>langPassword:</h9>
  80.             <INPUT TYPE="password" NAME="password" class="password" SIZE="25"><br />
  81.             <INPUT TYPE="submit" class="loginsubmit" value="langLogin">
  82.         </form>
  83.     </div>
  84. </body>
  85. </html>
RAW Paste Data