quick way to simplify the act of getting
cookies... kinda tossed to gather and lots of room for
improvement by actually modifying the php proxy, but I
was trying to be as non-destructive as
possible.
First step get phpProxy from
http://sourceforge.net/projects/poxy/
Extract the files rename index.php to something like
proxy.php and put in your torrent flux
directory.
in your profile.php find the lind that
says
<input type="Submit" value="<?php
echo ( !empty( $cid ) ) ? _UPDATE : "Add";
?>">
Add this line below it:
<A href="?op=GrabCookies">Get
Cookies From Proxy</A>
then find
function addCookie( $newCookie
)
and replace with:
function addCookie( $newCookie,
$continue )
in that same function directly
above
header( "location:
profile.php?op=showCookies" );
add the line:
if(!$continue)
Below
case "showCookies":
case "editCookies":
showCookies();
break;
Add:
case
"GrabCookies":
GrabCookies();
break;
Then
at the bottum (or where ever you'd like out side of any
of the other functions) add:
Function GrabCookies(){
foreach(array_keys($_COOKIE) as $value){
if(strstr($value,
"COOKIE")){
$cookie = explode(";",$value);
$temphost = $cookie[2];
$tempvalue =
$cookie[1];
$tempcookie[$temphost] =
$tempcookie[$temphost].$tempvalue."=".$_COOKIE[$value].";";
}
}
$last = count($a);
$i =
0;
foreach(array_keys($tempcookie) as
$value){
$i++;
$newCookie["host"] =
str_replace("_", ".", $value);
$newCookie["data"] = substr($tempcookie[$value],
0, -1);
addCookie(
$newCookie, ($i==$last));
}
}
put in a link to proxy.php some where on
your page (I recomend using the links section but that
is up to you.) go there browse to your favorite private
trackers and login. return to your profile page
and slect manage cookies and then click the "Get Cookies
From Proxy" link.
This will pull down all of the
cookies you picked up while browsing through the proxy
into your torrent flux profile.
Currently it will grab all the
cookies Each time you click the link, I have no
intention of trying to change this at the moment, so
long as you can delete the duplicates with a click of
the mouse.
The php proxy program stores a cookie
on your computer for it self that contains the cookies
from the other sites, if more then one torrent flux user
uses the same browser on the same computer it is
possible (likely) that there will be issues with people
getting each others cookies.
As I said above
there is lots of room for improvement here, this is just
something I hacked to gather quickely to aviod having to
copy cookies from my private trackers over by
hand.
Any issues or improvements let me
know.