debian/0000755000000000000000000000000011552306323007166 5ustar debian/compat0000644000000000000000000000000210611200467010361 0ustar 5 debian/changelog0000644000000000000000000002540711552306323011050 0ustar torrentflux (2.4-5.1) unstable; urgency=low * Non-maintainer upload. * Fix pending l10n issues. Debconf translations: - Danish (Joe Hansen). Closes: #587811 - Dutch (Jeroen Schot). Closes: #622857 -- Christian Perrier Sat, 16 Apr 2011 14:33:56 +0200 torrentflux (2.4-5) unstable; urgency=low * New Japanese translation, thanks Hideki Yamane (Closes: #558072) * Update to standards version 3.8.4 (no changes) * Switch to the new "3.0 (quilt)" source format * Fix a display issue with torrents that only contain an announce-list: 20_torrents_with_only_announce_list.dpatch -- Cameron Dale Sun, 21 Mar 2010 15:41:29 -0700 torrentflux (2.4-4) unstable; urgency=low * new spanish translation, thanks Fernando Gonzalez de Requena (Closes: #514890) * update to standards version 3.8.3 (no changes) * move the added Demonoid search plugin to a patch -- Cameron Dale Tue, 08 Sep 2009 20:24:39 -0700 torrentflux (2.4-3) unstable; urgency=low * Fix pending l10n issues. Debconf translations: - Swedish. (Closes: #492061) - Finnish. (Closes: #501943) - Basque. (Closes: #502250) - thanks to Christian Perrier for coordinating this -- Cameron Dale Tue, 21 Oct 2008 18:49:03 -0700 torrentflux (2.4-2) unstable; urgency=medium * Upgrade the dependency on bittornado for the UPnP change. * Update standards version to 3.8.0 - Add a README.source file pointing to the quilt documentation * medium urgency to get it into lenny * Fix the bad priority setting on the restart webserver debconf question * Remove the no longer needed postinst-uses-db-input lintian override -- Cameron Dale Sun, 20 Jul 2008 00:36:36 -0700 torrentflux (2.4-1) unstable; urgency=low * New upstream release - Some patches included in new release no longer needed: 04_fix_python_filename_dependence.dpatch 08_http_query_builder.dpatch 09_fix_directory_traversal.dpatch 16_update_settings_fails_with_blank_search_filter.dpatch 18_errors_in_error_handling.dpatch - Other patches refreshed or updated to apply properly - Remove the no longer needed CR-LF removal with tofrodos * Upgrade the database slightly for the new upstream release. * Update DB install script to use PirateBay as default search. -- Cameron Dale Wed, 02 Jul 2008 17:58:49 -0700 torrentflux (2.3-10) unstable; urgency=low * Debconf translations, *huge* thanks to Christian Perrier for organizing the translations: - Brazilian Portuguese. Closes: #480945 - Portuguese. Closes: #480949 - French. Closes: #481783 - German. Closes: #483041 - Italian. Closes: #485087 - Vietnamese. Closes: #486188 - Russian. Closes: #486202 - Galician. Closes: #486214 - Czech. Closes: #486234 - Turkish. Closes: #486872 * Refresh all the current quilt patches. -- Cameron Dale Sun, 22 Jun 2008 23:10:15 -0700 torrentflux (2.3-9) unstable; urgency=low * Remove the UPnP options for bittornado 0.3.18-6 (Closes: #480058) * Fix the typo in the location of a config file. * Fix a bug in the error handling of btphptornado.py (based on bittornado's 25_errors_in_error_handling.dpatch) -- Cameron Dale Wed, 07 May 2008 15:21:11 -0700 torrentflux (2.3-8) unstable; urgency=low * Add ability to install with non-apache webservers (Closes: #461605) (no auto-configuration though, you have to configure it yourself) * Fix updating search setttings when there are no filters (LP: #197036) -- Cameron Dale Fri, 02 May 2008 16:59:05 -0700 torrentflux (2.3-7) unstable; urgency=low * Switch to quilt for patches. * Remove binary-arch target from debian/rules. * Upgrade to standards version 3.7.3 (no changes). * Move Homepage from description to source field. * Remove a windows-only Thumbs.db file. * Fix a missing close brace in the PirateBay search module. * Fixed watch file regex. -- Cameron Dale Sun, 17 Feb 2008 13:02:49 -0800 torrentflux (2.3-6) unstable; urgency=low * Add new Italian debconf translation (Closes: #448899) * Change XS-Vcs-* fields to Vcs-* -- Cameron Dale Mon, 12 Nov 2007 12:23:03 -0800 torrentflux (2.3-5) unstable; urgency=low * Add missing dependency on zip (thanks Ubuntu) -- Cameron Dale Tue, 23 Oct 2007 11:12:49 -0700 torrentflux (2.3-4) unstable; urgency=low * Reorder dependencies to prefer php5 over php4 * Upgrade the mysql-server from Suggests to Recommends * Explicitly enable index.php for apache's DirectoryIndex -- Cameron Dale Sat, 20 Oct 2007 13:49:03 -0700 torrentflux (2.3-3) unstable; urgency=low * Add Dutch debconf translation (Closes: #423045) * Added XS-Vcs-Browser field * Added Dm-Upload-Allowed for Debian Maintainer uploads -- Cameron Dale Wed, 17 Oct 2007 11:34:28 -0700 torrentflux (2.3-2) unstable; urgency=low * Upgrade the database to the 2.3 style -- Cameron Dale Mon, 7 May 2007 11:34:28 -0700 torrentflux (2.3-1) unstable; urgency=low * New upstream release (Closes: #409706) - many dpatches now no longer needed * New German translation (Closes: #412160) * Added tofrodos use to fix line endings in web files * Updated search engine modules to latest -- Cameron Dale Sun, 22 Apr 2007 11:34:28 -0700 torrentflux (2.1-7) unstable; urgency=high * Add more security fixes (Closes: #400582) - some missed previously (11_missed_security_fixes.dpatch) - remote command execution in metaInfo.php, issue CVE-2006-6331 (12_metaInfo_remote_command.dpatch) - possible XSS vulnerability due to urldecode (13_possible_xss_vulnerability.dpatch) - remote command execution in maketorrent.php, (14_maketorrent_remote_command.dpatch) - more possible fixes just to be safe (15_additional_possible_fixes.dpatch) -- Cameron Dale Sat, 16 Dec 2006 22:30:44 -0800 torrentflux (2.1-6) unstable; urgency=high * Sanitize file inputs (Closes: #399169) - fixes: CVE-2006-6329, CVE-2006-6330 * Update search engines to latest -- Cameron Dale Tue, 21 Nov 2006 22:30:44 -0800 torrentflux (2.1-5) unstable; urgency=high * Updated 06_sanitize_html_entities to fix the security issue CVE-2006-5451, urgency set to high (Closes: #395099) * Fixed the directroy traversal vulnerability (Closes: #395930) - issue CVE-2006-5609 -- Cameron Dale Sat, 28 Oct 2006 16:40:53 -0700 torrentflux (2.1-4) unstable; urgency=medium * Fix minor XSS vulnerability in admin.php (Closes: #392501) - issue CVE-2006-5227 * Update the printed version number to match the website (Closes: #392601) * Fix http_query_builder() error in SearchEngineBase.php * Update the search engines from the forums * Add new search engines from the forums -- Cameron Dale Sat, 14 Oct 2006 15:40:03 -0700 torrentflux (2.1-3) unstable; urgency=high * Change the config script to comply with policy 7.2 (Closes: #388238) -- Cameron Dale Sat, 23 Sep 2006 14:51:31 -0700 torrentflux (2.1-2) unstable; urgency=medium * New Czech translation from Miroslav Kure (Closes: #361121) * New Portugese translation from Rui Branco (Closes: #373258) * New French translation from Gaetan Crahay (Closes: #366495) * Change the /usr/bin/env references to /usr/bin/python * Update the standards version to 3.7.2 * Move debhelper and dpatch to build-depends * Change the postrm script to comply with policy 7.2 -- Cameron Dale Mon, 21 Aug 2006 17:47:03 -0700 torrentflux (2.1-1) unstable; urgency=low * New upstream release * Updated dbconfig-common patch for new config file * Remove config.php from etc as it is no longer a config file * Add debconf note about updated config location * Switch to docbook for man pages * Add manpages for 2 new programs * Update control for new release features * Add dependency on mysql-client (temporarily avoids #353617) * Use variable substitution in debconf templates (Closes: #360694) * Add lintian override for postinst-uses-db-input * Upgrade debhelper compatibility to v5 * Add comments to debhelper files * Fix watch file to work properly * Change installed docs * New patch 03_remove_initial_db_insert * New patch 04_fix_python_filename_dependence * Add documentation of the database install -- Cameron Dale Fri, 14 Apr 2006 15:13:06 -0800 torrentflux (2.0beta1-7) unstable; urgency=low * Fixed: copyright to mention sources more accurately -- Cameron Dale Mon, 20 Mar 2006 20:55:47 -0800 torrentflux (2.0beta1-6) unstable; urgency=low * Fixed: chown usage to use : instead of . * Fixed: ownership and permissions of config files * Move web install directory to usr/share/torrentflux/www * Added: mention of adodb and bittornado in copyright file * Removed: symlink in var/www to usr/share * Fixed: torrentspy.php updated to work with new site design * Fixed: escaping quotes in folder view -- Cameron Dale Sat, 17 Mar 2006 16:09:45 -0800 torrentflux (2.0beta1-5) unstable; urgency=low * Added: apache config snippet to link to usr/share directory * Added: debconf questions for restarting webserver * Removed: lintian override for no-debconf-templates * Added: use po-debconf to make translations possible -- Cameron Dale Mon, 20 Feb 2006 16:09:45 -0800 torrentflux (2.0beta1-4) unstable; urgency=low * Fixed: moved install directory to usr/share from var/www -- Cameron Dale Sun, 19 Feb 2006 16:09:45 -0800 torrentflux (2.0beta1-3) unstable; urgency=low * Fixed: removed mention of adodb in copyright file * Fixed: removed configure, configure-stamp and build-stamp from rules * Removed: unecessary depends on php and apache -- Cameron Dale Wed, 1 Feb 2006 16:09:45 -0800 torrentflux (2.0beta1-2) unstable; urgency=low * Fixed: change owner of downloads directory instead of permissions * Removed: adodb source * Added: dependency on debian's libphp-adodb * Fixed: added lintian override for no-debconf-templates -- Cameron Dale Sat, 21 Jan 2006 16:09:45 -0800 torrentflux (2.0beta1-1) unstable; urgency=low * Initial release Closes: #299008 * Patch: modified python files to work with debian's patched bittornado * Patch: modified index.html to prevent page refreshes faster than the torrent can start bug * Started using dbconfig-common for database setup -- Cameron Dale Wed, 4 Jan 2006 16:09:45 -0800 debian/dbconfig-common/0000755000000000000000000000000011351524035012226 5ustar debian/dbconfig-common/data/0000755000000000000000000000000011351524035013137 5ustar debian/dbconfig-common/data/install/0000755000000000000000000000000011351524035014605 5ustar debian/dbconfig-common/data/install/mysql0000644000000000000000000001435311033741121015675 0ustar -- phpMyAdmin SQL Dump -- -------------------------------------------------------- -- -- Table structure for table `tf_links` -- CREATE TABLE /*!32312 IF NOT EXISTS*/ `tf_links` ( `lid` int(10) NOT NULL auto_increment, `url` varchar(255) NOT NULL default '', `sitename` varchar(255) NOT NULL default 'Old Link', `sort_order` tinyint(3) unsigned default '0', PRIMARY KEY (`lid`) ) ENGINE=MyISAM; -- -------------------------------------------------------- -- -- Table structure for table `tf_log` -- CREATE TABLE /*!32312 IF NOT EXISTS*/ `tf_log` ( `cid` int(14) NOT NULL auto_increment, `user_id` varchar(32) NOT NULL default '', `file` varchar(200) NOT NULL default '', `action` varchar(200) NOT NULL default '', `ip` varchar(15) NOT NULL default '', `ip_resolved` varchar(200) NOT NULL default '', `user_agent` varchar(200) NOT NULL default '', `time` varchar(14) NOT NULL default '0', PRIMARY KEY (`cid`) ) ENGINE=MyISAM AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `tf_messages` -- CREATE TABLE /*!32312 IF NOT EXISTS*/ `tf_messages` ( `mid` int(10) NOT NULL auto_increment, `to_user` varchar(32) NOT NULL default '', `from_user` varchar(32) NOT NULL default '', `message` text, `IsNew` int(11) default NULL, `ip` varchar(15) NOT NULL default '', `time` varchar(14) NOT NULL default '0', `force_read` tinyint(1) default '0', PRIMARY KEY (`mid`) ) ENGINE=MyISAM AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `tf_rss` -- CREATE TABLE /*!32312 IF NOT EXISTS*/ `tf_rss` ( `rid` int(10) NOT NULL auto_increment, `url` varchar(255) NOT NULL default '', PRIMARY KEY (`rid`) ) ENGINE=MyISAM AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `tf_settings` -- CREATE TABLE /*!32312 IF NOT EXISTS*/ `tf_settings` ( `tf_key` varchar(255) NOT NULL default '', `tf_value` text NOT NULL, PRIMARY KEY (`tf_key`) ) ENGINE=MyISAM; -- -- Dumping data for table `tf_settings` -- INSERT IGNORE INTO `tf_settings` VALUES ('path', '/var/cache/torrentflux/'); INSERT IGNORE INTO `tf_settings` VALUES ('btphpbin', '/usr/bin/btphptornado.torrentflux'); INSERT IGNORE INTO `tf_settings` VALUES ('btshowmetainfo', '/usr/bin/btshowmetainfo.torrentflux'); INSERT IGNORE INTO `tf_settings` VALUES ('advanced_start', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('max_upload_rate', '10'); INSERT IGNORE INTO `tf_settings` VALUES ('max_download_rate', '0'); INSERT IGNORE INTO `tf_settings` VALUES ('max_uploads', '4'); INSERT IGNORE INTO `tf_settings` VALUES ('minport', '49160'); INSERT IGNORE INTO `tf_settings` VALUES ('maxport', '49300'); INSERT IGNORE INTO `tf_settings` VALUES ('rerequest_interval', '1800'); INSERT IGNORE INTO `tf_settings` VALUES ('cmd_options', ''); INSERT IGNORE INTO `tf_settings` VALUES ('enable_search', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('enable_file_download', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('enable_view_nfo', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('package_type', 'zip'); INSERT IGNORE INTO `tf_settings` VALUES ('show_server_load', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('loadavg_path', '/proc/loadavg'); INSERT IGNORE INTO `tf_settings` VALUES ('days_to_keep', '30'); INSERT IGNORE INTO `tf_settings` VALUES ('minutes_to_keep', '3'); INSERT IGNORE INTO `tf_settings` VALUES ('rss_cache_min', '20'); INSERT IGNORE INTO `tf_settings` VALUES ('page_refresh', '60'); INSERT IGNORE INTO `tf_settings` VALUES ('default_theme', 'matrix'); INSERT IGNORE INTO `tf_settings` VALUES ('default_language', 'lang-english.php'); INSERT IGNORE INTO `tf_settings` VALUES ('debug_sql', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('torrent_dies_when_done', 'False'); INSERT IGNORE INTO `tf_settings` VALUES ('sharekill', '150'); INSERT IGNORE INTO `tf_settings` VALUES ('tfQManager', '/usr/bin/tfQManager.torrentflux'); INSERT IGNORE INTO `tf_settings` VALUES ('AllowQueing', '0'); INSERT IGNORE INTO `tf_settings` VALUES ('maxServerThreads', '5'); INSERT IGNORE INTO `tf_settings` VALUES ('maxUserThreads', '2'); INSERT IGNORE INTO `tf_settings` VALUES ('sleepInterval', '10'); INSERT IGNORE INTO `tf_settings` VALUES ('debugTorrents', '0'); INSERT IGNORE INTO `tf_settings` VALUES ('pythonCmd', '/usr/bin/python'); INSERT IGNORE INTO `tf_settings` VALUES ('searchEngine', 'PirateBay'); INSERT IGNORE INTO `tf_settings` VALUES ('PirateBayGenreFilter', 'a:1:{i:0;s:3:"500";}'); INSERT IGNORE INTO `tf_settings` VALUES ('TorrentBoxGenreFilter', 'a:3:{i:0;s:1:"0";i:1;s:1:"9";i:2;s:2:"10";}'); INSERT IGNORE INTO `tf_settings` VALUES ('TorrentPortalGenreFilter', 'a:3:{i:0;s:1:"0";i:1;s:1:"6";i:2;s:2:"10";}'); INSERT IGNORE INTO `tf_settings` VALUES ('enable_maketorrent','0'); INSERT IGNORE INTO `tf_settings` VALUES ('btmakemetafile','/usr/bin/btmakemetafile.torrentflux'); INSERT IGNORE INTO `tf_settings` VALUES ('enable_torrent_download','1'); INSERT IGNORE INTO `tf_settings` VALUES ('enable_file_priority','1'); INSERT IGNORE INTO `tf_settings` VALUES ('security_code','0'); INSERT IGNORE INTO `tf_settings` VALUES ('crypto_allowed', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('crypto_only', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('crypto_stealth', '0'); -- -------------------------------------------------------- -- -- Table structure for table `tf_users` -- CREATE TABLE /*!32312 IF NOT EXISTS*/ `tf_users` ( `uid` int(10) NOT NULL auto_increment, `user_id` varchar(32) NOT NULL default '', `password` varchar(34) NOT NULL default '', `hits` int(10) NOT NULL default '0', `last_visit` varchar(14) NOT NULL default '0', `time_created` varchar(14) NOT NULL default '0', `user_level` tinyint(1) NOT NULL default '0', `hide_offline` tinyint(1) NOT NULL default '0', `theme` varchar(100) NOT NULL default 'mint', `language_file` varchar(60) default 'lang-english.php', PRIMARY KEY (`uid`) ) ENGINE=MyISAM AUTO_INCREMENT=1 ; -- -- Table structure for table `tf_cookies` -- CREATE TABLE /*!32312 IF NOT EXISTS*/ `tf_cookies` ( `cid` int(10) NOT NULL auto_increment, `uid` int(10) NOT NULL, `host` varchar(255) default NULL, `data` varchar(255) default NULL, PRIMARY KEY (`cid`) ) ENGINE=MyISAM ;debian/dbconfig-common/data/upgrade/0000755000000000000000000000000011351524035014566 5ustar debian/dbconfig-common/data/upgrade/mysql/0000755000000000000000000000000011351524035015733 5ustar debian/dbconfig-common/data/upgrade/mysql/2.0beta1-10000644000000000000000000000040310611200467017223 0ustar -- -- Created by Cameron Dale for debian -- -- Database: `torrentflux` -- -- -------------------------------------------------------- -- Update the tables for the new version ALTER TABLE `tf_messages` CHANGE `new` `IsNew` INTEGER"; debian/dbconfig-common/data/upgrade/mysql/2.4-10000644000000000000000000000050011033741121016304 0ustar -- Upgrade from 2.3 to 2.4 UPDATE tf_settings SET tf_value = 'PirateBay' WHERE tf_key = 'searchEngine' AND tf_value = 'TorrentSpy'; INSERT IGNORE INTO `tf_settings` VALUES ('crypto_allowed', 1); INSERT IGNORE INTO `tf_settings` VALUES ('crypto_only', 1); INSERT IGNORE INTO `tf_settings` VALUES ('crypto_stealth', 0); debian/dbconfig-common/data/upgrade/mysql/2.3-20000644000000000000000000000054011033741121016310 0ustar -- Upgrade from 2.1 to 2.2 ALTER TABLE `tf_links` ADD ( `sitename` varchar(255) NOT NULL default 'Old Link', `sort_order` tinyint(3) unsigned default '0' ); INSERT IGNORE INTO `tf_settings` VALUES ('security_code','0'); ALTER TABLE `tf_cookies` CHANGE `cid` `cid` INT( 10 ) NOT NULL AUTO_INCREMENT; -- Upgrade from 2.2 to 2.3 -- Nothing to do debian/dbconfig-common/data/upgrade/mysql/2.1-10000644000000000000000000000772710611200467016327 0ustar -- -- Created by Cameron Dale for debian -- -- Database: `torrentflux` -- -- ################################################################ -- # File to upgrade from TorrentFlux 2.0 to TorrentFlux 2.1 -- # THIS IS FOR MYSQL DATABASE UPGRADE ONLY! -- ################################################################ -- -------------------------------------------------------- -- -- Table structure for new table `tf_settings` -- CREATE TABLE /*!32312 IF NOT EXISTS*/ `tf_settings` ( `tf_key` varchar(255) NOT NULL default '', `tf_value` text NOT NULL, PRIMARY KEY (`tf_key`) ) TYPE=MyISAM; -- -- Dumping default data for table `tf_settings` -- INSERT IGNORE INTO `tf_settings` VALUES ('path', '/var/cache/torrentflux/'); INSERT IGNORE INTO `tf_settings` VALUES ('btphpbin', '/usr/bin/btphptornado.torrentflux'); INSERT IGNORE INTO `tf_settings` VALUES ('btshowmetainfo', '/usr/bin/btshowmetainfo.torrentflux'); INSERT IGNORE INTO `tf_settings` VALUES ('advanced_start', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('max_upload_rate', '10'); INSERT IGNORE INTO `tf_settings` VALUES ('max_download_rate', '0'); INSERT IGNORE INTO `tf_settings` VALUES ('max_uploads', '4'); INSERT IGNORE INTO `tf_settings` VALUES ('minport', '49160'); INSERT IGNORE INTO `tf_settings` VALUES ('maxport', '49300'); INSERT IGNORE INTO `tf_settings` VALUES ('rerequest_interval', '1800'); INSERT IGNORE INTO `tf_settings` VALUES ('cmd_options', ''); INSERT IGNORE INTO `tf_settings` VALUES ('enable_search', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('enable_file_download', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('enable_view_nfo', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('package_type', 'zip'); INSERT IGNORE INTO `tf_settings` VALUES ('show_server_load', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('loadavg_path', '/proc/loadavg'); INSERT IGNORE INTO `tf_settings` VALUES ('days_to_keep', '30'); INSERT IGNORE INTO `tf_settings` VALUES ('minutes_to_keep', '3'); INSERT IGNORE INTO `tf_settings` VALUES ('rss_cache_min', '20'); INSERT IGNORE INTO `tf_settings` VALUES ('page_refresh', '60'); INSERT IGNORE INTO `tf_settings` VALUES ('default_theme', 'matrix'); INSERT IGNORE INTO `tf_settings` VALUES ('default_language', 'lang-english.php'); INSERT IGNORE INTO `tf_settings` VALUES ('debug_sql', '1'); INSERT IGNORE INTO `tf_settings` VALUES ('torrent_dies_when_done', 'False'); INSERT IGNORE INTO `tf_settings` VALUES ('sharekill', '150'); INSERT IGNORE INTO `tf_settings` VALUES ('tfQManager', '/usr/bin/tfQManager.torrentflux'); INSERT IGNORE INTO `tf_settings` VALUES ('AllowQueing', '0'); INSERT IGNORE INTO `tf_settings` VALUES ('maxServerThreads', '5'); INSERT IGNORE INTO `tf_settings` VALUES ('maxUserThreads', '2'); INSERT IGNORE INTO `tf_settings` VALUES ('sleepInterval', '10'); INSERT IGNORE INTO `tf_settings` VALUES ('debugTorrents', '0'); INSERT IGNORE INTO `tf_settings` VALUES ('pythonCmd', '/usr/bin/python'); INSERT IGNORE INTO `tf_settings` VALUES ('searchEngine', 'TorrentSpy'); INSERT IGNORE INTO `tf_settings` VALUES ('TorrentSpyGenreFilter', 'a:3:{i:0;s:2:"11";i:1;s:1:"6";i:2;s:1:"7";}'); INSERT IGNORE INTO `tf_settings` VALUES ('TorrentBoxGenreFilter', 'a:3:{i:0;s:1:"0";i:1;s:1:"9";i:2;s:2:"10";}'); INSERT IGNORE INTO `tf_settings` VALUES ('TorrentPortalGenreFilter', 'a:3:{i:0;s:1:"0";i:1;s:1:"6";i:2;s:2:"10";}'); INSERT IGNORE INTO `tf_settings` VALUES ('enable_maketorrent','0'); INSERT IGNORE INTO `tf_settings` VALUES ('btmakemetafile','/usr/bin/btmakemetafile.torrentflux'); INSERT IGNORE INTO `tf_settings` VALUES ('enable_torrent_download','1'); INSERT IGNORE INTO `tf_settings` VALUES ('enable_file_priority','1'); -- -------------------------------------------------------- -- -- Table structure for new table `tf_cookies` -- CREATE TABLE /*!32312 IF NOT EXISTS*/ `tf_cookies` ( `cid` tinyint(5) NOT NULL auto_increment, `uid` int(10) NOT NULL, `host` varchar(255) default NULL, `data` varchar(255) default NULL, PRIMARY KEY (`cid`) ) TYPE=MyISAM ; debian/dirs0000644000000000000000000000063111040565105010047 0ustar # Config directory etc/torrentflux # Binary files usr/bin # Web files usr/share/torrentflux usr/share/torrentflux/www # Documentation usr/share/doc/torrentflux usr/share/doc/torrentflux/patches usr/share/doc/torrentflux/dbfiles # Downloads directory var/cache/torrentflux # Database config files usr/share/dbconfig-common/data/torrentflux/install usr/share/dbconfig-common/data/torrentflux/upgrade/mysql debian/torrentflux.templates0000644000000000000000000000300311006721716013477 0ustar Template: torrentflux/restart-webserver Type: boolean Default: false _Description: Should ${webserver} be restarted? Remember that in order to activate the new configuration ${webserver} has to be restarted. You can also restart ${webserver} by manually executing invoke-rc.d ${webserver} restart. Template: torrentflux/upgrade_to_21 Type: note _Description: Upgrading to 2.1 reverts configuration to default You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later version. A major change in version 2.1 is that the configuration is now stored in the database. This upgrade will update the database using default values, and any changes you have made to the configuration file /etc/torrentflux/config.php will NOT be used. This file will be saved so that you can reference it later. After the upgrade is complete, you can adjust the settings inside the program by logging in as an admin, and clicking on "admin" and then "settings". Template: torrentflux/unsupported-webserver Type: note _Description: No supported webserver was found A supported webserver was not found to automatically configure. This package can only automatically configure apache webservers to use the program. If you are using a different webserver, you will need to point it to the torrentflux files in /usr/share/torrentflux/www (see the webserver config files in /etc/torrentflux/apache.conf for examples) and possibly restart the webserver during installation, and then remove the configuration when removing the package. debian/torrentflux.install0000644000000000000000000000113711007141074013147 0ustar # Web files html/* usr/share/torrentflux/www # Binary files html/TF_BitTornado/*.py usr/bin # Webserver config files debian/apache.conf etc/torrentflux debian/lighttpd.conf etc/torrentflux # Database config files debian/dbconfig-common/data/install/mysql usr/share/dbconfig-common/data/torrentflux/install debian/dbconfig-common/data/upgrade/mysql/* usr/share/dbconfig-common/data/torrentflux/upgrade/mysql # Database config files for documentation debian/dbconfig-common/data/install/mysql usr/share/doc/torrentflux/dbfiles debian/dbconfig-common/data/upgrade/mysql/* usr/share/doc/torrentflux/dbfiles debian/watch0000644000000000000000000000072310756120260010220 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 # Uncomment to find new files on sourceforge, for debscripts >= 2.9 #http://prdownloads.sourceforge.net/torrentflux/torrentflux-(.*)\.tar\.gz #Try this Sourceforge one instead http://sf.net/torrentflux/torrentflux[\-_](.*)\.tar\.gz debian/btphptornado.torrentflux.sgml0000644000000000000000000000600710611200467015151 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Cameron"> Dale"> April 7, 2006"> 1"> camrdale@gmail.com"> BTPHPTORNADO.TORRENTFLUX"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2006 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; a modified bittornado python file for use with torrentflux DESCRIPTION This program should only be used via the torrentflux web interface. You should not use this program yourself. AUTHOR This manual page was written by &dhusername; <&dhemail;> for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/control0000644000000000000000000000505111351515064010573 0ustar Source: torrentflux Section: web Priority: optional Maintainer: Cameron Dale Build-Depends: debhelper (>= 5.0.0) Build-Depends-Indep: po-debconf, docbook-to-man Standards-Version: 3.8.4 Vcs-Svn: svn://svn.debian.org/collab-maint/ext-maint/torrentflux/trunk Vcs-Browser: http://svn.debian.org/wsvn/collab-maint/ext-maint/torrentflux/trunk/ Homepage: http://www.torrentflux.com XS-Dm-Upload-Allowed: yes Package: torrentflux Architecture: all Depends: ${misc:Depends}, libapache2-mod-php5 | libapache-mod-php5 | libapache2-mod-php4 (>= 4:4.1) | libapache-mod-php4 (>= 4:4.1) | php5-cgi | php4-cgi (>=4:4.1), php5-mysql | php5-mysqli | php4-mysql, bittornado (>= 0.3.18-6), python, libphp-adodb, dbconfig-common, zip Recommends: mysql-client, mysql-server Description: web based, feature-rich BitTorrent download manager TorrentFlux is a PHP based BitTorrent controller that runs on a web server. It can manage all of your BitTorrent downloads from anywhere through a convenient and easy-to-use web interface. . TorrentFlux uses a MySQL database to manage the downloads. This database may be automatically created and maintained for you (if you want), but that requires the recommended mysql-client package. If you do not have a remote database server to access, you will also need the recommended mysql-server package. (If you're not sure, then you probably need both.) . TorrentFlux enables you to run BitTorrent downloads unattended on a monitor-less or remote server 24 hours a day, while still maintaining complete control from any web browser. Now you can control your downloading on your firewall, or keep up with downloads while on vacation. It uses the BitTornado client to download files, and also requires a web server with PHP. . Some of the many features: * Upload Torrents via URL or File Upload * Start, Stop, and Delete Torrents with ease * Advanced Torrent start options (ports, speeds, etc.) * Multi-user interface * RSS Feeds, download Torrents files with a click * Run several torrents at once * View Download Progress of all torrents at a glance * View drive space at a glance * View Torrent file meta information * Built-in User management and Security * Private Messaging * Themes (selectable per user) * Upload History * Detailed User Administration * Admin Searchable Logs * Torrent Search (many popular sites) * Language Support * Make your own torrents * Add torrents to a download Queue * NFO / Text viewer . For a description of BitTorrent, see the bittornado package. . debian/torrentflux.prerm0000644000000000000000000000332711040564535012641 0ustar #!/bin/sh set -e #set -x . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/prerm.mysql dbc_go torrentflux $@ if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then # Webservers to check for webservers="apache apache-ssl apache-perl apache2" restart="" found="false" for webserver in $webservers; do webserver=${webserver%,} # Remove the apache config snippet link rm -f /etc/$webserver/conf.d/torrentflux.conf # Test for the webserver test -x /usr/sbin/$webserver || continue test -d /etc/$webserver/conf.d || continue # Prompt for webserver restart found="true" db_reset torrentflux/restart-webserver || true db_subst torrentflux/restart-webserver webserver "$webserver" db_input high torrentflux/restart-webserver || true db_go db_get torrentflux/restart-webserver if [ "$RET" = "true" ]; then restart="$restart $webserver" fi done if [ "$found" = "false" ] ; then db_input high torrentflux/unsupported-webserver || true db_go fi # Tell debconf to stop so it doesn't get confused db_stop for webserver in $restart; do webserver=${webserver%,} # Restart the webserver if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d $webserver restart >&2 else /etc/init.d/$webserver restart >&2 fi done fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/torrentflux.manpages0000644000000000000000000000023710611200467013276 0ustar debian/torrentflux.1 debian/btphptornado.torrentflux.1 debian/btshowmetainfo.torrentflux.1 debian/btmakemetafile.torrentflux.1 debian/tfQManager.torrentflux.1 debian/torrentflux.sgml0000644000000000000000000000710410611200467012445 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Cameron"> Dale"> April 7, 2006"> 1"> camrdale@gmail.com"> TORRENTFLUX"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2006 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; a PHP based, feature-rich Torrent download manager DESCRIPTION This manual page documents briefly the &dhpackage; webpage. This manual page was written for the &debian; distribution because the original program does not have a manual page. This program works via your web browser, and so has no command line options, simply point your browser to http://<server_name>/torrentflux and gaze in wonder! SEE ALSO bittorrent-downloader.bittornado1, bittorrent-downloader1. AUTHOR This manual page was written by &dhusername; <&dhemail;> for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/apache.conf0000644000000000000000000000032410706464602011262 0ustar Alias /torrentflux /usr/share/torrentflux/www Options FollowSymLinks AllowOverride Limit DirectoryIndex index.php debian/doc/0000755000000000000000000000000011351524035007732 5ustar debian/doc/patches/0000755000000000000000000000000011351524035011361 5ustar debian/doc/patches/tfQManager.patch0000755000000000000000000000372611033741121014434 0ustar --- torrentflux~/html/TF_BitTornado/tfQManager.py 2006-04-06 17:36:50.000000000 -0700 +++ torrentflux/html/TF_BitTornado/tfQManager.py 2006-04-09 22:22:40.000000000 -0700 @@ -46,13 +46,11 @@ # this will be used during the process Counts to ensure we are # unique from other running instances. - ePath = execPath.split(" ") - for x in ePath: - if (re.search('btphptornado', x) > 0 ): - btphp = x + ePath = execPath.split() + btphp = ePath[-1] if __debug__: traceMsg("btphp ->"+btphp) - if (re.search('btphptornado', btphp) > 0 ): + if (1): try: while 1: @@ -191,7 +189,7 @@ psLine = [] line = "" counter = 0 - list = doCommand("ps x -o pid,ppid,command -ww | grep '" + btphp + "' | grep -v tfQManager | grep -v grep") + list = doCommand("ps x -o pid,ppid,command -ww | grep '" + btphp + "' | grep -v " + argv[0] + " | grep -v grep") try: for c in list: @@ -202,7 +200,7 @@ # look for the grep line for line in psLine: - if (re.search('btphptornado.py',line) > 0): + if (re.search(btphp,line) > 0): # now see if this is the main process and not a child. if (re.search(' 1 /',line) > 0): counter += 1 @@ -236,7 +234,7 @@ psLine = [] line = "" counter = 0 - list = doCommand("ps x -o pid,ppid,command -ww | grep '" + btphp + "' | grep -v tfQManager | grep -v grep") + list = doCommand("ps x -o pid,ppid,command -ww | grep '" + btphp + "' | grep -v " + argv[0] + " | grep -v grep") try: for c in list: @@ -247,7 +245,7 @@ # look for the grep line for line in psLine: - if (re.search('btphptornado.py',line) > 0): + if (re.search(btphp,line) > 0): # now see if this is the main process and not a child. if (re.search(' 1 /',line) > 0): # look for the userName debian/doc/patches/btphptornado.patch0000644000000000000000000000103010611200467015076 0ustar --- ./btphptornado.py 2006-01-06 10:46:22.000000000 -0800 +++ ./torrentflux-2.0beta1-patched/btphptornado.py 2006-01-06 09:00:09.000000000 -0800 @@ -13,7 +13,8 @@ pass from BitTornado.download_bt1 import BT1Download, defaults, parse_params, get_usage, get_response -from BitTornado.RawServer import RawServer, UPnP_ERROR +from BitTornado.RawServer import RawServer +from BitTornado.SocketHandler import UPnP_ERROR from random import seed from socket import error as socketerror from BitTornado.bencode import bencode debian/doc/patches/btshowmetainfo.patch0000644000000000000000000000156410611200467015437 0ustar --- ./btshowmetainfo.py 2006-01-06 10:46:22.000000000 -0800 +++ ./torrentflux-2.0beta1-patched/btshowmetainfo.py 2006-01-06 09:00:10.000000000 -0800 @@ -4,10 +4,10 @@ # modified for multitracker display by John Hoffman # see LICENSE.txt for license information -from sys import * -from os.path import * -from sha import * -from BitTornado.bencode import * +from sys import argv +from os.path import basename, splitext +from sha import sha +from BitTornado.bencode import bencode, bdecode NAME, EXT = splitext(basename(argv[0])) VERSION = '20030621' @@ -44,7 +44,7 @@ path = '' for item in file['path']: if (path != ''): - path = path + "/" + path = path + "/" path = path + item print ' %s (%d)' % (path, file['length']) file_length += file['length'] debian/torrentflux.postinst0000644000000000000000000000563711010436152013373 0ustar #!/bin/sh set -e #set -x . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/postinst.mysql dbc_generate_include=php:/etc/torrentflux/config-db.php dbc_go torrentflux $@ # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # case "$1" in configure) chown root:www-data /etc/torrentflux/config-db.php chmod 640 /etc/torrentflux/config-db.php # Remove a bad directory created by 2.3-8 if [ -f /etc/torrentlfux/lighttpd.conf ]; then echo "Deleting improperly named /etc/torrentlfux directory" rm -f /etc/torrentlfux/lighttpd.conf rmdir --ignore-fail-on-non-empty /etc/torrentlfux fi # Webservers to test for webservers="apache apache-ssl apache-perl apache2" restart="" found="false" for webserver in $webservers; do webserver=${webserver%,} # Test for the webserver test -x /usr/sbin/$webserver || continue test -d /etc/$webserver/conf.d || continue # Create link to config snippet if [ ! -f /etc/$webserver/conf.d/torrentflux.conf ] && [ ! -h /etc/$webserver/conf.d/torrentflux.conf ]; then ln -s /etc/torrentflux/apache.conf /etc/$webserver/conf.d/torrentflux.conf fi # Prompt for restarting the webserver found="true" db_reset torrentflux/restart-webserver || true db_subst torrentflux/restart-webserver webserver "$webserver" db_input high torrentflux/restart-webserver || true db_go db_get torrentflux/restart-webserver if [ "$RET" = "true" ]; then restart="$restart $webserver" fi done if [ "$found" = "false" ] ; then db_input high torrentflux/unsupported-webserver || true db_go fi # Tell debconf to stop so it doesn't get confused db_stop for webserver in $restart; do webserver=${webserver%,} # Restart the webserver if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d $webserver restart >&2 else /etc/init.d/$webserver restart >&2 fi done ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/lighttpd.conf0000644000000000000000000000010011006721571011643 0ustar alias.url += ("/torrentflux/" => "/usr/share/torrentflux/www/") debian/source/0000755000000000000000000000000011351524035010465 5ustar debian/source/format0000644000000000000000000000001411351524130011667 0ustar 3.0 (quilt) debian/btmakemetafile.torrentflux.sgml0000644000000000000000000000601310611200467015414 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Cameron"> Dale"> April 7, 2006"> 1"> camrdale@gmail.com"> BTMAKEMETAFILE.TORRENTFLUX"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2006 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; a modified bittornado python file for use with torrentflux DESCRIPTION This program should only be used via the torrentflux web interface. You should not use this program yourself. AUTHOR This manual page was written by &dhusername; <&dhemail;> for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/btshowmetainfo.torrentflux.sgml0000644000000000000000000000601310611200467015473 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Cameron"> Dale"> April 7, 2006"> 1"> camrdale@gmail.com"> BTSHOWMETAINFO.TORRENTFLUX"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2006 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; a modified bittornado python file for use with torrentflux DESCRIPTION This program should only be used via the torrentflux web interface. You should not use this program yourself. AUTHOR This manual page was written by &dhusername; <&dhemail;> for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/copyright0000644000000000000000000000550610611200467011124 0ustar This package was debianized by Cameron Dale on Wed, 4 Jan 2006 16:09:45 -0800. It was downloaded from http://www.torrentflux.com Copyright Holder: Qrome: http://www.torrentflux.com/contact.php License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. The source package contains source files from ADOdb It can be found at: http://adodb.sourceforge.net/ ADOdb is Copyright 2000, 2001, 2002, 2003, 2004 John Lim, licensed under the GNU Lesser General Public License which, on Debian systems, can be found in '/usr/share/common-licenses/LGPL'. The package also contains source from BitTornado and two installed scripts based on BitTornado: btphptornado.torrentflux and btshowmetainfo.torrentflux. The source is available from http://bittornado.com/download.html and was modified by theshadow@degreez.net. License: Copyright (C) 2001-2002 Bram Cohen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. The Software is provided "AS IS", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the Software. The script btshowmetainfo.torrentflux was written by Henry 'Pi' James and Loring Holden, and modified for multitracker display by John Hoffman debian/docs0000644000000000000000000000016510611200467010040 0ustar debian/TODO.Debian debian/NEWS.Debian # Patches used on python files distibuted with TorrentFlux debian/doc/patches debian/torrentflux.config0000644000000000000000000000110310625215244012745 0ustar #!/bin/sh set -e #set -x # source debconf stuff if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi # source dbconfig-common stuff if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then . /usr/share/dbconfig-common/dpkg/config.mysql dbc_go torrentflux $@ fi if [ "$1" = "configure" ] then # if we are upgrading from version < 2.1 warns the user if [ "$2" ] && dpkg --compare-versions "$2" lt "2.1" then db_input high torrentflux/upgrade_to_21 || true db_go fi fi debian/tfQManager.torrentflux.sgml0000644000000000000000000000577110611200467014501 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Cameron"> Dale"> April 7, 2006"> 1"> camrdale@gmail.com"> TFQMANAGER.TORRENTFLUX"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2006 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; a torrent queue manager for use with torrentflux DESCRIPTION This program should only be used via the torrentflux web interface. You should not use this program yourself. AUTHOR This manual page was written by &dhusername; <&dhemail;> for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/rules0000755000000000000000000000425511351515010010244 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 build: build-stamp build-stamp: btphptornado.torrentflux.1 btshowmetainfo.torrentflux.1 btmakemetafile.torrentflux.1 tfQManager.torrentflux.1 torrentflux.1 dh_testdir touch build-stamp %.1: debian/%.sgml /usr/bin/docbook-to-man $< > debian/$@ clean: dh_testdir dh_testroot rm -f build-stamp rm -f debian/btphptornado.torrentflux.1 debian/btshowmetainfo.torrentflux.1 debian/btmakemetafile.torrentflux.1 debian/tfQManager.torrentflux.1 debian/torrentflux.1 dh_clean build-stamp install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot dh_installdebconf dh_installchangelogs CHANGELOG dh_installdocs dh_install -XThumbs.db dh_installman # Remove the .py from the end of each of these and add .torrentflux # to remove any confusion with other bittorrent alternatives ( cd debian/torrentflux/usr/bin && \ for i in btphptornado btshowmetainfo btmakemetafile tfQManager; \ do mv $$i.py $$i.torrentflux; done ) # Remove the unneeded adodb and BitTornado rm -f -r debian/torrentflux/usr/share/torrentflux/www/adodb rm -f -r debian/torrentflux/usr/share/torrentflux/www/TF_BitTornado dh_compress # Remove the executable bit from all the files ( cd debian/torrentflux && \ for i in etc/ usr/; \ do find $$i -type f | xargs chmod -x; done ) dh_fixperms # Fix the premissions on the downloads directory chown www-data:www-data debian/torrentflux/var/cache/torrentflux # Fix the permissions on the config file chown root:www-data debian/torrentflux/etc/torrentflux/apache.conf dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/po/0000755000000000000000000000000011552306570007610 5ustar debian/po/fr.po0000644000000000000000000000777511547375164010610 0ustar # French translation for torrentflux # Copyright (C) 2006 Qrome http://www.torrentflux.com/contact.php # msgid "" msgstr "" "Project-Id-Version: torrentflux_2.1-1\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-05-16 16:51+0200\n" "Last-Translator: Gaetan CRAHAY \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "Faut-il redémarrer ${webserver} ?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Pour activer la nouvelle configuration, le serveur ${webserver} doit être " "redémarré. Vous pouvez aussi le redémarrer vous-même avec la commande " "« invoke-rc.d ${webserver} restart »." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "Configuration réinitialisée pour la mise à niveau vers la version 2.1" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Vous mettez à niveau d'une version antérieure à la 2.1 vers une version 2.1 " "ou supérieure. Depuis la version 2.1, la configuration est stockée dans une " "base de données. Cette mise à niveau va donc mettre à jour celle-ci en " "utilisant les valeurs par défaut. Tous les changements que vous auriez pu " "effectuer dans le fichier de configuration « /etc/torrentflux/config.php » " "NE seront PAS utilisés. Ce fichier sera sauvegardé pour que vous puissiez " "ensuite le consulter. Après la mise à niveau, vous pourrez modifier les " "paramètres en vous connectant dans le logiciel avec les privilèges de " "l'administrateur puis en cliquant sur « admin » et enfin sur " "« settings » (réglages)." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Aucun serveur web compatible trouvé" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Aucun serveur web compatible n'a été trouvé en vue de la configuration " "automatique. Seuls les serveurs web Apache peuvent être configurés " "automatiquement pour ce logiciel. Si vous utilisez un autre serveur web, " "vous devrez lui indiquer les fichiers de torrrentflux situés dans « /usr/" "share/torrentflux/www » (pour des exemples, reportez-vous au fichier de " "configuration du serveur web « /etc/torrentflux/apache.conf ») et " "probablement redémarrer le serveur web pendant l'installation. N'oubliez pas " "d'enlever cette configuration lors de la désinstallation du paquet." debian/po/it.po0000644000000000000000000000773211547375164010606 0ustar # Italian translation of the torrentflux debconf templates # This file is distributed under the same license as the torrentflux package # Copyright (C) 2007 Free Software Foundation, Inc. # Luca Monducci , 2007-2008. # msgid "" msgstr "" "Project-Id-Version: torrentflux 2.3 debconf templates\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-06-07 17:32+0200\n" "Last-Translator: Luca Monducci \n" "Language-Team: Italian \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "Riavviare ${webserver}?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Per attivare la nuova configurazione è necessario riavviare ${webserver}. È " "possibile anche riavviare ${webserver} manualmente usando \"invoke-rc.d " "${webserver} restart\"." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "" "L'aggiornamento alla versione 2.1 ripristina la configurazione predefinita" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Si sta aggiornando torrentflux da una versione precedente la 2.1 alla 2.1 o " "successiva. Una delle modifiche più importanti introdotte nella versione 2.1 " "è la memorizzazione della configurazione nel database. Questo aggiornamento " "inserisce nel database i valori predefiniti e qualsiasi modifica effettuata " "nel file di configurazione /etc/torrentflux/config.php non viene usata. " "Questo file viene salvato in modo da poterlo usare come riferimento in " "seguito. Al termine dell'aggiornamento è possibile cambiare le impostazioni " "dal programma accedendo come amministratore e facendo clic su \"admin\" e " "poi su \"settings\"." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Non è stato trovato un server web supportato" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Non è stato trovato un server web per il quale sia supportata la " "configurazione automatica. Questo pacchetto può configurare automaticamente " "solo i server web apache; se si usa un server web diverso, è necessario " "fargli puntare i file di torrentflux in /usr/share/torrentflux/www (si veda " "come esempio i file di configurazione del server web in /etc/torrentflux/" "apache.conf) e, se possibile, riavviare il server web durante " "l'installazione e rimuovere tale configurazione alla rimozione del pacchetto." debian/po/pt_BR.po0000644000000000000000000001011111547375164011161 0ustar # torrentflux Brazilian Portuguese translation. # Copyright (C) 2008 torrentflux's COPYRIGHT HOLDER # This file is distributed under the same license as the torrentflux package. # Bruno Gurgel Gomes de Oliveira , 2008. # msgid "" msgstr "" "Project-Id-Version: torrentflux-2.3.7\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-05-13 00:58-0300\n" "Last-Translator: Bruno Gurgel Gomes de Oliveira \n" "Language-Team: l10n Portuguese \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "pt_BR utf-8\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "O ${webserver} deve ser reiniciado?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Lembre-se de que para ativar a nova configuração o ${webserver} deve ser " "reiniciado. Você também pode reiniciar o ${webserver} manualmente executando " "invoke-rc.d ${webserver} restart." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "Atualizando para 2.1 reverterá a configuração para o padrão" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Você está atualizando de uma versão pré-2.1 do torrentflux para a 2.1 ou " "posterior. A maior mudança na versão 2.1 é que a configuração agora é " "armazenada em um banco de dados. Esta atualização atualizará o banco de " "dados usando valores padrão, e quaisquer mudanças que você tenha feito no " "arquivo de configuração /etc/torrentflux/config.php NÃO serão usadas. Este " "arquivo será salvo para que você possa referenciá-lo depois. Após a " "atualização ser concluída, você pode ajustar as configurações dentro do " "programa logando como um administrador, e clicando em \"admin\" e depois em " "\"settings\"." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Nenhum servidor web suportado foi encontrado" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Um servidor web suportado não foi encontrado para ser configurado " "automaticamente. Este pacote só pode configurar automaticamente servidores " "web apache para usar o programa. Se você está usando um servidor web " "diferente, você precisa apontá-lo para os arquivos de configuração do " "torrentflux em /usr/share/torrentflux/www (veja os arquivos de configuração " "do servidor web em /etc/torrentflux/apache.conf para exemplos) e " "possivelmente reiniciar o servidor web durante a instalação, e então remover " "a configuração quando estiver removendo o pacote." debian/po/templates.pot0000644000000000000000000000462411006721723012333 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" debian/po/gl.po0000644000000000000000000000767411547375164010601 0ustar # Galician translation of torrentflux's debconf templates # This file is distributed under the same license as the torrentflux package. # Jacobo Tarrio , 2008. # msgid "" msgstr "" "Project-Id-Version: torrentflux\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-06-14 11:32+0100\n" "Last-Translator: Jacobo Tarrio \n" "Language-Team: Galician \n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "¿Debería reiniciarse ${webserver}?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Lembre que para activar a nova configuración hai que reiniciar ${webserver}. " "Tamén pode reiniciar ${webserver} á man executando \"invoke-rc.d " "${webserver} restart\"." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "A actualización a 2.1 desfai a configuración" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Está a se actualizar dunha versión de torrentflux anterior á 2.1 á versión " "2.1 ou posterior. Un dos principais cambios na versión 2.1 é que a " "configuración pasa a se armacenar na base de datos. Este proceso de " "actualización ha actualizar a base de datos empregando os valores por " "defecto, e NON se han empregar os cambios que teña feitos no ficheiro de " "configuración /etc/torrentflux/config.php. Hase conservar este ficheiro para " "que o poida consultar máis adiante. Despois de se completar a actualización, " "pode axustar a configuración dentro do programa se se conecta coma " "administrador e preme en \"admin\" e despois en \"settings\"." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Non se atopou un servidor web soportado" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Non se atopou un servidor web soportado que se poida configurar " "automaticamente. Este paquete só pode configurar automaticamente os " "servidores web apache para poder usar o programa. Se emprega un servidor web " "diferente, ha ter que o facer apuntar aos ficheiros de torrentflus en /usr/" "share/torrentflux/www (consulte os ficheiros de configuración do servidor " "web en /etc/torrentflux/apache.conf para ver exemplos), e, probablemente, ha " "ter que reiniciar o servidor web durante a instalación, e despois, cando " "elimine o paquete, ha ter que eliminar a configuración." debian/po/vi.po0000644000000000000000000001057511547375164010607 0ustar # Vietnamese translation for TorrentFlux. # Copyright © 2008 Free Software Foundation, Inc. # Clytie Siddall , 2008. # msgid "" msgstr "" "Project-Id-Version: torrentflux\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-06-14 16:00+0930\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: LocFactoryEditor 1.7b3\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "Có nên khởi chạy lại ${webserver} không?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Ghi nhớ rằng để kích hoạt cấu hình mới, trình phục vụ ${webserver} cần phải " "khởi chạy lại. Bạn cũng có thể khởi chạy lại ${webserver} bằng cách tự thực " "hiện câu lệnh « invoke-rc.d ${webserver} restart »." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "Nâng cấp lên 2.1 cũng hoàn nguyên cấu hình thành mặc định." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Bạn đang nâng cấp từ một phiên bản torrentflux cũ hơn 2.1 lên một phiên bản " "2.1 hay sau. Trong phiên bản 2.1 có một thay đổi quan trọng: cấu hình được " "chứa trong cơ sở dữ liệu. Tiến trình nâng cấp này sẽ cập nhật cơ sở dữ liệu " "dùng các giá trị mặc định, và bất cứ thay đổi nào bạn đã làm trong tập tin " "cấu hình « /etc/torrentflux/config.php » sẽ KHÔNG được sử dụng. Tập tin này " "sẽ được lưu lại để bạn tham chiếu đến nó về sau. Sau khi nâng cấp xong, bạn " "cũng có thể điều chỉnh thiết lập bên trong chương trình bằng cách đăng nhập " "dưới dạng quản trị, và nhấn vào \"admin\" (quản trị) và sau đó \"settings" "\" (thiết lập)." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Không tìm thấy trình phục vụ Web được hỗ trợ" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Không tìm thấy một trình phục vụ Web được hỗ trợ để tự động cấu hình. Gói " "này chỉ có khả năng tự động cấu hình trình phục vụ Web kiểu Apache để sử " "dụng chương trình. Nếu bạn sử dụng một trình phục vụ khác Apache, cần phải " "chỉ nó tới các tập tin torrentflux trong thư mục « /usr/share/torrentflux/" "www » (xem các tập tin cấu hình trình phục vụ Web trong « /etc/torrentflux/" "apache.conf » để tìm mẫu thí dụ) và có thể khởi chạy lại trình phục vụ trong " "khi cài đặt, sau đó gỡ bỏ cấu hình trong khi gỡ bỏ gói." debian/po/fi.po0000644000000000000000000000734411547375164010567 0ustar msgid "" msgstr "" "Project-Id-Version: torrentflux\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: \n" "Last-Translator: Esko Arajärvi \n" "Language-Team: Finnish \n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Finnish\n" "X-Poedit-Country: FINLAND\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "Tulisiko ${webserver} käynnistää uudelleen?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Uusien asetusten käyttöönotto vaatii, että ${webserver} käynnistetään " "uudelleen. ${webserver} voidaan myös käynnistää uudelleen käsin ajamalla " "komento ”invoke-rc.d ${webserver} restart”." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "Päivitys versioon 2.1 palauttaa oletusasetukset" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Olet päivittämässä torrentfluxia versioon 2.1 tai myöhempään jostain " "varhemmasta versiosta. Versiosta 2.1 alkaen ohjelman asetukset tallennetaan " "tietokantaan. Tämä päivitys asettaa tietokannan asetukset oletusarvoihin, " "eikä asetustiedoston /etc/torrentflux/config.php asetuksia käytetä. Tämä " "tiedosto säilytetään, jotta voit katsoa sitä myöhemmin. Kun päivitys on " "valmis, voit säätää asetuksia ohjelman sisältä kirjautumalla admin-" "tunnuksella ja valitsemalla ”admin” ja sen jälkeen ”settings”. " #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Tuettuja verkkopalvelimia ei löytynyt" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Asetuksia automaattisesti muokkaava ohjelma ei löytänyt tuettuja " "verkkopalvelimia. Tämä paketti tukee vain apache-verkkopalvelimien asetusten " "automaattista muokkausta. Jos käytössä on jokin muu verkkopalvelin, " "viittaukset hakemiston /usr/share/torrentflux/www tiedostoihin täytyy lisätä " "sen asetuksiin käsin. (Katso esimerkkejä verkkopalvelimen asetustiedostoista " "hakemistosta /etc/torrentflux/apache.conf.) Verkkopalvelin täytyy ehkä " "käynnistää uudelleen asetusten muokkauksen jälkeen ja asetukset täytyy " "poistaa käsin, kun paketti poistetaan." debian/po/ru.po0000644000000000000000000001145111547375164010611 0ustar # translation of ru.po to Russian # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Yuri Kozlov , 2008. msgid "" msgstr "" "Project-Id-Version: torrentflux new\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-06-14 12:54+0400\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "Перезапустить ${webserver}?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Чтобы новые настройки начали действовать, нужно перезапустить ${webserver}. " "Также, вы можете перезапустить ${webserver} вручную с помощью команды invoke-" "rc.d ${webserver} restart." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "" "Обновление до версии 2.1 возвращает все настройки в значения по умолчанию" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Выполняется обновление с версии pre-2.1 torrentflux до 2.1 или более новой. " "Главное изменение 2.1 в том, что её настройки теперь хранятся в базе данных. " "Данное обновление создаст базу данных с настройками по умолчанию, и любые " "изменения, которые вы сделали в файле настройки /etc/torrentflux/config.php, " "использованы НЕ БУДУТ. Этот файл будет оставлен в системе, чтобы позже вы " "смогли его просмотреть. После завершения обновления, вы можете изменить " "настройки внутри программы, войдя как администратор, и выбрав \"admin\", а " "затем \"settings\"." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Найден неподдерживаемый веб-сервер" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Автоматическая настройка не поддерживает используемый в системе веб-сервер. " "Данный пакет может автоматически настраивать только веб-серверы apache. Если " "вы используете другой веб-сервер, то вам нужно указать в нём, что файлы " "torrentflux находятся в каталоге /usr/share/torrentflux/www (пример смотрите " "в файле /etc/torrentflux/apache.conf), и, возможно, перезапустить веб-сервер " "после установки, а при удалении пакета -- удалить эти настройки." debian/po/ja.po0000644000000000000000000001041211547375164010551 0ustar # Copyright (C) 2009 Cameron Dale # This file is distributed under the same license as torrentflux package. # Hideki Yamane (Debian-JP) , 2009. # msgid "" msgstr "" "Project-Id-Version: torrentflux 2.4-4\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2009-11-10 14:26+0900\n" "Last-Translator: Hideki Yamane (Debian-JP) \n" "Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "${webserver} を再起動しますか?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "新しい設定を有効にするには、${webserver} を再起動させなければならないのに注意" "ください。手動で invoke-rc.d ${webserver} restart を実行しても、再起動は可能" "です。" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "2.1 へのアップグレードは設定をデフォルトに戻します" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "torrentflux の 2.1 より前のバージョンから 2.1 以降にアップグレードをしようと" "しています。設定をデータベースに保存するという、2.1 での大きな変更がありまし" "た。このアップグレード作業ではデータベースでデフォルト値を使うように更新し、" "設定ファイル /etc/torrentflux/config.php に加えた変更は「使われません」。この" "ファイルは保存されるので、後ほど参照できます。アップグレード完了後、admin と" "してプログラム内部へログインして、まず「admin」、そして「settings」をクリック" "して設定を調整できます。" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "サポートしているウェブサーバが見つかりません" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "自動設定のサポート対象であるウェブサーバが見つかりませんでした。このパッケー" "ジでは、apache ウェブサーバだけはこのプログラムを使うように自動的に設定できま" "す。別のウェブサーバを使っている場合は、/usr/share/torrentflux/www にある " "torrentflux のファイルを使うように指定する必要があります (例として /etc/" "torrentflux/apache.conf にあるウェブサーバの設定ファイルを参照してください)。" "おそらくインストールの最中に、ウェブサーバの再起動が必要になります。そして、" "パッケージが削除された時には設定を削除する必要があります。" debian/po/sv.po0000644000000000000000000001001411547375164010605 0ustar # translation of torrentflux_2.4-1_sv.po to Swedish # torrentflux. # Copyright (C) 2008 # This file is distributed under the same license as the torrentflux package. # # Martin Ågren , 2008. msgid "" msgstr "" "Project-Id-Version: torrentflux_2.4-1_sv\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-07-23 17:36+0200\n" "Last-Translator: Martin Ågren \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "Ska ${webserver} startas om?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Kom ihåg att ${webserver} måste startas om för att den nya konfigurationen " "ska aktiveras. Du kan också starta om ${webserver} manuellt genom att " "exekvera invoke-rc.d ${webserver} restart." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "Uppgradering till 2.1 återställer konfigurationen till standardvalet" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Du uppgrader från en version av torrentflux före 2.1 till version 2.1 eller " "senare. En stor förändring i version 2.1 är att konfigurationen nu lagras i " "databasen. Denna uppgradering kommer att uppdatera databasen med hjälp av " "standardvärden, och eventuella ändringar som du har gjort i " "konfigurationsfilen /etc/torrentflux/config.php kommer INTE att användas. " "Den här filen kommer att sparas så att du kan referera till den senare. " "Efter att uppgraderingen avslutats, kan du justera inställningarna inne i " "programmet genom att logga in som admin, klicka på \"admin\" och sedan " "\"inställningar\" (\"settings\")." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Inga stödda webbservrar hittades" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Någon stödd webbserver kunde inte hittas för automatisk konfiguration. Det " "här paketet kan endast konfigurera apache-webbservrar automatiskt för att " "använda programmet. Om du använder en annan webbserver, kommer du behöva " "hänvisa den till torrentflux-filerna i /usr/share/torrentflux/www (se " "webbserverkonfigurationsfilerna i /etc/torrentflux/apache.conf för exempel) " "och möjligen starta om webbservern under installationen för att sedan ta " "bort konfigurationen när du tar bort paketet." debian/po/POTFILES.in0000644000000000000000000000006010611200467011352 0ustar [type: gettext/rfc822deb] torrentflux.templates debian/po/pt.po0000644000000000000000000000762311547375164010614 0ustar # Portuguese translation of torrentflux. # This file is distributed under the same license as the torrentflux package. # Rui Branco , 2008. # msgid "" msgstr "" "Project-Id-Version: torrentflux 2.3-9\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-05-12 21:41+0100\n" "Last-Translator: Rui Branco \n" "Language-Team: Portuguese \n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "Deverá o ${webserver} ser reiniciado?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Lembre-se que para que a nova configuração seja activada o ${webserver} tem " "que ser reiniciado. Pode também reiniciar o ${webserver} manualmente " "executando rc.d·${webserver} restart." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "Actualizar para 2.1 volta à configuração por omissão." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Está a actualizar uma versão pré-2.1 do torrentflux para uma versão 2.1 ou " "superior. Uma grande alteração na versão 2.1 é a configuração que passa a " "ser guardada numa base de dados. Esta actualização actualizará a base de " "dados usando valores por omissão, qualquer alteração que tenha efectuado no " "ficheiro de configuração /etc/torrentflux/config.php NÃO será utilizada. " "Este ficheiro será guardado de modo a que o possa consultar mais tarde. " "Depois de completar a actualização, poderá ajustar as opções dentro do " "programa ao corre-lo como administrador, clicando em \"admin\" e depois em " "\"settings\"." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Nenhum servidor web suportado foi encontrado" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Nenhum servidor web suportado foi automaticamente configurado. Este pacote " "pode apenas configurar automaticamente servidores web apache para utilizar o " "programa. Se estiver a usar um servidor web diferente, terá que apontá-lo " "nos ficheiros torrentflux em /usr/share/torrentflux/www·(veja os ficheiros " "de configuração do servidor web em /etc/torrentflux/apache.conf para " "exemplos) e possivelmente terá que reiniciar o servidor web durante a " "instalação, terá também que remover a configuração quando remover o pacote.·" debian/po/de.po0000644000000000000000000001021311547375164010546 0ustar # translation of po-debconf template to German # This file is distributed under the same license as the torrentflux package. # Copyright (C): # # Matthias Julius , 2007. # Helge Kreutzmann , 2008. msgid "" msgstr "" "Project-Id-Version: torrentflux 2.3-9\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-05-26 19:55+0200\n" "Last-Translator: Helge Kreutzmann , 2008\n" "Language-Team: de \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "Soll ${webserver} neu gestartet werden?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Beachten Sie, dass ${webserver} neu gestartet werden muss, um die neue " "Konfiguration zu aktivieren. Sie können ${webserver} auch neu starten, indem " "Sie »invoke-rc.d ${webserver} restart« manuell ausführen." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "" "Das Upgrade auf 2.1 setzt die Konfiguration auf die Voreinstellung zurück." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Sie führen ein Upgrade von einer Version vor 2.1 von Torrentflux auf Version " "2.1 oder später durch. Eine bedeutende Änderung in Version 2.1 ist, dass die " "Konfiguration jetzt in der Datenbank gespeichert ist. Dieses Upgrade wird " "die Datenbank unter Verwendung voreingestellter Werte aktualisieren. " "Jegliche Änderungen, die Sie an der Konfigurationsdatei /etc/torrentflux/" "config.php vorgenommen haben, werden nicht verwendet. Diese Datei wird " "gespeichert, sodass Sie sie später referenzieren können. Nachdem das Upgrade " "abgeschlossen ist, können Sie die Einstellungen anpassen, indem Sie sich als " "admin anmelden und dann auf »admin« und dann »settings« klicken." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Kein unterstützter Webserver gefunden" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Es wurde kein unterstützer Webserver zum automatischen Konfigurieren " "gefunden. Dises Paket kann nur Apache-Webserver automatisch zur Verwendung " "des Programms konfigurieren. Falls Sie einen anderen Webserver verwenden, " "müssen Sie ihn auf die Dateien von Torrentflux in /usr/share/torrentflux/www " "verweisen (schauen Sie in die Webserver-Konfigurationsdateien in /etc/" "torrentflux/apache.conf für Beispiele) und den Webserver während der " "Installation möglicherweise neu starten. Entsprechend müssen Sie beim " "Entfernen des Pakets auch die Konfiguration entfernen." debian/po/eu.po0000644000000000000000000000767211547375164010606 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # pi,,, , 2008 msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-10-15 00:28+0200\n" "Last-Translator: pi,,, \n" "Language-Team: debian-l19n-basque@lists.debian.org\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Virtaal 0.2-rc1\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "${webserver} berrabiarazi egin behar al da?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Kontutan izan konfigruazio berrriak eragin izan dezan ${webserver} " "berrabiarazi egin behar dela. Baita ${webserver} eskuz berrabiarazi dezakezu " "'invoke-rc.d ${webserver} start' exekutatuaz." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "2.1-era bertsio-berritzeak konfigurazio lehenepenetara itzuliko du" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "2.1 aurreko torrentflux bertsio batetatik 2.1 ondorengo batetara bertsio-" "berritzen ari zara. 2.1 bertsioaren aldaketa naguseneteko bat bere " "konfigurazioa datu-base batetan gordetzera pasa dela da. Bertsio-berritze " "honek datu-basea lehenetsiko balioekin beteko du eta aurretik /etc/" "torrentflux/config-php fitxategian eginiko edozein aldaketa EZ da erabiliko. " "Fitxategi hori gorde egingo da gero erabili dezazun. Bein bertsio-berritzea " "osatzen denean programa barneko ezarpenak aldatu ditzakezu admin gisa saioa " "abiarazi hor \"admin\" eta gero \"settings\" sakatuaz." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Onartzen ez den web zerbitzari bat aurkitu da" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Ez da automatikoki konfiguratzeko onartzen den web zerbitzaririk aurkitu. " "Pakete hau programa erabiltzeko bakarrik apache web zerbitzariak " "konfigruatzeko gai da. Beste web zerbitzari bat erabiltzen baduzu /usr/share/" "torrentflux/www direktorioan dauden torrentflux fitxategietara lotura sortu " "(ikusi web zerbitzari konfigurazioa /etc/torrentflux/apache.conf fitxategian " "adibide gisa) eta ziurrenik web zerbitzaria berrabiarazi beharko duzu " "instalatzerakoan eta orduan konfigurazioa ezabatu beharko duzu paketea " "kentzerakoan." debian/po/tr.po0000644000000000000000000001014711547375164010611 0ustar # translation of torrentflux.po to # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Mert Dirik , 2008. # msgid "" msgstr "" "Project-Id-Version: torrentflux\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-06-18 20:23+0200\n" "Last-Translator: Mert Dirik \n" "Language-Team: Debian L10n Turkish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "${webserver} yeniden başlatılsın mı?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Yeni yapılandırmanın etkinleşmesi için ${webserver}'ın yeniden başlatılması " "gerektiğini unutmayın. ${webserver}'ı, invoke-rc.d ${webserver} restart " "komutuyla kendiniz de yeniden başlatabilirsiniz." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "" "torrentflux'u 2.1 sürümüne yükseltmek yapılandırmanızı öntanımlı haline geri " "döndürecek" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "torrentflux'ı 2.1 öncesi bir sürümden 2.1 ya da daha yeni bir sürüme " "yükseltiyorsunuz. torrentflux'ın 2.1 sürümünde büyük değişiklikler yapıldı. " "torrentflux yapılandırması şimdi veritabanında saklanıyor. Yükseltme işlemi " "veritabanını öntanımlı değerleri kullanarak güncelleyecek ve /etc/" "torrentflux/config.php yapılandırma dosyasına yaptığınız hiç bir değişiklik " "KULLANILMAYACAK. Bu dosya, daha sonra dilediğinizde başvurabilmeniz için " "korunacak. Yükseltme işlemi tamamlandıktan sonra programı, yönetici olarak " "oturum açtıktan sonra \"admin\" ve daha sonra \"settings\"e tıklayarak " "ayarlayabilirsiniz." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Desteklenen bir web sunucusu bulunamadı" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Otomatik olarak yapılandırılacak, desteklenen bir web sunucusu bulunamadı. " "Bu paket sadece apache web sunucularını otomatik olarak yapılandırabilir. " "Eğer farklı bir web sunucusu kullanıyorsanız web sunucunuzu /usr/share/" "torrentflux/www adresindeki torrentflux dosyalarını görecek şekilde " "ayarlamalısınız (örnekler için /etc/torrentflux/apache.conf adresindeki web " "sunucusu yapılandırma dosyasına bakın). Ayrıca büyük olasılıkla kurulumdan " "sonra web sunucusu yeniden başlatmanız ve paketi kaldırırken yapılandırma " "dosyasını silmeniz gerekecek." debian/po/da.po0000644000000000000000000000752611545572200010543 0ustar # Danish translation torrentflux. # Copyright (c) 2010 torrentflux & nedenstående oversættere. # This file is distributed under the same license as the torrentflux package. # Joe Hansen , 2010. # msgid "" msgstr "" "Project-Id-Version: torrentflux\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2010-07-01 17:34+0000\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "Skal ${webserver} genstartes?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Husk, for at aktivere den nye konfiguration skal ${webserver} genstartes. Du " "kan også genstarte ${webserver} ved manuelt at køre invoke-rc.d ${webserver} " "genstart." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "Opgradering til 2.1 sætter konfigurationen tilbage til standard" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Du opgraderer fra en præ-2.1 version af torrentflux til en 2.1 eller senere " "version. En væsentlig ændring i version 2.1 er, at konfigurationen nu gemmes " "i databasen. Denne opgradering vil opdatere databasen med brug af " "standardværdier, og alle ændringer du har foretaget i konfigurationsfilen /" "etc/torrentflux/config.php vil ikke blive brugt. Denne fil vil blive gemt, " "så du kan referere til den senere. Efter opgraderingen er færdig, kan du " "justere opsætningen inden i programmet ved at logge ind som admin, og klikke " "på »admin« og så »opsætning« (settings)." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Ingen understøttet internetserver fundet" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "En understøttet internetserver blev ikke fundet til automatisk " "konfiguration. Denne pakke kan kun automatisk konfigurere " "apacheinternetservere til brug med programmet. Hvis du bruger en anden slags " "internetserver, skal du få den til at pege mod torrentfluxfilerne i /usr/" "share/torrentflux/www (se konfigurationsfilerne for internetserveren i /etc/" "torrentflux/apache.conf for eksempler) og muligvis genstarte " "internetserveren under installation, og så fjerne konfigurationen når pakken " "fjernes." debian/po/nl.po0000644000000000000000000001003411552113253010551 0ustar # Dutch translation of torrentflux debconf templates. # Copyright (C) 2007-2011 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the torrentflux package. # Bart Cornelis , 2007. # Jeroen Schot , 2011. # msgid "" msgstr "" "Project-Id-Version: torrentflux_2.4\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2011-04-15 11:09+0200\n" "Last-Translator: Jeroen Schot \n" "Language-Team: Debian l10n Dutch \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Dutch\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "Wilt u dat ${webserver} herstart wordt?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "De nieuwe configuratie wordt pas van kracht zodra ${webserver} herstart is. " "U kunt ${webserver} handmatig herstarten door het commando 'invoke-rc.d " "${webserver} restart' uit te voeren." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "Opwaarderen naar 2.1 zet de standaardconfiguratie terug." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "U waardeert op van een pre-2.1 versie van torrentflux naar een 2.1 of latere " "versie. Een grote verandering in versie 2.1 is dat de configuratie nu " "opgeslagen wordt in een database. Deze opwaardering maakt de database aan " "met standaardwaarden, wat betekent dat de aanpassingen die u gemaakt heeft " "in het configuratiebestand /etc/torrentflux/config.php NIET gebruikt worden. " "Dit bestand wordt wel opgeslagen zodat u dit kunt naslaan. Zodra de " "opwaardering klaar is kunt u de instellingen in het programma aanpassen door " "u aan te melden als admin en op 'admin' en vervolgens 'settings' te klikken." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Geen ondersteunde webserver gevonden" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Er is geen ondersteunde webserver gevonden om automatisch te configureren. " "Dit pakket kan alleen apache webservers automatisch configureren voor " "gebruik met het programma. Als u een andere webserver gebruikt dient u deze " "zelf naar de torrentfluxbestanden in /usr/share/torrentflux/www te laten " "wijzen (zie voor voorbeelden de webserverconfiguratiebestanden in /etc/" "torrentflux/apache.conf). Ook dient u mogelijk uw webserver te herstarten " "tijdens de installatie en de configuratiebestanden te verwijderen wanneer u " "dit pakket verwijdert." debian/po/cs.po0000644000000000000000000000744111547375164010574 0ustar # Czech translation of torrentflux debconf messages # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the torrentflux package. # Miroslav Kure , 2008. # msgid "" msgstr "" "Project-Id-Version: torrentflux\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2008-06-14 14:26+0200\n" "Last-Translator: Miroslav Kure \n" "Language-Team: Czech \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "Má se ${webserver} restartovat?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Aby se nové nastavení aktivovalo, musí se ${webserver} restartovat. " "${webserver} také můžete restartovat ručně příkazem invoke-rc.d ${webserver} " "restart." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "Přechod na verzi 2.1 vrátí konfiguraci k výchozímu nastavení" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Přecházíte z torrentfluxu staršího než verze 2.1 na verzi 2.1 nebo novější. " "Velkou změnou verze 2.1 je ukládání konfigurace v databázi. Tato aktualizace " "nastaví do databáze výchozí hodnoty, tzn. možné změny ze souboru /etc/" "torrentflux/config.php NEBUDOU přeneseny. Zmíněný soubor bude zachován, " "abyste se jím mohli inspirovat. Po skončení aktualizace můžete upravit " "nastavení rovnou v programu. Stačí se přihlásit jako správce, kliknout na " "„admin“ a poté na „nastavení“." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "Podporovaný webový server nenalezen" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "Nebyl nalezen žádný podporovaný webový server. Tento balík umí automaticky " "nastavit pouze webové servery apache. Používáte-li jiný webový server, " "budete jej muset ručně odkázat na soubory torrentfluxu v adresáři /usr/share/" "torrentflux/www (příklady konfigurace naleznete v /etc/torrentflux/apache." "conf) a poté jej nejspíš restartovat. A pokud se později rozhodnete " "torrentflux odstranit, budete muset vrátit konfiguraci webového serveru do " "původního stavu ručně." debian/po/es.po0000644000000000000000000001212111547375164010565 0ustar # torrentflux po-debconf translation to Spanish. # Copyright (C) 2009 Software in the Public Interest, SPI Inc. # This file is distributed under the same license as the torrentflux package. # # Changes: # - Initial translation # Fernando González de Requena , 2009. # # Traductores, si no conoce el formato PO, merece la pena leer la # documentación de gettext, especialmente las secciones dedicadas a este # formato, por ejemplo ejecutando: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Equipo de traducción al español, por favor lean antes de traducir # los siguientes documentos: # # - El proyecto de traducción de Debian al español # http://www.debian.org/intl/spanish/ # especialmente las notas y normas de traducción en # http://www.debian.org/intl/spanish/notas # # - La guía de traducción de po's de debconf: # /usr/share/doc/po-debconf/README-trans # o http://www.debian.org/intl/l10n/po-debconf/README-trans # # Si tiene dudas o consultas sobre esta traducción consulte con el último # traductor (campo Last-Translator) y ponga en copia a la lista de # traducción de Debian al español () # msgid "" msgstr "" "Project-Id-Version: torrentflux 2.4-3\n" "Report-Msgid-Bugs-To: torrentflux@packages.debian.org\n" "POT-Creation-Date: 2008-05-02 16:29-0700\n" "PO-Revision-Date: 2009-02-01 13:07+0100\n" "Last-Translator: Fernando González de Requena \n" "Language-Team: Spanish \n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "Should ${webserver} be restarted?" msgstr "¿Desea reiniciar ${webserver}?" #. Type: boolean #. Description #: ../torrentflux.templates:1001 msgid "" "Remember that in order to activate the new configuration ${webserver} has to " "be restarted. You can also restart ${webserver} by manually executing invoke-" "rc.d ${webserver} restart." msgstr "" "Recuerde que para activar la nueva configuración es necesario reiniciar " "${webserver}. También puede reiniciar ${webserver} ejecutando manualmente " "«invoke-rc.d ${webserver} restart»." #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "Upgrading to 2.1 reverts configuration to default" msgstr "" "La actualización a la versión 2.1 vuelve a la configuración predeterminada" #. Type: note #. Description #: ../torrentflux.templates:2001 msgid "" "You are upgrading from a pre-2.1 version of torrentflux to a 2.1 or later " "version. A major change in version 2.1 is that the configuration is now " "stored in the database. This upgrade will update the database using default " "values, and any changes you have made to the configuration file /etc/" "torrentflux/config.php will NOT be used. This file will be saved so that you " "can reference it later. After the upgrade is complete, you can adjust the " "settings inside the program by logging in as an admin, and clicking on " "\"admin\" and then \"settings\"." msgstr "" "Está actualizando desde una versión de torrentflux anterior a la 2.1 a una " "versión 2.1 o posterior. Un cambio importante de la versión 2.1 es que la " "configuración se almacena ahora en la base de datos. Esta actualización " "cambiará la base de datos usando los valores predeterminados, y NO se usará " "ningún cambio que haya hecho al archivo de configuración «/etc/torrentflux/" "config.php». Este archivo se guardará para que pueda usarlo más tarde como " "referencia. Cuando se complete la actualización puede ajustar la " "configuración desde el programa, ingresando como administrador y pulsando en " "«admin» y después en «settings»." #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "No supported webserver was found" msgstr "No se ha encontrado ningún servidor web compatible" #. Type: note #. Description #: ../torrentflux.templates:3001 msgid "" "A supported webserver was not found to automatically configure. This package " "can only automatically configure apache webservers to use the program. If " "you are using a different webserver, you will need to point it to the " "torrentflux files in /usr/share/torrentflux/www (see the webserver config " "files in /etc/torrentflux/apache.conf for examples) and possibly restart the " "webserver during installation, and then remove the configuration when " "removing the package." msgstr "" "No se ha encontrado ningún servidor web compatible para configurar " "automáticamente. Este paquete sólo puede configurar automáticamente para " "utilizar el programa los servidores web apache. Si está utilizando un " "servidor web diferente, necesitará dirigirlo hacia los archivos de " "torrentflux en «/usr/share/torrentflux/www» (consulte los archivos de " "configuración del servidor web en «/etc/torrentflux/apache.conf» como " "ejemplo), y posiblemente reiniciar el servidor web durante la instalación, " "así como eliminar la configuración cuando desinstale el paquete." debian/NEWS.Debian0000644000000000000000000000135711351514471011056 0ustar torrentflux (2.1-1) unstable; urgency=low The configuration in pre-2.1 versions of TorrentFlux was contained in a file in /etc/torrentflux/config.php. In 2.1, all the configuration settings from this file have been moved into the database. You can change the settings by logging in as an admin, clicking on "admin", and then clicking on "settings". This change means that upgrading from pre-2.1 to 2.1 or later will cause all the settings to revert to their default values. The /etc/torrentflux/config.php file is saved so that you can use it to help in modifying the default settings yourself. After you have modified the settings, you can safely delete it. -- Cameron Dale Fri, 14 Apr 2006 15:13:06 -0800 debian/patches/0000755000000000000000000000000011351524035010614 5ustar debian/patches/series0000644000000000000000000000214111351517610012030 0ustar 01_timtuckerfixes.dpatch 02_dbconfig-common.dpatch 03_remove_initial_db_insert.dpatch # 04_fix_python_filename_dependence.dpatch # included in upstream from 2.4 05_change_env_to_python.dpatch # 06_sanitize_html_entities.dpatch # included in upstream from 2.3 # 07_fix_displayed_version.dpatch # only needed for 2.1 # 08_http_query_builder.dpatch # included in upstream from 2.4 # 09_fix_directory_traversal.dpatch # included in upstream from 2.4 # 10_sanitize_file_input.dpatch # included in upstream from 2.3 # 11_missed_security_fixes.dpatch # included in upstream from 2.3 # 12_metaInfo_remote_command.dpatch # included in upstream from 2.3 # 13_possible_xss_vulnerability.dpatch # included in upstream from 2.3 # 14_maketorrent_remote_command.dpatch # included in upstream from 2.3 # 15_additional_possible_fixes.dpatch # included in upstream from 2.3 # 16_update_settings_fails_with_blank_search_filter.dpatch # included in upstream from 2.4 17_remove_UPnP_options.dpatch # 18_errors_in_error_handling.dpatch # included in upstream from 2.4 19_add_demonoid_search.dpatch 20_torrents_with_only_announce_list.dpatch debian/patches/12_metaInfo_remote_command.dpatch0000755000000000000000000000332411033741121017115 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 12_metaInfo_remote_command.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix remote command execution vulnerability in metaInfo.php @DPATCH@ diff -urNad torrentflux~/html/details.php torrentflux/html/details.php --- torrentflux~/html/details.php 2006-11-03 01:10:36.000000000 -0800 +++ torrentflux/html/details.php 2006-12-09 12:27:17.000000000 -0800 @@ -29,7 +29,7 @@ global $cfg; -$torrent = getRequestVar('torrent'); +$torrent = SecurityClean(getRequestVar('torrent')); DisplayHead(_TORRENTDETAILS); diff -urNad torrentflux~/html/metaInfo.php torrentflux/html/metaInfo.php --- torrentflux~/html/metaInfo.php 2006-12-09 12:27:15.000000000 -0800 +++ torrentflux/html/metaInfo.php 2006-12-09 12:31:04.000000000 -0800 @@ -251,7 +251,7 @@ } else { - $result = shell_exec("cd " . $cfg["torrent_file_path"]."; " . $cfg["pythonCmd"] . " -OO " . $cfg["btshowmetainfo"]." \"".$torrent."\""); + $result = shell_exec("cd " . $cfg["torrent_file_path"]."; " . $cfg["pythonCmd"] . " -OO " . $cfg["btshowmetainfo"]." ".escapeshellarg($torrent)); echo "
";
         echo htmlentities($result, ENT_QUOTES);
         echo "
"; diff -urNad torrentflux~/html/startpop.php torrentflux/html/startpop.php --- torrentflux~/html/startpop.php 2006-12-09 12:27:15.000000000 -0800 +++ torrentflux/html/startpop.php 2006-12-09 12:29:07.000000000 -0800 @@ -26,7 +26,7 @@ include_once("functions.php"); require_once("metaInfo.php"); -$torrent = getRequestVar('torrent'); +$torrent = SecurityClean(getRequestVar('torrent')); $displayName = $torrent; if (!file_exists($cfg["torrent_file_path"].$torrent)) debian/patches/06_sanitize_html_entities.dpatch0000755000000000000000000002463111033741121017067 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 06_sanitize_html_entities.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Remove all XSS problems by sanitizing all input/output. @DPATCH@ diff -urNad torrentflux~/html/admin.php torrentflux/html/admin.php --- torrentflux~/html/admin.php 2006-10-28 02:08:22.000000000 -0700 +++ torrentflux/html/admin.php 2006-10-28 02:08:27.000000000 -0700 @@ -322,7 +322,7 @@ $user_icon = "images/user.gif"; } - $ip_info = $ip_resolved."
".$user_agent; + $ip_info = htmlentities($ip_resolved)."
".htmlentities($user_agent); $output .= ""; if (IsUser($user_id)) @@ -333,11 +333,11 @@ { $output .= "".$user_id."  "; } - $output .= "
".$action."
"; + $output .= "
".htmlentities($action, ENT_QUOTES)."
"; $output .= "
"; - $output .= $file; + $output .= htmlentities($file, ENT_QUOTES); $output .= "
"; - $output .= ""; + $output .= ""; $output .= "
".date(_DATETIMEFORMAT, $time)."
"; $output .= ""; @@ -395,7 +395,7 @@ { $selected = "selected"; } - echo ""; + echo ""; } } ?> @@ -413,7 +413,7 @@ { $selected = "selected"; } - echo ""; + echo ""; } ?> diff -urNad torrentflux~/html/functions.php torrentflux/html/functions.php --- torrentflux~/html/functions.php 2006-10-28 02:08:22.000000000 -0700 +++ torrentflux/html/functions.php 2006-10-28 02:08:27.000000000 -0700 @@ -1193,7 +1193,7 @@ echo ''; echo ''; diff -urNad torrentflux~/html/index.php torrentflux/html/index.php --- torrentflux~/html/index.php 2006-04-06 17:44:06.000000000 -0700 +++ torrentflux/html/index.php 2006-10-28 02:08:27.000000000 -0700 @@ -31,14 +31,14 @@ // set refresh option into the session cookie if(array_key_exists("pagerefresh", $_GET)) { - if($_GET["pagerefresh"] == "false") + if(getRequestVar("pagerefresh") == "false") { $_SESSION['prefresh'] = false; header("location: index.php"); exit(); } - if($_GET["pagerefresh"] == "true") + if(getRequestVar("pagerefresh") == "true") { $_SESSION["prefresh"] = true; header("location: index.php"); diff -urNad torrentflux~/html/maketorrent.php torrentflux/html/maketorrent.php --- torrentflux~/html/maketorrent.php 2006-04-06 17:44:06.000000000 -0700 +++ torrentflux/html/maketorrent.php 2006-10-28 02:08:27.000000000 -0700 @@ -70,17 +70,17 @@ // Variable information $tpath = $cfg["torrent_file_path"]; - $tfile = $_POST['torrent']; - $file = $_GET['path']; + $tfile = getRequestVar('torrent'); + $file = getRequestVar('path'); $torrent = cleanFileName(StripFolders( trim($file) )) . ".torrent"; - $announce = ( $_POST['announce'] ) ? $_POST['announce'] : "http://"; - $ancelist = $_POST['announcelist']; - $comment = $_POST['comments']; - $peice = $_POST['piecesize']; - $alert = ( $_POST['alert'] ) ? 1 : "''"; - $private = ( $_POST['Private'] == "Private" ) ? true : false; - $dht = ( $_POST['DHT'] == "DHT" ) ? true : false; - + $announce = ( getRequestVar('announce') ) ? getRequestVar('announce') : "http://"; + $ancelist = getRequestVar('announcelist'); + $comment = getRequestVar('comments'); + $peice = getRequestVar('piecesize'); + $alert = ( getRequestVar('alert') ) ? 1 : "''"; + $private = ( getRequestVar('Private') == "Private" ) ? true : false; + $dht = ( getRequestVar('DHT') == "DHT" ) ? true : false; + // Let's create the torrent if( !empty( $announce ) && $announce != "http://" ) { @@ -196,10 +196,10 @@ } // This is the torrent download prompt - if( !empty( $_GET["download"] ) ) + if( isset( $_REQUEST["download"] ) ) { - $tfile = $_GET["download"]; - + $tfile = getRequestVar("download"); + // ../ is not allowed in the file name if (!ereg("(\.\.\/)", $tfile)) { diff -urNad torrentflux~/html/metaInfo.php torrentflux/html/metaInfo.php --- torrentflux~/html/metaInfo.php 2006-04-06 17:44:06.000000000 -0700 +++ torrentflux/html/metaInfo.php 2006-10-28 02:08:27.000000000 -0700 @@ -189,12 +189,12 @@ echo ""; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; if(array_key_exists('comment',$btmeta)) { - echo ""; + echo ""; } echo ""; @@ -238,14 +238,14 @@ else { echo "
Metainfo File:".$torrent."
Directory Name:".$btmeta['info']['name']."
Announce URL:".$btmeta['announce']."
Directory Name:".htmlentities($btmeta['info']['name'], ENT_QUOTES)."
Announce URL:".htmlentities($btmeta['announce'], ENT_QUOTES)."
Comment:".$btmeta['comment']."
Comment:".htmlentities($btmeta['comment'], ENT_QUOTES)."
Created:".date("F j, Y, g:i a",$btmeta['creation date'])."

"; - echo $btmeta['info']['name'].$torrent_size." (".formatBytesToKBMGGB($torrent_size).")"; + echo htmlentities($btmeta['info']['name'].$torrent_size." (".formatBytesToKBMGGB($torrent_size).")", ENT_QUOTES); } } else { $result = shell_exec("cd " . $cfg["torrent_file_path"]."; " . $cfg["pythonCmd"] . " -OO " . $cfg["btshowmetainfo"]." \"".$torrent."\""); echo "
";
-        echo $result;
+        echo htmlentities($result, ENT_QUOTES);
         echo "
"; } } diff -urNad torrentflux~/html/profile.php torrentflux/html/profile.php --- torrentflux~/html/profile.php 2006-04-06 17:44:06.000000000 -0700 +++ torrentflux/html/profile.php 2006-10-28 02:08:27.000000000 -0700 @@ -290,7 +290,7 @@ global $cfg, $db; DisplayHead($cfg["user"] . "'s "._PROFILE); - $cid = $_GET["cid"]; // Cookie ID + $cid = getRequestVar("cid"); // Cookie ID // Used for when editing a cookie $hostvalue = $datavalue = ""; @@ -507,7 +507,7 @@ // Delete selected cookie from user case "deleteCookie": - $cid = $_GET["cid"]; + $cid = getRequestVar("cid"); deleteCookie( $cid ); break; diff -urNad torrentflux~/html/settingsfunctions.php torrentflux/html/settingsfunctions.php --- torrentflux~/html/settingsfunctions.php 2006-04-06 17:44:06.000000000 -0700 +++ torrentflux/html/settingsfunctions.php 2006-10-28 02:08:27.000000000 -0700 @@ -30,7 +30,19 @@ { if (array_key_exists($varName,$_REQUEST)) { - return trim($_REQUEST[$varName]); + if (is_array($_REQUEST[$varName])) + { + $tmpArr = $_REQUEST[$varName]; + foreach($tmpArr as $key => $value); + { + $tmpArr[$key] = htmlentities(trim($value), ENT_QUOTES); + } + + return $tmpArr; + + } else { + return htmlentities(trim($_REQUEST[$varName]), ENT_QUOTES); + } } else { @@ -52,9 +64,9 @@ 'user_id' => $cfg['user'], 'file' => $file, 'action' => $action, - 'ip' => $cfg['ip'], - 'ip_resolved' => $host_resolved, - 'user_agent' => $_SERVER['HTTP_USER_AGENT'], + 'ip' => htmlentities($cfg['ip'], ENT_QUOTES), + 'ip_resolved' => htmlentities($host_resolved, ENT_QUOTES), + 'user_agent' => htmlentities($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES), 'time' => $create_time ); diff -urNad torrentflux~/html/viewnfo.php torrentflux/html/viewnfo.php --- torrentflux~/html/viewnfo.php 2006-04-06 17:44:06.000000000 -0700 +++ torrentflux/html/viewnfo.php 2006-10-28 02:08:27.000000000 -0700 @@ -29,7 +29,7 @@ DisplayHead("View NFO"); -$file = $_GET["path"]; +$file = getRequestVar("path"); $folder = htmlspecialchars( substr( $file, 0, strrpos( $file, "/" ) ) ); if( ( $output = @file_get_contents( $cfg["path"] . $file ) ) === false ) @@ -42,7 +42,7 @@
 
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Update the displayed version number to match the website.

@DPATCH@
diff -urNad torrentflux~/html/config.php torrentflux/html/config.php
--- torrentflux~/html/config.php	2006-10-14 15:48:39.000000000 -0700
+++ torrentflux/html/config.php	2006-10-14 15:51:33.000000000 -0700
@@ -60,7 +60,7 @@
 $cfg["pagetitle"] = "TorrentFlux";
 
 // TorrentFlux Version
-$cfg["version"] = "2.1 beta";
+$cfg["version"] = "2.1 final";
 
 // CONSTANTS
 $cfg["constants"] = array();
debian/patches/20_torrents_with_only_announce_list.dpatch0000644000000000000000000000401011351523464021177 0ustar  #! /bin/sh /usr/share/dpatch/dpatch-run
## 20_torrents_with_only_announce_list.dpatch by Cameron Dale 
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix a display issue with torrents that only contain an announce-list.

@DPATCH@
--- torrentflux.orig/html/TF_BitTornado/btshowmetainfo.py
+++ torrentflux/html/TF_BitTornado/btshowmetainfo.py
@@ -52,7 +52,8 @@
     piece_number, last_piece_length = divmod(file_length, piece_length)
     print '%s %i (%i * %i + %i)' \
           % (name,file_length, piece_number, piece_length, last_piece_length)
-    print 'announce url..: %s' % metainfo['announce']
+    if metainfo.has_key('announce'):
+        print 'announce url..: %s' % metainfo['announce']
     if metainfo.has_key('announce-list'):
         list = []
         for tier in metainfo['announce-list']:
--- torrentflux.orig/html/metaInfo.php
+++ torrentflux/html/metaInfo.php
@@ -197,7 +197,23 @@
             echo "";
             echo "";
             echo "";
-            echo "";
+
+            if (array_key_exists('announce',$btmeta))
+            {
+                echo "";
+            }
+            if (array_key_exists('announce-list',$btmeta))
+            {
+                echo "";
+            }
     
             if(array_key_exists('comment',$btmeta))
             {
debian/patches/18_errors_in_error_handling.dpatch0000644000000000000000000000165211010433326017366 0ustar  #! /bin/sh /usr/share/dpatch/dpatch-run
## 18_errors_in_error_handling.dpatch by Cameron Dale 
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix a bug in the error handling of btphptornado (based on bittornado's
## DP: 25_errors_in_error_handling.dpatch).

@DPATCH@
--- torrentflux.orig/html/TF_BitTornado/btphptornado.py
+++ torrentflux/html/TF_BitTornado/btphptornado.py
@@ -106,12 +106,14 @@
             raise KeyboardInterrupt
         if __debug__: traceMsg('finished - end')
 
-    def failed(self):
+    def failed(self, errormsg = None):
         if __debug__: traceMsg('failed - begin')
         self.done = True
         self.percentDone = '0'
         self.timeEst = 'Download Failed!'
         self.downRate = ''
+        if errormsg:
+            self.errors.append(errormsg)
         self.display()
         if self.autoShutdown == 'True':
             self.upRate = ''
debian/patches/11_missed_security_fixes.dpatch0000755000000000000000000001076511033741121016721 0ustar  #! /bin/sh /usr/share/dpatch/dpatch-run
## 11_missed_security_fixes.dpatch by  
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Add more security fixes missed in previous patches.

@DPATCH@
diff -urNad torrentflux~/html/admin.php torrentflux/html/admin.php
--- torrentflux~/html/admin.php	2006-11-30 15:04:37.000000000 -0800
+++ torrentflux/html/admin.php	2006-11-30 15:04:37.000000000 -0800
@@ -322,7 +322,7 @@
             $user_icon = "images/user.gif";
         }
 
-        $ip_info = htmlentities($ip_resolved)."
".htmlentities($user_agent); + $ip_info = htmlentities($ip_resolved, ENT_QUOTES)."
".htmlentities($user_agent, ENT_QUOTES); $output .= "
"; if (IsUser($user_id)) diff -urNad torrentflux~/html/dir.php torrentflux/html/dir.php --- torrentflux~/html/dir.php 2006-11-30 15:04:37.000000000 -0800 +++ torrentflux/html/dir.php 2006-11-30 15:04:37.000000000 -0800 @@ -255,7 +255,15 @@ echo "
"; if(!isset($dir)) $dir = ""; + +if (!file_exists($cfg["path"].$dir)) +{ + echo "".$dir." could not be found or is not valid."; +} +else +{ ListDirectory($cfg["path"].$dir); +} DisplayFoot(); diff -urNad torrentflux~/html/functions.php torrentflux/html/functions.php --- torrentflux~/html/functions.php 2006-11-30 15:04:37.000000000 -0800 +++ torrentflux/html/functions.php 2006-11-30 15:04:37.000000000 -0800 @@ -2133,7 +2133,7 @@ $size = @filesize($file); if ( $size == 0) { - $size = exec("ls -l \"".$file."\" | awk '{print $5}'"); + $size = exec("ls -l \"". escapeshellarg( $file ) ."\" | awk '{print $5}'"); } return $size; } diff -urNad torrentflux~/html/maketorrent.php torrentflux/html/maketorrent.php --- torrentflux~/html/maketorrent.php 2006-11-30 15:04:35.000000000 -0800 +++ torrentflux/html/maketorrent.php 2006-11-30 15:04:37.000000000 -0800 @@ -108,7 +108,7 @@ // Set the piece size if( !empty( $peice ) ) { - $app .= "--piece_size_pow2 " . $peice . " "; + $app .= "--piece_size_pow2 " . escapeshellarg( $peice ) . " "; } if( !empty( $ancelist ) ) diff -urNad torrentflux~/html/metaInfo.php torrentflux/html/metaInfo.php --- torrentflux~/html/metaInfo.php 2006-11-30 15:04:35.000000000 -0800 +++ torrentflux/html/metaInfo.php 2006-11-30 15:04:37.000000000 -0800 @@ -106,7 +106,7 @@ { global $cfg; - if (empty($torrent)) + if (empty($torrent) || !file_exists($cfg["torrent_file_path"].$torrent)) { echo _NORECORDSFOUND; } @@ -122,6 +122,13 @@ $ftorrent=$cfg["torrent_file_path"].$torrent; $fp = fopen($ftorrent, "rd"); + if (!$fp) + { + // Not able to open file + echo _NORECORDSFOUND; + } + else + { $alltorrent = fread($fp, filesize($ftorrent)); fclose($fp); @@ -241,6 +248,7 @@ echo htmlentities($btmeta['info']['name'].$torrent_size." (".formatBytesToKBMGGB($torrent_size).")", ENT_QUOTES); } } + } else { $result = shell_exec("cd " . $cfg["torrent_file_path"]."; " . $cfg["pythonCmd"] . " -OO " . $cfg["btshowmetainfo"]." \"".$torrent."\""); diff -urNad torrentflux~/html/setpriority.php torrentflux/html/setpriority.php --- torrentflux~/html/setpriority.php 2006-11-03 01:10:36.000000000 -0800 +++ torrentflux/html/setpriority.php 2006-11-30 15:04:37.000000000 -0800 @@ -22,6 +22,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +include_once("settingsfunctions.php"); + function getFile($var) { if ($var < 65535) @@ -51,8 +53,8 @@ $fileName = $cfg["torrent_file_path"].$alias.".prio"; $result = array(); - - $files = array_filter($_REQUEST['files'],"getFile"); + $files = array(); + $files = array_filter(getRequestVar('files'),"getFile"); // if there are files to get then process and create a prio file. if (count($files) > 0) diff -urNad torrentflux~/html/startpop.php torrentflux/html/startpop.php --- torrentflux~/html/startpop.php 2006-11-03 01:10:36.000000000 -0800 +++ torrentflux/html/startpop.php 2006-11-30 15:04:37.000000000 -0800 @@ -29,6 +29,12 @@ $torrent = getRequestVar('torrent'); $displayName = $torrent; +if (!file_exists($cfg["torrent_file_path"].$torrent)) +{ + echo $torrent." could not be found or does not exist."; + die(); +} + if(strlen($displayName) >= 55) { $displayName = substr($displayName, 0, 52)."..."; debian/patches/03_remove_initial_db_insert.dpatch0000755000000000000000000000322711033741121017343 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 03_remove_initial_db_insert.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Remove the changing of the file locations when the initial user logs in. @DPATCH@ --- torrentflux.orig/html/login.php +++ torrentflux/html/login.php @@ -201,34 +201,6 @@ $result = $db->Execute($sql); showError($db,$sql); - // Test and setup some paths for the TF settings - $pythonCmd = $cfg["pythonCmd"]; - $btphpbin = getcwd() . "/TF_BitTornado/btphptornado.py"; - $tfQManager = getcwd() . "/TF_BitTornado/tfQManager.py"; - $maketorrent = getcwd() . "/TF_BitTornado/btmakemetafile.py"; - $btshowmetainfo = getcwd() . "/TF_BitTornado/btshowmetainfo.py"; - $tfPath = getcwd() . "/downloads/"; - - if (!isFile($cfg["pythonCmd"])) - { - $pythonCmd = trim(shell_exec("which python")); - if ($pythonCmd == "") - { - $pythonCmd = $cfg["pythonCmd"]; - } - } - - $settings = array( - "pythonCmd" => $pythonCmd, - "btphpbin" => $btphpbin, - "tfQManager" => $tfQManager, - "btmakemetafile" => $maketorrent, - "btshowmetainfo" => $btshowmetainfo, - "path" => $tfPath - ); - - saveSettings($settings); - AuditAction($cfg["constants"]["update"], "Initial Settings Updated for first login."); $next_loc = "admin.php?op=configSettings"; } debian/patches/13_possible_xss_vulnerability.dpatch0000755000000000000000000000571311033741121017775 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 13_possible_xss_vulnerability.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix a possible XSS vulnerability due to urldecoding after htmlentities. @DPATCH@ diff -urNad torrentflux~/html/dir.php torrentflux/html/dir.php --- torrentflux~/html/dir.php 2006-12-09 15:19:23.000000000 -0800 +++ torrentflux/html/dir.php 2006-12-09 15:20:30.000000000 -0800 @@ -258,7 +258,7 @@ if (!file_exists($cfg["path"].$dir)) { - echo "".$dir." could not be found or is not valid."; + echo "".htmlentities($dir)." could not be found or is not valid."; } else { diff -urNad torrentflux~/html/index.php torrentflux/html/index.php --- torrentflux~/html/index.php 2006-12-09 15:19:23.000000000 -0800 +++ torrentflux/html/index.php 2006-12-09 15:29:13.000000000 -0800 @@ -394,7 +394,7 @@ if (is_file($cfg["torrent_file_path"].$file_name)) { // Error - $messages .= "Error with (".$file_name."), the file already exists on the server.
[Refresh]
"; + $messages .= "Error with (".htmlentities($file_name)."), the file already exists on the server.
[Refresh]
"; $ext_msg = "DUPLICATE :: "; } else @@ -407,7 +407,7 @@ } else { - $messages .= "Error Getting the File (".$file_name."), Could be a Dead URL.
[Refresh]
"; + $messages .= "Error Getting the File (".htmlentities($file_name)."), Could be a Dead URL.
[Refresh]
"; } if ($messages == "") @@ -440,7 +440,7 @@ if (is_file($cfg["torrent_file_path"].$file_name)) { // Error - $messages .= "Error with (".$file_name."), the file already exists on the server.
[Refresh]
"; + $messages .= "Error with (".htmlentities($file_name)."), the file already exists on the server.
[Refresh]
"; $ext_msg = "DUPLICATE :: "; } else @@ -455,7 +455,7 @@ } else { - $messages .= "ERROR: File not uploaded, file could not be found or could not be moved:
".$cfg["torrent_file_path"] . $file_name."

"; + $messages .= "ERROR: File not uploaded, file could not be found or could not be moved:
".$cfg["torrent_file_path"] . htmlentities($file_name)."

"; } } } debian/patches/15_additional_possible_fixes.dpatch0000755000000000000000000001447411033741121017523 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 15_additional_possible_fixes.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad torrentflux~/html/downloaddetails.php torrentflux/html/downloaddetails.php --- torrentflux~/html/downloaddetails.php 2006-11-03 01:10:36.000000000 -0800 +++ torrentflux/html/downloaddetails.php 2006-12-16 10:51:56.000000000 -0800 @@ -31,7 +31,7 @@ $torrentowner = getOwner($torrent); $graph_width = ""; $background = "#000000"; -$alias = getRequestVar('alias'); +$alias = SecurityClean(getRequestVar('alias')); if (!empty($alias)) { // read the alias file diff -urNad torrentflux~/html/functions.php torrentflux/html/functions.php --- torrentflux~/html/functions.php 2006-12-16 10:50:05.000000000 -0800 +++ torrentflux/html/functions.php 2006-12-16 10:51:56.000000000 -0800 @@ -2097,7 +2097,7 @@ } $btphp = "'" . $cmd1. "; HOME=".$cfg["path"]."; export HOME; nohup " . $pyCmd . " " .$cfg["btphpbin"] . " '"; - $command = $pyCmd . " " . $cfg["tfQManager"] . " ".$cfg["torrent_file_path"]."queue/ ".$maxServerThreads." ".$maxUserThreads." ".$sleepInterval." ".$btphp." > /dev/null &"; + $command = $pyCmd . " " . $cfg["tfQManager"] . " ".$cfg["torrent_file_path"]."queue/ ".escapeshellarg($maxServerThreads)." ".escapeshellarg($maxUserThreads)." ".escapeshellarg($sleepInterval)." ".$btphp." > /dev/null &"; //$command = $pyCmd . " " . $cfg["tfQManager"] . " ".$cfg["torrent_file_path"]."queue/ ".$maxServerThreads." ".$maxUserThreads." ".$sleepInterval." ".$btphp." > /dev/null2>&1 & &"; $result = exec($command); @@ -2120,7 +2120,7 @@ if($QmgrPID != "") { AuditAction($cfg["constants"]["QManager"], "Stopping PID:" . $QmgrPID); - $result = exec("kill ".$QmgrPID); + $result = exec("kill ".escapeshellarg($QmgrPID)); unlink($cfg["torrent_file_path"] . "queue/tfQManager.pid"); } } diff -urNad torrentflux~/html/index.php torrentflux/html/index.php --- torrentflux~/html/index.php 2006-12-16 10:50:05.000000000 -0800 +++ torrentflux/html/index.php 2006-12-16 10:51:56.000000000 -0800 @@ -192,7 +192,7 @@ } } - $torrent = urldecode($torrent); + //$torrent = urldecode($torrent); $alias = getAliasName($torrent); $owner = getOwner($torrent); @@ -241,15 +241,15 @@ if (usingTornado()) { - $command = $runtime." ".$sharekill." ".$cfg["torrent_file_path"].$alias.".stat ".$owner." --responsefile '".$cfg["torrent_file_path"].$torrent."' --display_interval 5 --max_download_rate ". $drate ." --max_upload_rate ".$rate." --max_uploads ".$maxuploads." --minport ".$minport." --maxport ".$maxport." --rerequest_interval ".$rerequest." --super_seeder ".$superseeder; + $command = escapeshellarg($runtime)." ".escapeshellarg($sharekill)." '".$cfg["torrent_file_path"].$alias.".stat' ".$owner." --responsefile '".$cfg["torrent_file_path"].$torrent."' --display_interval 5 --max_download_rate ". escapeshellarg($drate) ." --max_upload_rate ".escapeshellarg($rate)." --max_uploads ".escapeshellarg($maxuploads)." --minport ".escapeshellarg($minport)." --maxport ".escapeshellarg($maxport)." --rerequest_interval ".escapeshellarg($rerequest)." --super_seeder ".escapeshellarg($superseeder); if(file_exists($cfg["torrent_file_path"].$alias.".prio")) { $priolist = explode(',',file_get_contents($cfg["torrent_file_path"].$alias.".prio")); $priolist = implode(',',array_slice($priolist,1,$priolist[0])); - $command .= " --priority ".$priolist; + $command .= " --priority ".escapeshellarg($priolist); } - $command .= " ".$cfg["cmd_options"]." > /dev/null &"; + $command .= " ".escapeshellarg($cfg["cmd_options"])." > /dev/null &"; if ($cfg["AllowQueing"] && $queue == "1") { @@ -271,12 +271,12 @@ if (!$cfg["debugTorrents"]) { - $pyCmd = $cfg["pythonCmd"] . " -OO"; + $pyCmd = escapeshellarg($cfg["pythonCmd"]) . " -OO"; }else{ - $pyCmd = $cfg["pythonCmd"]; + $pyCmd = escapeshellarg($cfg["pythonCmd"]); } - $command = "cd " . $cfg["path"] . $owner . "; HOME=".$cfg["path"]."; export HOME; nohup " . $pyCmd . " " .$cfg["btphpbin"] . " " . $command; + $command = "cd " . $cfg["path"] . $owner . "; HOME=".$cfg["path"]."; export HOME; nohup " . $pyCmd . " " .escapeshellarg($cfg["btphpbin"]) . " " . $command; } } @@ -300,7 +300,7 @@ else { // The following command starts the torrent running! w00t! - $result = exec($command); + passthru($command); AuditAction($cfg["constants"]["start_torrent"], $torrent."
Die:".$runtime.", Sharekill:".$sharekill.", MaxUploads:".$maxuploads.", DownRate:".$drate.", UploadRate:".$rate.", Ports:".$minport."-".$maxport.", SuperSeed:".$superseeder.", Rerequest Interval:".$rerequest); @@ -556,7 +556,7 @@ if (!empty($return)) { sleep(3); - $result = exec("kill ".$kill); + passthru("kill ".$kill); // try to remove the pid file @unlink($cfg["torrent_file_path"].$alias_file.".pid"); header("location: ".$return.".php?op=queueSettings"); @@ -952,7 +952,7 @@ ".$loadavg.""; } diff -urNad torrentflux~/html/settingsfunctions.php torrentflux/html/settingsfunctions.php --- torrentflux~/html/settingsfunctions.php 2006-12-16 10:50:05.000000000 -0800 +++ torrentflux/html/settingsfunctions.php 2006-12-16 10:52:07.000000000 -0800 @@ -191,7 +191,7 @@ } else { - if ($file == trim(shell_exec("ls ".$file))) + if ($file == trim(shell_exec("ls ".escapeshellarg($file)))) { $rtnValue = True; } debian/patches/04_fix_python_filename_dependence.dpatch0000755000000000000000000001404111033741121020502 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 04_fix_python_filename_dependence.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Remove all dependence on the python file names. @DPATCH@ --- torrentflux.orig/html/TF_BitTornado/tfQManager.py +++ torrentflux/html/TF_BitTornado/tfQManager.py @@ -46,13 +46,11 @@ # this will be used during the process Counts to ensure we are # unique from other running instances. - ePath = execPath.split(" ") - for x in ePath: - if (re.search('btphptornado', x) > 0 ): - btphp = x + ePath = execPath.split() + btphp = ePath[-1] if __debug__: traceMsg("btphp ->"+btphp) - if (re.search('btphptornado', btphp) > 0 ): + if (1): try: while 1: @@ -193,7 +191,7 @@ psLine = [] line = "" counter = 0 - list = doCommand("ps x -o pid,ppid,command -ww | grep '" + btphp + "' | grep -v tfQManager | grep -v grep") + list = doCommand("ps x -o pid,ppid,command -ww | grep '" + btphp + "' | grep -v " + argv[0] + " | grep -v grep") try: for c in list: @@ -204,7 +202,7 @@ # look for the grep line for line in psLine: - if (re.search('btphptornado.py',line) > 0): + if (re.search(btphp,line) > 0): # now see if this is the main process and not a child. if (re.search(' 1 /',line) > 0): counter += 1 @@ -238,7 +236,7 @@ psLine = [] line = "" counter = 0 - list = doCommand("ps x -o pid,ppid,command -ww | grep '" + btphp + "' | grep -v tfQManager | grep -v grep") + list = doCommand("ps x -o pid,ppid,command -ww | grep '" + btphp + "' | grep -v " + argv[0] + " | grep -v grep") try: for c in list: @@ -249,7 +247,7 @@ # look for the grep line for line in psLine: - if (re.search('btphptornado.py',line) > 0): + if (re.search(btphp,line) > 0): # now see if this is the main process and not a child. if (re.search(' 1 /',line) > 0): # look for the userName --- torrentflux.orig/html/admin.php +++ torrentflux/html/admin.php @@ -1282,16 +1282,16 @@
- - - ")); + + + + + + if(strpos($this->curRequest,"LATEST")) + + + { + + + + + + $pages = str_replace("http://www.demonoid.com/files/?",$this->searchURL()."&LATEST=1&",$pages); + + + + + + } + + + else + + + { + + + + + + $pages = str_replace("http://www.demonoid.com/files/?",$this->searchURL()."&",$pages); + + + } + + + + + + $pages = str_replace("page=","pg=",$pages); + + + $pages = str_replace("subcategory=","subGenre=",$pages); + + + $pages = str_replace("category=","mainGenre=",$pages); + + + $pages = str_replace("&&","&",$pages); + + + + + + $output .= "
".$pages."
"; + + + } + + + + + + return $output; + + + } + + +} + + + + + + + + +// This is a worker class that takes in a row in a table and parses it. + + +class dmnd + + +{ + + + var $torrentName = ""; + + + var $torrentDisplayName = ""; + + + var $torrentFile = ""; + + + var $torrentSize = ""; + + + var $torrentStatus = ""; + + + var $CatName = ""; + + + var $CatId = ""; + + + var $MainId = ""; + + + var $MainCategory = ""; + + + var $SubId = ""; + + + var $SubCategory = ""; + + + var $Seeds = ""; + + + var $Peers = ""; + + + var $Data = ""; + + + + + + var $dateAdded = ""; + + + var $dwnldCount = ""; + + + + + + + + + function dmnd( $htmlLine ) + + + { + + + if (strlen($htmlLine) > 0) + + + { + + + $this->Data = $htmlLine; + + + $tmpListArr = explode("",$htmlLine); + + + + + + if(count($tmpListArr) >= 13) + + + { + + + + + + // Category Id + + + $tmpStr = ""; + + + $tmpStr = substr($tmpListArr["0"],strpos($tmpListArr["0"],"category=")+strlen("category=")); + + + $this->CatId = substr($tmpStr,0,strpos($tmpStr,"&")); + + + + + + //Category Name + + + $tmpStr = ""; + + + $tmpStr = substr($tmpListArr["0"],strpos($tmpListArr["0"],"title=\"")+strlen("title=\"")); + + + $this->CatName = substr($tmpStr,0,strpos($tmpStr,"\"")); + + + + + + //SubCategory ID + + + $tmpStr = ""; + + + $tmpStr = substr($tmpListArr["2"],strpos($tmpListArr["2"],"subcategory=")+strlen("subcategory=")); + + + $this->SubId = substr($tmpStr,0,strpos($tmpStr,"&")); + + + + + + //SubCategory Name + + + $tmpStr = ""; + + + $tmpStr = substr($tmpListArr["2"],strpos($tmpListArr["2"],"subcategory\"")+strlen("subcategory\">")); + + + $this->SubCategory = substr($tmpStr,0,strpos($tmpStr,"<")); + + + + + + //validate Subcategory ID + + + if (!is_numeric($this->SubId)){ + + + $this->SubId = "0"; + + + $this->SubCategory = "All"; + + + } + + + + + + //Set Category + + + $this->MainCategory = $this->CatName; + + + $this->MainId = $this->CatId; + + + $this->SubId = $this->CatId.":".$this->SubId; + + + + + + // TorrentName + + + $this->torrentName = $this->cleanLine($tmpListArr["1"]); + + + + + + // Download Link + + + $tmpStr = ""; + + + $tmpStr = substr($tmpListArr["4"],strpos($tmpListArr["4"],"href=\"")+strlen("href=\"")); + + + $this->torrentFile = substr($tmpStr,0,strpos($tmpStr,"\"")); + + + + + + // Size of File + + + $this->torrentSize = $this->cleanLine($tmpListArr["7"]); + + + + + + // Seeds + + + $this->Seeds = $this->cleanLine($tmpListArr["10"]); + + + + + + // Peers + + + $this->Peers = $this->cleanLine($tmpListArr["11"]); + + + + + + if ($this->Peers == '') + + + { + + + $this->Peers = "N/A"; + + + if (empty($this->Seeds)) $this->Seeds = "N/A"; + + + } + + + if ($this->Seeds == '') $this->Seeds = "N/A"; + + + + + + //set torrent display name + + + $this->torrentDisplayName = $this->torrentName; + + + if(strlen($this->torrentDisplayName) > 50) + + + { + + + $this->torrentDisplayName = substr($this->torrentDisplayName,0,50)."..."; + + + } + + + + + + //Check Date. + + + if (!empty($tmpListArr["12"])) { + + + $this->dateAdded = $this->cleanline($tmpListArr["12"]); + + + } + + + + + + } + + + + + + } + + + + + + } + + + + + + function cleanLine($stringIn,$tags='') + + + { + + + if(empty($tags)) + + + return trim(str_replace(array(" "," ")," ",strip_tags($stringIn))); + + + else + + + return trim(str_replace(array(" "," ")," ",strip_tags($stringIn,$tags))); + + + } + + + + + + + + + //---------------------------------------------------------------- + + + // Function to build output for the table. + + + function BuildOutput($bg, $searchURL) + + + { + + + $output = "\n"; + + + $output .= " \n"; + + + $output .= " \n"; + + + + + + if (strlen($this->MainCategory) > 1){ + + + if (strlen($this->SubCategory) > 1){ + + + $mainGenre = "MainId."\">".$this->MainCategory.""; + + + $subGenre = "SubId."\">".$this->SubCategory.""; + + + $genre = $mainGenre."-".$subGenre; + + + }else{ + + + $genre = "MainId."\">".$this->MainCategory.""; + + + } + + + }else{ + + + $genre = "SubId."\">".$this->SubCategory.""; + + + } + + + + + + $output .= " \n"; + + + + + + $output .= " \n"; + + + $output .= " \n"; + + + $output .= " \n"; + + + $output .= "\n"; + + + if (!empty($this->dateAdded)){ + + + $output .= "\n"; + + + } + + + + + + return $output; + + + + + + } + + +} + + + + + +?> + + debian/patches/09_fix_directory_traversal.dpatch0000755000000000000000000000107711033741121017250 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 09_fix_directory_traversal.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix the directory traversal bug. @DPATCH@ --- torrentflux.orig/html/dir.php +++ torrentflux/html/dir.php @@ -32,6 +32,7 @@ $down = getRequestVar('down'); $tar = getRequestVar('tar'); $dir = stripslashes(urldecode(getRequestVar('dir'))); +if (strpos(stripslashes($dir),"../")===false) {} else {echo "Can't go to parent directories!";exit;} // Are we to delete something? if ($del != "") debian/patches/10_sanitize_file_input.dpatch0000755000000000000000000001422611033741121016347 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 10_sanitize_file_input.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Sanitize the file inputs to prevent creation/deletion of other files. @DPATCH@ diff -urNad torrentflux~/html/admin.php torrentflux/html/admin.php --- torrentflux~/html/admin.php 2006-11-21 22:03:53.000000000 -0800 +++ torrentflux/html/admin.php 2006-11-21 22:03:54.000000000 -0800 @@ -1560,7 +1560,8 @@ global $cfg; $tmpPath = getRequestVar("path"); - if (!empty($tmpPath) && substr( $_POST["path"], -1 ) != "/") + + if (!empty($tmpPath) && substr( $tmpPath, -1 ) != "/") { // path requires a / on the end $_POST["path"] = $_POST["path"] . "/"; @@ -1587,11 +1588,11 @@ AuditAction($cfg["constants"]["admin"], " Updating TorrentFlux Settings"); // if enabling Start QManager - if($_POST["AllowQueing"]) + if($cfg["AllowQueing"]) { sleep(2); - startQManager($_POST["maxServerThreads"], $_POST["maxUserThreads"], $_POST["sleepInterval"]); - sleep(1); + startQManager($cfg["maxServerThreads"], $cfg["maxUserThreads"], $cfg["sleepInterval"]); + sleep(1); } } else diff -urNad torrentflux~/html/functions.php torrentflux/html/functions.php --- torrentflux~/html/functions.php 2006-11-21 22:03:53.000000000 -0800 +++ torrentflux/html/functions.php 2006-11-21 22:05:40.000000000 -0800 @@ -2139,6 +2139,66 @@ } //************************************************************************** +// SecurityClean() +// Cleans the file name for delete and alias file creation +function SecurityClean($string) +{ + global $cfg; + + if (empty($string)) + { + return $string; + } + + $array = array("<", ">", "\\", "//", "..", "'", "/"); + foreach ($array as $char) + { + $string = str_replace($char, NULL, $string); + } + + if( (strtolower( substr( $string, -8 ) ) == ".torrent") || (strtolower( substr( $string, -5 ) ) == ".stat") ) + { + // we are good + } + else + { + AuditAction($cfg["constants"]["error"], "Not a stat or torrent: " . $string); + die("Invalid file specified. Action has been logged."); + } + return $string; +} + +//************************************************************************** +// SecurityCleanPath() +// Cleans the file name for nfo and txt file viewing +function SecurityCleanPath($string) +{ + global $cfg; + + if (empty($string)) + { + return $string; + } + + $array = array("<", ">", "\\", "//", "..", "'"); + foreach ($array as $char) + { + $string = str_replace($char, NULL, $string); + } + + if( (strtolower( substr( $string, -4 ) ) == ".txt") || (strtolower( substr( $string, -4 ) ) == ".nfo") ) + { + // we are good + } + else + { + AuditAction($cfg["constants"]["error"], "Not a text or NFO: " . $string); + die("Invalid file specified. Action has been logged."); + } + return $string; +} + +//************************************************************************** // getDirList() // This method Builds and displays the Torrent Section of the Index Page function getDirList($dirName) diff -urNad torrentflux~/html/index.php torrentflux/html/index.php --- torrentflux~/html/index.php 2006-11-21 22:03:53.000000000 -0800 +++ torrentflux/html/index.php 2006-11-21 22:03:54.000000000 -0800 @@ -478,10 +478,10 @@ // if a file was set to be deleted then delete it -$delfile = getRequestVar('delfile'); +$delfile = SecurityClean(getRequestVar('delfile')); if(! $delfile == '') { - $alias_file = getRequestVar('alias_file'); + $alias_file = SecurityClean(getRequestVar('alias_file')); if (($cfg["user"] == getOwner($delfile)) || IsAdmin()) { @unlink($cfg["torrent_file_path"].$delfile); @@ -506,13 +506,13 @@ // Did the user select the option to kill a running torrent? $kill = getRequestVar('kill'); -if(! $kill == '') +if(! $kill == '' && is_numeric($kill) ) { include_once("AliasFile.php"); include_once("RunningTorrent.php"); $kill_torrent = getRequestVar('kill_torrent'); - $alias_file = getRequestVar('alias_file'); + $alias_file = SecurityClean(getRequestVar('alias_file')); // We are going to write a '0' on the front of the stat file so that // the BT client will no to stop -- this will report stats when it dies $the_user = getOwner($kill_torrent); @@ -572,7 +572,7 @@ // Did the user select the option to remove a torrent from the Queue? if(isset($_REQUEST["dQueue"])) { - $alias_file = getRequestVar('alias_file'); + $alias_file = SecurityClean(getRequestVar('alias_file')); $QEntry = getRequestVar('QEntry'); // Is the Qinfo file still there? diff -urNad torrentflux~/html/readmsg.php torrentflux/html/readmsg.php --- torrentflux~/html/readmsg.php 2006-11-21 21:24:51.000000000 -0800 +++ torrentflux/html/readmsg.php 2006-11-21 22:03:54.000000000 -0800 @@ -41,7 +41,7 @@ } $mid = getRequestVar('mid'); -if (!empty($mid)) +if (!empty($mid) && is_numeric($mid)) { list($from_user, $message, $ip, $time, $isnew, $force_read) = GetMessage($mid); if(!empty($from_user) && $isnew == 1) diff -urNad torrentflux~/html/viewnfo.php torrentflux/html/viewnfo.php --- torrentflux~/html/viewnfo.php 2006-11-21 22:03:53.000000000 -0800 +++ torrentflux/html/viewnfo.php 2006-11-21 22:06:27.000000000 -0800 @@ -29,7 +29,7 @@ DisplayHead("View NFO"); -$file = getRequestVar("path"); +$file = SecurityCleanPath(getRequestVar("path")); $folder = htmlspecialchars( substr( $file, 0, strrpos( $file, "/" ) ) ); if( ( $output = @file_get_contents( $cfg["path"] . $file ) ) === false ) @@ -42,7 +42,7 @@
 
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Update btphptornado.py to match changes to btdownloadheadless.py in bittornado package.

@DPATCH@
--- torrentflux.orig/html/TF_BitTornado/btphptornado.py
+++ torrentflux/html/TF_BitTornado/btphptornado.py
@@ -13,7 +13,8 @@
         pass
     
 from BitTornado.download_bt1 import BT1Download, defaults, parse_params, get_usage, get_response
-from BitTornado.RawServer import RawServer, UPnP_ERROR
+from BitTornado.RawServer import RawServer
+from BitTornado.SocketHandler import UPnP_ERROR
 from random import seed
 from socket import error as socketerror
 from BitTornado.bencode import bencode
--- torrentflux.orig/html/TF_BitTornado/btshowmetainfo.py
+++ torrentflux/html/TF_BitTornado/btshowmetainfo.py
@@ -4,10 +4,10 @@
 # modified for multitracker display by John Hoffman
 # see LICENSE.txt for license information
 
-from sys import *
-from os.path import *
-from sha import *
-from BitTornado.bencode import *
+from sys import argv
+from os.path import basename, splitext
+from sha import sha
+from BitTornado.bencode import bencode, bdecode
 
 NAME, EXT = splitext(basename(argv[0]))
 VERSION = '20030621'
debian/torrentflux.postrm0000644000000000000000000000262010625215244013031 0ustar  #!/bin/sh

set -e
#set -x

# source debconf stuff
if [ -f /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
fi
# source dbconfig-common stuff
if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
	. /usr/share/dbconfig-common/dpkg/postrm.mysql 
	dbc_go torrentflux $@
fi

# summary of how this script can be called:
#        *  `remove'
#        *  `purge'
#        *  `upgrade' 
#        *  `failed-upgrade' 
#        *  `abort-install'
#        *  `abort-install' 
#        *  `abort-upgrade' 
#        *  `disappear' overwrit>r> 
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
    purge)

	rm -f /etc/torrentflux/config-db.php
	ucf --purge /etc/torrentflux/config-db.php
#        if test -d /etc/torrentflux; then
#          rmdir --ignore-fail-on-non-empty /etc/torrentflux
#        fi

        rmdir --ignore-fail-on-non-empty /etc/torrentflux || true

        ;;
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)


        ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1

esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
debian/TODO.Debian0000644000000000000000000000011210611200467011026 0ustar  General
 * Add support for PostgreSQL
 * Add more patches from the forums
debian/README.Debian0000644000000000000000000000377010611200467011233 0ustar  torrentflux for Debian
----------------------

1. Getting Started

Using dbconfig-common for the database install is highly recommended.
If you have chosen not to use it, you can find the SQL files used to
install and upgrade the database in /usr/share/doc/torrentflux/dbfiles.
You will need to use these files to manually install/upgrade the
database yourself.

Once the package is installed, point your browser to 
http://localhost/torrentflux/
TorrentFlux will ask you for a user name and password. These will
be used to create the admin user, who can then create other users.

2. Web Servers

By default, TorrentFlux will install itself to be used with any of the
Apache webservers you have installed (apache, apache-ssl, apache-perl,
and apache2). It will be available in any virtual servers of these as
well. To change this behaviour, edit the file
/etc/torrentflux/apache.conf
which is symlinked to from
/etc/[webserver]/conf.d/torrentflux.conf

3. Additional Information

There is a forum available at http://www.torrentflux.com/forum/
with lots of tips and tricks to using torrentflux and bittorrent in
general. There are also some hacks available in the forums to expand on
the features available.

An add-on package, rss-torrentflux, is available on sourceforge at
http://sourceforge.net/projects/rss-torrentflux which "automagically
adds Torrent-Files to TorrentFlux and even starts the Downloads for you!"
I've never tried it though.

4. WARNING

If you do plan on using some of these hacks, or want to use your own
version of bittornado, keep in mind that the python files in this package
have been slightly modified from the ones distributed with torrentflux
(the upstream source). Diffs for these patches have been included in the
/usr/share/doc/torrentflux/patches directory. These changes are very
minimal and shouldn't cause any problems, but if you have trouble using
other bittornado's, you may want to unpatch or use the upstream's python
files.

 -- Cameron Dale , Fri, 14 Apr 2006 21:19:52 -0800
Metainfo File:".$torrent."
Directory Name:".htmlentities($btmeta['info']['name'], ENT_QUOTES)."
Announce URL:".htmlentities($btmeta['announce'], ENT_QUOTES)."
Announce URL:".htmlentities($btmeta['announce'], ENT_QUOTES)."
Announce URL:["; + foreach ($btmeta['announce-list'] as $tier) { + echo "["; + foreach ($tier as $tracker) { + echo htmlentities($tracker, ENT_QUOTES).", "; + } + echo "], "; + } + echo "]
btphptornado.py Path
- Specify the path to the btphptornado.py python script: +
btphptornado Path
+ Specify the path to the btphptornado python script:
" size="55">
btshowmetainfo.py Path
- Specify the path to the btshowmetainfo.py python script: +
btshowmetainfo Path
+ Specify the path to the btshowmetainfo python script:
" size="55"> @@ -1422,8 +1422,8 @@
btmakemetafile.py Path
- Specify the path to the btmakemetafile.py python script (used for making torrents): +
btmakemetafile Path
+ Specify the path to the btmakemetafile python script (used for making torrents):
" size="55"> @@ -1832,7 +1832,7 @@
tfQManager Path
- Specify the path to the tfQManager.py python script: + Specify the path to the tfQManager python script:
" size="55"> --- torrentflux.orig/html/functions.php +++ torrentflux/html/functions.php @@ -1494,14 +1494,7 @@ // returns true if client is tornado function usingTornado() { - global $cfg; - $rtnValue = false; - if (preg_match("/btphptornado/i", $cfg["btphpbin"])) - { - $rtnValue = true; - } - - return $rtnValue; + return true; } //************************************************************************** @@ -1954,7 +1947,7 @@ { global $cfg; - return shell_exec("ps x -o pid='' -o ppid='' -o command='' -ww | grep btphptornado | grep ".$cfg["torrent_file_path"]." | grep -v grep"); + return shell_exec("ps x -o pid='' -o ppid='' -o command='' -ww | grep ".basename($cfg["btphpbin"])." | grep ".$cfg["torrent_file_path"]." | grep -v grep"); } //************************************************************************** @@ -1991,7 +1984,7 @@ } else { - if(strpos($arScreen[$i], "btphptornado.py") !== false) + if(strpos($arScreen[$i], basename($cfg["btphpbin"])) !== false) { $pinfo = new ProcessInfo($arScreen[$i]); @@ -2098,7 +2091,7 @@ { if(! strpos($arScreen[$i], $cfg["tfQManager"]) > 0) { - if(strpos($arScreen[$i], "btphptornado.py") !== false) + if(strpos($arScreen[$i], basename($cfg["btphpbin"])) !== false) { $pinfo = new ProcessInfo($arScreen[$i]); debian/patches/16_update_settings_fails_with_blank_search_filter.dpatch0000644000000000000000000000116311033741121023756 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 16_update_settings_fails_with_blank_search_filter.dpatch by Cameron Dale ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fixes Launchpad bug #197036 @DPATCH@ --- torrentflux.orig/html/settingsfunctions.php +++ torrentflux/html/settingsfunctions.php @@ -155,6 +155,9 @@ { global $cfg, $db; + if ($settings == null) + return; + foreach ($settings as $key => $value) { if (array_key_exists($key, $cfg)) @@ -209,4 +212,4 @@ return substr($rcode, 3, 6); } -?> \ No newline at end of file +?> debian/patches/14_maketorrent_remote_command.dpatch0000755000000000000000000000167311033741121017715 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 14_maketorrent_remote_command.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix a remote command execution in maketorrent.php. @DPATCH@ diff -urNad torrentflux~/html/maketorrent.php torrentflux/html/maketorrent.php --- torrentflux~/html/maketorrent.php 2006-12-09 15:45:47.000000000 -0800 +++ torrentflux/html/maketorrent.php 2006-12-09 15:46:32.000000000 -0800 @@ -97,7 +97,7 @@ } // This is the command to execute - $app = "nohup " . $cfg["pythonCmd"] . " -OO " . $cfg["btmakemetafile"] . " " . $announce . " " . escapeshellarg( $cfg['path'] . $file ) . " "; + $app = "nohup " . $cfg["pythonCmd"] . " -OO " . $cfg["btmakemetafile"] . " " . escapeshellarg($announce) . " " . escapeshellarg( $cfg['path'] . $file ) . " "; // Is there comments to add? if( !empty( $comment ) ) debian/patches/02_dbconfig-common.dpatch0000755000000000000000000000263511033741121015346 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 02_dbconfig-common.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ --- torrentflux.orig/html/config.php +++ torrentflux/html/config.php @@ -28,11 +28,16 @@ /**************************************************************************/ // Check the adodb/drivers/ directory for support for your database // you may choose from many (mysql is the default) -$cfg["db_type"] = "mysql"; // mysql, postgres7, postgres8 view adodb/drivers/ -$cfg["db_host"] = "localhost"; // DB host computer name or IP -$cfg["db_name"] = "torrentflux"; // Name of the Database -$cfg["db_user"] = "root"; // username for your MySQL database -$cfg["db_pass"] = ""; // password for database +// +// WARNING: don't change these values in this file. The values are included +// from /etc/torrentflux/config-db.php, change them there. +// +include_once("/etc/torrentflux/config-db.php"); +$cfg["db_type"] = $dbtype; // mysql, postgres7, postgres8 view adodb/drivers/ +$cfg["db_host"] = $dbserver; // DB host computer name or IP +$cfg["db_name"] = $dbname; // Name of the Database +$cfg["db_user"] = $dbuser; // username for your MySQL database +$cfg["db_pass"] = $dbpass; // password for database /**************************************************************************/ debian/patches/08_http_query_builder.dpatch0000755000000000000000000000143611027636726016244 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 08_http_query_builder.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix http_query_builder() recursive call error in SearchEngineBase.php. @DPATCH@ --- torrentflux.orig/html/searchEngines/SearchEngineBase.php +++ torrentflux/html/searchEngines/SearchEngineBase.php @@ -145,7 +145,7 @@ $tmp_key = urlencode(is_int($k) ? $numeric_prefix.$k : $k); if ($key) $tmp_key = $key.'['.$tmp_key.']'; if ( is_array($v) || is_object($v) ) { - $res[] = http_query_builder($v, null, $tmp_key); + $res[] = $this->http_query_builder($v, null, $tmp_key); } else { $res[] = $tmp_key."=".urlencode($v); } debian/patches/17_remove_UPnP_options.dpatch0000644000000000000000000000154211033741121016256 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 17_remove_UPnP_options.dpatch by Cameron Dale ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Remove the UPnP options to comply with bittornado 0.3.18-6. @DPATCH@ --- torrentflux.orig/html/TF_BitTornado/btphptornado.py +++ torrentflux/html/TF_BitTornado/btphptornado.py @@ -374,7 +374,7 @@ rawserver = RawServer(doneflag, config['timeout_check_interval'], config['timeout'], ipv6_enable = config['ipv6_enabled'], failfunc = h.failed, errorfunc = disp_exception) - upnp_type = UPnP_test(config['upnp_nat_access']) + upnp_type = 0 while True: try: listen_port = rawserver.find_and_bind(config['minport'], config['maxport'], debian/patches/05_change_env_to_python.dpatch0000755000000000000000000000221711033741121016504 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 05_change_env_to_python.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Change all the /usr/bin/env to /usr/bin/python. @DPATCH@ --- torrentflux.orig/html/TF_BitTornado/btmakemetafile.py +++ torrentflux/html/TF_BitTornado/btmakemetafile.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # Written by Bram Cohen # multitracker extensions by John Hoffman --- torrentflux.orig/html/TF_BitTornado/btphptornado.py +++ torrentflux/html/TF_BitTornado/btphptornado.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # Written by Bram Cohen # see LICENSE.txt for license information --- torrentflux.orig/html/TF_BitTornado/btshowmetainfo.py +++ torrentflux/html/TF_BitTornado/btshowmetainfo.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # Written by Henry 'Pi' James and Loring Holden # modified for multitracker display by John Hoffman --- torrentflux.orig/html/TF_BitTornado/tfQManager.py +++ torrentflux/html/TF_BitTornado/tfQManager.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # Written by kboy debian/patches/19_add_demonoid_search.dpatch0000644000000000000000000007345211251620237016260 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 19_add_demonoid_search.dpatch by Cameron Dale ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Add the Demonoid search plugin @DPATCH@ --- /dev/null +++ torrentflux/html/searchEngines/DemonoidEngine.php @@ -0,0 +1,2182 @@ +mainURL = "www.demonoid.com"; + + + $this->altURL = "www.demonoid.com"; + + + $this->mainTitle = "Demonoid"; + + + $this->engineName = "Demonoid"; + + + + + + $this->author = "moldavite"; + + + $this->version = "1.06"; + + + $this->updateURL = "http://www.torrentflux.com/forum/index.php/topic,1210.0.html"; + + + + + + $this->Initialize($cfg); + + + } + + + + + + function populateMainCategories() + + + { + + + $this->mainCatalog["0"] = "(all types)"; + + + $this->mainCatalog["9"] = "Anime"; + + + $this->mainCatalog["5"] = "Applications"; + + + $this->mainCatalog["17"] = "Audio Books"; + + + $this->mainCatalog["11"] = "Books"; + + + $this->mainCatalog["10"] = "Comics"; + + + $this->mainCatalog["4"] = "Games"; + + + $this->mainCatalog["6"] = "Misc"; + + + $this->mainCatalog["1"] = "Movies"; + + + $this->mainCatalog["2"] = "Music"; + + + $this->mainCatalog["13"] = "Music Videos"; + + + $this->mainCatalog["8"] = "Pictures"; + + + $this->mainCatalog["3"] = "TV"; + + + } + + + + + + //---------------------------------------------------------------- + + + // Function to Get Sub Categories + + + function getSubCategories($mainGenre) + + + { + + + $output = array(); + + + + + + switch ($mainGenre) + + + { + + + case "1" : + + + $output["1:ALL"] = "All"; + + + $output["1:6"] = "Action"; + + + $output["1:7"] = "Adventure"; + + + $output["1:8"] = "Animation"; + + + $output["1:9"] = "Biography"; + + + $output["1:10"] = "Comedy"; + + + $output["1:180"] = "Concerts"; + + + $output["1:181"] = "Crime"; + + + $output["1:11"] = "Documentary"; + + + $output["1:12"] = "Drama"; + + + $output["1:13"] = "Family"; + + + $output["1:14"] = "Fantasy"; + + + $output["1:15"] = "Film-Noir"; + + + $output["1:17"] = "Horror"; + + + $output["1:18"] = "Musical"; + + + $output["1:19"] = "Mystery"; + + + $output["1:65"] = "Other"; + + + $output["1:20"] = "Romance"; + + + $output["1:21"] = "Sci-Fi"; + + + $output["1:22"] = "Short film"; + + + $output["1:23"] = "Sports"; + + + $output["1:24"] = "Thriller"; + + + $output["1:182"] = "Trailers"; + + + $output["1:25"] = "War"; + + + $output["1:26"] = "Western"; + + + break; + + + case "2" : + + + $output["2:All"] = "All"; + + + $output["2:183"] = "Alternative"; + + + $output["2:34"] = "Blues"; + + + $output["2:185"] = "Christian"; + + + $output["2:27"] = "Classical"; + + + $output["2:186"] = "Comedy"; + + + $output["2:44"] = "Contemporary African"; + + + $output["2:36"] = "Country"; + + + $output["2:39"] = "Dance / Disco"; + + + $output["2:37"] = "Electro / Techno"; + + + $output["2:28"] = "Gospel"; + + + $output["2:43"] = "Hip-Hop / Rap"; + + + $output["2:38"] = "Industrial"; + + + $output["2:184"] = "J-Pop"; + + + $output["2:29"] = "Jazz"; + + + $output["2:30"] = "Latin American"; + + + $output["2:40"] = "Melodic"; + + + $output["2:35"] = "Metal"; + + + $output["2:63"] = "Other"; + + + $output["2:31"] = "Pop"; + + + $output["2:42"] = "Punk"; + + + $output["2:41"] = "Reggae"; + + + $output["2:33"] = "Rhythm and blues"; + + + $output["2:32"] = "Rock"; + + + $output["2:188"] = "Soul"; + + + $output["2:190"] = "Soundtrack"; + + + $output["2:191"] = "Trance"; + + + break; + + + case "3" : + + + $output["3:All"] = "All"; + + + $output["3:192"] = "Action"; + + + $output["3:193"] = "Adventure"; + + + $output["3:194"] = "Animation"; + + + $output["3:195"] = "Biography"; + + + $output["3:196"] = "Comedy"; + + + $output["3:213"] = "Concerts"; + + + $output["3:214"] = "Crime"; + + + $output["3:197"] = "Documentary"; + + + $output["3:198"] = "Drama"; + + + $output["3:199"] = "Family"; + + + $output["3:200"] = "Fantasy"; + + + $output["3:201"] = "Film-Noir"; + + + $output["3:203"] = "Horror"; + + + $output["3:202"] = "Musical"; + + + $output["3:204"] = "Mystery"; + + + $output["3:212"] = "Other"; + + + $output["3:205"] = "Romance"; + + + $output["3:206"] = "Sci-Fi"; + + + $output["3:207"] = "Short film"; + + + $output["3:208"] = "Sports"; + + + $output["3:259"] = "Talk show"; + + + $output["3:209"] = "Thriller"; + + + $output["3:215"] = "Trailers"; + + + $output["3:210"] = "War"; + + + $output["3:211"] = "Western"; + + + break; + + + case "4" : + + + $output["4:All"] = "All"; + + + $output["4:177"] = "DOS"; + + + $output["4:176"] = "Dreamcast"; + + + $output["4:178"] = "Emulators"; + + + $output["4:167"] = "GameBoy"; + + + $output["4:175"] = "GameCube"; + + + $output["4:162"] = "Linux"; + + + $output["4:163"] = "Macintosh"; + + + $output["4:168"] = "Mobile phone"; + + + $output["4:261"] = "Nintendo DS"; + + + $output["4:164"] = "Palm"; + + + $output["4:170"] = "Playstation 1"; + + + $output["4:171"] = "Playstation 2"; + + + $output["4:172"] = "Playstation 3"; + + + $output["4:165"] = "PocketPC"; + + + $output["4:169"] = "PSP"; + + + $output["4:166"] = "Windows"; + + + $output["4:173"] = "XBox"; + + + $output["4:174"] = "XBox 360"; + + + break; + + + case "5" : + + + $output["5:All"] = "All"; + + + $output["5:2"] = "Linux"; + + + $output["5:3"] = "Macintosh"; + + + $output["5:118"] = "Mobile phone"; + + + $output["5:5"] = "Palm"; + + + $output["5:4"] = "PocketPC"; + + + $output["5:1"] = "Windows"; + + + break; + + + case "6" : + + + $output["6:All"] = "All"; + + + break; + + + case "8" : + + + $output["8:All"] = "All"; + + + $output["8:66"] = "Art"; + + + $output["8:67"] = "Commercial"; + + + $output["8:69"] = "Glamour"; + + + $output["8:73"] = "Other"; + + + $output["8:68"] = "Photojournalism"; + + + $output["8:70"] = "Snapshots"; + + + $output["8:71"] = "Sports"; + + + $output["8:72"] = "Wildlife"; + + + break; + + + case "9" : + + + $output["9:All"] = "All"; + + + $output["9:111"] = "Action"; + + + $output["9:220"] = "Adventure"; + + + $output["9:112"] = "Comedy"; + + + $output["9:113"] = "Drama"; + + + $output["9:114"] = "Fantasy"; + + + $output["9:115"] = "Horror"; + + + $output["9:221"] = "Other"; + + + $output["9:117"] = "Romance"; + + + $output["9:116"] = "Sci-Fi"; + + + + + + break; + + + case "10" : + + + $output["10:All"] = "All"; + + + $output["10:159"] = "Action / Adventure"; + + + $output["10:227"] = "Crime"; + + + $output["10:160"] = "Drama"; + + + $output["10:223"] = "Fantasy"; + + + $output["10:228"] = "Historical fiction"; + + + $output["10:224"] = "Horror"; + + + $output["10:161"] = "Illustrated novel"; + + + $output["10:229"] = "Other"; + + + $output["10:226"] = "Real-Life"; + + + $output["10:225"] = "Sci-Fi"; + + + $output["10:222"] = "Super Hero"; + + + break; + + + case "11" : + + + $output["11:All"] = "All"; + + + $output["11:119"] = "Action"; + + + $output["11:120"] = "Adventure"; + + + $output["11:122"] = "Childrens"; + + + $output["11:137"] = "Computers"; + + + $output["11:123"] = "Contemporary"; + + + $output["11:124"] = "Fantasy"; + + + $output["11:125"] = "General"; + + + $output["11:126"] = "Horror"; + + + $output["11:127"] = "Humor"; + + + $output["11:128"] = "Literary"; + + + $output["11:129"] = "Mainstream"; + + + $output["11:138"] = "Misc. Educational"; + + + $output["11:130"] = "Mystery"; + + + $output["11:230"] = "Other"; + + + $output["11:131"] = "Paranormal"; + + + $output["11:132"] = "Romance"; + + + $output["11:260"] = "RPG"; + + + $output["11:133"] = "Sci-Fi"; + + + $output["11:121"] = "Self-help"; + + + $output["11:134"] = "Suspense"; + + + $output["11:135"] = "Thriller"; + + + $output["11:136"] = "Western"; + + + break; + + + case "13" : + + + $output["13:All"] = "All"; + + + $output["13:251"] = "Alternative"; + + + $output["13:239"] = "Blues"; + + + $output["13:253"] = "Christian"; + + + $output["13:232"] = "Classical"; + + + $output["13:254"] = "Comedy"; + + + $output["13:249"] = "Contemporary African"; + + + $output["13:241"] = "Country"; + + + $output["13:244"] = "Dance / Disco"; + + + $output["13:242"] = "Electro / Techno"; + + + $output["13:233"] = "Gospel"; + + + $output["13:248"] = "Hip-Hop / Rap"; + + + $output["13:243"] = "Industrial"; + + + $output["13:252"] = "J-Pop"; + + + $output["13:234"] = "Jazz"; + + + $output["13:235"] = "Latin American"; + + + $output["13:245"] = "Melodic"; + + + $output["13:240"] = "Metal"; + + + $output["13:250"] = "Other"; + + + $output["13:236"] = "Pop"; + + + $output["13:247"] = "Punk"; + + + $output["13:246"] = "Reggae"; + + + $output["13:256"] = "Reggae"; + + + $output["13:238"] = "Rhythm and blues"; + + + $output["13:237"] = "Rock"; + + + $output["13:255"] = "Soul"; + + + $output["13:257"] = "Soundtrack"; + + + $output["13:258"] = "Trance"; + + + break; + + + case "17" : + + + $output["17:All"] = "All"; + + + $output["17:140"] = "Action"; + + + $output["17:139"] = "Adventure"; + + + $output["17:142"] = "Childrens"; + + + $output["17:157"] = "Computers"; + + + $output["17:143"] = "Contemporary"; + + + $output["17:144"] = "Fantasy"; + + + $output["17:145"] = "General"; + + + $output["17:146"] = "Horror"; + + + $output["17:147"] = "Humor"; + + + $output["17:148"] = "Literary"; + + + $output["17:149"] = "Mainstream"; + + + $output["17:158"] = "Misc. Educational"; + + + $output["17:150"] = "Mystery"; + + + $output["17:231"] = "Other"; + + + $output["17:151"] = "Paranormal"; + + + $output["17:152"] = "Romance"; + + + $output["17:153"] = "Sci-Fi"; + + + $output["17:141"] = "Self-help"; + + + $output["17:154"] = "Suspense"; + + + $output["17:155"] = "Thriller"; + + + $output["17:156"] = "Western"; + + + break; + + + } + + + + + + return $output; + + + + + + } + + + + + + //---------------------------------------------------------------- + + + // Function to Make the Request (overriding base) + + + function makeRequest($request) + + + { + + + return parent::makeRequest($request, false); + + + } + + + + + + //---------------------------------------------------------------- + + + // Function to get Latest.. + + + function getLatest() + + + { + + + $request = '/files/'; + + + + + + if (array_key_exists("mainGenre",$_REQUEST) && array_key_exists("subGenre",$_REQUEST)) + + + { + + + $request = "/files/?category=".$_REQUEST["mainGenre"]."&subcategory=".$_REQUEST["subGenre"]."&language=0&seeded=0&external=2&query=&uid=0"; + + + + + + } + + + elseif (array_key_exists("subGenre",$_REQUEST)) + + + { + + + $splitted = explode(":", $_REQUEST['subGenre']); + + + $request = "/files/?category=".$splitted[0]."&subcategory=".$splitted[1]."&language=0&seeded=0&external=2&query=&uid=0"; + + + + + + } + + + else + + + { + + + $request = "/files/"; + + + + + + } + + + + + + if (!empty($this->pg)) + + + { + + + if(strpos($request,"?")) + + + { + + + $request .= "&page=" . $this->pg; + + + } + + + else + + + { + + + $request .= "?page=" . $this->pg; + + + } + + + } + + + + + + + + + if ($this->makeRequest($request)) + + + { + + + return $this->parseResponse(); + + + } + + + else + + + { + + + return $this->msg; + + + } + + + } + + + + + + //---------------------------------------------------------------- + + + // Function to perform Search. + + + function performSearch($searchTerm) + + + { + + + if (array_key_exists("mainGenre",$_REQUEST) && array_key_exists("subGenre",$_REQUEST)) + + + { + + + $request = "/files/?category=".$_REQUEST['mainGenre']."&subcategory=".$_REQUEST["subGenre"]."&language=0&seeded=0&external=2&query=&uid=0"; + + + + + + } + + + // elseif (array_key_exists("mainGenre",$_REQUEST)) + + + // { + + + // $request = "/torrents/?category=".$_REQUEST["mainGenre"]."&subcategory=All&language=0&seeded=0&external=2&query=&uid=0"; + + + + + + // } + + + else + + + { + + + $request = "/files/?query=".$searchTerm; + + + + + + } + + + + + + if(strlen($searchTerm) > 0) + + + { + + + $searchTerm = str_replace(" ", "+", $searchTerm); + + + } + + + + + + if (!empty($this->pg)) + + + { + + + $request .= "&page=" . $this->pg; + + + } + + + + + + if ($this->makeRequest($request)) + + + { + + + return $this->parseResponse(); + + + } + + + else + + + { + + + return $this->msg; + + + } + + + } + + + + + + //---------------------------------------------------------------- + + + // Override the base to show custom table header. + + + // Function to setup the table header + + + function tableHeader() + + + { + + + $output = ""; + + + + + + $output .= "
\n"; + + + + + //v1.05 Update Starts here + + + if (is_integer(strpos($this->htmlPage,"class=user_box>"))) + + + { + + + $userinfo = substr($this->htmlPage,strpos($this->htmlPage,"")); + + + $userinfo = substr($userinfo,strpos($userinfo,"
")+strlen("
")); + + + $userinfo = str_replace("","",$userinfo); + + + $userinfo = str_replace("","",$userinfo); + + + $userinfo = str_replace("
","",$userinfo); + + + $output .= "cfg["table_header_bg"]."\">"; + + + $output .= ""; + + + } + + + //v1.05 Update Ends here + + + + + + $output .= "cfg["table_header_bg"]."\">"; + + + $output .= " "; + + + $output .= " "; + + + $output .= " "; + + + $output .= " "; + + + $output .= " "; + + + $output .= " "; + + + $output .= "\n"; + + + + + + return $output; + + + } + + + + + + //---------------------------------------------------------------- + + + // Function to parse the response. + + + function parseResponse() + + + { + + + + + + $output = $this->tableHeader(); + + + + + + if (is_integer(strpos($this->htmlPage,"class=\"added_today\">"))) + + + { + + + $dateheader = substr($this->htmlPage,strpos($this->htmlPage,"")); + + + $output .= "\n"; + + + } + + + + + + $thing = $this->htmlPage; + + + + + $thing = str_replace("","")); + + + + + + $tmplist = substr($thing,0,strpos($thing,"",$tmplist); + + + $bg = $this->cfg["bgLight"]; + + + foreach($tmpListArr as $key =>$value) + + + { + + + + + + $buildLine = true; + + + if (strpos($value,"www.demonoid.com")) + + + { + + + + + + $ts = new dmnd($value); + + + + + + // Determine if we should build this output + + + if (is_int(array_search($ts->MainId,$this->catFilter))) + + + { + + + $buildLine = false; + + + } + + + + + + if ($this->hideSeedless == "yes") + + + { + + + if($ts->Seeds == "N/A" || $ts->Seeds == "0") + + + { + + + $buildLine = false; + + + } + + + } + + + + + + if (!empty($ts->torrentFile) && $buildLine) { + + + + + + $output .= trim($ts->BuildOutput($bg, $this->searchURL())); + + + + + + // ok switch colors. + + + if ($bg == $this->cfg["bgLight"]) + + + { + + + $bg = $this->cfg["bgDark"]; + + + } + + + else + + + { + + + $bg = $this->cfg["bgLight"]; + + + } + + + } + + + + + + } + + + } + + + } + + + + + + $output .= "
")+strlen("")); + + + $userinfo = substr($userinfo,0,strpos($userinfo,"
".$userinfo."
 Torrent Name  ("; + + + + + + $tmpURI = str_replace(array("?hideSeedless=yes","&hideSeedless=yes","?hideSeedless=no","&hideSeedless=no"),"",$_SERVER["REQUEST_URI"]); + + + + + + //Check to see if Question mark is there. + + + if (strpos($tmpURI,'?')) + + + { + + + $tmpURI .= "&"; + + + } + + + else + + + { + + + $tmpURI .= "?"; + + + } + + + + + + if($this->hideSeedless == "yes") + + + { + + + $output .= "Show Seedless"; + + + } + + + else + + + { + + + $output .= "Hide Seedless"; + + + } + + + + + + $output .= ")Category  SizeSeedsPeers
")+strlen("")); + + + $dateheader = substr($dateheader,0,strpos($dateheader,"
".$dateheader."
",$thing); + + + $thing = substr($thing,strpos($thing,"
"; + + + + + + // is there paging at the bottom? + + + if (strpos($thing, "&page=") != false) + + + + + + { + + + // Yes, then lets grab it and display it! ;) + + + $thing = substr($thing,strpos($thing,"
")+1); + + + $pages = substr($thing,0,strpos($thing,"
torrentFile."\">torrentName."\" border=0>torrentFile."\" title=\"".$this->torrentName."\">".$this->torrentDisplayName."". $genre ."".$this->torrentSize."".$this->Seeds."".$this->Peers."
".$this->dateAdded."