Index: includes/messages.cht.inc.php
===================================================================
--- includes/messages.cht.inc.php	(revision 31d944cc08512af287aadc53b7ff41829125f3b0)
+++ includes/messages.cht.inc.php	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -411,5 +411,11 @@
 	"seedersleechers"			=> "S/L",
 	"lasttimescraped"			=> "Last time scraped",
-);
-
-?>
+
+	'd' => 'd', // d = short for day[s] (in remaining time)
+);
+
+$js_strings = array(
+    'ajax_not_supported' => 'Your browser does not support AJAX!',
+    'requesting'         => 'Requesting...',
+    'processing'         => 'Processing...'
+);
Index: includes/messages.de.inc.php
===================================================================
--- includes/messages.de.inc.php	(revision 31d944cc08512af287aadc53b7ff41829125f3b0)
+++ includes/messages.de.inc.php	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -186,5 +186,5 @@
 	"hu"					=> "Ungarisch",
 	"cht"					=> "Traditional Chinese",
-	"fr"					=> "French",
+	"fr"					=> "Französisch",
 );
 
@@ -411,5 +411,11 @@
 	"seedersleechers"			=> "S/L",
 	"lasttimescraped"			=> "Letzter Scrape",
-);
-
-?>
+
+	'd' => 'T', // d = short for day[s] (in remaining time)
+);
+
+$js_strings = array(
+    'ajax_not_supported' => 'Ihr Browser unterstützt keine AJAX!',
+    'requesting'         => 'Laden...',
+    'processing'         => 'Bearbeitung...'
+);
Index: includes/messages.en.inc.php
===================================================================
--- includes/messages.en.inc.php	(revision 31d944cc08512af287aadc53b7ff41829125f3b0)
+++ includes/messages.en.inc.php	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -411,5 +411,11 @@
 	"seedersleechers"			=> "S/L",
 	"lasttimescraped"			=> "Last time scraped",
-);
-
-?>
+
+	'd' => 'd', // d = short for day[s] (in remaining time)
+);
+
+$js_strings = array(
+    'ajax_not_supported' => 'Your browser does not support AJAX!',
+    'requesting'         => 'Requesting...',
+    'processing'         => 'Processing...'
+);
Index: includes/messages.fr.inc.php
===================================================================
--- includes/messages.fr.inc.php	(revision 31d944cc08512af287aadc53b7ff41829125f3b0)
+++ includes/messages.fr.inc.php	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -411,5 +411,11 @@
     "seedersleechers"                   => "S/L",
     "lasttimescraped"                   => "Dernier accomplissement",
-);
-
-?>
+
+    'd' => 'd', // d = short for day[s] (in remaining time)
+);
+
+$js_strings = array(
+    'ajax_not_supported' => 'Your browser does not support AJAX!',
+    'requesting'         => 'Requesting...',
+    'processing'         => 'Processing...'
+);
Index: includes/messages.hu.inc.php
===================================================================
--- includes/messages.hu.inc.php	(revision 31d944cc08512af287aadc53b7ff41829125f3b0)
+++ includes/messages.hu.inc.php	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -231,5 +231,5 @@
 	"selectlanguage"			=> "Válassz nyelvet",
 
-	"areyousure"				=> "Biztosan törlöd?",
+	"areyousure"				=> "Biztosan eltávolítod?",
 	"areyousureerase"			=> "Biztosan törlöd?",
 	"alldatawillbedestroyed"		=> "Minden adat törlésre fog kerülni.",
@@ -294,5 +294,5 @@
 	"details"				=> "Részletek",
 
-	"done"					=> "kész",
+	"done"					=> "kész: ",
 	"downloadfinished"			=> "Letöltés elkészült",
 	"downloadeddata"			=> "Letöltött adatmennyiség",
@@ -411,5 +411,11 @@
 	"seedersleechers"			=> "Fel/Le",
 	"lasttimescraped"			=> "Utoljára lekérdezve",
-);
-
-?>
+
+	'd' => 'n', // d = short for day[s] (in remaining time)
+);
+
+$js_strings = array(
+    'ajax_not_supported' => 'A böngészője nem támogatja az AJAX-ot.',
+    'requesting'         => 'Lekérés...',
+    'processing'         => 'Feldolgozás...'
+);
Index: index.php
===================================================================
--- index.php	(revision 31d944cc08512af287aadc53b7ff41829125f3b0)
+++ index.php	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -140,5 +140,5 @@
 }
 
-function prepare_downloadlist_responses( &$responses, &$message, &$home_path, &$cwd ) {
+function prepare_downloadlist_responses( &$responses, &$message, &$home_path, &$cwd, $label ) {
 	$d_bytes_done_arr = switch_bytes( $responses["d_bytes_done"] );
 	$d_chunk_size_arr = switch_bytes( $responses["d_chunk_size"] );
@@ -206,5 +206,5 @@
 	if ( $responses["d_down_rate"] > 0 ) {
 		$responses["d_estimated_time"] = $responses["d_left_bytes"] / $responses["d_down_rate"];
-		$responses["d_estimated_time_value"] = sprintf( "%dd %02d:%02d", floor( $responses["d_estimated_time"] / 86400 ), floor( $responses["d_estimated_time"] / 3600 ) % 24, floor( $responses["d_estimated_time"] / 60 ) % 60 );
+		$responses["d_estimated_time_value"] = sprintf( '%d'.$label['d'].' %02d:%02d', floor( $responses["d_estimated_time"] / 86400 ), floor( $responses["d_estimated_time"] / 3600 ) % 24, floor( $responses["d_estimated_time"] / 60 ) % 60 );
 		$responses["d_percentage"] = $responses["d_completed_bytes"] / $responses["d_size_bytes"];
 		$responses["d_percentage_value"] = floor( $responses["d_completed_bytes"] / $responses["d_size_bytes"] * 100 );
@@ -603,4 +603,22 @@
 }
 $labels->getElementsByTagName( "mailto" )->item( 0 )->nodeValue = str_rot13( base64_encode( str_rot13( $labels->getElementsByTagName( "mailto" )->item( 0 )->nodeValue ) ) );
+// hack - start
+// add javascript strings to translation
+$xml_node = $root->appendChild( $xml->createElement( "js_strings" ) );
+foreach ( $js_strings as $key => $val ) $xml_node->appendChild( $xml->createElement( $key, $val ) );
+// add favicon URL
+$favicon_url = 'favicon.ico';
+if ( isset( $_SERVER['REQUEST_URI'] ) ):
+	$favicon_path = parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH );
+	if ( $favicon_path ) $favicon_url = dirname( $favicon_path ).'/favicon.ico';
+endif;
+$root->appendChild( $xml->createElement( 'favicon_url', $favicon_url ) );
+// add rtwi version
+require_once 'version.php';
+$version_node = $root->appendChild( $xml->createElement( "rtwi_version" ) );
+$version_node->appendChild( $xml->createElement( 'version', $rtwi_version ) );
+$version_node->appendChild( $xml->createElement( 'build_number', $rtwi_build ) );
+$version_node->appendChild( $xml->createElement( 'released', $rtwi_released ) );
+// hack - end
 
 //print_r( $_SESSION );
@@ -793,5 +811,5 @@
 			if ( is_array( $torrent ) ) {
 				// prepare download variables
-				prepare_downloadlist_responses( $torrent, $message, $config["home_path"], $si_responses["cwd"] );
+				prepare_downloadlist_responses( $torrent, $message, $config["home_path"], $si_responses["cwd"], $label );
 				// decide what to do
 				switch ( $page ) {
@@ -1047,5 +1065,5 @@
 
 				// formatting and inserting values to xml
-				prepare_downloadlist_responses( $d_responses[$i], $message, $home_path, $si_responses["cwd"] );
+				prepare_downloadlist_responses( $d_responses[$i], $message, $home_path, $si_responses["cwd"], $label );
 				$ttnode = $tnode->appendChild( $xml->createElement( "torrent" ) );
 				xmlrpc_multiappend( $xml, $ttnode, $d_responses[$i] );
@@ -1161,4 +1179,2 @@
 	readfile( $path );
 }
-
-?>
Index: input.php
===================================================================
--- input.php	(revision 31d944cc08512af287aadc53b7ff41829125f3b0)
+++ input.php	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -256,5 +256,5 @@
 		if ( !$xmlrpc->setrequest( "download_list", "" ) || !$xmlrpc->call() || !$xmlrpc->parse() ) {
 			$_SESSION["rtwi_err"] = $xmlrpc->geterrors();
-			header( "location: {$config["index"]}?mod=addtorrent}" );
+			header( "location: {$config["index"]}?mod=addtorrent" );
 			exit;
 		}
@@ -263,5 +263,5 @@
 		if ( !$xmlrpc->setmrequest( array( "get_directory", "system.cwd" ) ) || !$xmlrpc->call() || !$xmlrpc->parse() ) {
 			$_SESSION["rtwi_err"] = $xmlrpc->geterrors();
-			header( "location: {$config["index"]}?mod=addtorrent}" );
+			header( "location: {$config["index"]}?mod=addtorrent" );
 			exit;
 		}
Index: themes/WordPressWidefat/example.html
===================================================================
--- themes/WordPressWidefat/example.html	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
+++ themes/WordPressWidefat/example.html	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -0,0 +1,95 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+	<meta charset="UTF-8">
+	<title>html demo</title>
+	<style>
+	body { font-family:sans-serif; }
+	td { font-family:inherit; font-weight:inherit; }
+	th.process { width:8em; }
+	th.speed { width:8em; }
+	th.uploaded { width:5em; }
+	th.priority { width:6em; }
+	table.fixed { table-layout:fixed; }
+	.widefat { background:#fff; border:1px solid #e5e5e5; box-shadow:0 1px 1px rgba(0,0,0,.04); border-spacing:0; width:100%; clear:both; margin:0; }
+	.widefat * { word-wrap: break-word; }
+	.widefat th.sortable, .widefat th.sorted { padding:0; }
+	.widefat tfoot tr th, .widefat thead tr th { color:#333; }
+	.widefat tfoot th, .widefat thead th { line-height:1.4em; }
+	.widefat thead th { border-bottom:1px solid #e1e1e1; }
+	.widefat th { font-weight:400; overflow:hidden; text-align:left; font-size:14px; }
+	th.sortable a, th.sorted a { display:block; overflow:hidden; padding:7px 7px 8px 10px; }
+	.widefat a { text-decoration:none; }
+	.alt, .alternate { background-color:#f9f9f9; }
+	tr:last-child td, tr:last-child th { border-bottom:none; box-shadow:none; }
+	.widefat td, .widefat th { overflow:hidden; color:#555; padding:8px 10px; }
+	.widefat td { vertical-align:top; }
+	.widefat td, .widefat td ol, .widefat td p, .widefat td ul { font-size:13px; line-height:1.5em; }
+	td.title strong { display:block; margin-bottom:.2em; font-size:14px; }
+	td.title strong a { color:#555; }
+	tr strong a:hover { color:#0074a2; }
+	.row-actions { color:#ddd; font-size:13px; visibility:hidden; padding:2px 0 0 17px; }
+	tr:hover .row-actions { visibility:visible; }
+	.row-actions a { color:#0074a2; }
+	.row-actions a:hover { color:#0099d5; }
+	.row-actions span.trash a { color:#a00; }
+	.row-actions span.trash a:hover { color:red; }
+	</style>
+</head>
+<body>
+
+<table class="widefat fixed">
+<thead>
+	<tr>
+		<th class="title"><span>Név</span></th>
+		<th class="process">Állapot</th>
+		<th class="speed"><span>Sebesség</span></th>
+		<th class="uploaded"><span>Feltöltve</span></th>
+		<th class="priority"><span>Prioritás</span></th>
+	</tr>
+</thead>
+<tfoot>
+	<tr>
+		<th class="title"><span>Név</span></th>
+		<th class="process">Állapot</th>
+		<th class="speed"><span>Sebesség</span></th>
+		<th class="uploaded"><span>Feltöltve</span></th>
+		<th class="priority"><span>Prioritás</span></th>
+	</tr>
+</tfoot>
+<tbody>
+	<tr class="alternate">
+		<td class="title">
+			<strong><img src="pics/closed.png" width="13" height="13" alt="[closed]"> <a href="#...">Night.at.the.Museum.Secret.of.the.Tomb.2014.BDRip.x264.HuN-No1</a></strong>
+			<div class="row-actions"><span><a href="#...">Hash ellenőrzés</a> | </span><span><a href="#...">Elindít</a> | </span><span><a href="#...">Megnyit</a> | </span><span class="trash"><a href="#...">Eltávolít</a> | </span><span class="trash"><a href="#...">Töröl</a></span></div>
+		</td>
+		<td class="process">0.0 B / 1.2 GB<br>[0%]</td>
+		<td class="speed">0.0 B / 0.0 B</td>
+		<td class="uploaded">0.0 B</td>
+		<td class="priority"><select><option>Alacsony</option><option selected>Normál</option><option>Magas</option></select></td>
+	</tr>
+	<tr class="">
+		<td class="title">
+			<strong><img src="pics/seeding.png" width="13" height="13" alt="[seeding]"> <a href="#...">Predestination.2014.RETAiL.BDRip.x264.Hungarian-nCORE</a></strong>
+			<div class="row-actions"><span><a href="#...">Hash ellenőrzés</a> | </span><span><a href="#...">Leállít</a> | </span><span><a href="#...">Bezár</a> | </span><span class="trash"><a href="#...">Eltávolít</a> | </span><span class="trash"><a href="#...">Töröl</a></span></div>
+		</td>
+		<td class="process">kész: 1.0 GB</td>
+		<td class="speed">0.0 B / 0.0 B</td>
+		<td class="uploaded">39.5 MB</td>
+		<td class="priority"><select><option>Alacsony</option><option selected>Normál</option><option>Magas</option></select></td>
+	</tr>
+	<tr class="alternate">
+		<td class="title">
+			<strong><img src="pics/leeching.png" width="13" height="13" alt="[leeching]"> <a href="#...">Star.Wars.Episode.I.The.Phantom.Menace.1999.1080p.BlueRay.DTS-ES.x264.Hun-rB</a></strong>
+			<div class="row-actions"><span><a href="#...">Hash ellenőrzés</a> | </span><span><a href="#...">Leállít</a> | </span><span><a href="#...">Bezár</a> | </span><span class="trash"><a href="#...">Eltávolít</a> | </span><span class="trash"><a href="#...">Töröl</a></span></div>
+		</td>
+		<td class="process">9.0 GB / 15.3 GB<br>[58%] [0n 09:05]</td>
+		<td class="speed">0.0 B / 201.3 KB</td>
+		<td class="uploaded">0.0 B</td>
+		<td class="priority"><select><option>Alacsony</option><option selected>Normál</option><option>Magas</option></select></td>
+	</tr>
+</tbody>
+</table>
+
+</body>
+</html>
Index: themes/WordPressWidefat/inc/functions.js
===================================================================
--- themes/WordPressWidefat/inc/functions.js	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
+++ themes/WordPressWidefat/inc/functions.js	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -0,0 +1,280 @@
+/*jslint browser: true */
+/*global rtwi_strings*/
+
+
+var RTWI = {};
+RTWI.xmlHttp = null;
+
+
+RTWI.getHttpReqestObject = function () {
+    'use strict';
+    var xmlHttp = null;
+
+    try {
+        xmlHttp = new window.XMLHttpRequest();
+    } catch (exception) {
+        window.alert(rtwi_strings.ajaxNotSupported); // "Your browser does not support AJAX!"
+        return false;
+    }
+    return xmlHttp;
+};
+
+
+// Some AJAX operation changed state, show it...
+RTWI.handleReadyStateChange = function () {
+    'use strict';
+    var node = document.getElementById('TB_content');
+
+    switch (RTWI.xmlHttp.readyState) {
+    case 0:
+        node.innerHTML = 0;
+        break;
+    case 1:
+        node.innerHTML = rtwi_strings.requesting; // 'Requesting...'
+        break;
+    case 2:
+        node.innerHTML = 2;
+        break;
+    case 3:
+        node.innerHTML = rtwi_strings.processing; // 'Processing...'
+        break;
+    case 4:
+        node.innerHTML = RTWI.xmlHttp.responseText;
+        RTWI.xmlHttp = null;
+        break;
+    default:
+        node.innerHTML = '.';
+        break;
+    }
+};
+
+
+// Load: peer list, informations, file list or tracker list.
+RTWI.loadcontent = function (page, node) {
+    'use strict';
+    var titleNode = document.getElementById('TB_title'),
+        hash = titleNode.getAttribute('data-hash'),
+        menuitems = null,
+        i = 0,
+        c = 0;
+
+    // check if ajax request is already running
+    if (RTWI.xmlHttp) {
+        return;
+    }
+    RTWI.xmlHttp = RTWI.getHttpReqestObject();
+    if (!RTWI.xmlHttp) {
+        return;
+    }
+    // unselect all menuitems
+    menuitems = document.getElementById('TB_menu').getElementsByClassName('menuitem');
+    c = menuitems.length;
+    for (i = 0; i < c; i += 1) {
+        menuitems[i].className = 'menuitem';
+    }
+    // select clicked menuitem
+    node.className = 'menuitem current';
+    RTWI.xmlHttp.onreadystatechange = RTWI.handleReadyStateChange;
+    RTWI.xmlHttp.open('GET', '?mod=torrent&hash=' + hash + '&page=' + page + '&ajax=true', true);
+    RTWI.xmlHttp.send(null);
+};
+
+
+// Set directory priority.
+RTWI.loadcontent_dirpriority = function (iurl, hash, dir, dirpriority) {
+    'use strict';
+
+    // check if AJAX call is already running
+    if (RTWI.xmlHttp) {
+        return;
+    }
+    RTWI.xmlHttp = RTWI.getHttpReqestObject();
+    if (!RTWI.xmlHttp) {
+        return;
+    }
+    RTWI.xmlHttp.onreadystatechange = RTWI.handleReadyStateChange;
+    RTWI.xmlHttp.open('GET', iurl + '?mod=changedirpriority&hash=' + hash + '&dir=' + dir + '&dirpriority=' + dirpriority + '&ajax=true', true);
+    RTWI.xmlHttp.send(null);
+};
+
+
+// Set file priority.
+RTWI.loadcontent_filepriority = function (iurl, hash, id, filepriority) {
+    'use strict';
+
+    // check if AJAX call is already running
+    if (RTWI.xmlHttp) {
+        return;
+    }
+    RTWI.xmlHttp = RTWI.getHttpReqestObject();
+    if (!RTWI.xmlHttp) {
+        return;
+    }
+    RTWI.xmlHttp.onreadystatechange = RTWI.handleReadyStateChange;
+    RTWI.xmlHttp.open('GET', iurl + '?mod=changefilepriority&hash=' + hash + '&id=' + id + '&filepriority=' + filepriority + '&ajax=true', true);
+    RTWI.xmlHttp.send(null);
+};
+
+
+// Enable or disable torrent tracker.
+RTWI.loadcontent_trackerenabled = function (iurl, hash, id, trackerenabled) {
+    'use strict';
+
+    // check if AJAX call is already running
+    if (RTWI.xmlHttp) {
+        return;
+    }
+    RTWI.xmlHttp = RTWI.getHttpReqestObject();
+    if (!RTWI.xmlHttp) {
+        return;
+    }
+    RTWI.xmlHttp.onreadystatechange = RTWI.handleReadyStateChange;
+    RTWI.xmlHttp.open('GET', iurl + '?mod=changetrackerenabled&hash=' + hash + '&id=' + id + '&trackerenabled=' + trackerenabled + '&ajax=true', true);
+    RTWI.xmlHttp.send(null);
+};
+
+
+// show popup divs
+RTWI.hideDetailsPopup = function () {
+    'use strict';
+    var o = document.getElementById('TB_overlay'),
+        w = document.getElementById('TB_window'),
+        menuitems = null,
+        i = 0,
+        c = 0;
+
+    o.style.display = 'none';
+    w.style.visibility = 'hidden';
+    document.getElementById('TB_content').innerHTML = '';
+    // unselect all menuitems
+    menuitems = document.getElementById('TB_menu').getElementsByClassName('menuitem');
+    c = menuitems.length;
+    for (i = 0; i < c; i += 1) {
+        menuitems[i].className = 'menuitem';
+    }
+    // cancel any running ajax request
+    if (RTWI.xmlHttp) {
+        RTWI.xmlHttp.abort();
+        RTWI.xmlHttp = null;
+    }
+};
+
+// show popup divs
+RTWI.showDetailsPopup = function (event) {
+    'use strict';
+    var o = document.getElementById('TB_overlay'),
+        w = document.getElementById('TB_window'),
+        t = document.getElementById('TB_title'),
+        m = document.getElementById('TB_menu'),
+        c = document.getElementById('TB_content'),
+        node = event.target || event.srcElement,
+        width = (window.innerWidth > 1000 ? 950 : window.innerWidth - 20),
+        height = window.innerHeight - 60;
+
+    event.preventDefault();
+    t.setAttribute('data-hash', node.getAttribute('data-hash'));
+    t.innerText = node.innerText;
+    o.style.display = 'block';
+    w.style.width = width + 'px';
+    w.style.marginLeft = -1 * window.Math.round(width / 2) + 'px';
+    w.style.height = height + 'px';
+    w.style.top = 30 + 'px';
+    w.style.visibility = 'visible';
+    c.style.height = height - t.offsetHeight - m.offsetHeight - 2 * 16 + 'px';
+};
+
+
+// Called on body.onload and DOM node clicks,
+// show and hide some DOM nodes.
+RTWI.toggle = function (modpage) {
+    'use strict';
+    var uls = null,
+        atts = null,
+        i = 0,
+        j = 0;
+
+    switch (modpage) {
+    case '_info':
+    case 'torrent_info':
+    case 'torrent_peers':
+    case 'torrent_trackers':
+        if (document.getElementById('changethrottleform')) {
+            document.getElementById('throttleupinput').style.display = 'none';
+            document.getElementById('throttledowninput').style.display = 'none';
+            document.getElementById('tsubmit').style.display = 'none';
+            document.getElementById('throttleup').style.display = '';
+            document.getElementById('throttledown').style.display = '';
+        }
+        break;
+    case 'serverinfo_info':
+        if (document.getElementById('changethrottleform')) {
+            document.getElementById('throttleupinput').style.display = 'none';
+            document.getElementById('throttledowninput').style.display = 'none';
+            document.getElementById('tsubmit').style.display = 'none';
+            document.getElementById('throttleup').style.display = '';
+            document.getElementById('throttledown').style.display = '';
+        }
+        document.getElementById('changedht').style.display = '';
+        document.getElementById('changedhtselect').style.display = 'none';
+        break;
+    case '_info_restore':
+        document.getElementById('throttleupinput').style.display = '';
+        document.getElementById('throttledowninput').style.display = '';
+        document.getElementById('tsubmit').style.display = '';
+        document.getElementById('throttleup').style.display = 'none';
+        document.getElementById('throttledown').style.display = 'none';
+        break;
+    case 'serverinfo_info_restore':
+        if (document.getElementById('changethrottleform')) {
+            document.getElementById('changedht').style.display = 'none';
+            document.getElementById('changedhtselect').style.display = '';
+        }
+        break;
+    case 'addtorrent_info':
+        document.getElementById('torrenturl').style.display = 'none';
+        break;
+    case 'torrent_files':
+        uls = document.getElementsByTagName('ul');
+        for (i = 0; i < uls.length; i += 1) {
+            atts = uls.item(i).attributes;
+            for (j = 0; j < atts.length; j += 1) {
+                if ('class' === atts[j].nodeName && 'directory' === atts[j].nodeValue) {
+                    uls.item(i).style.display = 'none';
+                }
+            }
+        }
+        document.getElementById('throttleupinput').style.display = 'none';
+        document.getElementById('throttledowninput').style.display = 'none';
+        document.getElementById('tsubmit').style.display = 'none';
+        document.getElementById('throttleup').style.display = '';
+        document.getElementById('throttledown').style.display = '';
+        break;
+    }
+};
+
+
+// add click handlers when DOM is ready
+RTWI.onDOMready = function () {
+    'use strict';
+    var arr = null,
+        i = 0,
+        c = 0,
+        node = null;
+
+    // open popup
+    arr = document.getElementsByClassName('hasPopup');
+    c = arr.length;
+    for (i = 0; i < c; i += 1) {
+        node = arr[i];
+        node.addEventListener('click', RTWI.showDetailsPopup, false);
+    }
+    // close popup
+    document.getElementById('TB_overlay').addEventListener('click', function () {
+        RTWI.hideDetailsPopup();
+    }, false);
+    document.getElementById('TB_closeWindowButton').addEventListener('click', function (event) {
+        event.preventDefault();
+        RTWI.hideDetailsPopup();
+    }, false);
+};
+document.addEventListener("DOMContentLoaded", RTWI.onDOMready);
Index: themes/WordPressWidefat/inc/style.css
===================================================================
--- themes/WordPressWidefat/inc/style.css	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
+++ themes/WordPressWidefat/inc/style.css	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -0,0 +1,141 @@
+html { background:#F1F1F1; }
+body { min-width:60em; margin:0; padding:0; font-family:arial, sans-serif; font-size:medium; background:#ffffff; line-height:1.2em; }
+div { margin:0; padding:0; }
+ul { margin:0; padding:0; list-style-type:none; }
+li { margin:0; padding:0; }
+img { margin:0; padding:0; border:none; }
+p { margin:0; padding:0; }
+span { margin:0; padding:0; }
+a { color:#505050; text-decoration:none; }
+a:hover { color:#0000a0; }
+form { margin:0; padding:0; }
+select.whiteselect { border:1px solid #000000; background:#ffffff; }
+#top { display:none; }
+#main { background-color:#f1f1f1; margin:0; padding:1em 0 0 0; }
+#leftcol { margin:0 1em 1em 1em; }
+#maincol { margin:0 1em; padding:0; }
+#footer { background-color:#f1f1f1; padding:1em 1em 1em 0; text-align:right; font-size:smaller; }
+#mainmenu { }
+#mainmenu li.first { margin:0; padding:0; }
+#mainmenu ul li { display:inline-block; }
+#mainmenu ul li a { display:block; padding:.2em 1em; color:#505050; font-weight:bold; text-align:center; }
+#mainmenu a:hover { color:#000000; background:#e0e0e0; }
+#err { margin:0 0 1em 0; color:#aa0000; font-weight:bold; text-align:center; }
+#loginbox { background:#F1F1F1; text-align:center; padding-top:1em; }
+#changeviewform { float:left; margin:0 1em 0 0; }
+#changerefreshform { float:left; margin:0 1em 0 0; }
+#changelanguageform { float:left; }
+#loginbox #changelanguageform { float:none; margin:0 0 1em 0; }
+#doonalltorrentform { float:right; }
+#addtorrent { clear:both; }
+.clr { clear:both; height:1px; overflow:hidden; }
+.submit { margin:0 0 0 .3em; }
+.submenu { margin:0 0 0 20%; font-size:smaller; border-left:1px solid #aaaaaa; }
+.submenu.notshown { display:none; }
+.main_top { margin-bottom:0.25em; }
+td { font-family:inherit; font-weight:inherit; }
+th.process { width:9em; }
+th.speed { width:8em; }
+th.uploaded { width:5em; }
+th.priority { width:6em; }
+table.fixed { table-layout:fixed; }
+.widefat { background:#fff; border:1px solid #e5e5e5; box-shadow:0 1px 1px rgba(0,0,0,.04); border-spacing:0; width:100%; clear:both; margin:0; }
+.widefat * { word-wrap:break-word; }
+.widefat th.sortable, .widefat th.sorted { padding:0; }
+.widefat tfoot tr th, .widefat thead tr th { color:#333; }
+.widefat tfoot th, .widefat thead th { line-height:1.4em; }
+.widefat thead th { border-bottom:1px solid #e1e1e1; }
+.widefat th { font-weight:400; overflow:hidden; text-align:left; font-size:14px; }
+th.sortable a, th.sorted a { display:block; overflow:hidden; padding:7px 7px 8px 10px; }
+.widefat a { text-decoration:none; }
+.widefat tbody tr:nth-child(odd) { background-color:#f9f9f9; }
+tr:last-child td, tr:last-child th { border-bottom:none; box-shadow:none; }
+.widefat td, .widefat th { overflow:hidden; color:#555; padding:8px 10px; }
+.widefat td { vertical-align:top; }
+.widefat td, .widefat td ol, .widefat td p, .widefat td ul { font-size:13px; line-height:1.5em; }
+td.title strong { display:block; margin-bottom:.2em; font-size:14px; }
+td.title strong a { color:#555; }
+td.title strong img { margin-right:4px; }
+tr strong a:hover { color:#0074a2; }
+.row-actions { color:#ddd; font-size:13px; visibility:hidden; padding:2px 0 0 17px; }
+tr:hover .row-actions { visibility:visible; }
+.row-actions a { color:#0074a2; }
+.row-actions a:hover { color:#0099d5; }
+.row-actions span.trash a { color:#a00; }
+.row-actions span.trash a:hover { color:red; }
+.main_bottom { margin-top:0.25em; }
+span.eta:before { content:" "; }
+.speed .notzero { color:black; }
+.spacer { margin:0 0 1em 0; }
+.tline.last { margin:1em 0 1em 0; }
+.tline.last:hover { background:transparent; }
+.tthrottle { float:left; margin:0 1em 0 0; }
+.tthrottle input[type="text"] { width:2em; text-align:right; }
+.trates_total { float:left; }
+.ticon { float:left; width:1em; }
+.ticon img { width:.8125em; }
+.tname { float:left; margin:0; }
+.tops { float:right; font-size:smaller; }
+.tops a { margin:0 0 0 .5em; }
+.tselect { float:right; font-size:smaller; text-align:right; }
+.priority select { font-size:smaller; border-color:#aaa; }
+.tmessage { font-size:smaller; }
+.tcontent { margin:.5em 0 0 0; }
+.tufleft { float:left; width:14%; font-weight:bold; }
+.tufright { float:left; width:86%; }
+.tufpath { float:left; }
+.tufspace { float:right; }
+.tuform .formsend { margin:1em 0 0 14%; }
+.infoleft { float:left; width:25%; font-weight:bold; }
+.inforight { float:left; width:74% }
+.directory { margin:0 0 0 1em; }
+.directory li {}
+.dopenlink { float:left; }
+.dpriority { float:right; margin:0; font-size:smaller; text-align:right; background:#eeeeee; }
+.dpriority select { font-size:smaller; }
+.dpriority .submit { font-size:smaller; }
+.tcontent .dpriority { float:right; margin:0; text-align:right; background:#eeeeee; }
+.fname { float:left; background:#eeeeee; }
+.fdownload { float:right; background:#eeeeee; }
+.fchunks { float:right; width:6.5em; margin:0 0 0 .5em; text-align:right; background:#eeeeee; }
+.fsize { float:right; width:5.5em; margin:0 0 0 .5em; text-align:right; background:#eeeeee; }
+.fpriority { float:right; width:8.5em; margin:0 0 0 .5em; font-size:smaller; text-align:right; background:#eeeeee; }
+.fpriority select { font-size:smaller; }
+.fpriority .submit { font-size:smaller; }
+.tcontent .fpriority { float:right; width:8em; margin:0 0 0 .5em; text-align:right; background:#eeeeee; }
+.fpercentage { float:right; width:3.5em; margin:0 0 0 .5em; text-align:right; background:#eeeeee; }
+.tracker { margin:0 0 .5em 0; }
+.tgroup { float:left; width:1.5em; text-align:right; background:#eeeeee; }
+.turl { float:left; margin:0 0 0 .5em; }
+.tfocus { float:left; width:6em; font-size:smaller; background:#eeeeee; }
+.tenabled { float:left; width:11.5em; margin:0 0 0 .5em; font-size:smaller; background:#eeeeee; }
+.tcontainer .tenabled { width:13em; }
+.tenabled .submit { font-size:smaller; }
+.tenabled select { font-size:smaller; }
+.topen { float:left; width:6em; margin:0 0 0 .5em; font-size:smaller; background:#eeeeee; }
+.tpeers { float:left; margin:0 0 0 .5em; font-size:smaller; }
+.tscrape { font-size:smaller; }
+.phead { font-weight:bold; }
+.paddress { float:left; width:10em; }
+.paddress img { margin:0 .5em 0 0; }
+.pup { float:left; width:5em; margin:0 0 0 .5em; text-align:right; }
+.pdown { float:left; width:5em; margin:0 0 0 .5em; text-align:right; }
+.prate { float:left; width:5em; margin:0 0 0 .5em; text-align:right; }
+.pdone { float:left; width:4em; margin:0 0 0 .5em; text-align:right; }
+.pencrypted { float:left; width:6em; margin:0 0 0 .5em; }
+.pincoming { float:left; width:6em; margin:0 0 0 1.5em; }
+.poptions { float:left; width:6em; margin:0 0 0 .5em; font-size:smaller; }
+.pclient { float:left; margin:0 0 0 .5em; }
+/* overlay and co */
+#TB_overlay { background:#000; display:none; opacity:0.7; position:fixed; top:0; right:0; bottom:0; left:0; z-index:2; }
+#TB_window { position:fixed; background:#fff; z-index:2; visibility:hidden; text-align:left; top:50%; left:50%; box-shadow:0 3px 6px rgba( 0, 0, 0, 0.3 ); }
+#TB_closeAjaxWindow { float:right; }
+#TB_closeAjaxWindow a { text-decoration:none; }
+#TB_closeAjaxWindow a .tb-close-icon { position:absolute; left:auto; right:-30px; color:#eee; transition:color .1s ease-in-out,background .1s ease-in-out; }
+#TB_closeAjaxWindow a .tb-close-icon:before { content:"×"; font-size:32px; }
+#TB_closeAjaxWindow a .tb-close-icon:hover { color:#0074a2; }
+#TB_title { margin:0; padding:1em; color:#333; background:#F3F3F3; }
+.wp_menu { font-size:16px; line-height:2; background:#F3F3F3; border-bottom:1px solid #DDDDDD; padding-left:1em; position:relative; }
+.wp_menu .menuitem { border-bottom:1px solid #DDDDDD; border-top:1px solid transparent; position:relative; bottom:-1px; display:inline-block; padding:0 .75em; color:#0074A2; }
+.wp_menu .menuitem.current { background:white; border: 1px solid #DDDDDD; border-bottom:1px solid white; color:black; }
+#TB_content { padding:16px; overflow-y:scroll; }
Index: themes/WordPressWidefat/layout.ajax.index.xsl
===================================================================
--- themes/WordPressWidefat/layout.ajax.index.xsl	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
+++ themes/WordPressWidefat/layout.ajax.index.xsl	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -0,0 +1,537 @@
+<xsl:stylesheet version="1.1"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                lang="en">
+ <xsl:output method="xml"
+             indent="no"
+             encoding="utf-8" />
+
+ <xsl:template match="root">
+  <xsl:apply-templates select="err" />
+  <xsl:apply-templates select="torrents" />
+ </xsl:template>
+
+ <xsl:template match="err">
+  <div id="err" title="{/root/labels/clicktohide}" onmouseover="this.style.cursor='pointer';" onclick="this.parentNode.removeChild( this );">
+   <xsl:apply-templates select="errmsg" />
+  </div>
+ </xsl:template>
+ 
+ <xsl:template match="errmsg">
+  <div>
+   <xsl:value-of select="msg" />
+  </div>
+ </xsl:template>
+
+ <xsl:template match="torrents">
+  <ul>
+   <xsl:apply-templates select="torrent_info_root" />
+   <xsl:apply-templates select="torrent_files_root" />
+   <xsl:apply-templates select="torrent_peers_root" />
+   <xsl:apply-templates select="torrent_trackers_root" />
+  </ul>
+ </xsl:template>
+
+ <xsl:template match="torrent_info_root">
+  <xsl:apply-templates select="torrent_info" />
+ </xsl:template>
+
+ <xsl:template match="torrent_info">
+  <li class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/name" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_name" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/infohash" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_hash" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/localid" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_local_id" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/localidhtml" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_local_id_html" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/directory" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_directory/@value" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/tiedtofile" />
+   </div>
+   <div class="inforight">
+    <xsl:choose>
+     <xsl:when test="d_tied_to_file != ''">
+      <xsl:value-of select="d_tied_to_file/@value" />
+     </xsl:when>
+     <xsl:otherwise>
+      <xsl:value-of select="/root/labels/no" />
+     </xsl:otherwise>
+    </xsl:choose>
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/filestats" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_multi_file/@value" />
+    <xsl:choose>
+     <xsl:when test="d_multi_file != 0">
+      <xsl:text> </xsl:text>
+      <xsl:value-of select="d_size_files" />
+      <xsl:text> </xsl:text>
+      <xsl:value-of select="/root/labels/files" />
+     </xsl:when>
+    </xsl:choose>
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/private" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_private/@value" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/chunks" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_completed_chunks" />
+    <xsl:text> / </xsl:text>
+    <xsl:value-of select="d_chunks_hashed" />
+    <xsl:text> * </xsl:text>
+    <xsl:value-of select="d_chunk_size/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_chunk_size/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/priority" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_priority/@value" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/statechanged" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_state_changed/@value" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/freediskspace" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_free_diskspace/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_free_diskspace/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/connectiontype" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_connection_current/@value" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/trackers" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_tracker_size" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/peersconnected" />
+   </div>
+   <div class="inforight">
+    <span title="{/root/labels/dminpeers}: {d_peers_min} - {/root/labels/dmaxpeers}: {d_peers_max}">
+     <xsl:value-of select="d_peers_connected" />
+    </span>
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/leechers" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_peers_accounted" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/seeders" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_peers_complete" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/pexenabled" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_pex_active/@value" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/pexsize" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_size_pex" />
+    <xsl:text> / </xsl:text>
+    <xsl:value-of select="d_max_size_pex" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/upload" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_up_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_up_rate/@suffix" />
+    <xsl:text> / </xsl:text>
+    <xsl:value-of select="d_up_total/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_up_total/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/download" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_down_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_down_rate/@suffix" />
+    <xsl:text> / </xsl:text>
+    <xsl:value-of select="d_down_total/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_down_total/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <li class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/skipped" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_skip_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_skip_rate/@suffix" />
+    <xsl:text> / </xsl:text>
+    <xsl:value-of select="d_skip_total/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_skip_total/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </li>
+ </xsl:template>
+
+ <xsl:template match="torrent_files_root">
+  <xsl:apply-templates select="torrent_files" />
+ </xsl:template>
+
+ <xsl:template match="torrent_files">
+  <xsl:apply-templates select="files_root" />
+ </xsl:template>
+
+ <xsl:template match="torrent_trackers_root">
+  <xsl:apply-templates select="torrent_trackers" />
+ </xsl:template>
+
+ <xsl:template match="torrent_trackers">
+  <xsl:apply-templates select="tracker" />
+ </xsl:template>
+
+ <xsl:template match="torrent_peers_root">
+  <xsl:apply-templates select="torrent_peers" />
+ </xsl:template>
+
+ <xsl:template match="torrent_peers">
+  <li class="phead">
+   <div class="paddress">
+    <xsl:value-of select="/root/labels/address" />
+   </div>
+   <div class="pup">
+    <xsl:value-of select="/root/labels/up_rate" />
+   </div>
+   <div class="pdown">
+    <xsl:value-of select="/root/labels/down_rate" />
+   </div>
+   <div class="prate">
+    <xsl:value-of select="/root/labels/peer_rate" />
+   </div>
+   <div class="pdone">
+    <xsl:value-of select="/root/labels/done" />
+   </div>
+   <div class="pincoming">
+    <xsl:value-of select="/root/labels/incoming" />
+   </div>
+   <div class="pencrypted">
+    <xsl:value-of select="/root/labels/encrypted" />
+   </div>
+   <div class="pclient">
+    <xsl:value-of select="/root/labels/pclientversion" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <xsl:apply-templates select="peer" />
+ </xsl:template>
+
+ <xsl:template match="files_root">
+  <xsl:apply-templates select="directory" />
+  <xsl:apply-templates select="file" />
+ </xsl:template>
+
+ <xsl:template match="directory">
+  <li>
+   <div class="dopenlink">
+    <a title="{/root/labels/clicktoopenclose}" onmouseover="this.style.cursor='pointer';" onclick="if ( this.parentNode.parentNode.getElementsByTagName( 'ul' ).item( 0 ).style.display == '' ) {{ this.parentNode.parentNode.getElementsByTagName( 'ul' ).item( 0 ).style.display = 'none' }} else {{ this.parentNode.parentNode.getElementsByTagName( 'ul' ).item( 0 ).style.display = '' }};"><xsl:value-of select="@dirname" /></a>
+   </div>
+   <div class="dpriority">
+    <form class="changedirpriorityform" name="changedirpriorityform_{@id}" method="post" action="{/root/iurl}?mod=changedirpriority&amp;hash={/root/hash}&amp;dir={@dirpath}">
+     <select class="whiteselect" name="dirpriority" title="Select directory priority" onchange="RTWI.loadcontent_dirpriority('{/root/iurl}', '{/root/hash}', '{@dirpath}', this.value);">
+      <option value="-1" title="{/root/labels/selectone}" selected="selected"><xsl:value-of select="/root/labels/selectone" /></option>
+      <option value="0" title="{/root/labels/off}"><xsl:value-of select="/root/labels/off" /></option>
+      <option value="1" title="{/root/labels/normal}"><xsl:value-of select="/root/labels/normal" /></option>
+      <option value="2" title="{/root/labels/high}"><xsl:value-of select="/root/labels/high" /></option>
+     </select>
+     <noscript>
+      <input class="submit" type="submit" name="OK" value="OK" title="OK" />
+     </noscript>
+    </form>
+   </div>
+   <div class="clr">_</div>
+   <ul class="directory" style="display: none;">
+    <xsl:apply-templates select="directory" />
+    <xsl:apply-templates select="file" />
+   </ul>
+  </li>
+ </xsl:template>
+
+ <xsl:template match="file">
+  <li onmouseover="this.style.background='#eeeeee';" onmouseout="this.style.background='';">
+   <div class="fname">
+    <span title="{/root/labels/lasttouched}: {f_last_touched}">
+     <xsl:value-of select="@filename" />
+    </span>
+   </div>
+   <div class="fpercentage">
+    <span title="{f_percentage/@value} {/root/labels/percentcompleted}">
+     <xsl:text>[</xsl:text>
+     <xsl:value-of select="f_percentage/@value" />
+     <xsl:text> %]</xsl:text>
+    </span>
+   </div>
+   <div class="fpriority">
+    <form class="changefilepriorityform" name="changefilepriorityform_{@id}" method="post" action="{/root/iurl}?mod=changefilepriority&amp;hash={/root/hash}&amp;id={@id}">
+     <select class="whiteselect" name="filepriority" title="{/root/labels/selectfilepriority}" onchange="RTWI.loadcontent_filepriority('{/root/iurl}', '{/root/hash}', '{@id}', this.value);">
+      <xsl:choose>
+       <xsl:when test="f_priority = 0">
+        <option value="0" title="{/root/labels/off}" selected="selected"><xsl:value-of select="/root/labels/off" /></option>
+        <option value="1" title="{/root/labels/normal}"><xsl:value-of select="/root/labels/normal" /></option>
+        <option value="2" title="{/root/labels/high}"><xsl:value-of select="/root/labels/high" /></option>
+       </xsl:when>
+       <xsl:when test="f_priority = 2">
+        <option value="0" title="{/root/labels/off}"><xsl:value-of select="/root/labels/off" /></option>
+        <option value="1" title="{/root/labels/normal}"><xsl:value-of select="/root/labels/normal" /></option>
+        <option value="2" title="{/root/labels/high}" selected="selected"><xsl:value-of select="/root/labels/high" /></option>
+       </xsl:when>
+       <xsl:otherwise>
+        <option value="0" title="{/root/labels/off}"><xsl:value-of select="/root/labels/off" /></option>
+        <option value="1" title="{/root/labels/normal}" selected="selected"><xsl:value-of select="/root/labels/normal" /></option>
+        <option value="2" title="{/root/labels/high}"><xsl:value-of select="/root/labels/high" /></option>
+       </xsl:otherwise>
+      </xsl:choose>
+     </select>
+    </form>
+   </div>
+   <div class="fsize">
+    <span title="{/root/labels/filesize}">
+     <xsl:value-of select="f_size_bytes/@value" />
+     <xsl:text> </xsl:text>
+     <xsl:value-of select="f_size_bytes/@suffix" />
+    </span>
+   </div>
+   <div class="fchunks">
+    <span title="{/root/labels/chunks}">
+     <xsl:choose>
+      <xsl:when test="f_range_first != f_range_second">
+       <xsl:value-of select="f_range_first" />
+       <xsl:text> - </xsl:text>
+       <xsl:value-of select="f_range_second" />
+      </xsl:when>
+      <xsl:otherwise>
+       <xsl:value-of select="f_range_first" />
+      </xsl:otherwise>
+     </xsl:choose>
+    </span>
+   </div>
+   <xsl:choose>
+    <xsl:when test="f_percentage = 1 and /root/allow_download = 'true'">
+     <div class="fdownload">
+      <a href="?mod=getfile&amp;hash={/root/hash}&amp;id={@id}" title="{/root/labels/downloadfile}"><xsl:value-of select="/root/labels/download" /></a>
+     </div>
+    </xsl:when>
+   </xsl:choose>
+   <div class="clr"></div>
+  </li>
+ </xsl:template>
+
+ <xsl:template match="tracker">
+  <li>
+   <ul>
+    <li>
+     <xsl:value-of select="t_url" /><br />
+     <xsl:value-of select="/root/labels/trackergroup" /><xsl:text>: </xsl:text><xsl:value-of select="t_group" /><br />
+     <xsl:value-of select="/root/labels/type" /><xsl:text>: </xsl:text><xsl:value-of select="t_type/@value" /><br />
+     <xsl:value-of select="/root/labels/focus" />
+     <xsl:text>: </xsl:text>
+     <xsl:choose>
+      <xsl:when test="root/tottents/torrent_trackers_root/torrent_trackers/d_tracker_focus = @id">
+       <xsl:value-of select="/root/labels/yes" />
+      </xsl:when>
+      <xsl:otherwise>
+       <xsl:value-of select="/root/labels/no" />
+      </xsl:otherwise>
+     </xsl:choose>
+     <br />
+     <xsl:value-of select="/root/labels/enabled" />
+     <xsl:text>: </xsl:text>
+     <select class="whiteselect" name="trackerenabled" title="{/root/labels/selecttrackerenabled}" onchange="RTWI.loadcontent_trackerenabled('{/root/iurl}', '{/root/hash}', '{@id}', this.value)">
+      <xsl:choose>
+       <xsl:when test="t_enabled = 0">
+        <option value="1" title="{/root/labels/yes}"><xsl:value-of select="/root/labels/yes" /></option>
+        <option value="0" title="{/root/labels/no}" selected="selected"><xsl:value-of select="/root/labels/no" /></option>
+       </xsl:when>
+       <xsl:otherwise>
+        <option value="1" title="{/root/labels/yes}" selected="selected"><xsl:value-of select="/root/labels/yes" /></option>
+        <option value="0" title="{/root/labels/no}"><xsl:value-of select="/root/labels/no" /></option>
+       </xsl:otherwise>
+      </xsl:choose>
+     </select>
+     <br />
+     <xsl:value-of select="/root/labels/opened" />
+     <xsl:text>: </xsl:text>
+     <xsl:choose>
+      <xsl:when test="t_open != 0">
+       <xsl:value-of select="/root/labels/yes" />
+      </xsl:when>
+      <xsl:otherwise>
+       <xsl:value-of select="/root/labels/no" />
+      </xsl:otherwise>
+     </xsl:choose>
+     <br />
+     <xsl:value-of select="/root/labels/seedersleechers" />
+     <xsl:text>: </xsl:text>
+     <xsl:value-of select="t_scrape_complete" />
+     <xsl:text> / </xsl:text>
+     <xsl:value-of select="t_scrape_incomplete" />
+     <br />
+     <span title="{/root/labels/mininterval}: {t_min_interval/@value} - Normal interval: {t_normal_interval/@value}">
+      <xsl:value-of select="/root/labels/lasttimescraped" />
+      <xsl:text>: </xsl:text>
+      <xsl:value-of select="t_scrape_time_last/@value" />
+     </span>
+    </li>
+   </ul>
+  </li>
+ </xsl:template>
+
+ <xsl:template match="peer">
+  <li>
+   <div class="paddress">
+    <xsl:choose>
+     <xsl:when test="p_country != ''">
+      <img src="flags/{p_country}.gif" alt="flag" title="{p_country/@value}" />
+     </xsl:when>
+    </xsl:choose>
+    <xsl:value-of select="p_address" />
+   </div>
+   <div class="pup">
+    <xsl:value-of select="p_up_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="p_up_rate/@suffix" />
+   </div>
+   <div class="pdown">
+    <xsl:value-of select="p_down_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="p_down_rate/@suffix" />
+   </div>
+   <div class="prate">
+    <xsl:value-of select="p_peer_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="p_peer_rate/@suffix" />
+   </div>
+   <div class="pdone">
+    <xsl:value-of select="p_completed_percent" />
+    <xsl:text> %</xsl:text>
+   </div>
+   <div class="pincoming">
+    <xsl:value-of select="p_incoming/@value" />
+   </div>
+   <div class="pencrypted">
+    <xsl:value-of select="p_encrypted/@value" />
+   </div>
+   <div class="pclient">
+    <xsl:value-of select="p_client_version" />
+   </div>
+   <div class="clr"></div>
+  </li>
+ </xsl:template>
+
+</xsl:stylesheet>
Index: themes/WordPressWidefat/layout.editor.index.xsl
===================================================================
--- themes/WordPressWidefat/layout.editor.index.xsl	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
+++ themes/WordPressWidefat/layout.editor.index.xsl	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -0,0 +1,107 @@
+<xsl:stylesheet version="1.1"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                lang="en">
+ <xsl:output method="xml"
+             indent="no"
+             encoding="utf-8"
+             doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
+             doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
+
+ <xsl:template match="root">
+  <html lang="en">
+   <head>
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+    <meta http-equiv="content-language" content="en" />
+    <meta http-equiv="cache-control" content="no-store, no-cache, must-revalidate, post-check=0, pre-check=0" />
+    <meta http-equiv="pragma" content="no-cache" />
+    <meta http-equiv="expires" content="thu, 1 jan 1970 00:00:00 gmt" />
+    <meta http-equiv="imagetoolbar" content="no" />  
+    <xsl:choose>
+     <xsl:when test="/root/torrents/@refreshrate != 0">
+      <meta http-equiv="refresh" content="{/root/torrents/@refreshrate}; url={curl}" />  
+     </xsl:when>
+    </xsl:choose>
+    <meta name="author" content="{/root/labels/author}" />
+    <meta name="description" content="{/root/labels/description}" />
+    <meta name="doc-type" content="web page" />
+    <meta name="rating" content="general" />
+    <meta name="robots" content="noindex, nofollow" />
+    <link rel="stylesheet" type="text/css" href="themes/WordPressWidefat/inc/style.css" />
+    <title><xsl:value-of select="/root/labels/title" /></title>
+   </head>
+   <body onload="RTWI.toggle('{/root/mod}_{/root/page}');">
+    <div id="top">
+    </div>
+    <div id="main">
+     <div id="balh">
+      <div id="fomenu">
+       <ul>
+        <li class="first"><a href="{/root/url}" title="Main">Main</a></li>
+        <li><a href="?mod=loadtorrent" title="Load torrent">Load torrent</a></li>
+        <li><a href="?mod=savetorrent" title="Save torrent">Save torrent</a></li>
+       </ul>
+      </div>
+     </div>
+     <div id="kozeph">
+      <xsl:apply-templates select="err" />
+      <xsl:apply-templates select="torrent" />
+     </div>
+     <div class="clr1"></div>
+    </div>
+    <script type="text/javascript">
+        var rtwi_strings = {};
+        rtwi_strings.ajaxNotSupported = '<xsl:value-of select="js_strings/ajax_not_supported" />';
+        rtwi_strings.requesting = '<xsl:value-of select="js_strings/requesting" />';
+        rtwi_strings.requesting = '<xsl:value-of select="js_strings/processing" />';
+    </script>
+    <script type="text/javascript" src="themes/WordPressWidefat/inc/functions.js"></script>
+   </body>
+  </html>
+ </xsl:template>
+
+ <xsl:template match="err">
+  <div id="err">
+   <span title="Click to hide" onmouseover="this.style.cursor='pointer';" onclick="document.getElementById( 'err' ).style.display='none';">
+    <xsl:value-of select="errmsg" />
+   </span>
+  </div>
+ </xsl:template>
+
+ <xsl:template match="loadtorrent">
+  <form id="loadtorrent" name="loadtorrent" enctype="multipart/form-data" method="post" action="{/root/iurl}?mod=loadtorrent">
+   <ul class="tuform">
+    <li>
+     <div class="tufleft">Open from:</div>
+     <div class="tufright">
+      <select name="tfmethod" title="Open from" onchange="if ( this.value == 'url' ) {{ document.getElementById( 'torrenturl' ).style.display=''; document.getElementById( 'torrentfile' ).style.display='none'; }} else {{ document.getElementById( 'torrenturl' ).style.display='none'; document.getElementById( 'torrentfile' ).style.display=''; }}">
+       <option value="file">File upload</option>
+       <option value="url">URL</option>
+      </select>
+     </div>
+     <div class="clr"></div>
+    </li>
+    <li id="torrentfile">
+     <div class="tufleft">Torrent file:</div>
+     <div class="tufright">
+      <input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
+      <input type="file" name="torrentfile" title="Torrent File" value="" />
+	  <input type="checkbox" name="keeptorrentfile" title="Keep the .torrent file" />
+	  <span>Keep the .torrent file</span>
+     </div>
+     <div class="clr"></div>
+    </li>
+    <li id="torrenturl">
+     <div class="tufleft">Torrent URL:</div>
+     <div class="tufright">
+      <input type="text" name="torrenturl" title="Torrent url" value="" />
+     </div>
+     <div class="clr"></div>
+    </li>
+    <li class="formsend">
+     <input class="inputok" type="submit" name="loadtorrent" title="Load torrent" value="Load torrent" />
+    </li>
+   </ul>
+  </form>
+ </xsl:template>
+
+</xsl:stylesheet>
Index: themes/WordPressWidefat/layout.main.index.xsl
===================================================================
--- themes/WordPressWidefat/layout.main.index.xsl	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
+++ themes/WordPressWidefat/layout.main.index.xsl	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -0,0 +1,1508 @@
+<xsl:stylesheet version="1.1"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                lang="en">
+ <xsl:output method="xml"
+             indent="no"
+             encoding="utf-8"
+             doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
+             doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
+
+ <xsl:template match="root">
+  <html xml:lang="{language}" lang="{language}">
+   <head>
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+    <meta http-equiv="content-language" content="{language}" />
+    <meta http-equiv="cache-control" content="no-store, no-cache, must-revalidate, post-check=0, pre-check=0" />
+    <meta http-equiv="pragma" content="no-cache" />
+    <meta http-equiv="expires" content="thu, 1 jan 1970 00:00:00 gmt" />
+    <meta http-equiv="imagetoolbar" content="no" />  
+    <xsl:choose>
+     <xsl:when test="@refreshrate != 0">
+      <meta http-equiv="refresh" content="{@refreshrate}; url={curl}" />  
+     </xsl:when>
+    </xsl:choose>
+    <meta name="author" content="{labels/author}" />
+    <meta name="description" content="{labels/description}" />
+    <meta name="doc-type" content="web page" />
+    <meta name="rating" content="general" />
+    <meta name="robots" content="noindex, nofollow" />
+    <link rel="stylesheet" type="text/css" href="themes/WordPressWidefat/inc/style.css" />
+    <link rel="icon" type="image/x-icon" href="{favicon_url}" />
+    <title><xsl:value-of select="labels/title" /></title>
+   </head>
+   <body onload="RTWI.toggle('{mod}_{page}');">
+    <div id="top">
+    </div>
+    <div id="main">
+     <div id="leftcol">
+      <div id="mainmenu">
+       <ul>
+        <li class="first"><a href="{url}" title="{labels/torrents}"><xsl:value-of select="labels/torrents" /></a></li>
+        <xsl:choose>
+         <xsl:when test="mod = 'torrent'">
+          <li class="submenu">
+           <a href="?mod=torrent&amp;hash={hash}&amp;page=peers" title="{labels/peerlist}"><xsl:value-of select="labels/peerlist" /></a>
+          </li>
+          <li class="submenu">
+           <a href="?mod=torrent&amp;hash={hash}&amp;page=info" title="{labels/info}"><xsl:value-of select="labels/info" /></a>
+          </li>
+          <li class="submenu">
+           <a href="?mod=torrent&amp;hash={hash}&amp;page=files" title="{labels/filelist}"><xsl:value-of select="labels/filelist" /></a>
+          </li>
+          <li class="submenu">
+           <a href="?mod=torrent&amp;hash={hash}&amp;page=trackers" title="{labels/trackerlist}"><xsl:value-of select="labels/trackerlist" /></a>
+          </li>
+          <li class="submenu notshown">
+           <a href="?mod=torrent&amp;hash={hash}&amp;page=chunks" title="{labels/chunksseen}"><xsl:value-of select="labels/chunksseen" /></a>
+          </li>
+          <li class="submenu notshown">
+           <a href="?mod=torrent&amp;hash={hash}&amp;page=transfers" title="{labels/transferlist}"><xsl:value-of select="labels/transferlist" /></a>
+          </li>
+         </xsl:when>
+        </xsl:choose>
+        <li><a href="?mod=addtorrent" title="{labels/addtorrent}"><xsl:value-of select="labels/addtorrent" /></a></li>
+        <li><a href="?mod=serverinfo" title="{labels/serverinfo}"><xsl:value-of select="labels/serverinfo" /></a></li>
+        <li><a href="{iurl}?mod=logout" title="{labels/logout}"><xsl:value-of select="labels/logout" /></a></li>
+       </ul>
+      </div>
+     </div>
+     <div id="maincol">
+      <xsl:apply-templates select="err" />
+      <xsl:apply-templates select="addtorrent" />
+      <xsl:apply-templates select="torrents" />
+     </div>
+    </div>
+    <div id="footer">
+     <span><a href="https://rtwi.jmk.hu/" title="{labels/homepage}"><xsl:value-of select="labels/homepage" /></a> (rTWi: <span title="build: {rtwi_version/build_number}"><xsl:value-of select="rtwi_version/version" /></span> - <xsl:value-of select="rtwi_version/released" />)</span>
+    </div>
+    <div id="TB_overlay"></div>
+    <div id="TB_window">
+     <div id="TB_closeAjaxWindow"><a href="#" id="TB_closeWindowButton"><div class="tb-close-icon"></div></a></div>
+     <h3 id="TB_title"></h3>
+     <div class="wp_menu" id="TB_menu">
+      <a class="menuitem" href="#" title="{/root/labels/peerlist}" onclick="RTWI.loadcontent('peers',this); return false;"><xsl:value-of select="/root/labels/peerlist" /></a>
+      <a class="menuitem" href="#" title="{/root/labels/info}" onclick="RTWI.loadcontent('info',this); return false;"><xsl:value-of select="/root/labels/info" /></a>
+      <a class="menuitem" href="#" title="{/root/labels/filelist}" onclick="RTWI.loadcontent('files',this); return false;"><xsl:value-of select="/root/labels/filelist" /></a>
+      <a class="menuitem" href="#" title="{/root/labels/trackerlist}" onclick="RTWI.loadcontent('trackers',this); return false;"><xsl:value-of select="/root/labels/trackerlist" /></a>
+     </div>
+     <div id="TB_content">
+     </div>
+    </div>
+    <script type="text/javascript">
+        var rtwi_strings = {};
+        rtwi_strings.ajaxNotSupported = '<xsl:value-of select="js_strings/ajax_not_supported" />';
+        rtwi_strings.requesting = '<xsl:value-of select="js_strings/requesting" />';
+        rtwi_strings.requesting = '<xsl:value-of select="js_strings/processing" />';
+    </script>
+    <script type="text/javascript" src="themes/WordPressWidefat/inc/functions.js"></script>
+   </body>
+  </html>
+ </xsl:template>
+
+ <xsl:template match="err">
+  <div id="err" title="{/root/labels/clicktohide}" onmouseover="this.style.cursor='pointer';" onclick="this.parentNode.removeChild( this );">
+   <xsl:apply-templates select="errmsg" />
+  </div>
+ </xsl:template>
+ 
+ <xsl:template match="errmsg">
+  <div>
+   <xsl:value-of select="msg" />
+  </div>
+ </xsl:template>
+
+
+ <xsl:template match="addtorrent">
+  <div class="spacer">
+   <xsl:apply-templates select="languages" />
+  </div>
+  <form id="addtorrent" name="addtorrent" enctype="multipart/form-data" method="post" action="{/root/iurl}?mod=addtorrent">
+   <ul class="tuform">
+    <li>
+     <div class="tufleft"><xsl:value-of select="/root/labels/openfrom" />:</div>
+     <div class="tufright">
+      <select name="tfmethod" title="{/root/labels/openfrom}" onchange="if ( this.value == 'url' ) {{ document.getElementById( 'torrenturl' ).style.display=''; document.getElementById( 'torrentfile' ).style.display='none'; }} else {{ document.getElementById( 'torrenturl' ).style.display='none'; document.getElementById( 'torrentfile' ).style.display=''; }}">
+       <option value="file"><xsl:value-of select="/root/labels/fileupload" /></option>
+       <option value="url"><xsl:value-of select="/root/labels/url" /></option>
+      </select>
+     </div>
+     <div class="clr"></div>
+    </li>
+    <li id="torrentfile">
+     <div class="tufleft"><xsl:value-of select="/root/labels/torrentfile" />:</div>
+     <div class="tufright">
+      <input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
+      <input type="file" name="torrentfile" title="{/root/labels/torrentfile}" value="" />
+     </div>
+     <div class="clr"></div>
+    </li>
+    <li id="torrenturl">
+     <div class="tufleft"><xsl:value-of select="/root/labels/torrenturl" />:</div>
+     <div class="tufright">
+      <input type="text" name="torrenturl" title="{/root/labels/torrenturl}" value="" />
+     </div>
+     <div class="clr"></div>
+    </li>
+    <li>
+     <div class="tufleft"><xsl:value-of select="/root/labels/starttorrent" />:</div>
+     <div class="tufright">
+      <input type="checkbox" name="torrentstart" title="{/root/labels/starttorrentafteradded}" value="start" checked="checked" />
+     </div>
+     <div class="clr"></div>
+    </li>
+    <li>
+     <div class="tufleft"><xsl:value-of select="/root/labels/downloadto" />:</div>
+     <div class="tufright">
+      <input type="hidden" name="dlpath" value="{@path}" />
+      <ul class="tufupload">
+       <li onmouseover="this.style.background='#eeeeee';" onmouseout="this.style.background='';">
+        <div class="tufpath">
+         <a href="?mod=addtorrent&amp;path={@ppath}">..</a>
+        </div>
+        <div class="tufspace">
+         <xsl:value-of select="@freespace_value" />
+         <xsl:text> </xsl:text>
+         <xsl:value-of select="@freespace_suffix" />
+        </div>
+        <div class="clr"></div>
+       </li>
+       <xsl:apply-templates select="dlpath" />
+      </ul>
+     </div>
+     <div class="clr"></div>
+    </li>
+    <li class="formsend">
+     <input class="inputok" type="submit" name="addtorrent" title="{/root/labels/addtorrent}" value="{/root/labels/addtorrent}" />
+    </li>
+   </ul>
+  </form>
+ </xsl:template>
+
+ <xsl:template match="torrents">
+  <div class="main_top">
+   <xsl:apply-templates select="viewtypes" />
+   <xsl:apply-templates select="refreshrates" />
+   <xsl:apply-templates select="languages" />
+   <xsl:choose>
+    <xsl:when test="/root/mod = ''">
+     <form id="doonalltorrentform" name="doonalltorrentform" method="post" action="{/root/iurl}?mod=doonalltorrent">
+      <select class="whiteselect" name="task" title="{/root/labels/selecttask}" onchange="window.location='{/root/iurl}?mod=doonalltorrent&amp;task='+this.value;">
+       <option value="select" title="{/root/labels/selecttask}" selected="selected"><xsl:value-of select="/root/labels/selecttask" /></option>
+       <option value="start" title="{/root/labels/startall}"><xsl:value-of select="/root/labels/startall" /></option>
+       <option value="stop" title="{/root/labels/stopall}"><xsl:value-of select="/root/labels/stopall" /></option>
+       <option value="open" title="{/root/labels/openall}"><xsl:value-of select="/root/labels/openall" /></option>
+       <option value="close" title="{/root/labels/closeall}"><xsl:value-of select="/root/labels/closeall" /></option>
+       <option value="checkhash" title="{/root/labels/checkall}"><xsl:value-of select="/root/labels/checkall" /></option>
+       <option value="remove" title="{/root/labels/removeall}"><xsl:value-of select="/root/labels/removeall" /></option>
+      </select>
+      <noscript>
+       <input class="submit" id="doatsubmit" type="submit" name="doatsubmit" title="{/root/labels/ok}" value="{/root/labels/ok}" />
+      </noscript>
+     </form>
+    </xsl:when>
+   </xsl:choose>
+   <div class="clr"></div>
+  </div>
+  <xsl:choose>
+  <xsl:when test="/root/mod = ''">
+  <table class="widefat fixed">
+  <thead>
+   <tr>
+    <th class="title"><span>Név</span></th>
+    <th class="process">Állapot</th>
+    <th class="speed"><span>Sebesség</span></th>
+    <th class="uploaded"><span>Feltöltve</span></th>
+    <th class="priority"><span>Prioritás</span></th>
+   </tr>
+  </thead>
+  <tfoot>
+   <tr>
+    <th class="title"><span>Név</span></th>
+    <th class="process">Állapot</th>
+    <th class="speed"><span>Sebesség</span></th>
+    <th class="uploaded"><span>Feltöltve</span></th>
+    <th class="priority"><span>Prioritás</span></th>
+   </tr>
+  </tfoot>
+  <tbody>
+   <xsl:apply-templates select="torrent">
+    <xsl:sort select="d_name" lang="utf-8" data-type="text" order="ascending" />
+   </xsl:apply-templates>
+  </tbody>
+  </table>
+  </xsl:when>
+  </xsl:choose>
+  <xsl:apply-templates select="torrent_info_root" />
+  <xsl:apply-templates select="torrent_files_root" />
+  <xsl:apply-templates select="torrent_peers_root" />
+  <xsl:apply-templates select="torrent_trackers_root" />
+  <xsl:apply-templates select="server_info" />
+  <div class="main_bottom">
+   <xsl:choose>
+    <xsl:when test="/root/allow_throttle = 'true'">
+     <div class="tthrottle" onmouseover="this.style.cursor='pointer';" onclick="RTWI.toggle('_info_restore');">
+      <form id="changethrottleform" name="changethrottleform" method="post" action="{/root/iurl}?mod=changethrottle">
+       <span title="{/root/labels/clicktochange}">
+        <xsl:text>[</xsl:text>
+        <xsl:value-of select="/root/labels/throttle" />
+        <xsl:text> </xsl:text>
+       </span>
+       <span title="{/root/labels/uploadlimit}">
+        <span id="throttleup" style="display: none;"><xsl:value-of select="upload_rate/@value" /></span>
+        <input type="text" id="throttleupinput" name="upspeed" value="{upload_rate/@value}" />
+        <xsl:text> KB</xsl:text>
+       </span>
+       <xsl:text> / </xsl:text>
+       <span title="{/root/labels/downloadlimit}">
+        <span id="throttledown" style="display: none;"><xsl:value-of select="download_rate/@value" /></span>
+        <input type="text" id="throttledowninput" name="downspeed" value="{download_rate/@value}" />
+        <xsl:text> KB</xsl:text>
+       </span>
+       <input class="submit" id="tsubmit" type="submit" name="tsubmit" title="{/root/labels/ok}" value="{/root/labels/ok}" />
+       <xsl:text>]</xsl:text>
+      </form>
+     </div>
+    </xsl:when>
+    <xsl:otherwise>
+     <div class="tthrottle">
+       <span>
+        <xsl:text>[</xsl:text>
+        <xsl:value-of select="/root/labels/throttle" />
+        <xsl:text> </xsl:text>
+       </span>
+      <span title="{/root/labels/uploadlimit}"><xsl:value-of select="upload_rate/@value" /> KB</span>
+      <xsl:text> / </xsl:text>
+      <span title="{/root/labels/downloadlimit}"><xsl:value-of select="download_rate/@value" /> KB</span>
+      <xsl:text>]</xsl:text>
+     </div>
+    </xsl:otherwise>
+   </xsl:choose>
+   <div class="trates_total">
+    <xsl:text>[</xsl:text>
+    <xsl:value-of select="/root/labels/rate" />
+    <xsl:text> </xsl:text>
+    <span title="{/root/labels/uploadspeed}">
+     <xsl:value-of select="bytes_up/@value" />
+     <xsl:text> </xsl:text>
+     <xsl:value-of select="bytes_up/@suffix" />
+    </span>
+    <xsl:text> / </xsl:text>
+    <span title="{/root/labels/downloadspeed}">
+     <xsl:value-of select="bytes_down/@value" />
+     <xsl:text> </xsl:text>
+     <xsl:value-of select="bytes_down/@suffix" />
+    </span>
+    <xsl:text>]</xsl:text>
+   </div>
+   <div class="clr"></div>
+  </div>
+ </xsl:template>
+
+ <xsl:template match="viewtypes">
+  <form id="changeviewform" name="changeviewform" method="post" action="{/root/iurl}?mod=changeview">
+   <xsl:value-of select="/root/labels/view" />
+   <xsl:text>: </xsl:text>
+   <select class="whiteselect" name="viewtype" title="{/root/labels/selectviewtype}" onchange="window.location='{/root/iurl}?mod=changeview&amp;viewtype='+this.value;">
+    <xsl:apply-templates select="viewtype" />
+   </select>
+  </form>
+ </xsl:template>
+
+ <xsl:template match="viewtype">
+  <xsl:choose>
+   <xsl:when test="/root/@viewtype = @value">
+    <option value="{@value}" title="{@title}" selected="selected"><xsl:value-of select="@title" /></option>
+   </xsl:when>
+   <xsl:otherwise>
+    <option value="{@value}" title="{@title}"><xsl:value-of select="@title" /></option>
+   </xsl:otherwise>
+  </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="refreshrates">
+  <form id="changerefreshform" name="changerefreshform" method="post" action="{/root/iurl}?mod=changerefresh">
+   <xsl:value-of select="/root/labels/refresh" />
+   <xsl:text>: </xsl:text>
+   <select class="whiteselect" name="refreshrate" title="{/root/labels/selectrefreshrate}" onchange="window.location='{/root/iurl}?mod=changerefresh&amp;refreshrate='+this.value;">
+    <xsl:apply-templates select="refreshrate" />
+   </select>
+  </form>
+ </xsl:template>
+
+ <xsl:template match="refreshrate">
+  <xsl:choose>
+   <xsl:when test="/root/@refreshrate = @value">
+    <option value="{@value}" title="{@title}" selected="selected"><xsl:value-of select="@title" /></option>
+   </xsl:when>
+   <xsl:otherwise>
+    <option value="{@value}" title="{@title}"><xsl:value-of select="@title" /></option>
+   </xsl:otherwise>
+  </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="languages">
+  <form id="changelanguageform" name="changelanguageform" method="post" action="{/root/iurl}?mod=changelanguage">
+   <xsl:text>[</xsl:text>
+   <xsl:value-of select="/root/labels/language" />
+   <xsl:text>: </xsl:text>
+   <select class="whiteselect" name="language" title="{/root/labels/selectlanguage}" onchange="window.location='{/root/iurl}?mod=changelanguage&amp;language='+this.value;">
+    <xsl:apply-templates select="language" />
+   </select>
+   <noscript>
+    <input class="submit" id="lsubmit" type="submit" name="lsubmit" title="{/root/labels/ok}" value="{/root/labels/ok}" />
+   </noscript>
+   <xsl:text>]</xsl:text>
+  </form>
+ </xsl:template>
+
+ <xsl:template match="language">
+  <xsl:choose>
+   <xsl:when test="/root/@language = @value">
+    <option value="{@value}" title="{@title}" selected="selected"><xsl:value-of select="@title" /></option>
+   </xsl:when>
+   <xsl:otherwise>
+    <option value="{@value}" title="{@title}"><xsl:value-of select="@title" /></option>
+   </xsl:otherwise>
+  </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="torrent">
+  <tr>
+   <td class="title">
+    <strong>
+     <xsl:choose>
+      <xsl:when test="d_active != 0">
+       <img class="icon" src="themes/WordPressWidefat/pics/{d_connection_current}ing.png" alt="{d_connection_current}" title="{d_connection_current/@value} {/root/labels/sincepre} {d_state_changed/@value} {/root/labels/sincepost}" />
+      </xsl:when>
+      <xsl:when test="d_hashing != 0">
+       <img class="icon" src="themes/WordPressWidefat/pics/hashing.png" alt="{/root/labels/hashing}" title="{/root/labels/hashingsince} {d_state_changed/@value}" />
+      </xsl:when>
+      <xsl:when test="d_complete != 0">
+       <xsl:choose>
+        <xsl:when test="d_open != 0">
+         <img class="icon" src="themes/WordPressWidefat/pics/finished.png" alt="{/root/labels/finished}" title="{/root/labels/finishedsince} {d_state_changed/@value}" />
+        </xsl:when>
+        <xsl:otherwise>
+         <img class="icon" src="themes/WordPressWidefat/pics/finished_c.png" alt="{/root/labels/finished}" title="{/root/labels/finishedsince} {d_state_changed/@value}" />
+        </xsl:otherwise>
+       </xsl:choose>
+      </xsl:when>
+      <xsl:when test="d_open != 0">
+       <img class="icon" src="themes/WordPressWidefat/pics/stopped.png" alt="{/root/labels/stopped}" title="{/root/labels/stoppedsince} {d_state_changed/@value}" />
+      </xsl:when>
+      <xsl:otherwise>
+       <img class="icon" src="themes/WordPressWidefat/pics/closed.png" alt="{/root/labels/closed}" title="{/root/labels/closedsince} {d_state_changed/@value}" />
+      </xsl:otherwise>
+     </xsl:choose>
+     <a class="hasPopup" href="?mod=torrent&amp;hash={d_hash}" title="{/root/labels/details}" data-hash="{d_hash}"><xsl:value-of select="d_name" /></a>
+    </strong>
+    <xsl:choose>
+     <xsl:when test="d_message != ''">
+      <div class="tmessage">
+       <span><xsl:value-of select="/root/labels/message" />: <xsl:value-of select="d_message" /></span>
+      </div>
+     </xsl:when>
+    </xsl:choose>
+    <div class="row-actions">
+     <span>
+      <xsl:choose>
+       <xsl:when test="d_hashing != 0">
+        <xsl:value-of select="d_hashing/@value" />
+       </xsl:when>
+       <xsl:otherwise>
+        <a href="{/root/iurl}?mod=torrentcheckhash&amp;hash={d_hash}" title="{/root/labels/checkhash}"><xsl:value-of select="/root/labels/checkhash" /></a>
+       </xsl:otherwise>
+      </xsl:choose>
+      |
+     </span>
+     <span>
+      <xsl:choose>
+       <xsl:when test="d_active != 0">
+        <a href="{/root/iurl}?mod=torrentstop&amp;hash={d_hash}" title="{/root/labels/stop}"><xsl:value-of select="/root/labels/stop" /></a>
+       </xsl:when>
+       <xsl:otherwise>
+        <xsl:choose>
+         <xsl:when test="d_hashing != 0">
+          <a href="{/root/iurl}?mod=torrentstop&amp;hash={d_hash}" title="{/root/labels/stop}"><xsl:value-of select="/root/labels/stop" /></a>
+         </xsl:when>
+         <xsl:otherwise>
+          <a href="{/root/iurl}?mod=torrentstart&amp;hash={d_hash}" title="{/root/labels/start}"><xsl:value-of select="/root/labels/start" /></a>
+         </xsl:otherwise>
+        </xsl:choose>
+       </xsl:otherwise>
+      </xsl:choose>
+      |
+     </span>
+     <span>
+      <xsl:choose>
+       <xsl:when test="d_open = 0">
+        <a href="{/root/iurl}?mod=torrentopen&amp;hash={d_hash}" title="{/root/labels/open}"><xsl:value-of select="/root/labels/open" /></a>
+       </xsl:when>
+       <xsl:otherwise>
+        <a href="{/root/iurl}?mod=torrentclose&amp;hash={d_hash}" title="{/root/labels/close}"><xsl:value-of select="/root/labels/close" /></a>
+       </xsl:otherwise>
+      </xsl:choose>
+      |
+     </span>
+     <span class="trash">
+      <a href="{/root/iurl}?mod=torrentremove&amp;hash={d_hash}" title="{/root/labels/remove}" onclick="var answer = confirm( '{/root/labels/areyousure}' ); if ( !answer ) return false;"><xsl:value-of select="/root/labels/remove" /></a>
+     </span>
+     <xsl:choose>
+      <xsl:when test="/root/allow_erase = 'true'">
+       <span class="trash">
+        |
+        <a href="{/root/iurl}?mod=torrenterase&amp;hash={d_hash}" title="{/root/labels/erase}" onclick="var answer = confirm( '{/root/labels/areyousureerase}\n{d_base_path}\n{/root/labels/alldatawillbedestroyed}' ); if ( !answer ) return false;"><xsl:value-of select="/root/labels/erase" /></a>
+       </span>
+      </xsl:when>
+     </xsl:choose>
+    </div>
+   </td>
+   <td class="process">
+    <xsl:choose>
+     <xsl:when test="d_complete = 1">
+      <span title="{/root/labels/downloadfinished}"><xsl:value-of select="/root/labels/done" /> </span>
+     </xsl:when>
+     <xsl:otherwise>
+      <span title="{/root/labels/downloadeddata}">
+       <xsl:value-of select="d_bytes_done/@value" />
+       <xsl:text> </xsl:text>
+       <xsl:value-of select="d_bytes_done/@suffix" />
+      </span>
+      <xsl:text> / </xsl:text>
+     </xsl:otherwise>
+    </xsl:choose>
+    <span title="{/root/labels/torrentsize}">
+     <xsl:value-of select="d_size_bytes/@value" />
+     <xsl:text> </xsl:text>
+     <xsl:value-of select="d_size_bytes/@suffix" />
+    </span>
+    <br />
+    <xsl:choose>
+     <xsl:when test="d_percentage != 1">
+      <xsl:choose>
+       <xsl:when test="d_hashing != 0">
+        <div class="tpercentage">
+         <span title="{d_hpercentage/@value} {/root/labels/percenthashed}">
+          <xsl:text>[</xsl:text>
+          <xsl:value-of select="d_hpercentage/@value" />
+          <xsl:text> %]</xsl:text>
+         </span>
+        </div>
+        <div class="tpercentage">
+         <span title="{d_percentage/@value} {/root/labels/percentcompleted}">
+          <xsl:text>[</xsl:text>
+          <xsl:value-of select="d_percentage/@value" />
+          <xsl:text>%]</xsl:text>
+         </span>
+        </div>
+       </xsl:when>
+       <xsl:otherwise>
+        <span title="{d_percentage/@value} {/root/labels/percentcompleted}">
+         <xsl:text>[</xsl:text>
+         <xsl:value-of select="d_percentage/@value" />
+         <xsl:text>%]</xsl:text>
+        </span>
+       </xsl:otherwise>
+     </xsl:choose>
+      <xsl:choose>
+       <xsl:when test="d_estimated_time != ''">
+        <span class="eta" title="{/root/labels/estimatedtimeremaining}">
+         <xsl:text>[</xsl:text>
+		  <xsl:value-of select="d_estimated_time/@value" />
+		 <xsl:text>]</xsl:text>
+        </span>
+       </xsl:when>
+      </xsl:choose>
+     </xsl:when>
+    </xsl:choose>
+   </td>
+   <td class="speed">
+    <xsl:choose>
+     <xsl:when test="d_up_rate/@value = '0.0'">
+      <span title="{/root/labels/uploadspeed}">
+       <xsl:value-of select="d_up_rate/@value" />
+       <xsl:text> </xsl:text>
+       <xsl:value-of select="d_up_rate/@suffix" />
+      </span>
+     </xsl:when>
+     <xsl:otherwise>
+      <span class="notzero" title="{/root/labels/uploadspeed}">
+       <xsl:value-of select="d_up_rate/@value" />
+       <xsl:text> </xsl:text>
+       <xsl:value-of select="d_up_rate/@suffix" />
+      </span>
+     </xsl:otherwise>
+    </xsl:choose>
+    <xsl:text> / </xsl:text>
+    <xsl:choose>
+     <xsl:when test="d_down_rate/@value = '0.0'">
+      <span title="{/root/labels/downloadspeed}">
+       <xsl:value-of select="d_down_rate/@value" />
+       <xsl:text> </xsl:text>
+       <xsl:value-of select="d_down_rate/@suffix" />
+      </span>
+     </xsl:when>
+     <xsl:otherwise>
+      <span class="notzero" title="{/root/labels/downloadspeed}">
+       <xsl:value-of select="d_down_rate/@value" />
+       <xsl:text> </xsl:text>
+       <xsl:value-of select="d_down_rate/@suffix" />
+      </span>
+     </xsl:otherwise>
+    </xsl:choose>
+   </td>
+   <td class="uploaded">
+    <span title="{/root/labels/uploadeddata}">
+     <xsl:value-of select="d_up_total/@value" />
+     <xsl:text> </xsl:text>
+     <xsl:value-of select="d_up_total/@suffix" />
+    </span>
+   </td>
+   <td class="priority">
+    <select class="whiteselect" name="priority" title="{/root/labels/selectpriority}" onchange="window.location='{/root/iurl}?mod=changepriority&amp;hash={d_hash}&amp;priority='+this.value;">
+     <xsl:choose>
+      <xsl:when test="d_priority = 0">
+       <option value="0" title="{/root/labels/off}" selected="selected"><xsl:value-of select="/root/labels/off" /></option>
+       <option value="1" title="{/root/labels/low}"><xsl:value-of select="/root/labels/low" /></option>
+       <option value="2" title="{/root/labels/normal}"><xsl:value-of select="/root/labels/normal" /></option>
+       <option value="3" title="{/root/labels/high}"><xsl:value-of select="/root/labels/high" /></option>
+      </xsl:when>
+      <xsl:when test="d_priority = 1">
+       <option value="0" title="{/root/labels/off}"><xsl:value-of select="/root/labels/off" /></option>
+       <option value="1" title="{/root/labels/low}" selected="selected"><xsl:value-of select="/root/labels/low" /></option>
+       <option value="2" title="{/root/labels/normal}"><xsl:value-of select="/root/labels/normal" /></option>
+       <option value="3" title="{/root/labels/high}"><xsl:value-of select="/root/labels/high" /></option>
+      </xsl:when>
+      <xsl:when test="d_priority = 3">
+       <option value="0" title="{/root/labels/off}"><xsl:value-of select="/root/labels/off" /></option>
+       <option value="1" title="{/root/labels/low}"><xsl:value-of select="/root/labels/low" /></option>
+       <option value="2" title="{/root/labels/normal}"><xsl:value-of select="/root/labels/normal" /></option>
+       <option value="3" title="{/root/labels/high}" selected="selected"><xsl:value-of select="/root/labels/high" /></option>
+      </xsl:when>
+      <xsl:otherwise>
+       <option value="0" title="{/root/labels/off}"><xsl:value-of select="/root/labels/off" /></option>
+       <option value="1" title="{/root/labels/low}"><xsl:value-of select="/root/labels/low" /></option>
+       <option value="2" title="{/root/labels/normal}" selected="selected"><xsl:value-of select="/root/labels/normal" /></option>
+       <option value="3" title="{/root/labels/high}"><xsl:value-of select="/root/labels/high" /></option>
+      </xsl:otherwise>
+     </xsl:choose>
+    </select>
+   </td>
+  </tr>
+ </xsl:template>
+
+ <xsl:template match="torrent_info_root">
+  <xsl:apply-templates select="torrent_info" />
+ </xsl:template>
+
+ <xsl:template match="torrent_info">
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/name" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_name" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/infohash" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_hash" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/localid" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_local_id" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/localidhtml" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_local_id_html" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/directory" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_directory/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/tiedtofile" />
+   </div>
+   <div class="inforight">
+    <xsl:choose>
+     <xsl:when test="d_tied_to_file != ''">
+      <xsl:value-of select="d_tied_to_file/@value" />
+     </xsl:when>
+     <xsl:otherwise>
+      <xsl:value-of select="/root/labels/no" />
+     </xsl:otherwise>
+    </xsl:choose>
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/filestats" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_multi_file/@value" />
+    <xsl:choose>
+     <xsl:when test="d_multi_file != 0">
+      <xsl:text> </xsl:text>
+      <xsl:value-of select="d_size_files" />
+      <xsl:text> </xsl:text>
+      <xsl:value-of select="/root/labels/files" />
+     </xsl:when>
+    </xsl:choose>
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/private" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_private/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/chunks" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_completed_chunks" />
+    <xsl:text> / </xsl:text>
+    <xsl:value-of select="d_chunks_hashed" />
+    <xsl:text> * </xsl:text>
+    <xsl:value-of select="d_chunk_size/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_chunk_size/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/priority" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_priority/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/statechanged" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_state_changed/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/freediskspace" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_free_diskspace/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_free_diskspace/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/connectiontype" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_connection_current/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/trackers" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_tracker_size" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/peersconnected" />
+   </div>
+   <div class="inforight">
+    <span title="{/root/labels/dminpeers}: {d_peers_min} - {/root/labels/dmaxpeers}: {d_peers_max}">
+     <xsl:value-of select="d_peers_connected" />
+    </span>
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/leechers" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_peers_accounted" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/seeders" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_peers_complete" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/pexenabled" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_pex_active/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/pexsize" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_size_pex" />
+    <xsl:text> / </xsl:text>
+    <xsl:value-of select="d_max_size_pex" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/upload" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_up_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_up_rate/@suffix" />
+    <xsl:text> / </xsl:text>
+    <xsl:value-of select="d_up_total/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_up_total/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/download" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_down_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_down_rate/@suffix" />
+    <xsl:text> / </xsl:text>
+    <xsl:value-of select="d_down_total/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_down_total/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/skipped" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="d_skip_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_skip_rate/@suffix" />
+    <xsl:text> / </xsl:text>
+    <xsl:value-of select="d_skip_total/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="d_skip_total/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </div>
+ </xsl:template>
+
+ <xsl:template match="torrent_files_root">
+  <xsl:apply-templates select="torrent_files" />
+ </xsl:template>
+
+ <xsl:template match="torrent_files">
+  <xsl:apply-templates select="files_root" />
+ </xsl:template>
+
+ <xsl:template match="torrent_trackers_root">
+  <xsl:apply-templates select="torrent_trackers" />
+ </xsl:template>
+
+ <xsl:template match="torrent_trackers">
+  <xsl:apply-templates select="tracker" />
+ </xsl:template>
+
+ <xsl:template match="torrent_peers_root">
+  <xsl:apply-templates select="torrent_peers" />
+ </xsl:template>
+
+ <xsl:template match="torrent_peers">
+  <li class="phead">
+   <div class="paddress">
+    <xsl:value-of select="/root/labels/address" />
+   </div>
+   <div class="pup">
+    <xsl:value-of select="/root/labels/up_rate" />
+   </div>
+   <div class="pdown">
+    <xsl:value-of select="/root/labels/down_rate" />
+   </div>
+   <div class="prate">
+    <xsl:value-of select="/root/labels/peer_rate" />
+   </div>
+   <div class="pdone">
+    <xsl:value-of select="/root/labels/pdone" />
+   </div>
+   <div class="pincoming">
+    <xsl:value-of select="/root/labels/incoming" />
+   </div>
+   <div class="pencrypted">
+    <xsl:value-of select="/root/labels/encrypted" />
+   </div>
+   <div class="pclient">
+    <xsl:value-of select="/root/labels/pclientversion" />
+   </div>
+   <div class="clr"></div>
+  </li>
+  <xsl:apply-templates select="peer" />
+ </xsl:template>
+
+ <xsl:template match="server_info">
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/hostname" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="hostname" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/pid" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="pid" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/clientversion" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="client_version" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/libraryversion" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="library_version" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/workingdirectory" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="get_cwd" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/downloaddirectory" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="directory/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/sessiondirectory" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="session/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/listeningipaddress" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="bind/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/reportedipaddress" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="ip/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/portopened" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="port_open/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/randomport" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="port_random/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/portrange" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="port_range/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/udptrackers" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="use_udp_trackers/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <xsl:choose>
+   <xsl:when test="/root/allow_dht = 'true'">
+    <xsl:choose>
+     <xsl:when test="dht_statistics_active = 0">
+      <div class="line spacer">
+       <div class="infoleft">
+        <xsl:value-of select="/root/labels/dht" />
+       </div>
+       <div class="inforight" onmouseover="this.style.cursor='pointer';" onclick="RTWI.toggle('serverinfo_info_restore');">
+        <form class="changedhtstatusform" name="changedhtstatusform" method="post" action="{/root/iurl}?mod=changedhtstatus">
+         <span id="changedhtselect">
+          <select class="whiteselect" name="dhtstatus" title="{/root/labels/changedhtstatus}" onchange="window.location='{/root/iurl}?mod=changedhtstatus&amp;dhtstatus='+this.value;">
+           <option value="0" title="{/root/labels/stopped}" selected="selected"><xsl:value-of select="/root/labels/stopped" /></option>
+           <option value="1" title="{/root/labels/start}"><xsl:value-of select="/root/labels/start" /></option>
+          </select>
+         </span>
+         <noscript>
+          <input class="submit" type="submit" name="{/root/labels/ok}" value="{/root/labels/ok}" title="{/root/labels/ok}" />
+         </noscript>
+         <span id="changedht" title="{/root/labels/clicktochange}">
+          <xsl:value-of select="dht_statistics_active/@value" />
+         </span>
+        </form>
+       </div>
+       <div class="clr"></div>
+      </div>
+     </xsl:when>
+     <xsl:otherwise>
+      <div class="line">
+       <div class="infoleft">
+        <xsl:value-of select="/root/labels/dht" />
+       </div>
+       <div class="inforight" onmouseover="this.style.cursor='pointer';" onclick="RTWI.toggle('serverinfo_info_restore');">
+        <form class="changedhtstatusform" name="changedhtstatusform" method="post" action="{/root/iurl}?mod=changedhtstatus">
+         <span id="changedhtselect">
+          <select class="whiteselect" name="dhtstatus" title="{/root/labels/changedhtstatus}" onchange="window.location='{/root/iurl}?mod=changedhtstatus&amp;dhtstatus='+this.value;">
+           <option value="0" title="{/root/labels/stop}"><xsl:value-of select="/root/labels/stop" /></option>
+           <option value="1" title="{/root/labels/started}" selected="selected"><xsl:value-of select="/root/labels/started" /></option>
+          </select>
+         </span>
+         <noscript>
+          <input class="submit" type="submit" name="{/root/labels/ok}" value="{/root/labels/ok}" title="{/root/labels/ok}" />
+         </noscript>
+         <span id="changedht" title="{/root/labels/clicktochange}">
+          <xsl:value-of select="dht_statistics_active/@value" />
+         </span>
+        </form>
+       </div>
+       <div class="clr"></div>
+      </div>
+      <div class="line">
+       <div class="infoleft">
+        <xsl:value-of select="/root/labels/dhtport" />
+       </div>
+       <div class="inforight">
+        <xsl:value-of select="dht_port" />
+       </div>
+       <div class="clr"></div>
+      </div>
+      <div class="line">
+       <div class="infoleft">
+        <xsl:value-of select="/root/labels/dhtcycle" />
+       </div>
+       <div class="inforight">
+        <xsl:value-of select="dht_statistics_cycle" />
+       </div>
+       <div class="clr"></div>
+      </div>
+      <div class="line">
+       <div class="infoleft">
+        <xsl:value-of select="/root/labels/dhtqueries" />
+       </div>
+       <div class="inforight">
+        <xsl:value-of select="dht_statistics_queries_received" />
+        <xsl:text> / </xsl:text>
+        <xsl:value-of select="dht_statistics_queries_sent" />
+       </div>
+       <div class="clr"></div>
+      </div>
+      <div class="line">
+       <div class="infoleft">
+        <xsl:value-of select="/root/labels/dhtreplies" />
+       </div>
+       <div class="inforight">
+        <xsl:value-of select="dht_statistics_replies_received" />
+       </div>
+       <div class="clr"></div>
+      </div>
+      <div class="line">
+       <div class="infoleft">
+        <xsl:value-of select="/root/labels/dhtbytes" />
+       </div>
+       <div class="inforight">
+        <xsl:value-of select="dht_statistics_bytes_read/@value" />
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="dht_statistics_bytes_read/@suffix" />
+        <xsl:text> / </xsl:text>
+        <xsl:value-of select="dht_statistics_bytes_written/@value" />
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="dht_statistics_bytes_written/@suffix" />
+       </div>
+       <div class="clr"></div>
+      </div>
+      <div class="line">
+       <div class="infoleft">
+        <xsl:value-of select="/root/labels/dhtnodes" />
+       </div>
+       <div class="inforight">
+        <xsl:value-of select="dht_statistics_nodes" />
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="/root/labels/in" />
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="dht_statistics_buckets" />
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="/root/labels/buckets" />
+       </div>
+       <div class="clr"></div>
+      </div>
+      <div class="line">
+       <div class="infoleft">
+        <xsl:value-of select="/root/labels/dhtpeers" />
+       </div>
+       <div class="inforight">
+        <xsl:value-of select="dht_statistics_peers" />
+        <xsl:text> (</xsl:text>
+        <xsl:value-of select="/root/labels/highest" />
+        <xsl:text>: </xsl:text>
+        <xsl:value-of select="dht_statistics_peers_max" />
+        <xsl:text>)</xsl:text>
+       </div>
+       <div class="clr"></div>
+      </div>
+      <div class="line spacer">
+       <div class="infoleft">
+        <xsl:value-of select="/root/labels/dhttorrents" />
+       </div>
+       <div class="inforight">
+        <xsl:value-of select="dht_statistics_torrents" />
+       </div>
+       <div class="clr"></div>
+      </div>
+     </xsl:otherwise>
+    </xsl:choose>
+   </xsl:when>
+  </xsl:choose>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/maxuploads" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="max_uploads/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/minpeers" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="min_peers/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/maxpeers" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="max_peers/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/memoryusage" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="memory_usage/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="memory_usage/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line spacer">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/maxmemoryusage" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="max_memory_usage/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="max_memory_usage/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/hashcheck" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="check_hash/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/safesync" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="safe_sync/@value" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/sendbuffer" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="receive_buffer_size/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="receive_buffer_size/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </div>
+  <div class="line">
+   <div class="infoleft">
+    <xsl:value-of select="/root/labels/receivebuffer" />
+   </div>
+   <div class="inforight">
+    <xsl:value-of select="receive_buffer_size/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="receive_buffer_size/@suffix" />
+   </div>
+   <div class="clr"></div>
+  </div>
+ </xsl:template>
+
+ <xsl:template match="files_root">
+  <xsl:apply-templates select="directory" />
+  <xsl:apply-templates select="file" />
+ </xsl:template>
+
+ <xsl:template match="directory">
+  <li>
+   <div class="dopenlink">
+    <a title="{/root/labels/clicktoopenclose}" onmouseover="this.style.cursor='pointer';" onclick="if ( this.parentNode.parentNode.getElementsByTagName( 'ul' ).item( 0 ).style.display == '' ) {{ this.parentNode.parentNode.getElementsByTagName( 'ul' ).item( 0 ).style.display = 'none' }} else {{ this.parentNode.parentNode.getElementsByTagName( 'ul' ).item( 0 ).style.display = '' }};"><xsl:value-of select="@dirname" /></a>
+   </div>
+   <div class="dpriority">
+    <form class="changedirpriorityform" name="changedirpriorityform_{@id}" method="post" action="{/root/iurl}?mod=changedirpriority&amp;hash={/root/hash}&amp;dir={@dirpath}">
+     <select class="whiteselect" name="dirpriority" title="{/root/labels/selectdirpriority}" onchange="window.location='{/root/iurl}?mod=changedirpriority&amp;hash={/root/hash}&amp;dir={@dirpath}&amp;dirpriority='+this.value;">
+      <option value="-1" title="{/root/labels/selectone}" selected="selected"><xsl:value-of select="/root/labels/selectone" /></option>
+      <option value="0" title="{/root/labels/off}"><xsl:value-of select="/root/labels/off" /></option>
+      <option value="1" title="{/root/labels/normal}"><xsl:value-of select="/root/labels/normal" /></option>
+      <option value="2" title="{/root/labels/high}"><xsl:value-of select="/root/labels/high" /></option>
+     </select>
+     <noscript>
+      <input class="submit" type="submit" name="{/root/labels/ok}" value="{/root/labels/ok}" title="{/root/labels/ok}" />
+     </noscript>
+    </form>
+   </div>
+   <div class="clr"></div>
+   <xsl:choose>
+    <xsl:when test="/root/allow_hidedirtree = 'true'">
+     <ul class="directory">
+      <xsl:apply-templates select="directory" />
+      <xsl:apply-templates select="file" />
+     </ul>
+    </xsl:when>
+    <xsl:otherwise>
+     <ul class="directory nohide">
+      <xsl:apply-templates select="directory" />
+      <xsl:apply-templates select="file" />
+     </ul>
+    </xsl:otherwise>
+   </xsl:choose>
+  </li>
+ </xsl:template>
+
+ <xsl:template match="file">
+  <li onmouseover="this.style.background='#eeeeee';" onmouseout="this.style.background='';">
+   <div class="fname">
+    <span title="{/root/labels/lasttouched}: {f_last_touched}">
+     <xsl:value-of select="@filename" />
+    </span>
+   </div>
+   <div class="fpercentage">
+    <span title="{f_percentage/@value} {/root/labels/percentcompleted}">
+     <xsl:text>[</xsl:text>
+     <xsl:value-of select="f_percentage/@value" />
+     <xsl:text> %]</xsl:text>
+    </span>
+   </div>
+   <div class="fpriority">
+    <form class="changefilepriorityform" name="changefilepriorityform_{@id}" method="post" action="{/root/iurl}?mod=changefilepriority&amp;hash={/root/hash}&amp;id={@id}">
+     <select class="whiteselect" name="filepriority" title="{/root/labels/selectfilepriority}" onchange="window.location='{/root/iurl}?mod=changefilepriority&amp;hash={/root/hash}&amp;id={@id}&amp;filepriority='+this.value;">
+      <xsl:choose>
+       <xsl:when test="f_priority = 0">
+        <option value="0" title="{/root/labels/off}" selected="selected"><xsl:value-of select="/root/labels/off" /></option>
+        <option value="1" title="{/root/labels/normal}"><xsl:value-of select="/root/labels/normal" /></option>
+        <option value="2" title="{/root/labels/high}"><xsl:value-of select="/root/labels/high" /></option>
+       </xsl:when>
+       <xsl:when test="f_priority = 2">
+        <option value="0" title="{/root/labels/off}"><xsl:value-of select="/root/labels/off" /></option>
+        <option value="1" title="{/root/labels/normal}"><xsl:value-of select="/root/labels/normal" /></option>
+        <option value="2" title="{/root/labels/high}" selected="selected"><xsl:value-of select="/root/labels/high" /></option>
+       </xsl:when>
+       <xsl:otherwise>
+        <option value="0" title="{/root/labels/off}"><xsl:value-of select="/root/labels/off" /></option>
+        <option value="1" title="{/root/labels/normal}" selected="selected"><xsl:value-of select="/root/labels/normal" /></option>
+        <option value="2" title="{/root/labels/high}"><xsl:value-of select="/root/labels/high" /></option>
+       </xsl:otherwise>
+      </xsl:choose>
+     </select>
+     <noscript>
+      <input class="submit" type="submit" name="{/root/labels/ok}" value="{/root/labels/ok}" title="{/root/labels/ok}" />
+     </noscript>
+    </form>
+   </div>
+   <div class="fsize">
+    <span title="{/root/labels/filesize}">
+     <xsl:value-of select="f_size_bytes/@value" />
+     <xsl:text> </xsl:text>
+     <xsl:value-of select="f_size_bytes/@suffix" />
+    </span>
+   </div>
+   <div class="fchunks">
+    <span title="{/root/labels/chunks}">
+     <xsl:choose>
+      <xsl:when test="f_range_first != f_range_second">
+       <xsl:value-of select="f_range_first" />
+       <xsl:text> - </xsl:text>
+       <xsl:value-of select="f_range_second" />
+      </xsl:when>
+      <xsl:otherwise>
+       <xsl:value-of select="f_range_first" />
+      </xsl:otherwise>
+     </xsl:choose>
+    </span>
+   </div>
+   <xsl:choose>
+    <xsl:when test="f_percentage = 1 and /root/allow_download = 'true'">
+     <div class="fdownload">
+      <a href="?mod=getfile&amp;hash={/root/hash}&amp;id={@id}" title="{/root/labels/downloadfile}"><xsl:value-of select="/root/labels/download" /></a>
+     </div>
+    </xsl:when>
+   </xsl:choose>
+   <div class="clr"></div>
+  </li>
+ </xsl:template>
+
+ <xsl:template match="dlpath">
+  <li onmouseover="this.style.background='#eeeeee';" onmouseout="this.style.background='';">
+   <div class="tufpath">
+    <a href="?mod=addtorrent&amp;path={@path}">
+     <xsl:value-of select="@name" />
+    </a>
+   </div>
+   <div class="tufspace">
+    <xsl:value-of select="@freespace_value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="@freespace_suffix" />
+   </div>
+   <div class="clr"></div>
+  </li>
+ </xsl:template>
+
+ <xsl:template match="tracker">
+  <li>
+   <ul>
+    <li>
+     <div class="tgroup">
+      <span title="{/root/labels/trackergroup}">
+       <xsl:value-of select="t_group" />
+       <xsl:text>:</xsl:text>
+      </span>
+     </div>
+     <div class="turl">
+      <span title="{/root/labels/type}: {t_type/@value}">
+       <xsl:value-of select="t_url" />
+      </span>
+     </div>
+     <div class="clr"></div>
+    </li>
+    <li>
+     <div class="tfocus">
+      <xsl:choose>
+       <xsl:when test="root/tottents/torrent_trackers_root/torrent_trackers/d_tracker_focus = @id">
+        <xsl:value-of select="/root/labels/focus" />
+        <xsl:text>: </xsl:text>
+        <xsl:value-of select="/root/labels/yes" />
+       </xsl:when>
+       <xsl:otherwise>
+        <xsl:value-of select="/root/labels/focus" />
+        <xsl:text>: </xsl:text>
+        <xsl:value-of select="/root/labels/no" />
+       </xsl:otherwise>
+      </xsl:choose>
+     </div>
+     <div class="tenabled">
+      <form class="changetrackerenabledform" name="changetrackerenabledform_{@id}" method="post" action="{/root/iurl}?mod=changetrackerenabled&amp;hash={/root/hash}&amp;id={@id}">
+       <xsl:value-of select="/root/labels/enabled" />
+       <xsl:text>: </xsl:text>
+       <select class="whiteselect" name="trackerenabled" title="{/root/labels/selecttrackerenabled}" onchange="window.location='{/root/iurl}?mod=changetrackerenabled&amp;hash={/root/hash}&amp;id={@id}&amp;trackerenabled='+this.value;">
+        <xsl:choose>
+         <xsl:when test="t_enabled = 0">
+          <option value="1" title="{/root/labels/yes}"><xsl:value-of select="/root/labels/yes" /></option>
+          <option value="0" title="{/root/labels/no}" selected="selected"><xsl:value-of select="/root/labels/no" /></option>
+         </xsl:when>
+         <xsl:otherwise>
+          <option value="1" title="{/root/labels/yes}" selected="selected"><xsl:value-of select="/root/labels/yes" /></option>
+          <option value="0" title="{/root/labels/no}"><xsl:value-of select="/root/labels/no" /></option>
+         </xsl:otherwise>
+        </xsl:choose>
+       </select>
+       <noscript>
+        <input class="submit" type="submit" name="submit" value="{/root/labels/ok}" title="{/root/labels/ok}" />
+       </noscript>
+      </form>
+     </div>
+     <div class="topen">
+      <xsl:value-of select="/root/labels/opened" />
+      <xsl:text>: </xsl:text>
+      <xsl:choose>
+       <xsl:when test="t_open != 0">
+        <xsl:value-of select="/root/labels/yes" />
+       </xsl:when>
+       <xsl:otherwise>
+        <xsl:value-of select="/root/labels/no" />
+       </xsl:otherwise>
+      </xsl:choose>
+     </div>
+     <div class="tpeers">
+      <xsl:value-of select="/root/labels/seedersleechers" />
+      <xsl:text>: </xsl:text>
+      <xsl:value-of select="t_scrape_complete" />
+      <xsl:text> / </xsl:text>
+      <xsl:value-of select="t_scrape_incomplete" />
+     </div>
+     <div class="clr"></div>
+    </li>
+    <li>
+     <div class="tscrape">
+      <span title="{/root/labels/mininterval}: {t_min_interval/@value} - Normal interval: {t_normal_interval/@value}">
+       <xsl:value-of select="/root/labels/lasttimescraped" />
+       <xsl:text>: </xsl:text>
+       <xsl:value-of select="t_scrape_time_last/@value" />
+      </span>
+     </div>
+     <div class="clr"></div>
+    </li>
+   </ul>
+  </li>
+ </xsl:template>
+
+ <xsl:template match="peer">
+  <li>
+   <div class="paddress">
+    <xsl:choose>
+     <xsl:when test="p_country != ''">
+      <img src="flags/{p_country}.gif" alt="flag" title="{p_country/@value}" />
+     </xsl:when>
+    </xsl:choose>
+    <xsl:value-of select="p_address" />
+   </div>
+   <div class="pup">
+    <xsl:value-of select="p_up_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="p_up_rate/@suffix" />
+   </div>
+   <div class="pdown">
+    <xsl:value-of select="p_down_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="p_down_rate/@suffix" />
+   </div>
+   <div class="prate">
+    <xsl:value-of select="p_peer_rate/@value" />
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="p_peer_rate/@suffix" />
+   </div>
+   <div class="pdone">
+    <xsl:value-of select="p_completed_percent" />
+    <xsl:text> %</xsl:text>
+   </div>
+   <div class="pincoming">
+    <xsl:value-of select="p_incoming/@value" />
+   </div>
+   <div class="pencrypted">
+    <xsl:value-of select="p_encrypted/@value" />
+   </div>
+   <div class="pclient">
+    <xsl:value-of select="p_client_version" />
+   </div>
+   <div class="clr"></div>
+  </li>
+ </xsl:template>
+
+</xsl:stylesheet>
Index: themes/WordPressWidefat/layout.main.login.xsl
===================================================================
--- themes/WordPressWidefat/layout.main.login.xsl	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
+++ themes/WordPressWidefat/layout.main.login.xsl	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -0,0 +1,101 @@
+<xsl:stylesheet version="1.1"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                lang="en">
+ <xsl:output method="xml"
+             indent="no"
+             encoding="utf-8"
+             doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
+             doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
+
+ <xsl:template match="root">
+  <html xml:lang="{language}" lang="{language}">
+   <head>
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+    <meta http-equiv="content-language" content="{language}" />
+    <meta http-equiv="cache-control" content="no-store, no-cache, must-revalidate, post-check=0, pre-check=0" />
+    <meta http-equiv="pragma" content="no-cache" />
+    <meta http-equiv="expires" content="thu, 1 jan 1970 00:00:00 gmt" />
+    <meta http-equiv="imagetoolbar" content="no" />  
+    <meta name="author" content="{labels/author}" />
+    <meta name="description" content="{labels/description}" />
+    <meta name="doc-type" content="web page" />
+    <meta name="rating" content="general" />
+    <meta name="robots" content="noindex, nofollow" />
+    <link rel="stylesheet" type="text/css" href="themes/WordPressWidefat/inc/style.css" />
+    <link rel="icon" type="image/x-icon" href="{favicon_url}" />
+    <title><xsl:value-of select="labels/title" /></title>
+   </head>
+   <body onload="document.getElementById( 'lfname' ).focus();">
+    <div id="top">
+    </div>
+    <div id="loginbox">
+     <xsl:apply-templates select="err" />
+     <xsl:apply-templates select="languages" />
+     <form id="login" method="post" action="{iurl}?mod=login">
+      <ul>
+       <li>
+        <div class="lftitle"><xsl:value-of select="labels/username" />:</div>
+        <div class="lffield">
+         <input id="lfname" type="text" title="{labels/username}" name="loginname" />
+        </div>
+       </li>
+       <li>
+        <div class="lftitle"><xsl:value-of select="labels/password" />:</div>
+        <div class="lffield">
+         <input id="lfpass" type="password" title="{labels/password}" name="loginpass" />
+        </div>
+       </li>
+       <li>
+        <div class="lftitle"><xsl:value-of select="labels/rememberme" />:</div>
+        <div class="lffield">
+         <input id="lfremember" type="checkbox" title="{labels/rememberme}" name="rememberme" />
+        </div>
+       </li>
+       <li class="formsend">
+        <input class="inputok" type="submit" title="{labels/login}" name="loginok" value="{labels/login}" />
+       </li>
+      </ul>
+     </form>
+    </div>
+    <div id="footer">
+     <span><a href="https://rtwi.jmk.hu/" title="{labels/homepage}"><xsl:value-of select="labels/homepage" /></a> (rTWi: <span title="build: {rtwi_version/build_number}"><xsl:value-of select="rtwi_version/version" /></span> - <xsl:value-of select="rtwi_version/released" />)</span>
+    </div>
+   </body>
+  </html>
+ </xsl:template>
+
+ <xsl:template match="err">
+  <div id="err">
+   <span title="clicktohide" onmouseover="this.style.cursor='pointer';" onclick="document.getElementById( 'err' ).style.display='none';">
+    <xsl:value-of select="errmsg" />
+   </span>
+  </div>
+ </xsl:template>
+
+ <xsl:template match="languages">
+  <form id="changelanguageform" name="changelanguageform" method="post" action="{/root/iurl}?mod=changelanguage">
+   <xsl:text>[</xsl:text>
+   <xsl:value-of select="/root/labels/language" />
+   <xsl:text>: </xsl:text>
+   <select class="whiteselect" name="language" title="{/root/labels/selectlanguage}" onchange="window.location='{/root/iurl}?mod=changelanguage&amp;language='+this.value;">
+    <xsl:apply-templates select="language" />
+   </select>
+   <noscript>
+    <input class="submit" id="lsubmit" type="submit" name="lsubmit" title="{/root/labels/ok}" value="{/root/labels/ok}" />
+   </noscript>
+   <xsl:text>]</xsl:text>
+  </form>
+ </xsl:template>
+
+ <xsl:template match="language">
+  <xsl:choose>
+   <xsl:when test="/root/@language = @value">
+    <option value="{@value}" title="{@title}" selected="selected"><xsl:value-of select="@title" /></option>
+   </xsl:when>
+   <xsl:otherwise>
+    <option value="{@value}" title="{@title}"><xsl:value-of select="@title" /></option>
+   </xsl:otherwise>
+  </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>
Index: themes/WordPressWidefat/maradek.txt
===================================================================
--- themes/WordPressWidefat/maradek.txt	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
+++ themes/WordPressWidefat/maradek.txt	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -0,0 +1,19 @@
+<!-- az arányt most nem jelenítem meg... -->
+   <div class="tratio">
+    <xsl:text>[</xsl:text>
+    <xsl:choose>
+     <xsl:when test="d_tied_to_file != ''">
+      <span title="{/root/labels/tiedtofile}">T</span>
+     </xsl:when>
+    </xsl:choose>
+    <xsl:choose>
+     <xsl:when test="d_ignore_commands != 0">
+      <span title="{/root/labels/ignoringcommands}">I</span>
+     </xsl:when>
+    </xsl:choose>
+    <span title="{/root/labels/ratio}">
+     <xsl:text> R: </xsl:text>
+     <xsl:value-of select="d_ratio/@value" />
+    </span>
+    <xsl:text>]</xsl:text>
+   </div>
Index: themes/default_ajax/layout.main.index.xsl
===================================================================
--- themes/default_ajax/layout.main.index.xsl	(revision 31d944cc08512af287aadc53b7ff41829125f3b0)
+++ themes/default_ajax/layout.main.index.xsl	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -1,3 +1,3 @@
-﻿<xsl:stylesheet version="1.1"
+<xsl:stylesheet version="1.1"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 lang="en">
@@ -30,4 +30,5 @@
     <script type="text/javascript" src="themes/default_ajax/inc/afunc.js"></script>
     <script type="text/javascript" src="themes/default_ajax/inc/hfunc.js"></script>
+    <link rel="icon" type="image/x-icon" href="/rtwi/favicon.ico" />
     <title><xsl:value-of select="labels/title" /></title>
    </head>
Index: themes/default_ajax/layout.main.login.xsl
===================================================================
--- themes/default_ajax/layout.main.login.xsl	(revision 31d944cc08512af287aadc53b7ff41829125f3b0)
+++ themes/default_ajax/layout.main.login.xsl	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -1,3 +1,3 @@
-﻿<xsl:stylesheet version="1.1"
+<xsl:stylesheet version="1.1"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 lang="en">
@@ -23,4 +23,5 @@
     <meta name="robots" content="noindex, nofollow" />
     <link rel="stylesheet" type="text/css" href="themes/default_ajax/inc/style.css" />
+    <link rel="icon" type="image/x-icon" href="/rtwi/favicon.ico" />
     <title><xsl:value-of select="labels/title" /></title>
    </head>
Index: version.php
===================================================================
--- version.php	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
+++ version.php	(revision 4206d6425f22a2b8a0129aec742e755a71fa7287)
@@ -0,0 +1,5 @@
+<?php
+// source: https://rtwi.jmk.hu/wiki/Download (filenames)
+$rtwi_version = '0.3.8';
+$rtwi_build = '160313';
+$rtwi_released = '2016-03-13';
