Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

I dont think this is necessary to be here, correct me if im wrong. In backend/functions.php, find
function stdfoot() {
   global $site_config, $CURUSER, $THEME, $LANGUAGE;
   require_once("themes/" . $THEME . "/footer.php");
   mysqli_close($GLOBALS["DBconnector"]);
}

remove
mysqli_close($GLOBALS["DBconnector"]);
not sure if you saw this, but I figured I would post this anyways since I got a like notification on this post.
This is NOT correct (I screen capped this from spiritblue post above)
[ATTACH alt="Capture.PNG"]5591[/ATTACH]
use
$des = mysqli_real_escape_string($GLOBALS["DBconnector"], format_comment($descr['descr']));


You have to remember when using V3, some functions require a database connection and thats why I added that stupid global variable. Escape string is a function that requires this. This function is defined in /backend/functions.php
$GLOBALS["DBconnector"]
You should maybe have your own section on the forum if you want. Just for code you are working on. Up to you, create it and post stuff. Sharing is caring :)
Look really cool, but $freeleech is not in the MYSQLI 3.0 version at all. I can only find that in snatched.php, so maybe you are getting versions mixed up or are doing custom code that will not immediately be identifiable by people using the 3.0 as I posted it on github. Just something to be aware of, but thanks for all the help. I just think things are getting crossed over between projects. I have my own custom project that I dont share because I cant just help people "plug and play" using what I have altered, so I always have to refer and test against the code that is downloadable for all to use. If I share something, I test it against the code that I posted on git. I tried sharing custom code once, it was too difficult to help with since I was always fiddling with it lol. But as I said, very nice stuff you have and thank you very much for sharing :) If people know what they are looking at they can pick it apart and code it themselves, but I try to make it as easy as I can for the folks who may be just starting to have some fun with this
Announce - BIGINT Errors — 2020-06-10 11:07:39 in v3 Support
a quick look at my db and I dont have any BIGINT in my announce table, only INT
Seed Bonus [TTv3] — 2020-05-24 13:54:46 in v3 Mods Completed
Damn, I never noticed that. Will give it a go. Thanks
Enchanced Requests — 2020-05-24 13:49:27 in v3 Mods Completed
"x7razor, post: 68650, member: 20348":

ah man i did not look in there again lack of knowledge ?  thanks guys

No worries :) We are always learning, and thats a good thing. Sharing is caring
Enchanced Requests — 2020-05-24 13:02:47 in v3 Mods Completed
line 721 and 722 are commented out in reqall.php. uncomment to use them. Remove <!-- from the start of the line and remove --> from the end
[ATTACH type="full" alt="Capture.PNG"]5555[/ATTACH]
Enchanced Requests — 2020-05-20 21:04:36 in v3 Mods Completed
just remove the index.php edits and it will not show on your page, you would have to go visit the actual requests part of your site to see requests :)
As for the ?> and <? issues you may be having, just make sure you have "short open tags" turned ON in your php.ini, but the easiest thing to do is just use regular full php tags, instead of <? use <?php, its pretty simple. The closing tag will always be ?>
If you find something like this
<?=$site_config['SITENAME']?>

Dont just edit that type of <? willy-nilly, its shorthand for ECHO, so it would be like
<?php echo $site_config['SITENAME']?>

So look for that EQUAL sign before you just edit it, if you plan to close all short open tags in your code
slot peer class — 2020-05-18 18:02:44 in v3 Mods in Progress
$query = @mysqli_fetch_row(@SQL_Query_exec("SELECT COUNT(DISTINCT torrent) FROM peers WHERE userid = $CURUSER[id] AND seeder='no'"));
   $slots = number_format($CURUSER["maxslots"]) . "/" . number_format($query[0]);
check to see if your mysql is running in strict mode
nice. Thanks for sharing
Yes. I must be doing something wrong.
I have a question. I fiddled about with this for a minute and got nowhere. Im a bit rusty lately and probably smoke too much weed, but im having fun ;) . I am using a php/html page for the account-signup just cuz it looked cool. Where would I place this code? If it dont work for me, thats fine. Im just having some fun and playing around
<?php
require_once("backend/functions.php");
dbconn();
session_start();
$site_config["LEFTNAV"] = $site_config["MIDDLENAV"] = $site_config["RIGHTNAV"] = false;
$username_length = 15; // Max username length. You shouldn't set this higher without editing the database first
$password_minlength = 6;
$password_maxlength = 40;

// Disable checks if we're signing up with an invite
if (!is_valid_id($_REQUEST["invite"]) || strlen($_REQUEST["secret"]) != 32) {
   //invite only check
   if ($site_config["INVITEONLY"]) {
       echo '<script>alert("This site is invite only")</script>';
       stdfoot();
       die();
//        show_error_msg(T_("INVITE_ONLY"), "<br /><br /><center>".T_("INVITE_ONLY_MSG")."<br /><br /></center>",1);
   }

   //get max members, and check how many users there is
   $numsitemembers = get_row_count("users");
   if ($numsitemembers >= $site_config["maxusers"])
       show_error_msg(T_("SORRY")."...", T_("SITE_FULL_LIMIT_MSG") . number_format($site_config["maxusers"])." ".T_("SITE_FULL_LIMIT_REACHED_MSG")." ".number_format($numsitemembers)." members",1);
} else {
   $res = SQL_Query_exec("SELECT id FROM users WHERE id = $_REQUEST[invite] AND MD5(secret) = ".sqlesc($_REQUEST["secret"]));
   $invite_row = mysqli_fetch_assoc($res);
   if (!$invite_row) {
       show_error_msg(T_("ERROR"), T_("INVITE_ONLY_NOT_FOUND")." ".($site_config['signup_timeout']/86400)." days.", 1);
   }
}

if ($_GET["takesignup"] == "1") {

$message == "";

function validusername($username) {
       $allowedchars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
       for ($i = 0; $i < strlen($username); ++$i)
           if (strpos($allowedchars, $username[$i]) === false)
           return false;
       return true;
}

   $wantusername = $_POST["wantusername"];
   $email = $_POST["email"];
   $wantpassword = $_POST["wantpassword"];
   $passagain = $_POST["passagain"];
   $country = $_POST["country"];
   $gender = $_POST["gender"];
   $client = $_POST["client"];
   $age = (int) $_POST["age"];

 if (empty($wantpassword) || (empty($email) && !$invite_row) || empty($wantusername))
   $message = T_("DONT_LEAVE_ANY_FIELD_BLANK");
 elseif (strlen($wantusername) > $username_length)
   $message = sprintf(T_("USERNAME_TOO_LONG"), $username_length);
 elseif ($wantpassword != $passagain)
   $message = T_("PASSWORDS_NOT_MATCH");
 elseif (strlen($wantpassword) < $password_minlength)
   $message = sprintf(T_("PASS_TOO_SHORT"), $password_minlength);
 elseif (strlen($wantpassword) > $password_maxlength)
   $message = sprintf(T_("PASS_TOO_LONG"), $password_maxlength);
 elseif ($wantpassword == $wantusername)
    $message = T_("PASS_CANT_MATCH_USERNAME");
 elseif (!validusername($wantusername))
   $message = "Invalid username.";
 elseif (!$invite_row && !validemail($email))
       $message = "That doesn't look like a valid email address.";

///captcha shit. Delete if not working////////
$QaptChaInput = $_SESSION['qaptcha_key'];
   if (!isset($_POST[$QaptChaInput]))
       $message = 'Captcha failure.';
       unset($_SESSION['qaptcha_key']);
///end captcha shit//////

   if ($message == "") {
       // Certain checks must be skipped for invites
       if (!$invite_row) {
           //check email isnt banned
           $maildomain = (substr($email, strpos($email, "@") + 1));
           $a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain='$email'")));
           if ($a[0] != 0)
               $message = sprintf(T_("EMAIL_ADDRESS_BANNED_S"), $email);

           $a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain LIKE '%$maildomain%'")));
           if ($a[0] != 0)
               $message = sprintf(T_("EMAIL_ADDRESS_BANNED_S"), $email);

         // check if email addy is already in use
         $a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from users where email='$email'")));
         if ($a[0] != 0)
           $message = sprintf(T_("EMAIL_ADDRESS_INUSE_S"), $email);
       }

      //check username isnt in use
     $a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from users where username='$wantusername'")));
     if ($a[0] != 0)
       $message = sprintf(T_("USERNAME_INUSE_S"), $wantusername);

//      $secret = mksecret(); //generate secret field //commented due to IP check also using same vars below
//
//      $wantpassword = passhash($wantpassword);// hash the password //commented due to IP check also using same vars below
   }

   if ($message != "")
       show_error_msg(T_("SIGNUP_FAILED"), $message, 1);

           //check if IP is already a peer
           if ($site_config["ipcheck"] && $site_config["accountmax"] >= "1") {
           $ip = $_SERVER['REMOTE_ADDR'];
           $ipq = get_row_count("users", "WHERE ip = '$ip'");
           if ($ipq >= $site_config["accountmax"])
           $message = $site_config["SITENAME"]." only allows " . $site_config["accountmax"] . " user account per IP address. <br> If you want to create a new account, please contact an administrator.<br /><br /><font color=red> The limit for ip : $ip has been reached.</font><br /><br />Registration failed. <br /><a style='cursor: pointer;cursor:hand;' href='account-login.php'><font color=red>Click here to return to the login page.</font></a>";
   }
           $secret = mksecret(); //generate secret field

           $wantpassword = passhash($wantpassword);// hash the password


   if ($message != "")
       show_error_msg(T_("SIGNUP_FAILED"), $message, 1);

 if ($message == "") {
       if ($invite_row) {
           SQL_Query_exec("UPDATE users SET username=".sqlesc($wantusername).", password=".sqlesc($wantpassword).", secret=".sqlesc($secret).", status='confirmed', added='".get_date_time()."' WHERE id=$invite_row[id]");
           //send pm to new user
           if ($site_config["WELCOMEPMON"]){
               $dt = sqlesc(get_date_time());
               $msg = sqlesc($site_config["WELCOMEPMMSG"]);
               SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $invite_row[id], $dt, $msg, 0)");
           }
           header("Refresh: 0; url=account-confirm-ok.php?type=confirm");
           die;
       }

   if ($site_config["CONFIRMEMAIL"]) { //req confirm email true/false
       $status = "pending";
   }else{
       $status = "confirmed";
   }

   //make first member admin
   if ($numsitemembers == '0')
       $signupclass = '8';
   else
       $signupclass = '1';

    SQL_Query_exec("INSERT INTO users (username, password, secret, email, status, added, last_access, age, country, gender, client, stylesheet, uploaded, downloaded, language, invites, class, ip) VALUES (" .
    implode(",", array_map("sqlesc", array($wantusername, $wantpassword, $secret, $email, $status, get_date_time(), get_date_time(), $age, $country, $gender, $client, $site_config["default_theme"], $site_config["new_member_upload_ratio"], 0, $site_config["default_language"], $site_config["new_member_invites"], $signupclass, getip()))).")");

   $id = mysqli_insert_id($GLOBALS["DBconnector"]);

   $psecret = md5($secret);
   $thishost = $_SERVER["HTTP_HOST"];
   $thisdomain = preg_replace('/^www\./is', "", $thishost);

   //ADMIN CONFIRM
   if ($site_config["ACONFIRM"]) {
       $body = T_("YOUR_ACCOUNT_AT")." ".$site_config['SITENAME']." ".T_("HAS_BEEN_CREATED_YOU_WILL_HAVE_TO_WAIT")."\n\n".$site_config['SITENAME']." ".T_("ADMIN");
   }else{//NO ADMIN CONFIRM, BUT EMAIL CONFIRM
       $body = T_("YOUR_ACCOUNT_AT")." ".$site_config['SITENAME']." ".T_("HAS_BEEN_APPROVED_EMAIL")."\n\n    ".$site_config['SITEURL']."/account-confirm.php?id=$id&secret=$psecret\n\n".T_("HAS_BEEN_APPROVED_EMAIL_AFTER")."\n\n    ".T_("HAS_BEEN_APPROVED_EMAIL_DELETED")."\n\n".$site_config['SITENAME']." ".T_("ADMIN");
   }

   if ($site_config["CONFIRMEMAIL"]){ //email confirmation is on
       sendmail($email, "Your $site_config[SITENAME] User Account", $body, "", "-f$site_config[SITEEMAIL]");
       header("Refresh: 0; url=account-confirm-ok.php?type=signup&email=" . urlencode($email));
   }else{ //email confirmation is off
       header("Refresh: 0; url=account-confirm-ok.php?type=noconf");
   }
   //send pm to new user
   if ($site_config["WELCOMEPMON"]){
       $dt = sqlesc(get_date_time());
       $msg = sqlesc($site_config["WELCOMEPMMSG"]);
       SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $id, $dt, $msg, 0)");
   }

   die;
 }

}//end takesignup



//stdhead(T_("SIGNUP"));
//begin_frame(T_("SIGNUP"));
?>
<form method="post" action="account-signup.php?takesignup=1">
   <?php if ($invite_row) { ?>
   <input type="hidden" name="invite" value="<?php echo $_GET["invite"]; ?>" />
   <input type="hidden" name="secret" value="<?php echo htmlspecialchars($_GET["secret"]); ?>" />
   <?php } ?>
   <table cellspacing="0" cellpadding="2" border="0">
<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title><?php $site_config["SITENAME"] ?></title>
   <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
   <link rel="stylesheet" type="text/css" href="css/fontawesome-all.min.css">
   <link rel="stylesheet" type="text/css" href="css/iofrm-style.css">
   <link rel="stylesheet" type="text/css" href="css/iofrm-theme14.css">
</head>
<body>
   <div class="form-body" class="container-fluid">
       <div class="row">
           <div class="form-holder">
               <div class="form-content">
                   <div class="form-items">
                       <div class="website-logo-inside">
                           <a href="index.html">
                           </a>
                       </div>
                       <h3>Use the form below to sign up.</h3>
                       <p>Name, Password and E-mail are required.</p>
                       <div class="page-links">
                           <a href="account-login.php">Login</a><a href="account-signup.php" class="active">Register</a><a href="account-recover.php">Recover Account</a>
                       </div>
                       <form>
                           <input class="form-control" autocomplete="off" type="text" name="wantusername" placeholder="Username" required>                          
                           <input class="form-control" autocomplete="off" type="password" name="wantpassword" placeholder="Password" required>        
                           <input class="form-control" autocomplete="off" type="password" name="passagain" placeholder="Confim Password" required>
                           <input class="form-control" autocomplete="off" type="text" name="email" placeholder="E-mail Address" required>
                           <input class="form-control" autocomplete="off" type="text" name="age" placeholder="Age" maxlength="3">
                           <input class="form-control" autocomplete="off" list="country" name="country" placeholder="Country. Click for options">
                           <datalist id="country">
                           <?php
                           $countries = "<option value=\"0\">---- ".T_("NONE_SELECTED")." ----</option>\n";
                           $ct_r = SQL_Query_exec("SELECT id,name,domain from countries ORDER BY name");
                           while ($ct_a = mysqli_fetch_assoc($ct_r)) {
                           $countries .= "<option value=\"$ct_a[id]\">$ct_a[name]</option>\n";
                           }
                           ?>
                           <?php echo $countries; ?>
                           </datalist>
                           <input class="form-control" list="client" type="text" name="client" placeholder="Torrent Client Used. Click for options" autocomplete="off">
                       
<datalist id="client">
<option value= "ABC">
<option value= "Acquisition">
<option value= "Anatomic P2P">
<option value= "Arctic Torrent">
<option value= "aria2">
<option value= "Azureus">
<option value= "BiglyBT">
<option value= "BitComet">
<option value= "BitFlu">
<option value= "BitLet">
<option value= "BitPump">
<option value= "BitTorrent 5 / Mainline">
<option value= "BitSpirit">
<option value= "BitTyrant">
<option value= "Blizzard Downloader">
<option value= "Blog Torrent">
<option value= "BTPD">
<option value= "BTSharp (library)">
<option value= "burst!">
<option value= "CTorrent">
<option value= "Deluge">
<option value= "FlashGet">
<option value= "Folx">
<option value= "freeloader">
<option value= "G3 Torrent">
<option value= "Gnome BitTorrent">
<option value= "Halite">
<option value= "KTorrent">
<option value= "MLDonkey">
<option value= "MonoTorrent (client library)">
<option value= "MooPolice">
<option value= "Opera">
<option value= "QTorrent">
<option value= "Qbittorrent">
<option value= "rTorrent">
<option value= "Rufus">
<option value= "Shareaza">
<option value= "sharktorrent">
<option value= "SymTorrent">
<option value= "Torrent Swapper">
<option value= "TorrentVolve">
<option value= "Transmission">
<option value= "Turbo Torrent">
<option value= "TorrentSpy Rufus">
<option value= "µTorrent">
<option value= "XTorrent">
<option value= "ZipTorrent">
 </datalist>
                           <div class="form-button">
                               <div class="QapTcha"></div>
                               <button id="submit" type="submit" class="ibtn">Register</button>
                           </div>
                       </form>
                   </div>
               </div>
           </div>
       </div>
   </div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/popper.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>
   </table>
</form>

<!--captcha shit. Delete if not working-->
<link rel="stylesheet" href="jquery/QapTcha.jquery.css" type="text/css" />
<script type="text/javascript" src="jquery/jquery.js"></script>
<script type="text/javascript" src="jquery/jquery-ui.js"></script>
<script type="text/javascript" src="jquery/jquery.ui.touch.js"></script>
<script type="text/javascript" src="jquery/QapTcha.jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
   $('.QapTcha').QapTcha({disabledSubmit:true,autoRevert:true});
   });
</script>
<!--end captcha shit -->

<?php
//end_frame();
?>
hello belgium ? Hopefully you get it worked out. I dont know where belgium is because im american and dont know shit about geography lol. Stay safe and post if you need more help :)
is it your location? Are you not allowed to see that domain? I live in the USA, so I dont know if where you live has stupid restrictions, its just a thought, im prolly wrong, but a thought. You should pull the site down in the mean time. The first registered user becomes admin, so pull it down until you figure it out. Or let there but once you get it working, reload the whole database from scratch
just for the fun of it, try another browser
I can see it just fine. Heres a screenie. What are you seeing?
[ATTACH alt="Capture.PNG"]5488[/ATTACH]
index is assumed, no need to type that, see http://velvetunderground.be
you can even type it this way http://velvetunderground.be/index.php but its not needed at all. Just go to your domain, and all is well
you are fine. You may be overthinking this whole thing lol. You are the user of the database. The only real reason to create a new user for database access is so that you are not using ROOT to access it, thats all, and it appears that you are not ROOT, so all is well ;)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728