Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 18th September 2012, 18:12
Kristoffer's Avatar
Kristoffer Kristoffer is offline
Member
 
Join Date: Sep 2012
P2P
Posts: 12
Lightbulb Trying to fix the Swedvdr Source
I'm trying to make the old Swedvdr Source working.

I've tried but no results

Anyone here that know's how to make the source working?

Here's the original thread: http://www.bvlist.com/other-download...urce-code.html

Best regards,
Kristoffer
Reply With Quote
  #2  
Old 19th September 2012, 22:44
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 699
Default
Quote:
Originally Posted by Kristoffer View Post
I'm trying to make the old Swedvdr Source working.

I've tried but no results

Anyone here that know's how to make the source working?

Here's the original thread: http://www.bvlist.com/other-download...urce-code.html

Best regards,
Kristoffer
What part of it does not work?
__________________

Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.

I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote
  #3  
Old 4th November 2012, 19:11
mascuuus's Avatar
mascuuus mascuuus is offline
Senior Member
 
Join Date: Sep 2012
P2P
Posts: 15
Default
Does anyone know how to get the source code to work?
When I tried this, the site sent me automatically to swedvdr.org and when I change from swedvdr.org to my domain in bittorrent.php I just get a white screen.

I have used tbdev before but can't get this code to work.
Reply With Quote
  #4  
Old 4th November 2012, 20:19
firefly's Avatar
firefly firefly is offline
Senior Member
 
Join Date: Dec 2009
P2P
Posts: 74
Default
Quote:
Originally Posted by mascuuus View Post
Does anyone know how to get the source code to work?
When I tried this, the site sent me automatically to swedvdr.org and when I change from swedvdr.org to my domain in bittorrent.php I just get a white screen.

I have used tbdev before but can't get this code to work.

Ah Look in you bittorrent.php for swedvdr.org and comment out those functions
Reply With Quote
  #5  
Old 4th November 2012, 22:59
mascuuus's Avatar
mascuuus mascuuus is offline
Senior Member
 
Join Date: Sep 2012
P2P
Posts: 15
Default
Quote:
Originally Posted by firefly View Post
Ah Look in you bittorrent.php for swedvdr.org and comment out those functions
The index.php send me to swedvdr.org. But if I choose "mysite.com/signup.php" i can signup a account. The site log me in automatically and I see like this picture http://i.imgur.com/bDmu0.jpg

But now if I click on the menu. In such forums, show this text up:
Page redirected incorrectly

Firefox has detected that the server redirects the request on this site in a way that prevents the completion.

This problem may occur if you are disabled or refused to take
accept cookies.

And if i try click on start (index) it sends me to swedvdr.org

Hmm, I almost crazy :P
Reply With Quote
  #6  
Old 5th November 2012, 01:54
Kristoffer's Avatar
Kristoffer Kristoffer is offline
Member
 
Join Date: Sep 2012
P2P
Posts: 12
Default
Quote:
Originally Posted by mascuuus View Post
The index.php send me to swedvdr.org. But if I choose "mysite.com/signup.php" i can signup a account. The site log me in automatically and I see like this picture http://i.imgur.com/bDmu0.jpg

But now if I click on the menu. In such forums, show this text up:
Page redirected incorrectly

Firefox has detected that the server redirects the request on this site in a way that prevents the completion.

This problem may occur if you are disabled or refused to take
accept cookies.

And if i try click on start (index) it sends me to swedvdr.org

Hmm, I almost crazy :P
Can you send me your signup.php
Or write it here
Reply With Quote
  #7  
Old 5th November 2012, 02:11
firefly's Avatar
firefly firefly is offline
Senior Member
 
Join Date: Dec 2009
P2P
Posts: 74
Default
Its not in the signup.php its in bittorrent.php

PHP Code:
function logincookie($id$passhash$updatedb 1$expires 0x7fffffff)
{


    
setcookie("uid"$id$expires"/"".swedvdr.org");
    
setcookie("pass"$passhash$expires"/"".swedvdr.org");

  if (
$updatedb)
      
mysql_query("UPDATE users SET last_login = NOW() WHERE id = $id");
}


function 
logoutcookie() {
    
setcookie("uid"""0x7fffffff"/"".swedvdr.org");
    
setcookie("pass"""0x7fffffff"/"".swedvdr.org");
    
    
setcookie("uid"""0x7fffffff"/");
    
setcookie("pass"""0x7fffffff"/");
}

function 
loggedinorreturn() {
global 
$CURUSER;
if ( 
strstr$_SERVER['HTTP_HOST'], 'www.' ) )
{



    if (!
$CURUSER) {
        
header("Location: /login.php");
        exit();
    }
    
    
}
else
{


header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.swedvdr.org' $_SERVER['REQUEST_URI']);
exit();



Reply With Quote
  #8  
Old 5th November 2012, 02:30
Kristoffer's Avatar
Kristoffer Kristoffer is offline
Member
 
Join Date: Sep 2012
P2P
Posts: 12
Default
Quote:
Originally Posted by firefly View Post
Its not in the signup.php its in bittorrent.php

PHP Code:
function logincookie($id$passhash$updatedb 1$expires 0x7fffffff)
{


    
setcookie("uid"$id$expires"/"".swedvdr.org");
    
setcookie("pass"$passhash$expires"/"".swedvdr.org");

  if (
$updatedb)
      
mysql_query("UPDATE users SET last_login = NOW() WHERE id = $id");
}


function 
logoutcookie() {
    
setcookie("uid"""0x7fffffff"/"".swedvdr.org");
    
setcookie("pass"""0x7fffffff"/"".swedvdr.org");
    
    
setcookie("uid"""0x7fffffff"/");
    
setcookie("pass"""0x7fffffff"/");
}

function 
loggedinorreturn() {
global 
$CURUSER;
if ( 
strstr$_SERVER['HTTP_HOST'], 'www.' ) )
{



    if (!
$CURUSER) {
        
header("Location: /login.php");
        exit();
    }
    
    
}
else
{


header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.swedvdr.org' $_SERVER['REQUEST_URI']);
exit();



Do you by any chances know how to signup? (Getting a working signup)
Reply With Quote
  #9  
Old 5th November 2012, 11:07
mascuuus's Avatar
mascuuus mascuuus is offline
Senior Member
 
Join Date: Sep 2012
P2P
Posts: 15
Default
I think I got it to work now. I used a no-ip.info domain before, and it does not seem to work. Using a different domain now, and then the whole menu work and nothing turns white.

The only error I get is this: http://i.imgur.com/pE1Qn.jpg
A SQL error on Index.

EDIT: The error disappeared when I create a poll.

Last edited by mascuuus; 5th November 2012 at 15:27.
Reply With Quote
  #10  
Old 10th November 2012, 15:20
phazer's Avatar
phazer phazer is offline
Member
 
Join Date: Oct 2009
P2P
Posts: 12
Default
Quote:
Originally Posted by mascuuus View Post
I think I got it to work now. I used a no-ip.info domain before, and it does not seem to work. Using a different domain now, and then the whole menu work and nothing turns white.

The only error I get is this: http://i.imgur.com/pE1Qn.jpg
A SQL error on Index.

EDIT: The error disappeared when I create a poll.
How did you manage to fix it??? It just want to send me to swedvdr.org :(

EDIT: what should I comment out? Anyone have a working bittorrent.php that I can use?
Reply With Quote
Reply

Tags
fix , source , swedvdr

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 05:24. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2021, vBulletin Solutions Inc.