Results 1 to 1 of 1
-
11th Jul 2011, 03:24 PM #1OPMemberWebsite's:
scrls.co.ukPHP BTN Help
I have made this code and ran it on my VPS to test for downloading from BTN but for some reason it is only downloading the .torrent
I just want to make sure this is the right way of logging into BTN
PHP Code:<?php
if(isset($_GET['sid'])) session_id(strip_tags($_GET['sid']));
session_start();
echo '<?xml version="1.0" encoding="UTF-8"?>';
$params = array('http' => array(
'method' => 'POST',
'content' => 'username=usernamehere&password=passwordhere&login=Log In!'
));
if ($optional_headers !== null) $params['http']['header'] = $optional_headers;
$ctx = stream_context_create($params);
$fp = @fopen('http://broadcasthe.net/login.php', 'rb', false, $ctx);
if (!$fp) die('Error connecting to BroadCasthe.net');
$response = @stream_get_contents($fp);
if ($response === false) die('Error connecting to BroadCasthe.net');
?>_brazzO Reviewed by _brazzO on . PHP BTN Help I have made this code and ran it on my VPS to test for downloading from BTN but for some reason it is only downloading the .torrent I just want to make sure this is the right way of logging into BTN <?php if(isset($_GET)) session_id(strip_tags($_GET)); session_start(); echo '<?xml version="1.0" encoding="UTF-8"?>'; Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaManager - edit and manage...
Version 4.04 released. Open older version (or...