kboy Global Moderator Jr. Member
Offline
Posts: 79
|
|
« on: 04-10-2006, 20:13:43
» |
|
This is where updates for PirateBay
Search module will be. This engine requires a
cookie. and English language see below for
example cookie http://www.torrentflux.com/forum/index.php/topic,1125.msg8211.html#msg8211see
attached for latest version Current
Version: 1.06-- Version History
-- v 1.06 - Feb 16, 07 - updated
parsing v 1.05 - Oct 18, 06 - Seeds and
Peers were off. v 1.04 - Oct 16, 06 -
fix paging v 1.03 - Aug 23, 06 - Added
Top 100 v 1.02 - Jun 29, 06 - update
to pageing v 1.01 - Apr 11, 06 - bug
in parsing paging. |
| | |
|
|
munk Jr. Member
Offline
TF Base: Linux 2.x Posts:
71
|
|
«
Reply #2 on: 04-10-2006, 21:04:38
» |
|
Cheers bud. |
Running:FreeBSD
4.11-STABLE Apache/1.3.36 (Unix) PHP
4.4.2 MySQL 4.0.27-log Python 2.4.3 Current
Mods: Remember Me|Start/Stop All|Enhanced Link
List|Multi Torrent Uploads|Multi File Delete FreeBSD Torrentflux FixTorrentflux-b4rt | | |
|
|
|
|
|
nthing Newbie
Offline
Posts: 3
|
|
«
Reply #8 on: 04-11-2006, 16:19:12
» |
|
I found a bug when i try to go to a new page instead of
going to
<hostname>/torrent/torrentSearch.php?searchEngine=PirateBay&LATEST=1&pg=1 it
goes
to <hostname>/tflux/torrentSearch.php?searchEngine=PirateBay&LATEST=1&pg=1 tflux?
:p |
| | |
|
|
|
|
kboy Global Moderator Jr. Member
Offline
Posts: 79
|
|
«
Reply #13 on: 04-11-2006, 17:41:31
» |
|
This is what thepiratebay.org cookies
look like. with language set to en_EN (english) At
this time this engine only supports (en_EN) Yes
this will mean that the results will be in english.
NOTE: This is a Sample Cookie will not work so
don't even try..
uid=2999999;cryptpw=e999;authtoken=2d91b999bf9cd5c2a99c991ff99c999b;language=en_EN If
you have updated your code you can try using other
languages. Here are the Language codes from there
site.
en_EN -> English sv_SE ->
Svenska no_NO -> Norsk (Bokmål) nn_NO ->
Norsk (Nynorsk) da_DK -> Dansk fi_FI ->
Suomeksi is_IS -> Íslenska nl_NL ->
Nederlands de_DE -> Deutsch it_IT ->
Italiano es_ES -> Español pt_PT ->
Portuguese pt_BR -> Português (Brazil) fr_FR
-> Français pl_PL -> Polski hu_HU ->
Magyar el_GR -> e??????? tr_TR ->
Türkçe ru_RU -> Russian sk_SK ->
Slovencina ca_ES -> Català he_IL ->
Hebrew ja_JP -> Japanese bg_BG ->
????????? et_EE -> Eesti
|
| | |
|
|
|
|
|
|
|
Infinity Newbie
Offline
Posts: 9
|
|
« Reply #21 on: 04-27-2006,
00:00:30 » |
|
My tf_cookies table is empty, too.
I'm using postgresql 8.1.3. LIMITs shouldn't be
used in sql if you're using ADODB. They're
apparently not cross-platform. You'd want to use
the SelectLimit function. But I'm not seeing any
LIMITs in the sql code in tf 2.1. I'm seeing some
bad syntax in queries, though, in functions.php.
One needs to properly quote the text strings going into
a sql statement, not just put ' chars before and after
it. What about chars in the string that might
screw up the sql statement? The qstr function
should be used. From: http://phplens.com/lens/adodb/docs-adodb.htmqstr($s,[$magic_quotes_enabled=false]) I
went in and modified these functions. I must have
missed some of them in the older functions I converted
way back
when. addCookieInfo modCookieInfo DisplayTitleBar FetchHTML GetDirList I'm
not sure how to test what you're trying to do, but maybe
these changes can make it into 2.1.1? |
| | |
Infinity Newbie
Offline
Posts: 9
|
|
« Reply #22 on: 04-27-2006,
00:08:52 » |
|
Oh here it is. The uid must not
be quoted, it's an integer, and the cid must be removed
from the query. You can't insert a value into an
auto-incrementing column in pgsql, especially not an
empty string into a smallint. Smallint? Why
is cid just a smallint instead of an int? See
addCookieInfo, line 410 or thereabouts becomes:
$sql = "INSERT INTO
tf_cookies ( uid, host, data ) VALUES ( " . $uid . ", "
. $db->qstr($newCookie["host"]) . ", " .
$db->qstr($newCookie["data"]) . " )"; That
permits you to add cookies in cookie maintenance as
described. Also, don't quote the $cid elsewhere,
like in modCookieInfo. That'll blow up
too. |
| | |
|
|
gunn0r Newbie
Offline
Posts: 25
G.I.R.
|
|
« Reply #25 on: 05-08-2006,
16:47:04 » |
|
See addCookieInfo, line 410 or
thereabouts becomes:
$sql = "INSERT INTO
tf_cookies ( uid, host, data ) VALUES ( " . $uid . ", "
. $db->qstr($newCookie["host"]) . ", " .
$db->qstr($newCookie["data"]) . " )"; That
permits you to add cookies in cookie maintenance as
described. Also, don't quote the $cid elsewhere,
like in modCookieInfo. That'll blow up
too. So I have to remove every "$cid" in
functions.php, or did I get something wrong? |
Don't eat yellow
snow. | | |
|
|
|
|
|
|
|
|
kendokar Newbie
Offline
TF Base: Linux 2.x Posts:
9
|
|
« Reply #34 on: 10-16-2006,
01:54:00 » |
|
I use TF21 + linux 2.x.., Search
result is no problem, but the problem is if the search
result have many page.. my url for TF is http://x.x.x.x/torrent/ but in search
result, the url for showing next page is
http://x.x.x./search.phptorrentSearch.php?searchEngine=PirateBay&searchterm
... it should http://x.x.x/torrent/search.phptorrentSearch.php?searchEngine=Pi.... another
search module works fine.. |
| | |
|
|
|
|
|
|
|
|