summaryrefslogtreecommitdiffstats
path: root/plugins/webinterface/www
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/webinterface/www')
-rw-r--r--plugins/webinterface/www/coldmilk/page_update.js10
-rw-r--r--plugins/webinterface/www/coldmilk/rest.php4
-rw-r--r--plugins/webinterface/www/default/details.php4
-rw-r--r--plugins/webinterface/www/default/interface.php8
-rw-r--r--plugins/webinterface/www/default/wz_tooltip.js4
-rw-r--r--plugins/webinterface/www/mobile/interface.php4
-rw-r--r--plugins/webinterface/www/mobile/torrent.php6
7 files changed, 20 insertions, 20 deletions
diff --git a/plugins/webinterface/www/coldmilk/page_update.js b/plugins/webinterface/www/coldmilk/page_update.js
index c004456..dcbe62b 100644
--- a/plugins/webinterface/www/coldmilk/page_update.js
+++ b/plugins/webinterface/www/coldmilk/page_update.js
@@ -141,7 +141,7 @@ function update_status_bar(xmldoc) {
document.createTextNode("down: " + down + " / up: " + up));
}
var oldtable = document.getElementById('status_bar_table');
- oldtable.parentNode.replaceChild(newtable, oldtable);
+ oldtable.tqparentNode.replaceChild(newtable, oldtable);
}
function update_torrent_table(xmldoc) {
@@ -159,7 +159,7 @@ function update_torrent_table(xmldoc) {
_torrent_table_header(newtable.insertRow(0));
var oldtable = document.getElementById('torrent_list_table');
- oldtable.parentNode.replaceChild(newtable, oldtable);
+ oldtable.tqparentNode.replaceChild(newtable, oldtable);
}
function _torrent_table_row(torrent, table, i) {
@@ -327,7 +327,7 @@ function get_torrents_details(xmldoc) {
_torrent_table_header(newtable.insertRow(0));*/
var oldtable = document.getElementById('torrents_details_files');
- oldtable.parentNode.replaceChild(newtable, oldtable);
+ oldtable.tqparentNode.replaceChild(newtable, oldtable);
}
function _create_action_button(button_name, image_src, command) {
@@ -403,7 +403,7 @@ function _get_file_status_name(status_id)
}
function _torrents_details_header(row) {
- headers = new Array("Actions", "File", "Size", "Perc done", "Status");
+ headers = new Array("Actions", "File", "Size", "Perc done", "tqStatus");
for (var i in headers) {
var header = document.createElement("th");
header.appendChild(document.createTextNode(headers[i]));
@@ -414,7 +414,7 @@ function _torrents_details_header(row) {
function _torrent_table_header(row) {
headers = new Array(
- "Actions", "File", "Status",
+ "Actions", "File", "tqStatus",
"Speed", "Size", "Peers",
"Transferred", "% done"
);
diff --git a/plugins/webinterface/www/coldmilk/rest.php b/plugins/webinterface/www/coldmilk/rest.php
index bab7e68..a61cbfe 100644
--- a/plugins/webinterface/www/coldmilk/rest.php
+++ b/plugins/webinterface/www/coldmilk/rest.php
@@ -174,7 +174,7 @@ class RestInterface {
// Truncate long torrent name, and HTML escape it.
// This is a helper function for download_status.
private function _clean_name($name) {
- $name = str_replace("'", "\'", $name);
+ $name = str_tqreplace("'", "\'", $name);
if (strlen($name) > 30) {
$name = substr($name, 0, 27);
$name .= "...";
@@ -203,7 +203,7 @@ class RestInterface {
class KTorrentXML extends DomDocument {
private $root_element;
public function __construct($root, $value = null, $attributes = null) {
- parent::__construct('1.0');
+ tqparent::__construct('1.0');
$this->root_element = $this->createElement($root);
$this->appendChild($this->root_element);
$this->formatOutput = true;
diff --git a/plugins/webinterface/www/default/details.php b/plugins/webinterface/www/default/details.php
index a19d57e..92c8d48 100644
--- a/plugins/webinterface/www/default/details.php
+++ b/plugins/webinterface/www/default/details.php
@@ -1,5 +1,5 @@
<?php
-$stats=downloadStatus();
+$stats=downloadtqStatus();
$num_torrent=$_REQUEST['torrent'];
function cut_name_if_long($string)
@@ -61,7 +61,7 @@ $display_name=cut_name_if_long($stats[$num_torrent]['torrent_name']);
<tr>
<th>Actions</th>
<th>File</th>
- <th>Status</th>
+ <th>tqStatus</th>
<th>Size</th>
<th>Complete</th>
</tr>
diff --git a/plugins/webinterface/www/default/interface.php b/plugins/webinterface/www/default/interface.php
index 6432798..929bd94 100644
--- a/plugins/webinterface/www/default/interface.php
+++ b/plugins/webinterface/www/default/interface.php
@@ -1,6 +1,6 @@
<?php
$globalinfo=globalInfo();
-$stats=downloadStatus();
+$stats=downloadtqStatus();
function get_torrent_status_name($status_id)
{
@@ -18,7 +18,7 @@ function get_torrent_status_name($status_id)
10 => 'Checking Data'
);
if (array_key_exists($status_id, $table)) return $table[$status_id];
- else return 'Not supported Status';
+ else return 'Not supported tqStatus';
}
function generate_button_code($img, $alt, $href='')
@@ -104,7 +104,7 @@ function generate_button_code($img, $alt, $href='')
<tr>
<th>Actions</th>
<th>File</th>
- <th>Status</th>
+ <th>tqStatus</th>
<th>Downloaded</th>
<th>Size</th>
<th>Uploaded</th>
@@ -118,7 +118,7 @@ function generate_button_code($img, $alt, $href='')
foreach ($stats as $torrent) {
echo "\t\t".'<tr>'."\n\t\t\t";
- $torrent_name = str_replace("'", "\'", $torrent['torrent_name']);
+ $torrent_name = str_tqreplace("'", "\'", $torrent['torrent_name']);
if($torrent['total_bytes_to_download']!=0) $perc = round(100.0 - ($torrent['bytes_left_to_download'] / $torrent['total_bytes_to_download']) * 100.0, 2);
else $perc = 0;
if(strlen($torrent['torrent_name'])>30) $display_name=substr($torrent['torrent_name'], 0, 30)." ...";
diff --git a/plugins/webinterface/www/default/wz_tooltip.js b/plugins/webinterface/www/default/wz_tooltip.js
index 1329a1b..546b421 100644
--- a/plugins/webinterface/www/default/wz_tooltip.js
+++ b/plugins/webinterface/www/default/wz_tooltip.js
@@ -300,7 +300,7 @@ function tt_DeAlt(t_tag)
{
if(t_tag.alt) t_tag.alt = "";
if(t_tag.title) t_tag.title = "";
- var t_c = t_tag.children || t_tag.childNodes || null;
+ var t_c = t_tag.tqchildren || t_tag.childNodes || null;
if(t_c)
{
for(var t_i = t_c.length; t_i; )
@@ -327,7 +327,7 @@ function tt_OpDeHref(t_e)
window.status = tt_tag.t_href;
break;
}
- t_tag = t_tag.parentElement;
+ t_tag = t_tag.tqparentElement;
}
}
}
diff --git a/plugins/webinterface/www/mobile/interface.php b/plugins/webinterface/www/mobile/interface.php
index 57582de..d2fdea9 100644
--- a/plugins/webinterface/www/mobile/interface.php
+++ b/plugins/webinterface/www/mobile/interface.php
@@ -18,7 +18,7 @@
<table width="100%">
<tbody>
<?php
- $stats=downloadStatus();
+ $stats=downloadtqStatus();
$a = 0;
foreach ($stats as $torrent) {
echo "<tr>";
@@ -59,7 +59,7 @@
echo "<td>Checking Data</td>";
break;
default:
- echo "<td>Not supported Status</td>";
+ echo "<td>Not supported tqStatus</td>";
}
echo "<td>$perc%</td>";
$a=$a+1;
diff --git a/plugins/webinterface/www/mobile/torrent.php b/plugins/webinterface/www/mobile/torrent.php
index a1e451d..31d980e 100644
--- a/plugins/webinterface/www/mobile/torrent.php
+++ b/plugins/webinterface/www/mobile/torrent.php
@@ -8,7 +8,7 @@
<tr>
<td align="center"><IMG src="ktorrentwebinterfacelogo.png" width="340" height="150" align="top" border="0"></td>
<?php
- $stats=downloadStatus();
+ $stats=downloadtqStatus();
$t=$stats[$_REQUEST['id']];
echo "<td><strong>ktorrent-><a href=\"interface.php\">transfers</a></strong>->{$t['torrent_name']}</td>";
echo "<td><a href=\"torrent.php?id={$_REQUEST['id']}\" >refresh</a></td>";
@@ -31,7 +31,7 @@
<tbody>
<?php
echo "<tr>";
- echo "<td><strong>Status: </strong></td>";
+ echo "<td><strong>tqStatus: </strong></td>";
switch ($t['status']) {
case 0:
echo "<td>NOT_STARTED</td>";
@@ -67,7 +67,7 @@
echo "<td>CHECKING_DATA</td>";
break;
default:
- echo "<td>Not supported Status</td>";
+ echo "<td>Not supported tqStatus</td>";
}
echo "</tr>";
echo "<tr>";