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?

mascuuus 10th November 2012 22:22

Quote:

Originally Posted by phazer (Post 37316)
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?

Open bittorrent.php with for example Wordpad, and replace everything that has to do with swedvdr. You can klick Ctrl+H in Wordpad to replace words.

Replace swedvdr.og with your domain.
Note there are some https, if you don't use https to your domain change it to http. So even replace all https to http.

phazer 11th November 2012 14:32

Quote:

Originally Posted by mascuuus (Post 37320)
Open bittorrent.php with for example Wordpad, and replace everything that has to do with swedvdr. You can klick Ctrl+H in Wordpad to replace words.

Replace swedvdr.og with your domain.
Note there are some https, if you don't use https to your domain change it to http. So even replace all https to http.

what if I dont have a domain? I run it right now on localhost

EDIT: How do I signup?? When I enter localhost/signup.php it just gives me "sorry pal not found"?

mascuuus 11th November 2012 14:37

Quote:

Originally Posted by phazer (Post 37328)
what if I dont have a domain? I run it right now on localhost

Use localhost instead of swedvdr then. But I recommend using some sort of domain, you can use for example a free .tk domain (go to www.dot.tk)

Use invites in phpmyadmin. Follow this guide: http://www.bvlist.com/22796-post59.html

Note: In swedvdr code the SysOp use class 10 instead of 9.

phazer 11th November 2012 15:02

Quote:

Originally Posted by mascuuus (Post 37330)
Use localhost instead of swedvdr then. But I recommend using some sort of domain, you can use for example a free .tk domain (go to www.dot.tk)

Use invites in phpmyadmin. Follow this guide: http://www.bvlist.com/22796-post59.html

Note: In swedvdr code the SysOp use class 10 instead of 9.

Okey I've made a account now but when I try to login it gives me this

"IP-Kontroll - X.X.X.X
IP-nummret du loggar in ifrån finns inte ibland tillåtna. Händelsen har loggats."

I translate it for you

"IP-Check - X.X.X.X
The IP number you tried to login with is not allowed. The event has been logged."


I've checked on my account in phpmyadmin and the IP is set to my public IP.

mascuuus 11th November 2012 15:04

Quote:

Originally Posted by phazer (Post 37333)
Okey I've made a account now but when I try to login it gives me this

"IP-Kontroll - X.X.X.X
IP-nummret du loggar in ifrån finns inte ibland tillåtna. Händelsen har loggats."

I translate it for you

"IP-Check - X.X.X.X
The IP number you tried to login with is not allowed. The event has been logged."


I've checked on my account in phpmyadmin and the IP is set to my public IP.

I got also that problem, but the easiest way to get around it is to delete the following in bittorrent.php:

/// START IP-CHECK STAFF
if($row["class"] > UC_UPLOADER){
$feel = false;
$iplock = mysql_query("SELECT * FROM iplock WHERE userid = $id");
while($sko = mysql_fetch_array($iplock))
{
if(strpos($ip, $sko[ip]) > -1){
$feel = true;
}
}

if($feel == false)
{
logoutcookie();
admin_log("IP-varning: ".$row[username]." tillåts ej logga in från IP: ".$ip.".");
genbark("IP-nummret du loggar in ifrån finns inte ibland tillåtna. Händelsen har loggats.","IP-Kontroll - ".$ip);

return;
}
}
/// SLUT IP-CHECK STAFF

phazer 11th November 2012 15:17

Quote:

Originally Posted by mascuuus (Post 37334)
I got also that problem, but the easiest way to get around it is to delete the following in bittorrent.php:

/// START IP-CHECK STAFF
if($row["class"] > UC_UPLOADER){
$feel = false;
$iplock = mysql_query("SELECT * FROM iplock WHERE userid = $id");
while($sko = mysql_fetch_array($iplock))
{
if(strpos($ip, $sko[ip]) > -1){
$feel = true;
}
}

if($feel == false)
{
logoutcookie();
admin_log("IP-varning: ".$row[username]." tillåts ej logga in från IP: ".$ip.".");
genbark("IP-nummret du loggar in ifrån finns inte ibland tillåtna. Händelsen har loggats.","IP-Kontroll - ".$ip);

return;
}
}
/// SLUT IP-CHECK STAFF

Thanks I got it worked!

But I cant upload, just getting errors!

Getting this

Warning: filesize() [function.filesize]: stat failed for imdbpics/2.jpg in C:\xampp\htdocs\include\bittorrent.php on line 2152

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\include\bittorrent.php:2152) in C:\xampp\htdocs\takeupload.php on line 380

mascuuus 11th November 2012 15:23

Quote:

Originally Posted by phazer (Post 37335)
Thanks I got it worked!

But I cant upload, just getting errors!

Getting this

Warning: filesize() [function.filesize]: stat failed for imdbpics/2.jpg in C:\xampp\htdocs\include\bittorrent.php on line 2152

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\include\bittorrent.php:2152) in C:\xampp\htdocs\takeupload.php on line 380

I don't know what the errors are due. But I do not think there is a folder in the root called imdbpics.

I can already tell you that there are some bugs that need to be encoded. So it's not just "start and run".

Are you using windows or linux?

phazer 11th November 2012 15:24

Quote:

Originally Posted by mascuuus (Post 37336)
I don't know what the errors are due. But I do not think there is a folder in the root called imdbpics.

I can already tell you that there are some bugs that need to be encoded. So it's not just "start and run".

Are you using windows or linux?

windows, why?

mascuuus 11th November 2012 15:29

Quote:

Originally Posted by phazer (Post 37337)
windows, why?

Just wondering. Have read in a thread here on the forum that the code works best in Linux. But I don't know.

I think I recognize your username, by the way.
I'm from Sweden

phazer 11th November 2012 15:38

Quote:

Originally Posted by mascuuus (Post 37338)
Just wondering. Have read in a thread here on the forum that the code works best in Linux. But I don't know.

I think I recognize your username, by the way.
I'm from Sweden

okey.. you got the uploading part working yet?

mascuuus 11th November 2012 15:42

Quote:

Originally Posted by phazer (Post 37339)
okey.. you got the uploading part working yet?

Yes, I got the tracker and upload-page to work.

phazer 11th November 2012 16:03

Quote:

Originally Posted by mascuuus (Post 37340)
Yes, I got the tracker and upload-page to work.

how did you do?

mascuuus 11th November 2012 16:09

Quote:

Originally Posted by phazer (Post 37341)
how did you do?

If you still have:

Warning: filesize() [function.filesize]: stat failed for imdbpics/2.jpg in C:\xampp\htdocs\include\bittorrent.php on line 2152

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\include\bittorrent.php:2152) in C:\xampp\htdocs\takeupload.php on line 380

I recommend you to solve it first. As I said before you must be able to encode to make it work. You will encounter problems.

To get the tracker to work, you must edit in bittorrent.php and announce.php

firefly 11th November 2012 18:29

Could i have the link to the source code mentioned here!!

mascuuus 11th November 2012 19:01

Quote:

Originally Posted by firefly (Post 37343)
Could i have the link to the source code mentioned here!!

http://www.bvlist.com/other-download...urce-code.html

firefly 11th November 2012 19:14

Quote:

Originally Posted by mascuuus (Post 37344)

Are you looking for a tbdev source that's in Swedish? or is there something you after in this source?

mascuuus 11th November 2012 19:31

Quote:

Originally Posted by firefly (Post 37345)
Are you looking for a tbdev source that's in Swedish? or is there something you after in this source?

I download it to experiment with the code, and I have got it to work,

Why do you ask for the link?

phazer 11th November 2012 22:59

Quote:

Originally Posted by mascuuus (Post 37346)
I download it to experiment with the code, and I have got it to work,

Why do you ask for the link?

How do I solve this??

Warning: filesize() [function.filesize]: stat failed for imdbpics/2.jpg in C:\xampp\htdocs\include\bittorrent.php on line 2152

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\include\bittorrent.php:2152) in C:\xampp\htdocs\takeupload.php on line 380

EDIT: where do I change the announce url? I've changed it in bittorrent.php but still Its swedvdr.org announce.. Theres gotta be a file where the auto url announce conversion happens.

mascuuus 11th November 2012 23:38

Quote:

Originally Posted by phazer (Post 37353)
How do I solve this??

Warning: filesize() [function.filesize]: stat failed for imdbpics/2.jpg in C:\xampp\htdocs\include\bittorrent.php on line 2152

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\include\bittorrent.php:2152) in C:\xampp\htdocs\takeupload.php on line 380

EDIT: where do I change the announce url? I've changed it in bittorrent.php but still Its swedvdr.org announce.. Theres gotta be a file where the auto url announce conversion happens.

As I wrote before, you must edit both bittorrent.php and announce.php

phazer 11th November 2012 23:41

Quote:

Originally Posted by mascuuus (Post 37355)
As I wrote before, you must edit both bittorrent.php and announce.php

I have done so.. I have searched for swedvdr but I cant find anything that could translate the announce URL into swedvdr..

my bittorrent.php is : http://www.MYDOMAIN.tk:3952/tracker.php/announce

and in announce I cant find any line with swedvdr.org

mascuuus 12th November 2012 13:28

Quote:

Originally Posted by phazer (Post 37356)
I have done so.. I have searched for swedvdr but I cant find anything that could translate the announce URL into swedvdr..

my bittorrent.php is : http://www.MYDOMAIN.tk:3952/tracker.php/announce

and in announce I cant find any line with swedvdr.org

This is how my settings are:

In bittorrent.php - $announce_urls[] = "http://www.MYDOMAIN/tracker.php/announce";

Since I don't use port 3952 as it was in the beginning, I have also edit in tracker.php to:

if($_SERVER['SERVER_PORT'] != 80)

I use port 80 instead of 3952. This my settings, and the tracker works for me. So try change to port 80 instead of 3952.

phazer 12th November 2012 13:37

Quote:

Originally Posted by mascuuus (Post 37363)
This is how my settings are:

In bittorrent.php - $announce_urls[] = "http://www.MYDOMAIN/tracker.php/announce";

Since I don't use port 3952 as it was in the beginning, I have also edit in tracker.php to:

if($_SERVER['SERVER_PORT'] != 80)

I use port 80 instead of 3952. This my settings, and the tracker works for me. So try change to port 80 instead of 3952.

My problem is not that.. This is my problem.. even tho that I have changed everything from swedvdr its still announces as swedvdr.org

as you can see on the image.. still its swedvdr announce url have I forgot to change something?

http://i47.tinypic.com/engg9.png

Bump: anyone???

Kaliber 19th November 2012 14:03

Quote:

Originally Posted by phazer (Post 37364)
My problem is not that.. This is my problem.. even tho that I have changed everything from swedvdr its still announces as swedvdr.org

as you can see on the image.. still its swedvdr announce url have I forgot to change something?

http://i47.tinypic.com/engg9.png

Bump: anyone???

Then you havent change all in bittorrent

Bump:
Quote:

Originally Posted by phazer (Post 37364)
My problem is not that.. This is my problem.. even tho that I have changed everything from swedvdr its still announces as swedvdr.org

as you can see on the image.. still its swedvdr announce url have I forgot to change something?

http://i47.tinypic.com/engg9.png

Bump: anyone???


Sorry my bad,, to change the announce URL you go into download.php

dk 25th November 2012 04:30

can someone upload a working version of the swedvdr source? or send me a link which would work on local host.
I get more errors on local host then on a web hosting plan, i don't know what to edit as there is to much and it doesn't make sence the lines it gives errors on.

I would really appreciate this, as i'm sure quiet a few have it.

Roddan 28th November 2012 22:01

I managed to get a user but when I login and so on I cant access any page in there I get this.

Code:

Fel 310 (net::ERR_TOO_MANY_REDIRECTS): Det fanns för många omdirigeringar.
Code:

Error 310 (net::ERR_TOO_MANY_REDIRECTS): There is to many redirects.
Anyone know why?

I have Debian 64 bit, Linux.

Regards,

Roddan.


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

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