4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5
<html xmlns="http://www.w3.org/1999/xhtml">
8
<title>ktorrent web interface</title>
9
<link rel="stylesheet" href="style.css" type="text/css" />
10
<meta name="GENERATOR" content="Quanta Plus" />
11
<meta http-equiv="Content-Type" content="text/html"/>
12
<script type="text/javascript" src="page_update.js"></script>
13
<script type="text/javascript" src="interface.js"></script>
16
<body onload="update_interval(<?php echo $refresh_rate; ?>);">
21
<img src="edit_user.png" alt="logout" /> <a href="login.html">Sign out</a>
24
<a href="interface.php">
25
<img src="icon.png" alt="reload" title="reload"
31
<img src="folder1.png" alt="icon" />
32
<a href="javascript:show('torrent_list');">Torrents</a>
35
<img src="configure.png" alt="icon" />
36
<a href="javascript:show('preferences');">Preferences</a>
40
<img src="fileopen.png" alt="icon" />
41
<a href="javascript:show('torrent_add');">Add torrent</a>
44
<img src="extender_opened.png" alt="exit" />
45
<a href="javascript:show('action');">Action</a>
50
<table id="status_bar_table"><tr><td></td></tr></table>
56
<div id="torrent_list">
57
<table id="torrent_list_table" class="list_table">
58
<tr><td></td></tr><!--let's be XHTML valid-->
61
<div id="bottom-menu">
64
<img src="ktstart_all.png" alt="" />
66
<a href="interface.php?startall=true">Start all</a>
70
<img src="ktstop_all.png" alt="" />
72
<a href="interface.php?stopall=true">Stop all</a>
83
<!-- Torrent's details -->
84
<div id="torrents_details" style="display : none;">
85
<table id="torrents_details_files" class="list_table">
86
<tr><td></td></tr><!--let's be XHTML valid-->
89
<!-- end torrent's details -->
93
<div id="preferences" style="display : none;">
95
<form action="interface.php" method="get">
96
<div class="simple_form">
97
<img src="down.png" alt="" />
101
<?php $globalinfo = globalinfo() ?>
102
<div class="item" style="margin-top : 0em;">
105
<input type="text" name="maximum_upload_rate"
106
value="<?php echo $globalinfo['max_upload_speed']; ?>" />
113
<input type="text" name="maximum_download_rate"
114
value="<?php echo $globalinfo['max_download_speed']; ?>" />
121
<input type="text" name="maximum_downloads"
122
value="<?php echo $globalinfo['max_downloads']; ?>" />
129
<div style="display : inline;">
130
<input type="text" name="maximum_seeds"
131
value="<?php echo $globalinfo['max_seeds']; ?>" />
137
<div class="simple_form" style="margin-top : 1em;" >
138
<img src="looknfeel.png" alt="" />
140
<h2>Web interface</h2>
143
Note: Disabled for now. If you insist, change $refresh_rate in the file interface.php
148
$refresh_options = array(
152
'10' => '10 seconds',
153
'30' => '30 seconds',
157
echo '<div class="option">';
158
echo '<select name="refresh_rate" disabled="disabled">';
159
foreach(array_keys($refresh_options) as $value) {
160
echo '<option value="'.$value.'"';
161
if ($refresh_rate == $value) {
162
echo ' selected="selected"';
164
echo '>'.$refresh_options[$value].'</option>';
173
<div style="margin-top : 1em; float : left; clear : both;">
174
<input type="submit" value="Submit preferences" class="buttons"/>
178
<!-- end preferences -->
182
<div id="torrent_add" style="display : none;">
183
<h2>Add a torrent</h2>
185
<div class="simple_form">
186
<img src="folder1_man.png" alt="" />
187
<h3>Load a torrent</h3>
189
<form action="interface.php" method="get">
193
<input type="text" name="load_torrent" style="width : 240px;" />
194
<br /><span>Example: http://ktorrent.org/down/latest.torrent</span>
196
<div style="margin-top : 1em;">
197
<input type="submit" value="Load Torrent" />
203
<h3 style="margin-top : 6em;">Upload a torrent</h3>
205
<form action="interface.php" method="post" enctype="multipart/form-data">
206
<div class="item" style="min-height : 5em;">
209
<div style="display : inline;">
210
<input type="file" name="load_torrent" style="width:240px;" />
213
<div style="margin-top : 1em;">
214
<input type="submit" name="Upload Torrent" value="Upload Torrent" />
221
<!-- end add torrent -->
225
<div id="action" style="display : none;">
226
<h2 style="margin-top : 0; padding-top : 0;">Actions</h2>
229
<img src="switchuser.png" alt="sign out" />
230
<span style="margin-left : 52px;">
231
<a href="login.html">Sign out</a></span>
237
<img src="exit.png" alt="quit" />
238
<span style="margin-left : 52px;">
239
<a href="shutdown.php?quit=quit" onclick="return validate('quit_program')">