Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="de">
- <head>
- <meta charset="UTF-8" />
- <title>qBittorrent Weboberfläche</title>
- <link rel="icon" type="image/png" href="images/skin/qbittorrent32.png" />
- <link rel="stylesheet" type="text/css" href="css/login.css" />
- <script src="scripts/lib/mootools-1.2-core-yc.js"></script>
- <noscript>
- <link rel="stylesheet" type="text/css" href="css/noscript.css?v=v4.1.8" />
- </noscript>
- <script>
- window.onload = function() {
- $('username').focus();
- $('username').select();
- };
- window.addEvent('domready', function() {
- $('loginform').addEvent('submit', function(e) {
- new Event(e).stop();
- submitLoginForm();
- });
- });
- function submitLoginForm() {
- new Request({
- url: 'api/v2/auth/login',
- method: 'post',
- data: $('loginform').toQueryString(),
- onComplete: function() {
- $('password').set('value', '');
- },
- onFailure: function(xhr) {
- if (xhr.responseText !== "") {
- $('error_msg').set('html', xhr.responseText);
- }
- else {
- $('error_msg').set('html', 'Fehler beim Einloggen – vermutlich ist qBittorrent nicht erreichbar.');
- }
- },
- onSuccess: function(text) {
- if (text == "Ok.") {
- // Session started. Simply reload page.
- window.location.reload();
- }
- else {
- $('error_msg').set('html', 'Ungültiger Benutzername oder Passwort.');
- }
- }
- }).send();
- }
- </script>
- </head>
- <body>
- <noscript id="noscript">
- <h1>JavaScript Required! You must enable JavaScript for the Web UI to work properly</h1>
- </noscript>
- <div id="main">
- <h1>qBittorrent Weboberfläche</h1>
- <div id="logo" class="col">
- <img src="images/skin/qbittorrent-tray.svg" alt="qBittorrent logo" />
- </div>
- <div id="formplace" class="col">
- <form id="loginform" method="post">
- <div class="row">
- <label for="username">Benutzername</label><br />
- <input type="text" id="username" name="username" /></div>
- <div class="row">
- <label for="password">Passwort</label><br />
- <input type="password" id="password" name="password" /></div>
- <div class="row">
- <input type="submit" id="login" value="Anmelden" />
- </div>
- </form>
- </div>
- <div id="error_msg"></div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment