From 9ad5c7b5e23b4940e7a3ea3ca3a6fb77e6a8fab0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 20 Jan 2010 02:37:40 +0000 Subject: Updated to final KDE3 ktorrent release (2.2.6) git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1077377 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- plugins/webinterface/www/mobile/Makefile.am | 8 ++ plugins/webinterface/www/mobile/favicon.ico | Bin 0 -> 1406 bytes plugins/webinterface/www/mobile/interface.php | 113 +++++++++++++++++++++ .../www/mobile/ktorrentwebinterfacelogo.png | Bin 0 -> 97320 bytes plugins/webinterface/www/mobile/login.html | 24 +++++ plugins/webinterface/www/mobile/remove.png | Bin 0 -> 1039 bytes plugins/webinterface/www/mobile/settings.php | 44 ++++++++ plugins/webinterface/www/mobile/start.png | Bin 0 -> 868 bytes plugins/webinterface/www/mobile/stop.png | Bin 0 -> 711 bytes plugins/webinterface/www/mobile/torrent.php | 91 +++++++++++++++++ 10 files changed, 280 insertions(+) create mode 100644 plugins/webinterface/www/mobile/Makefile.am create mode 100644 plugins/webinterface/www/mobile/favicon.ico create mode 100644 plugins/webinterface/www/mobile/interface.php create mode 100644 plugins/webinterface/www/mobile/ktorrentwebinterfacelogo.png create mode 100644 plugins/webinterface/www/mobile/login.html create mode 100644 plugins/webinterface/www/mobile/remove.png create mode 100644 plugins/webinterface/www/mobile/settings.php create mode 100644 plugins/webinterface/www/mobile/start.png create mode 100644 plugins/webinterface/www/mobile/stop.png create mode 100644 plugins/webinterface/www/mobile/torrent.php (limited to 'plugins/webinterface/www/mobile') diff --git a/plugins/webinterface/www/mobile/Makefile.am b/plugins/webinterface/www/mobile/Makefile.am new file mode 100644 index 0000000..3aae8b4 --- /dev/null +++ b/plugins/webinterface/www/mobile/Makefile.am @@ -0,0 +1,8 @@ +INCLUDES = -I$(srcdir)/../../libktorrent $(all_includes) +METASOURCES = AUTO + +ktdatadir = $(kde_datadir)/ktorrent/www/mobile + + + +ktdata_DATA = favicon.ico interface.php ktorrentwebinterfacelogo.png login.html remove.png start.png stop.png settings.php torrent.php diff --git a/plugins/webinterface/www/mobile/favicon.ico b/plugins/webinterface/www/mobile/favicon.ico new file mode 100644 index 0000000..3213b23 Binary files /dev/null and b/plugins/webinterface/www/mobile/favicon.ico differ diff --git a/plugins/webinterface/www/mobile/interface.php b/plugins/webinterface/www/mobile/interface.php new file mode 100644 index 0000000..57582de --- /dev/null +++ b/plugins/webinterface/www/mobile/interface.php @@ -0,0 +1,113 @@ + + +KTorrent WebInterface + + + + + + + + + + + + +
ktorrent->transfersrefresh
+
+ + + "; + $perc = round(100.0 - ($torrent['bytes_left_to_download'] / $torrent['total_bytes_to_download']) * 100.0, 2); + echo ""; + switch ($torrent['status']) { + case 0: + echo ""; + break; + case 1: + echo ""; + break; + case 2: + echo ""; + break; + case 3: + echo ""; + break; + case 4: + echo ""; + break; + case 5: + echo ""; + break; + case 6: + echo ""; + break; + case 7: + echo ""; + break; + case 8: + echo ""; + break; + case 9: + echo ""; + break; + case 10: + echo ""; + break; + default: + echo ""; + } + echo ""; + $a=$a+1; + echo ""; + } + ?> + + + + + + + + + Speed"; + echo ""; + echo ""; + ?> + + + + + + + + + + + + + + + + + + +
{$torrent['torrent_name']}Not StartedSeeding CompleteDownload CompleteSeedingDownloadingStalledStoppedAllocating DiskspaceErrorQueuedChecking DataNot supported Status$perc%
 
 
Down: {$globalinfo['download_speed']}Up: {$globalinfo['upload_speed']}
 
 
Start All Stop All
 Settings 
+
+ + +
+
+Local File: + +
+ + + + diff --git a/plugins/webinterface/www/mobile/ktorrentwebinterfacelogo.png b/plugins/webinterface/www/mobile/ktorrentwebinterfacelogo.png new file mode 100644 index 0000000..bc235b5 Binary files /dev/null and b/plugins/webinterface/www/mobile/ktorrentwebinterfacelogo.png differ diff --git a/plugins/webinterface/www/mobile/login.html b/plugins/webinterface/www/mobile/login.html new file mode 100644 index 0000000..359c44c --- /dev/null +++ b/plugins/webinterface/www/mobile/login.html @@ -0,0 +1,24 @@ + + + + + KTorrent WebInterface - Login + + + + + + +
+ + + + + + + + +
Username
Password
+ + + diff --git a/plugins/webinterface/www/mobile/remove.png b/plugins/webinterface/www/mobile/remove.png new file mode 100644 index 0000000..a7080ac Binary files /dev/null and b/plugins/webinterface/www/mobile/remove.png differ diff --git a/plugins/webinterface/www/mobile/settings.php b/plugins/webinterface/www/mobile/settings.php new file mode 100644 index 0000000..b763bb1 --- /dev/null +++ b/plugins/webinterface/www/mobile/settings.php @@ -0,0 +1,44 @@ + + +KTorrent WebInterface + + + + + + + + + + +
ktorrent->transfers->settingsrefresh
+ + +"; + echo ""; + echo ""; + echo ""; + echo " "; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo""; + echo ""; + echo ""; + echo ""; + echo""; + echo ""; + echo ""; +?> + +
Upload Speed (0 is no limit):
Download Speed (0 is no limit):
Maximum downloads (0 is no limit):
Maximum seeds (0 is no limit):
+ + + + diff --git a/plugins/webinterface/www/mobile/start.png b/plugins/webinterface/www/mobile/start.png new file mode 100644 index 0000000..ead5c73 Binary files /dev/null and b/plugins/webinterface/www/mobile/start.png differ diff --git a/plugins/webinterface/www/mobile/stop.png b/plugins/webinterface/www/mobile/stop.png new file mode 100644 index 0000000..7c6d824 Binary files /dev/null and b/plugins/webinterface/www/mobile/stop.png differ diff --git a/plugins/webinterface/www/mobile/torrent.php b/plugins/webinterface/www/mobile/torrent.php new file mode 100644 index 0000000..a1e451d --- /dev/null +++ b/plugins/webinterface/www/mobile/torrent.php @@ -0,0 +1,91 @@ + + +KTorrent WebInterface + + + + + + + ktorrent->transfers->{$t['torrent_name']}"; + echo ""; + ?> + + +
refresh
+ + + + "; + echo ""; + echo ""; + ?> + + +
+ + + "; + echo ""; + switch ($t['status']) { + case 0: + echo ""; + break; + case 1: + echo ""; + break; + case 2: + echo ""; + break; + case 3: + echo ""; + break; + case 4: + echo ""; + break; + case 5: + echo ""; + break; + case 6: + echo ""; + break; + case 7: + echo ""; + break; + case 8: + echo ""; + break; + case 9: + echo ""; + break; + case 10: + echo ""; + break; + default: + echo ""; + } + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + $perc = round(100.0 - ($t['bytes_left_to_download'] / $t['total_bytes_to_download']) * 100.0, 2); + echo ""; + echo ""; + ?> + +
Status: NOT_STARTEDSEEDING_COMPLETEDOWNLOAD_COMPLETESEEDINGDOWNLOADINGSTALLEDSTOPPEDALLOCATING_DISKSPACEERRORQUEUEDCHECKING_DATANot supported Status
Down speed: {$t['download_rate']}
Up speed: {$t['upload_rate']}
Complete: $perc %
+ + + -- cgit v1.2.1