Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Trying to fix the Swedvdr Source (http://www.bvlist.com/showthread.php?t=8314)

Kristoffer 18th September 2012 18:12

Trying to fix the Swedvdr Source
 
I'm trying to make the old Swedvdr Source working.

I've tried but no results :wallbash:

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

firefly007 19th September 2012 22:44

Quote:

Originally Posted by Kristoffer (Post 36622)
I'm trying to make the old Swedvdr Source working.

I've tried but no results :wallbash:

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?

mascuuus 4th November 2012 19:11

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.

firefly 4th November 2012 20:19

Quote:

Originally Posted by mascuuus (Post 37208)
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

mascuuus 4th November 2012 22:59

Quote:

Originally Posted by firefly (Post 37210)
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

Kristoffer 5th November 2012 01:54

Quote:

Originally Posted by mascuuus (Post 37213)
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 :ok:

firefly 5th November 2012 02:11

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();





Kristoffer 5th November 2012 02:30

Quote:

Originally Posted by firefly (Post 37217)
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)

mascuuus 5th November 2012 11:07

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.

phazer 10th November 2012 15:20

Quote:

Originally Posted by mascuuus (Post 37223)
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?


All times are GMT +2. The time now is 22:41.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.