Commit 49fafb4c authored by Gabor Hudiczius's avatar Gabor Hudiczius
Browse files

rtwi-0.2.2-071112

parent fbc3369a
......@@ -8,7 +8,7 @@ requirements:
installation:
make, libcurl-openssl-dev, pkg-config, sigc++-2.0-dev, libncurses-dev
you might need the following packages: make, libcurl-openssl-dev, pkg-config, sigc++-2.0-dev, libncurses-dev
to install xmlrpc, get the source from here: http://sourceforge.net/project/showfiles.php?group_id=16847
in my case, i could only compile the 1.11.00 version (due to a known bug, you may try to configure with --disable-cplusplus, if the compiling stops with some syntax error)
......@@ -24,18 +24,18 @@ follow the next steps, as root (this step is not needed, if you're upgrading fro
to install libtorrent, follow the next steps, as root:
mkdir /usr/src/libtorrent
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.11.8.tar.gz
tar xvf libtorrent-0.11.8.tar.gz
cd /usr/src/libtorrent-0.11.8
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.11.9.tar.gz
tar xvf libtorrent-0.11.9.tar.gz
cd /usr/src/libtorrent-0.11.9
./configure
make
make install
to install rtorrent, follow the next steps, as root:
mkdir /usr/src/rtorrent
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.8.tar.gz
tar xvf rtorrent-0.7.8.tar.gz
cd /usr/src/rtorrent-0.7.8
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.9.tar.gz
tar xvf rtorrent-0.7.9.tar.gz
cd /usr/src/rtorrent-0.7.9
./configure --with-xmlrpc-c
make
make install
......@@ -59,7 +59,7 @@ in case, it's your first install, open the freshly extracted includes/config.php
-if your php interpreter does not handle .html files (only .php) set the $default_ext variable to "php", and rename the index.html to index.php
adding users:
-find row 44, and change it:
-find row 32, and change it:
-replace "userX" with the actual linux username
-replace "1234567890abcdef1234567890abcdef12345678" with the sha1 hash of the choosen password for the webui (you can generate the sha1 hash here => http://www.johnmaguire.us/tools/hashcalc/index.php)
-replace "12345", with the port, you've set in the user's .rtorrent.rc file
......@@ -71,10 +71,6 @@ adding users:
"user3" => array( "pass" => "1234567890abcdef1234567890abcdef12345678", "port" => "12347" ),
);
-all users, using this webui will need an "!rtwi_files" directory into their download directory (set by "directory = some/path" in the .rtorrent.rc) with 0777 rights
-the download directory should be inside your home directory (this might change later, as soon as i find out something secure)
troubleshooting:
-xmlrpc 1.11 compilation stops with some syntax error
......
......@@ -20,16 +20,24 @@ class page_handler {
$this->content = new XSLTprocessor();
$this->content->importStyleSheet( $xsl );
//print $this->page_data->saveXML(); exit;
$this->xml_data = $this->content->transformToXML( $this->page_data );
}
function parse_c() {
$this->xml_data = $this->page_data->saveXML();
}
function fetch() {
$this->xml_data = preg_replace( "/\<\?xml( version=\"[\d\.]+\")*( encoding=\".*\")*\?\>[\\r\\n]*/", "", $this->xml_data );
$this->xml_data = preg_replace( "/\<\!\[CDATA\[(.*?)\]\]\>/", "\r\n\\1", $this->xml_data );
return $this->xml_data;
}
function fetch_c() {
$this->xml_data = preg_replace( "/\<\?xml( version=\"[\d\.]+\")*( encoding=\".*\")*\?\>[\\r\\n]*/", "\\0<?xml-stylesheet type=\"text/xsl\" href=\"themes/{$this->theme}/{$this->main_file}\"?>\r\n", $this->xml_data );
return $this->xml_data;
}
}
?>
......@@ -4,22 +4,11 @@
* path settings
*******************************/
// default extension for php files (html/php)
$default_ext = "html";
// paths
$abs_path = "/var/www"; // webroot (with heading slash) -- change this, if neccessary
$domain = "rtwi.cyla.homelinux.net"; // site domain (or ip) -- change this, if neccessary
$site_path = "/"; // site path (with heading and trailing slash) -- change this, if neccessary
$include_path = "includes"; // include path (include files can be found here)
// URLs
$url = array(
"base" => "http://{$domain}{$site_path}", // base url
"index" => "index.{$default_ext}", // index page
"input" => "input.php", // input file (for forms)
);
$url["full"] = "{$url["base"]}/index.{$default_ext}"; // absolute url, of the index page
$url["base"] = "http://rtwi.cyla.homelinux.net/"; // base url
$url["index"] = "index.html"; // index page
$url["input"] = "input.php"; // input file (for forms)
$url["full"] = "{$url["base"]}/{$url["index"]}"; // absolute url of the index page
/*******************************
* xmlrpc settings
......@@ -40,21 +29,40 @@ $home_path = "/home/";
// array of users, each, with the sha1 hash of the password, and the scgi port of the rtorrent -- you can add users here
$users = array(
// "username" => array( "pass" => "7e240de74fb1ed08fa08d38063f6a6a91462a815", "port" => "36100" ),
"cyla" => array( "pass" => "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8", "port" => "36100" ),
"freez" => array( "pass" => "3c6ac60db4ea17076ddd3e044799e70832916837", "port" => "36099" ),
"pilok" => array( "pass" => "bbe31b37f154f7eadbc657d4187e79122592cd13", "port" => "36098" ),
"user1" => array( "pass" => "7e240de74fb1ed08fa08d38063f6a6a91462a815", "port" => "36100" ),
);
/*******************************
* other settings
*******************************/
// umask for new files - set this to "0000" (keep the quotes) if you want to remove the files when erasing a torrent - also need to change download directory permissions (see the manual)
$torrents_umask = "0000";
// do a directory tree - set to false (witouth the quotes), if your webserver is running on a slow machine, and you have torrents with a lots of files (a few hundreds)
$config["dodirtree"] = true;
// true if ajax is allowed
$config["allow"]["ajax"] = true;
// true if dht is enabled
$config["allow"]["dht"] = true;
// true if users are allowed to download finished files from the webui
$config["allow"]["download"] = true;
// do a directory tree - set to "false" (witouth the quotes), if your webserver is running on a slow machine, and you have torrents with a lots of files (a few hundreds)
$dodirtree = false;
// true if users are allowed to erase downloaded data from the webui
$config["allow"]["erase"] = true;
// true if hiding the filelist is allowed
$config["allow"]["hidedirtree"] = true;
// true if users are allowed to set a meta-refresh interval
$config["allow"]["refresh"] = true;
// true if users are allowed to set throttle
$config["allow"]["throttle"] = true;
/*******************************
* theme and lingual settings
*******************************/
// language (only english is available atm)
$lang = "en";
......
......@@ -9,12 +9,14 @@ $message = array(
"nohashfound" => "No torrents found for this hash",
"noidfound" => "No id was given",
"nodirfound" => "No directory was given",
"noinputmod" => "No mod was specified",
"nooponalltorrent" => "No task was given",
"badidfound" => "Invalid id was given",
"baddirfound" => "Invalid directory was given",
"notanurl" => "Not valid URL was given",
"notrtfdircreated" => "You MUST have an \"!rtwi_files\" (without quotes) directory with 0777 rights in your rTorrent download directory",
"notrtfdirwriteright" => "The \"!rtwi_files\" directory in your rTorrent download directory MUST have 0777 rights",
"rtfileinisize" => "The uploaded file exceeds the upload_max_filesize directive in php.ini",
"rtfileformsize" => "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form",
"rtfilepartial" => "The uploaded file was only partially uploaded",
......@@ -22,6 +24,10 @@ $message = array(
"rtfilenotmpdir" => "Missing a temporary folder",
"rtfilenowrite" => "Failed to write file to disk",
"rtfileother" => "Upload error",
"rtfileattack" => "Possible file upload attack!",
"badthrottlevals" => "Invalid values for throttle",
"succthrottlechange" => "Throttle changed",
"badrtdirectory" => "rTorrent download directry is not set correctly",
"badatpath" => "Invalid path was given",
......@@ -49,13 +55,21 @@ $message = array(
"succtorrentremove" => "Torrent removed",
"succtorrentsremove" => "Torrents removed",
"succtorrenterase" => "Torrent erased",
"warntorrenterase" => "Torrent erased, but not all the files removed",
"warntorrenterase" => "Torrent erased, but not all the files were removed",
"succtorrentserase" => "Torrents erased",
"succprioritychange" => "Torrent priority changed",
"succfileprioritychange" => "File priority changed",
"succdirprioritychange" => "Directory priority changed",
"succtrackerenabledchange" => "Tracker availablity changed",
"succviewchange" => "View changed",
"succrefreshchange" => "Refresh rate changed",
"succdhtstart" => "DHT server started",
"succdhtstop" => "DHT server stopped",
"downloadnotallowed" => "You are not allowed to download torrents from the webui",
"erasenotallowed" => "You are not allowed to erase downloaded data from the webui",
"refreshnotallowed" => "You are not allowed to set a meta-refresh interval",
"throttlenotallowed" => "You are not allowed to set throttle",
"viewtype_main" => "Main",
"viewtype_name" => "Name",
......@@ -66,19 +80,6 @@ $message = array(
"viewtype_hashing" => "Hashing",
"viewtype_seeding" => "Seeding",
"refreshrate_0" => "Off",
"refreshrate_5" => "5 secs",
"refreshrate_10" => "10 secs",
"refreshrate_30" => "30 secs",
"refreshrate_60" => "1 minute",
"refreshrate_120" => "2 minutes",
"refreshrate_180" => "3 minutes",
"refreshrate_300" => "5 minutes",
"refreshrate_600" => "10 minutes",
"refreshrate_1200" => "20 minutes",
"refreshrate_1800" => "30 minutes",
"refreshrate_3600" => "1 hour",
"no" => "No",
"yes" => "Yes",
"disabled" => "Disabled",
......@@ -94,7 +95,7 @@ $message = array(
"d_hash_checked_0" => "Hash not checked",
"d_hash_checked_1" => "Hash checked",
"d_multi_file_multi" => "Multi",
"d_multi_file_single" => "Single",
"d_multi_file_single" => "Single",
"d_open_0" => "Closed",
"d_open_1" => "Open",
"d_complete_0" => "Incomplete",
......@@ -123,56 +124,221 @@ $message = array(
"t_type_1" => "TCP",
"t_type_2" => "UDP",
"bind_0000" => "Not set",
"ip_0000" => "All IP addresses",
"bind_0000" => "All IP addresses",
"ip_0000" => "Not set",
"proxy_address_0000" => "Not set",
);
"pics" => "rTWi - The rTorrent Web interface",
$refresh = array(
"refreshrate_0" => "Off",
"refreshrate_60" => "1 minute",
"refreshrate_120" => "2 minutes",
"refreshrate_180" => "3 minutes",
"refreshrate_300" => "5 minutes",
"refreshrate_600" => "10 minutes",
"refreshrate_900" => "15 minutes",
"refreshrate_1200" => "20 minutes",
);
$label = array(
// html head
"title" => "rTWi - The rTorrent Web interface",
"description" => "rTWi - The rTorrent Web interface",
"keywords" => "rTWi - The rTorrent Web interface",
"author" => "Gabor Hudiczius",
"mailto" => "ghudiczius@gmail.com?subject=rTWi - The rTorrent Web interface",
"torrents" => "Torrents",
"peerlist" => "Peer list",
"info" => "Info",
"filelist" => "File list",
"trackerlist" => "Tracker list",
"chunksseen" => "Chunks seen",
// login
"username" => "Username",
"password" => "Password",
"login" => "Login",
// menu
"torrents" => "Torrents",
"peerlist" => "Peer list",
"info" => "Info",
"filelist" => "File list",
"trackerlist" => "Tracker list",
"chunksseen" => "Chunks seen",
"transferlist" => "Transfer list",
"addtorrent" => "Add torrent",
"logout" => "Logout",
"clicktohide" => "Click to hide",
"clicktoopen" => "Click to open",
"openfrom" => "Open from",
"fileupload" => "File upload",
"url" => "URL",
"torrentfile" => "Torrent file",
"torrenturl" => "Torrent URL",
"starttorrent" => "Start torrent",
"starttorrentafteradded" => "Start torrent after added",
"downloadto" => "Download to",
"addtorrent" => "Add torrent",
"serverinfo" => "Server info",
"logout" => "Logout",
"throttle" => "Throttle",
"off" => "off",
"uploadlimit" => "Upload limit",
"nouploadlimit" => "No upload limit",
"downloadlimit" => "Download limit",
"nodownloadlimit" => "No download limit",
"rate" => "Rate",
// misc
"ok" => "OK",
"yes" => "Yes",
"no" => "No",
"clicktohide" => "Click to hide",
"clicktoopen" => "Click to open",
"clicktocloseopen" => "Click to close/open",
"clicktochange" => "Click to change",
"view" => "View",
"selectviewtype" => "Select view type",
"refresh" => "Refresh",
"selectrefreshrate" => "Select refresh rate",
"areyousure" => "Are you sure?",
"areyousureerase" => "Are you sure? All downloaded data will be erased.",
// add torrent
"openfrom" => "Open from",
"fileupload" => "File upload",
"url" => "URL",
"torrentfile" => "Torrent file",
"torrenturl" => "Torrent URL",
"starttorrent" => "Start torrent",
"starttorrentafteradded" => "Start torrent after added",
"downloadto" => "Download to",
// tasks on torrents
"selecttask" => "Select task",
"selectone" => "Select one",
"startall" => "Start all",
"stopall" => "Stop all",
"openall" => "Open all",
"closeall" => "Close all",
"checkall" => "Check all",
"removeall" => "Remove all",
"eraseall" => "Erase all",
"start" => "Start",
"stop" => "Stop",
"open" => "Open",
"close" => "Close",
"checkhash" => "Check hash",
"remove" => "Remove",
"erase" => "Erase",
"selectpriority" => "Select priority",
"selectdirpriority" => "Select directory priority",
"selectfilepriority" => "Select file priority",
// torrent states
"started" => "Started",
"stopped" => "Stopped",
"opened" => "Opened",
"closed" => "Closed",
"finished" => "Finished",
"checkhashed" => "Hash checked",
"startedsince" => "Started since",
"stopedsince" => "Stoped since",
"openedsince" => "Opened since",
"closedsince" => "Closeed since",
"finishedsince" => "Finished since",
"hashingsince" => "Hashing since",
"sincepre" => "since",
"sincepost" => "",
// torrent stats
"details" => "Details",
"done" => "done",
"downloadfinished" => "Download finished",
"downloadeddata" => "Downloaded data",
"torrentsize" => "Torrent size",
"uploaded" => "Uploaded",
"uploadeddata" => "Uploaded data",
"percenthashed" => "percent hashed",
"percentcompleted" => "percent completed",
"estimatedtimeremaining" => "Estimated time remaining",
"ignorecommands" => "Ignore commands",
"ratio" => "Ratio",
"off" => "Off",
"low" => "Low",
"normal" => "Normal",
"high" => "High",
"message" => "Message",
"lasttouched" => "Last touched",
"filesize" => "File size",
"downloadfile" => "Download file",
"trackergroup" => "Tracker group",
"type" => "Type",
"selecttrackerenabled" => "Select if tracker is enabled",
"mininterval" => "Minimum interval",
// stats
"throttle" => "Throttle",
"uploadspeed" => "Upload speed",
"uploadlimit" => "Upload limit",
"nouploadlimit" => "No upload limit",
"downloadspeed" => "Download speed",
"downloadlimit" => "Download limit",
"nodownloadlimit" => "No download limit",
"rate" => "Rate",
// info page
"name" => "Name",
"infohash" => "Info hash",
"localid" => "Local ID",
"localidhtml" => "Local ID (html)",
"directory" => "Directory",
"tiedtofile" => "Tied to file",
"filestats" => "File stats",
"files" => "files",
"private" => "Private",
"chunks" => "Chunks",
"priority" => "Priority",
"statechanged" => "State changed",
"freediskspace" => "Free diskspace",
"connectiontype" => "Connection type",
"trackers" => "Trackers",
"leechers" => "Leechers",
"seeders" => "Seeders",
"pexenabled" => "PEX enabled",
"pexsize" => "PEX size",
"upload" => "Upload",
"download" => "Download",
"skipped" => "Skipped",
// server info page
"clientversion" => "Client version",
"libraryversion" => "Library version",
"workingdirectory" => "Working directory",
"downloaddirectory" => "Download directory",
"sessiondirectory" => "Session directory",
"hostname" => "Hostname",
"listeningipaddress" => "Listening IP address",
"reportedipaddress" => "IP address reported to the tracker",
"portopened" => "Port opened",
"randomport" => "Random port",
"portrange" => "Port range",
"changedhtstatus" => "Start/stop DHT server",
"dht" => "DHT server",
"dhtport" => "DHT port",
"dhtcycle" => "DHT cycle",
"dhtqueries" => "DHT queries received / sent",
"dhtreplies" => "DHT replies received",
"dhtbytes" => "DHT bytes read / written",
"dhtnodes" => "DHT nodes",
"in" => "in",
"buckets" => "buckets",
"dhtpeers" => "DHT peers",
"dhttorrents" => "DHT torrents",
"maxuploads" => "Maximum number of uploads",
"maxpeers" => "Minimum number of peers",
"minpeers" => "Maximum number of peers",
"memoryusage" => "Memory usage",
"maxmemoryusage" => "Max memory usage",
"hashcheck" => "Hash check",
"safesync" => "Safe sync",
"sendbuffer" => "Send buffer",
"receivebuffer" => "Receive buffer",
// tracker list page
"focus" => "Focus",
"enabled" => "Enabled",
"seedersleechers" => "S/L",
"lasttimescraped" => "Last time scraped",
);
?>
\ No newline at end of file
<?php
$message = array(
"badlogin" => "Hibás felhasználó, vagy jelszó",
"succlogin" => "Sikeres bejelentkezés",
"succlogout" => "Sikeres kijelentkezés",
"noconn" => "Nincs kapcsolat",
"nohashfound" => "Nincs ilyen torrent",
"noidfound" => "Nincs ID megadva",
"nodirfound" => "Nincs könyvtár megadva",
"noinputmod" => "Nincs funkció megadva",
"nooponalltorrent" => "Nincs feladat megadva",
"badidfound" => "Hibás ID",
"baddirfound" => "Hibás könyvtárnév",
"notanurl" => "Nincs URL megadva",
"rtfileinisize" => "A feltöltött fájl mérete meghaladja a PHP.ini-ben megengedett (upload_max_filesize) méretet",
"rtfileformsize" => "A feltöltött fájl mérete meghaladja a HTML űrlapon megengedett (MAX_FILE_SIZE) méretet",
"rtfilepartial" => "A fájl csak részlegesen került feltöltésre",
"rtfilenofile" => "Nem történt fájlfeltöltés",
"rtfilenotmpdir" => "Nincs megadva ideiglenes könyvtár",
"rtfilenowrite" => "Nem sikerült írni a lemezre",
"rtfileother" => "Feltöltési hiba",
"rtfileattack" => "Lehetséges támadás!",
"badthrottlevals" => "Hibás sebességkorlát érték",
"succthrottlechange" => "Sebességkorlát megváltoztatva",
"badrtdirectory" => "Az rTorrent letöltési könyvtár hibásan van megadva",
"badatpath" => "Hibás útvonal",
"novaluefound" => "Nincs érték megadva",
"badvaluefound" => "Hibás érték",
"nopriorityfound" => "Nincs prioritás megadva",
"badpriorityfound" => "Hibás prioritás",
"badviewtype" => "Hibás nézet",
"badrefreshrate" => "Hibás frissítési intervallum",
"succtorrentload" => "Torrent betöltve",
"succtorrentstart" => "Torrent elindítva",
"succtorrentsstart" => "Torrentek elindítva",
"succtorrentopen" => "Torrent megnyitva",
"succtorrentsopen" => "Torrentek megnzitva",
"succtorrentstop" => "Torrent leállítva",
"succtorrentsstop" => "Torrentek leállítva",
"succtorrentclose" => "Torrent bezárva",
"succtorrentsclose" => "Torrentek bezárva",
"succtorrentcheckhash" => "Torrent ellenőrzés elindítva",
"succtorrentscheckhash" => "Torrentek ellenőrzése elindítva",
"succtorrentremove" => "Torrent eltávolítva",
"succtorrentsremove" => "Torrentek eltávolítva",
"succtorrenterase" => "Torrent törölve",
"warntorrenterase" => "Torrent törölve, de nem minden fájl lett eltávolítva",
"succtorrentserase" => "Torrentek törölve",
"succprioritychange" => "Torrent prioritása beállítva",
"succfileprioritychange" => "Fájl prioritása beállítva",
"succdirprioritychange" => "Könyvtár prioritása beállítva",
"succtrackerenabledchange" => "Tracker elérhetősége beállítva",
"succviewchange" => "Nézet beállítva",
"succrefreshchange" => "Frissítés beállítva",
"succdhtstart" => "DHT szerver elindítva",
"succdhtstop" => "DHT szerver leállítva",
"downloadnotallowed" => "Nem vagy jogosult torrentek letöltésére a web-es felületről",
"erasenotallowed" => "Nem vagy jogosult torrentek törlésére a web-es felületen",
"refreshnotallowed" => "Nem vagy jogosult frissítés beállítására",
"throttlenotallowed" => "Nem vagy jogosult sebességkorlát beállítására",
"viewtype_main" => "Alapértelmezett",
"viewtype_name" => "Név szerint",
"viewtype_started" => "Elindított torrentek",
"viewtype_stopped" => "Leállított torrentek",
"viewtype_complete" => "Befejezett torrentek",
"viewtype_incomplete" => "Befejezetlen torrentek",
"viewtype_hashing" => "Ellenőrzés alatt álló torrentek",
"viewtype_seeding" => "Feltöltések",
"no" => "Nem",
"yes" => "Igen",
"disabled" => "Letiltva",
"enabled" => "Engedélyezve",
"notset" => "Nincs beállítva",
"d_connection_current_leech" => "Letöltés",
"d_connection_current_seed" => "Feltöltés",
"d_ignore_commands_0" => "Parancsok figyelembevétele",
"d_ignore_commands_1" => "Parancsok figyelmen kívü hagyása",
"d_active_0" => "Leállítva",
"d_active_1" => "Elindítva",
"d_hash_checked_0" => "Nem volt ellenőrizve",
"d_hash_checked_1" => "Ellenőrizve",
"d_multi_file_multi" => "",
"d_multi_file_single" => "Egyetlen fájl",
"d_open_0" => "Zárva",
"d_open_1" => "Nyitva",
"d_complete_0" => "Befejezetlen",
"d_complete_1" => "Befejezett",
"d_hash_checking_0" => "Nincs ellenőrzés alatt",
"d_hash_checking_1" => "Ellenőrzés alatt",
"d_hashing_0" => "Nincs ellenőrzés alatt",
"d_hashing_1" => "Normál ellenőrzés",
"d_hashing_2" => "Letöltés befejezve, ellenőrzés",
"d_hashing_3" => "Újraellenőrzés",
"d_priority_0" => "Leállítva",
"d_priority_1" => "Alacsonz",
"d_priority_2" => "Normál",
"d_priority_3" => "Magas",
"d_state_0" => "Leállítva",
"d_state_1" => "Elindítva",
"f_is_open_0" => "Zárva",
"f_is_open_1" => "Nyitva",
"f_priority_0" => "Leállítva",
"f_priority_1" => "Normál",
"f_priority_2" => "Magas",
"t_enabled_0" => "Letiltva",
"t_enabled_1" => "Engedélyezve",
"t_open_0" => "Zárva",
"t_open_1" => "Nyitva",
"t_type_1" => "TCP",
"t_type_2" => "UDP",
"bind_0000" => "Minden IP cím",
"ip_0000" => "Nincs beállítva",
"proxy_address_0000" => "Nincs beállítva",
);