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

thanks man
thanks M-jay

work now
i have this error  i try use tmdb  and remove it

after remove all code  torrents-upload.php not work

Database Error in torrents-upload.php on line 200: Field 'tmdb' doesn't have a default value. Query was: INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action) VALUES ('Athena.2022.1080p.WEB.h264-KOGi.torrent', '1', 'Athena.2022.1080p.WEB.h264-KOGi', 'No description given.', '', '', '42', '2023-04-04 02:02:09', '1b1f855ef3c6ab84e0e93ca92a8912e97109dcca', '2556468622', '', 'Athena.2022.1080p.WEB.h264-KOGi.torrent', 'https://leech24.net/announce.php', 'no', 'yes', '1','no', '2023-04-04 02:02:09').


<?php
require_once("backend/functions.php");
dbconn();

// check access and rights
if ($site_config["MEMBERSONLY"]){
loggedinonly();

if($CURUSER["can_upload"]=="no")
show_error_msg(T_("ERROR"), T_("UPLOAD_NO_PERMISSION"), 1);
if ($site_config["UPLOADERSONLY"] && $CURUSER["class"] < 4)
show_error_msg(T_("ERROR"), T_("UPLOAD_ONLY_FOR_UPLOADERS"), 1);
}

$announce_urls = explode(",", strtolower($site_config["announce_list"]));  //generate announce_urls[] from config.php

if ($_POST["takeupload"] == "yes") {
require_once("backend/parse.php");

   // Check form data.
   if ( ! isset($_POST['type'], $_POST['name'], $_FILES['torrent']) )
         $message = T_('MISSING_FORM_DATA');
   
   if (($num = $_FILES['torrent']['error']))
        show_error_msg(T_('ERROR'), T_("UPLOAD_ERR[$num]"), 1);

$f = $_FILES["torrent"];
$fname = $f["name"];

if (empty($fname))
$message = T_("EMPTY_FILENAME");

   $nfo = 'no';
       
if ($_FILES['nfo']['size'] != 0) {
$nfofile = $_FILES['nfo'];

if ($nfofile['name'] == '')
$message = T_("NO_NFO_UPLOADED");

if (!preg_match('/^(.+)\.nfo$/si', $nfofile['name'], $fmatches))
$message = T_("UPLOAD_NOT_NFO");

if ($nfofile['size'] == 0)
$message = T_("NO_NFO_SIZE");

if ($nfofile['size'] > 65535)
$message = T_("NFO_UPLOAD_SIZE");

$nfofilename = $nfofile['tmp_name'];

       if (($num = $_FILES['nfo']['error']))
            $message = T_("UPLOAD_ERR[$num]");
       
$nfo = 'yes';
}

$descr = $_POST["descr"];

if (!$descr)
$descr = T_("UPLOAD_NO_DESC");

$langid = (int) $_POST["lang"];

/*if (!is_valid_id($langid))
$message = "Please be sure to select a torrent language";*/

$catid = (int) $_POST["type"];

if (!is_valid_id($catid))
$message = T_("UPLOAD_NO_CAT");

if (!validfilename($fname))
$message = T_("UPLOAD_INVALID_FILENAME");

if (!preg_match('/^(.+)\.torrent$/si', $fname, $matches))
$message = T_("UPLOAD_INVALID_FILENAME_NOT_TORRENT");

$shortfname = $torrent = $matches[1];

if (!empty($_POST["name"]))
$name = $_POST["name"];
       
   $tmpname = $f['tmp_name'];

//end check form data

if (!$message) {
//parse torrent file
$torrent_dir = $site_config["torrent_dir"];
$nfo_dir = $site_config["nfo_dir"];

//if(!copy($f, "$torrent_dir/$fname"))
if(!move_uploaded_file($tmpname, "$torrent_dir/$fname"))
show_error_msg(T_("ERROR"), T_("ERROR"). ": " . T_("UPLOAD_COULD_NOT_BE_COPIED")." $tmpname - $torrent_dir - $fname",1);

   $TorrentInfo = array();
   $TorrentInfo = ParseTorrent("$torrent_dir/$fname");


$announce = $TorrentInfo[0];
$infohash = $TorrentInfo[1];
$creationdate = $TorrentInfo[2];
$internalname = $TorrentInfo[3];
$torrentsize = $TorrentInfo[4];
$filecount = $TorrentInfo[5];
$annlist = $TorrentInfo[6];
$comment = $TorrentInfo[7];
$filelist = $TorrentInfo[8];

/*
//for debug...
print ("<br /><br />announce: ".$announce."");
print ("<br /><br />infohash: ".$infohash."");
print ("<br /><br />creationdate: ".$creationdate."");
print ("<br /><br />internalname: ".$internalname."");
print ("<br /><br />torrentsize: ".$torrentsize."");
print ("<br /><br />filecount: ".$filecount."");
print ("<br /><br />annlist: ".$annlist."");
print ("<br /><br />comment: ".$comment."");
*/

//check announce url is local or external
if (!in_array($announce, $announce_urls, 1)){
$external='yes';
   }else{
$external='no';
}

//if externals is turned off
if (!$site_config["ALLOWEXTERNAL"] && $external == 'yes')
$message = T_("UPLOAD_NO_TRACKER_ANNOUNCE");
}
if ($message) {
@unlink("$torrent_dir/$fname");
@unlink($tmpname);
@unlink("$nfo_dir/$nfofilename");
show_error_msg(T_("UPLOAD_FAILED"), $message,1);
}

//release name check and adjust
if ($name ==""){
$name = $internalname;
}
$name = str_replace(".torrent","",$name);
$name = str_replace("_", " ", $name);

//upload images
$allowed_types = &$site_config["allowed_image_types"];

$inames = array();
for ($x=0; $x < 2; $x++) {
if (!($_FILES['image'.$x]['name'] == "")) {
$y = $x + 1;

//if (!preg_match('/^(.+)\.(jpg|gif|png)$/si', $_FILES[image.$x]['name']))
// show_error_msg(T_("INVAILD_IMAGE"), T_("THIS_FILETYPE_NOT_IMAGE"), 1);

if ($_FILES['image$x']['size'] > $site_config['image_max_filesize'])
show_error_msg(T_("ERROR"), T_("INVAILD_FILE_SIZE_IMAGE"), 1);

$uploaddir = $site_config["torrent_dir"]."/images/";

$ifile = $_FILES['image'.$x]['tmp_name'];

$im = getimagesize($ifile);

if (!$im[2])
show_error_msg(T_("ERROR"), sprintf(T_("INVALID_IMAGE"), $y), 1);

if (!array_key_exists($im['mime'], $allowed_types))
show_error_msg(T_("ERROR"), T_("INVALID_FILETYPE_IMAGE"), 1);

$ret = SQL_Query_exec("SHOW TABLE STATUS LIKE 'torrents'");
$row = mysqli_fetch_array($ret);
$next_id = $row['Auto_increment'];

$ifilename = $next_id . $x . $allowed_types[$im['mime']];

$copy = copy($ifile, $uploaddir.$ifilename);

if (!$copy)
show_error_msg(T_("ERROR"), sprintf(T_("IMAGE_UPLOAD_FAILED"), $y), 1);

$inames[] = $ifilename;

}

}
//end upload images

//anonymous upload
$anonyupload = $_POST["anonycheck"];
if ($anonyupload == "yes") {
$anon = "yes";
}else{
$anon = "no";
}


$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."')");



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

if (mysqli_errno($GLOBALS["DBconnector"]) == 1062)
show_error_msg(T_("UPLOAD_FAILED"), T_("UPLOAD_ALREADY_UPLOADED"), 1);

//Update the members uploaded torrent count
/*if ($ret){
SQL_Query_exec("UPDATE users SET torrents = torrents + 1 WHERE id = $userid");*/
       
if($id == 0){
unlink("$torrent_dir/$fname");
$message = T_("UPLOAD_NO_ID");
show_error_msg(T_("UPLOAD_FAILED"), $message, 1);
}
   
   rename("$torrent_dir/$fname", "$torrent_dir/$id.torrent");

if (is_countable($filelist) && count($filelist)) {
foreach ($filelist as $file) {
$dir = '';
$size = $file["length"];
$count = count($file["path"]);
for ($i=0; $i<$count;$i++) {
if (($i+1) == $count)
$fname = $dir.$file["path"][$i];
else
$dir .= $file["path"][$i]."/";
}
SQL_Query_exec("INSERT INTO `files` (`torrent`, `path`, `filesize`) VALUES($id, ".sqlesc($fname).", $size)");
}
} else {
SQL_Query_exec("INSERT INTO `files` (`torrent`, `path`, `filesize`) VALUES($id, ".sqlesc($TorrentInfo[3]).", $torrentsize)");
}

if (!is_array($annlist)) {
$annlist = array(array($announce));
}
foreach ($annlist as $ann) {
foreach ($ann as $val) {
if (strtolower(substr($val, 0, 4)) != "udp:") {
SQL_Query_exec("INSERT INTO `announce` (`torrent`, `url`) VALUES($id, ".sqlesc($val).")");
}
}
}

if ($nfo == 'yes') {
           move_uploaded_file($nfofilename, "$nfo_dir/$id.nfo");
   }

//EXTERNAL SCRAPE
if ($external=='yes' && $site_config['UPLOADSCRAPE']){
$tracker=str_replace("/announce","/scrape",$announce);
$stats = torrent_scrape_url($tracker, $infohash);
$seeders = (int) strip_tags($stats['seeds']);
$leechers = (int) strip_tags($stats['peers']);
$downloaded = (int) strip_tags($stats['downloaded']);

SQL_Query_exec("UPDATE torrents SET leechers='".$leechers."', seeders='".$seeders."',times_completed='".$downloaded."',last_action= '".get_date_time()."',visible='yes' WHERE id='".$id."'");
}
//END SCRAPE

   write_log( sprintf(T_("TORRENT_UPLOADED"), htmlspecialchars($name), $CURUSER["username"]) );

//Uploaded ok message (update later)
if ($external=='no')
$message = sprintf( T_("TORRENT_UPLOAD_LOCAL"), $name, $id, $id );
else
$message = sprintf( T_("TORRENT_UPLOAD_EXTERNAL"), $name, $id );
show_error_msg(T_("UPLOAD_COMPLETE"), $message, 1);

die();
}//takeupload


///////////////////// FORMAT PAGE ////////////////////////

stdhead(T_("UPLOAD"));

begin_frame(T_("UPLOAD_RULES"));
echo "<b>".stripslashes($site_config["UPLOADRULES"])."</b>";
echo "<br />";
end_frame();

begin_frame(T_("UPLOAD"));
?>
<form name="upload" enctype="multipart/form-data" action="torrents-upload.php" method="post">
<input type="hidden" name="takeupload" value="yes" />
<table border="0" cellspacing="0" cellpadding="6" align="center">
<?php
print ("<tr><td align='right' valign='top'>" . T_("ANNOUNCE_URL") . ": </td><td align='left'>");

//while (list($key,$value) = thisEach($announce_urls)) {
foreach($announce_urls as $key => $value) {
echo "<b>$value</b><br />";
}

if ($site_config["ALLOWEXTERNAL"]){
echo "<br /><b>".T_("THIS_SITE_ACCEPTS_EXTERNAL")."</b>";
}
print ("</td></tr>");
print ("<tr><td align='right'>" . T_("TORRENT_FILE") . ": </td><td align='left'> <input type='file' name='torrent' size='50' value='" . $_FILES['torrent']['name'] . "' />\n</td></tr>");
print ("<tr><td align='right'>" .T_("NFO"). ": </td><td align='left'> <input type='file' name='nfo' size='50' value='" . $_FILES['nfo']['name'] . "' /><br />\n</td></tr>");
print ("<tr><td align='right'>" . T_("TORRENT_NAME") . ": </td><td align='left'><input type='text' name='name' size='60' value='" . $_POST['name'] . "' /><br />".T_("THIS_WILL_BE_TAKEN_TORRENT")." \n</td></tr>");
print ("<tr><td colspan='2' align='center'>".T_("MAX_FILE_SIZE").": ".mksize($site_config['image_max_filesize'])."<br />".T_("ACCEPTED_FORMATS").": ".implode(", ", array_unique($site_config["allowed_image_types"]))."<br /></td></tr><tr><td align='right'>".T_("IMAGE")." 1:&nbsp;&nbsp;</td><td><input type='file' name='image0' size='50' /></td></tr><tr><td align='right'>".T_("IMAGE")." 2:&nbsp;&nbsp;</td><td><input type='file' name='image1' size='50' /></td></tr>");

$category = "<select name=\"type\">\n<option value=\"0\">" . T_("CHOOSE_ONE") . "</option>\n";

$cats = genrelist();
foreach ($cats as $row)
$category .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["parent_cat"]) . ": " . htmlspecialchars($row["name"]) . "</option>\n";

$category .= "</select>\n";
print ("<tr><td align='right'>" . T_("CATEGORY") . ": </td><td align='left'>".$category."</td></tr>");


$language = "<select name=\"lang\">\n<option value=\"0\">".T_("UNKNOWN_NA")."</option>\n";

$langs = langlist();
foreach ($langs as $row)
$language .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["name"]) . "</option>\n";

$language .= "</select>\n";
print ("<tr><td align='right'>".T_("LANGUAGE").": </td><td align='left'>".$language."</td></tr>");

if ($site_config['ANONYMOUSUPLOAD'] && $site_config["MEMBERSONLY"] ){ ?>
   <tr><td align="right"><?php echo T_("UPLOAD_ANONY");?>: </td><td><?php printf("<input name='anonycheck' value='yes' type='radio' " . ($anonycheck ? " checked='checked'" : "") . " />".T_("YES")." <input name='anonycheck' value='no' type='radio' " . (!$anonycheck ? " checked='checked'" : "") . " />".T_("NO").""); ?> &nbsp;<i><?php echo T_("UPLOAD_ANONY_MSG");?></i>
   </td></tr>
<?php
}

print ("<tr><td align='center' colspan='2'>" . T_("DESCRIPTION") . "</td></tr></table>");

require_once("backend/bbcode.php");
print textbbcode("upload","descr","$descr");
?>

<br /><br /><center><input type="submit" value="<?php echo T_("UPLOAD_TORRENT"); ?>" /><br />
<i><?php echo T_("CLICK_ONCE_IMAGE");?></i>
</center>
</form>

<?php
end_frame();
stdfoot();
?>
donate_block.php — 2023-03-21 02:03:08 in v3 Support
Please rearrange and formulate the topic in a separate topic
If it works fine
I really need this topic
spirtblue & m-jay
thanks
spirtblue & m-jay
thanks
CoinRemitter Crypto Payment Gateway
https://wordpress.org/plugins/coinremitter-crypto-payment-gateway/

i found this plugins ,,can you edit for tt php7.4
this error

Database Error in torrents-upload.php on line 201: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '''')' at line 1. Query was: INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action) VALUES ('MP3 0Day 2022-07-30.torrent', '1', 'MP3 0Day 2022-07-30', 'MP3 0Day PACK', '', '', '22', '2022-08-02 13:40:41', '76eb53ae475fdabfc57d8be81fccf2db72120a2d', '33142232178', '0', 'MP3 0Day 2022-07-30.torrent', 'https://*******/announce.php', 'no', 'no', '0','no', '2022-08-02 13:40:41', ''').
local tracker — 2022-03-19 07:43:54 in Tutorials
i mean just this file in qnap
Announce URL: https://*****.com/announce.php
Server load — 2022-03-13 03:46:08 in v3 Support
great ,, thanks
local tracker — 2022-03-12 23:27:43 in Tutorials
Thank you for your efforts

i want use tracker in local host
because my web high load
I do not want to raise the host plan

I have an idea to make the tracker at a local address

I have a qnap
Is this a good idea and may save a lot of expenses?

which file  should put in local  also tell if have some edit code
10.4.22-MariaDB — 2022-02-01 21:10:05 in v3 Support
ronan i try your file
sql error

Database Error in account-signup.php on line 187: Incorrect integer value: '' for column `admin_l24`.`users`.`uploaded` at row 1. Query was: INSERT INTO users (username, password, secret, email, uploaded, downloaded, modcomment, seedbonus, status, added, age, country, gender, client, stylesheet, language, class, ip) VALUES ('crowle','3ce477b75bbe**a065af5122fbb199d9cd661f88','a2ofYe40wUBJhDuNNLnk','darkklor**auron@gmail.com','','','','','pending','2022-02-01 20:48:20',26,86,'Male','*bittorrent',1,1,1,'27.147.226.219').
10.4.22-MariaDB — 2022-01-29 22:12:21 in v3 Support
this account-signup.php
i did not found  $msg_shout =
===================================

<?php
require_once("backend/functions.php");
dbconn();
$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"]) {
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 = "abcyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
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_2"), $password_minlength);
 elseif (strlen($wantpassword) > $password_maxlength)
$message = sprintf(T_("PASS_TOO_LONG_2"), $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.";

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

 $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)");
}
if ($site_config["WELCOMEEMAIL"]) {
  require_once "Mail.php";
  $from    = $site_config['SITENAME'] . " <" . $site_config['SITEEMAIL'] . ">";
  $subject = "Welcome to " . $site_config['SITENAME'];
  $headers = array(
      'To' => $email,
      'From' => $from,
      'Subject' => $subject,
      'MIME-Version' => 1,
      'Content-type' => 'text/html;charset=iso-8859-1'
  );
  $smtp    = Mail::factory('smtp', array(
      'host' => $site_config["mail_smtp_host"],
      'auth' => $site_config["mail_smtp_auth"],
      'username' => $site_config["mail_smtp_user"],
      'password' => $site_config["mail_smtp_pass"]
  ));
  $mail    = $smtp->send($email, $headers, $site_config["WELCOMEEMAILBODY"]);
  // Log send error
  if (PEAR::isError($mail)) {
      write_log($mail->getMessage());
      return false;
  } else {
      write_log("Welcome Email successfully sent to " . $email);
  }
}

 

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 = '7';
else
$signupclass = '1';

    SQL_Query_exec("INSERT INTO users (username, password, secret, email, status, added, last_access, age, country, gender, client, stylesheet, language, class, ip, seedbonus) 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["default_language"], $signupclass, getip(), 0.0))).")");

   $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)");
}
if ($site_config["WELCOMEEMAIL"]) {
  require_once "Mail.php";
  $from    = $site_config['SITENAME'] . " <" . $site_config['SITEEMAIL'] . ">";
  $subject = "Welcome to " . $site_config['SITENAME'];
  $headers = array(
      'To' => $email,
      'From' => $from,
      'Subject' => $subject,
      'MIME-Version' => 1,
      'Content-type' => 'text/html;charset=iso-8859-1'
  );
  $smtp    = Mail::factory('smtp', array(
      'host' => $site_config["mail_smtp_host"],
      'auth' => $site_config["mail_smtp_auth"],
      'username' => $site_config["mail_smtp_user"],
      'password' => $site_config["mail_smtp_pass"]
  ));
  $mail    = $smtp->send($email, $headers, $site_config["WELCOMEEMAILBODY"]);
  // Log send error
  if (PEAR::isError($mail)) {
      write_log($mail->getMessage());
      return false;
  } else {
      write_log("Welcome Email successfully sent to " . $email);
  }
}
   die;
 }

}//end takesignup



stdhead(T_("SIGNUP"));
begin_frame(T_("SIGNUP"));
?>
<iframe width="560" height="315" src="https://www.youtube.com/embed/Dmq_raUlnqg?autoplay=1" frameborder="0">
</iframe>
<br /><br />  
<?php echo T_("COOKIES"); ?>
<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">
<tr>
<td><?php echo T_("USERNAME"); ?>: <font class="required">*</font></td>
<td><input type="text" size="40" name="wantusername" /></td>
</tr>
<tr>
<td><?php echo T_("PASSWORD"); ?>: <font class="required">*</font></td>
<td><input type="password" size="40" name="wantpassword" /></td>
</tr>
<tr>
<td><?php echo T_("CONFIRM"); ?>: <font class="required">*</font></td>
<td><input type="password" size="40" name="passagain" /></td>
</tr>
<?php if (!$invite_row) {?>
<tr>
<td><?php echo T_("EMAIL"); ?>: <font class="required">*</font></td>
<td><input type="text" size="40" name="email" /></td>
</tr>
<?php } ?>
<tr>
<td><?php echo T_("AGE"); ?>:</td>
<td><input type="text" size="40" name="age" maxlength="3" /></td>
</tr>
<tr>
<td><?php echo T_("COUNTRY"); ?>:</td>
<td>
<select name="country" size="1">
<?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; ?>
</select>
</td>
</tr>
<tr>
<td><?php echo T_("GENDER"); ?>:</td>
<td>
<input type="radio" name="gender" value="Male" /><?php echo T_("MALE"); ?>
  
<input type="radio" name="gender" value="Female" /><?php echo T_("FEMALE"); ?>
</td>
</tr>
<tr>
<td><?php echo T_("PREF_BITTORRENT_CLIENT"); ?>:</td>
<td><input type="text" size="40" name="client"  maxlength="20" /></td>
</tr>
<tr>
<td align="center" colspan="2">
               <input type="submit" value="<?php echo T_("SIGNUP"); ?>" />
             </td>
</tr>
</table>
</form>
<?php
end_frame();
stdfoot();
?>


======================================
10.4.22-MariaDB — 2022-01-22 13:08:58 in v3 Support
Mysql Version: 10.4.22-MariaDB
PHP Version: 7.4.27
Apache Version: Apache/2

------------------------error--------------------------------------
Database Error in account-signup.php on line 180: Field 'subject' doesn't have a default value. Query was: INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, 453, '2022-01-21 20:47:15', 'Thank you for registering at our tracker! Please remember to keep your ratio at 1.00 or greater :)', 0).
--------------------------------------------------------------
CloudFlare — 2021-10-19 11:32:15 in M-BiTsy Support

What do you think of using the free cloudflare service?

And put the tracker address because of the domain

I've seen some sites do this

Is it a good idea??
How do we do it
IMDb Mod [TTv3] — 2021-10-19 11:25:46 in v3 Mods Completed
The original thread didn't work for me
There are a number of models that I did not understand because of the language ((there are in the responses))

Can you bring the topic back in order so that I can edit?

What do you think of the service provided by this website https://www.themoviedb.org/?language=ar
Blackjack [TTv3] — 2021-10-06 16:24:46 in v3 Mods Completed
this correct working

thanks for help

signup error — 2021-10-06 15:38:06 in v3 Support
solved,,, thanks bro

can help me in blackjack
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728