Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Do not ask for uploading files (http://www.bvlist.com/showthread.php?t=10957)

fodor12 5th September 2016 11:06

Do not ask for uploading files
 
Hi there. A torrent tracker formed through electronic cigarette hand side of the area it can not upload it. That would be my question is how do I know that you do not ask the torrent file frown emoticon If someone possibly help me, please write to you because it depends on this page is opened or not.

PHP Code:

<?php

    
require("motor/motor.php");
    require(
"motor/konyvtar.php");
    
belepes_szukseges();
    

    
$Cache = new fileCache;
    
    
    
    if (
$_SERVER["REQUEST_METHOD"] == "POST") {    
    
        function 
dict_check($d$s) {
        if (
$d["type"] != "dictionary")
            
errno("Ez nem fájl!");
        
$a explode(":"$s);
        
$dd $d["value"];
        
$ret = array();
        foreach (
$a as $k) {
            unset(
$t);
            if (
preg_match('/^(.*)\((.*)\)$/'$k$m)) {
                
$k $m[1];
                
$t $m[2];
            }
            if (!isset(
$dd[$k]))
                
errno("A fájl tartalma elveszett!");
            if (isset(
$t)) {
                if (
$dd[$k]["type"] != $t)
                    
errno("Hibás kérés!");
                
$ret[] = $dd[$k]["value"];
            }
            else
                
$ret[] = $dd[$k];
        }
        return 
$ret;
        }

        function 
dict_get($d$k$t) {
            if (
$d["type"] != "dictionary")
                
errno("Hibás fájl!");
            
$dd $d["value"];
            if (!isset(
$dd[$k]))
                return;
            
$v $dd[$k];
            if (
$v["type"] != $t)
                
errno("Hibás fájltípus!");
            return 
$v["value"];
        }
        
        
        
$file_nev $_FILES["torrentfajl"]["name"];
        
$elemek explode("."$file_nev);
        
$kiterjesztes $elemek[count($elemek)-1];
        
        if (
$kiterjesztes !== "torrent")
            
errno("A megadott fájl nem .torrent kiterjesztésű!");
          
        
$t $_FILES["torrentfajl"];
        
$tnev $t["tmp_name"];
        
        
$maxnagysag 1000000;
        
        
$dict bdec_file($tnev$maxnagysag);
        if (!isset(
$dict))
          
errno("Ez nem torrent fájl!");
        list(
$ann$info) = dict_check($dict"announce(string):info");
        list(
$dname$plen$pieces) = dict_check($info"name(string):piece length(integer):pieces(string)");
        if (
strlen($pieces) % 20 != 0)
          
errno("Hibás darabok!");
        
$filelist = array();
        
$totallen dict_get($info"length""integer");
        if (isset(
$totallen)) {
            
$filelist[] = array($dname$totallen);
            
$type "single";
            
        } else {
            
$flist dict_get($info"files""list");
            if (!isset(
$flist))
                
errno("A torrent hibás!");
            if (!
count($flist))
                
errno("Nincs meg a fájl!");
            
$totallen 0;
            foreach (
$flist as $fn) {
                list(
$ll$ff) = dict_check($fn"length(integer):path(list)");
                
$totallen += $ll;
                
$ffa = array();
                foreach (
$ff as $ffe) {
                    if (
$ffe["type"] != "string")
                        
errno("Fájlnév hiba!");
                    
$ffa[] = $ffe["value"];
                }
                if (!
count($ffa))
                    
errno("Fájlnév hiba2!");
                
$ffe implode("/"$ffa);
                
$filelist[] = array($ffe$ll);
            }
            
$type "multi";
        }
        
        
$tmphex sha1($info["string"]);
        
$infohash strtolower($tmphex);
        
$hashell mysql_fetch_assoc(mysql_query("SELECT hash FROM torrentek ORDER BY id DESC")) or mysql_error();
        if (
$hashell["hash"] == $infohash)
          
errno("A torrent már feltöltötték az oldalra!");
          
        
        
$nfofile $_FILES["torrentnfo"];
        if (
$nfofile['name'] != '') {
          if (
$nfofile['size'] == 0)
            
bark("Az NFO üres!");

          if (
$nfofile['size'] > 65535)
            
errno("Az NFO túl nagy! Max 65,535 byte.");

          
$nfofilename $nfofile['tmp_name'];

          if (@!
is_uploaded_file($nfofilename))
            
errno("Az NFO feltöltése sikertelen, próbáld meg újra elküldeni a feltöltési űrlapot!");
        } 
        
$nfo str_replace("\x0d\x0d\x0a""\x0d\x0a"file_get_contents($nfofilename));
        
        
        if (
$_POST["torrentnev"] == "")
          
errno("Adj egy címet a torrentnek!");
        if (
$_POST["kategoria"] == "-")
          
errno("Válaszd ki a megfelelő kategóriát!");
        if (
$_POST["leiras"] == "")
          
errno("Add meg a torrent leírását!");
        if (
$_POST["seedido"] == "")
          
errno("Add meg a torrent leírását!");
        if (
$_POST["seedseb"] == "")
          
errno("Add meg a torrent leírását!");
          
        if (
$_POST["anonymus"] == true)
            
$anonymus "igen";
        else
            
$anonymus "nem";
            
        
$info $_POST["info"];
        
$borito $_POST["borito"];
        
$imdb $_POST["imdb"];
        
$tube $_POST["tube"];
        
$port $_POST["port"];
        
$oldal $_POST["oldal"];
        
$korhatar $_POST["korhatar"];
        
        
mysql_query("INSERT INTO torrentek(hash, nev, fajlnev, kategoria, meret, leiras, eredeti_leiras, feltoltve, feltolto, fajlok, anonymus, nfo, info, borito, imdb, tube, port, oldal, korhatar, seedido, seedseb) VALUES('".$infohash."', '".$_POST["torrentnev"]."', '".$file_nev."', '".$_POST["kategoria"]."', '".$totallen."', '".$_POST["leiras"]."', '".$_POST["leiras"]."', '".date("Y-m-d H:i:s")."', '".$fh["id"]."', '".count($filelist)."', '".$anonymus."', '".mysql_escape_string($nfo)."', '".$info."', '".$borito."', '".$imdb."', '".$tube."', '".$port."', '".$oldal."', '".$korhatar."', '".$_POST["seedido"]."', '".$_POST["seedseb"]."')") or mysql_error();
        
        
$torrent_id mysql_insert_id();
        
        
$Cache->CacheIras($_POST["leiras"], "torrentek/leirasok/".$torrent_id.".cache");
        
        if(!@
move_uploaded_file($tnev"torrentek/".$torrent_id.".torrent"))
            
errno("A fájlt nem sikerült feltölteni!");
            
        foreach (
$filelist as $file) {
            
mysql_query("INSERT INTO fajlok(torrent,fajlnev,meret) VALUES('".$torrent_id."','".$file[0]."','".$file[1]."')") or mysql_error();
        }
        
        
$dict['value']['announce']=bdec(benc_str($TRACKERURL."/announce.php"));  // change announce url to local
        //$dict['value']['info']['value']['private']=bdec('i1e');  // add private tracker flag
        //$dict['value']['info']['value']['source']=bdec(benc_str( "[$DEFAULTBASEURL] $SITENAME")); // add link for bitcomet users
        
unset($dict['value']['announce-list']); // remove multi-tracker capability
        
unset($dict['value']['nodes']); // remove cached peers (Bitcomet & Azareus)
        
$dict=bdec(benc($dict)); // double up on the becoding solves the occassional misgenerated infohash
        
list($ann$info) = dict_check($dict"announce(string):info");
        
        
$fp fopen("torrentek/$torrent_id.torrent""w");
        if (
$fp)
        {
                @
fwrite($fpbenc($dict), strlen(benc($dict)));
            
fclose($fp);
        }
        
header("Location: torrent.php?id=".$torrent_id);
        
    }
    
    
    
    
fejlec();
    if (
$fh["feltolthet"] == "igen"){
        
        
dobozfelso("Torrent feltöltése");
        print(
'<table cellpadding="5" cellspacing="0" width="100%"><tr><td valign="top">');
            print(
'<form enctype="multipart/form-data" method="post" action="feltoltes.php">');
            print(
'<input type="hidden" name="fajlmeret" value="30000">');
            
                print(
'<center><h3>Tracker URL:http://bitfucker.cz.cc/announce.php</h3></center><table class="vilagos" cellpadding="0" cellspacing="5" align="center">');
                
                    print(
'<tr><td>Torrent fájl:</td><td><input type="file" name="torrentfajl" size="80"></td></tr>');
                    print(
'<tr><td>Torrent neve:</td><td><input type="text" name="torrentnev" size="80"></td></tr>');
                    print(
'<tr><td>NFO fájl:</td><td><input type="file" name="torrentnfo" size="80"></td></tr>');
                    print(
'<tr><td valign="top">Leírás:</td><td><textarea name="leiras" cols="67" rows="15"></textarea></td></tr>');
                    
                    
$kategoriak $Cache->CacheOlvasas("torrentek/kategoriak.cache"0);
                    
                    
$kateg explode("@",trim($kategoriak));
                    
                    print(
'<tr><td>Kategória:</td><td><select name="kategoria"><option value="-">Válassz</option>');
                        foreach(
$kateg as  $katnev){
                            
$katnevvalue preg_replace("/ /""_"$katnev);
                            
$katnev preg_replace("/\|/""/"$katnev);
                            
                            print(
'<option value="'.$katnevvalue.'">'.$katnev."</option>");
                        }
                    print(
'<tr><td>Korhatár:</td><td><select name="korhatar"><option value="-">Válassz</option><option value="nincs">Nincs</option><option value="egy">12+</option><option value="ketto">16+</option><option value="harom">18+</option>');
                    print(
'</select>&nbsp;|&nbsp;Névtelen feltöltés: <input type="checkbox" name="anonymus"></td>');
                    print(
'<tr><td>Seed idő:</td><td><input type="text" name="seedido" size="80"></td></tr>');
                    print(
'<tr><td>Seed&nbsp;sebesség:</td><td><input type="text" name="seedseb" size="80"></td></tr>');
                    print(
'<tr><td valign="top">Rövid leírás:</td><td><input type="text" name="info" size="80"><br/>(Pl:. Jó film)</td></tr>');
                    print(
'<tr><td valign="top">Borító URL:</td><td><input type="text" name="borito" size="80"><br/>(Nem kötelező, csak ha a <a href="/szabalyzat.php">szabályzat</a> előírja azt!)</td></tr>');
                    print(
'<tr><td valign="top">IMDB URL:</td><td><input type="text" name="imdb" size="80"><br/>(Nem kötelező, csak ha a <a href="/szabalyzat.php">szabályzat</a> előírja azt!)</td></tr>');
                print(
'<tr><td valign="top">Youtube Link:</td><td><input type="text" name="tube" size="80"><br/>(Nem kötelező, csak ha a <a href="/szabalyzat.php">szabályzat</a> előírja azt!)</td></tr>');
                print(
'<tr><td valign="top">Port.hu Link:</td><td><input type="text" name="port" size="80"><br/>(Nem kötelező, csak ha a <a href="/szabalyzat.php">szabályzat</a> előírja azt!)</td></tr>');
                print(
'<tr><td valign="top">Hivatalos oldal:</td><td><input type="text" name="oldal" size="80"><br/><center><b><font color=red>(Kötelező!)</b></font></center></td></tr>');
                print(
'</table><br/>');
                print(
'<center><input type="submit" value=""></center>');
            print(
'</form>');
        print(
'</td><td>');
            print(
'<center><h2>Segítség</h2></center><div class="vilagos">1. lépés:<br/>Válaszd ki a torrent fájlt.</div><hr/>'.
            
'<div class="vilagos">2. lépés:<br/>Nevezd el a torrentet a tartalma szerint.</div><hr/>'.
            
'<div class="vilagos">3. lépés:<br/>Válaszd ki az NFO fájlt (csak akkor kötelező ha release-t töltesz fel).</div><hr/>'.
            
'<div class="vilagos">4. lépés:<br/>Készíts a szabályzatnak megfelelő leírást a torrenthez.</div><hr/>'.
            
'<div class="vilagos">5. lépés:<br/>Válaszd ki a torrentnek megfelelő kategóriát.</div><hr/>'.
            
'<div class="vilagos">6. lépés:<br/>Add meg, hogy mikor és milyen sebességgel tudod feltölteni a torrentet.</div><hr/>'.
            
'<div class="vilagos">7. lépés:<br/>Add meg a DVD/CD borítójának a közvetlen linkjét, jó ha van, de csak akkor kötelező a megadása ha a <a href="/szabalyzat.php">szabályzat</a> előírja azt!</div><hr/>'.
            
'<div class="vilagos">8. lépés:<br/>Ellenőrizd a megadott adatokat, majd kattints a mehet gombra.</div>');
        print(
'</td></tr></table>');
        
dobozalso();
    } else {
        
dobozfelso("Ejnye..");
         print(
"Nem tölthetsz fel, mert egy moderátor megvonta a feltöltési jogodat!");
        
dobozalso();
    }
    
lablec();
    
?>


fireknight 5th September 2016 11:08

You need a better translator.
That makes no sense at all. :wallbash:

DND 5th September 2016 13:03

takeupload translared into magyar:coffee:
tbdev most likely.. 06-08


All times are GMT +2. The time now is 12:15.

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