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

vip — 2022-06-10 16:34:53 in v3 Mods Requests
Hello M-jay and thank you for your help I will make the changes tonight and come back to tell you if it works for me   👍  😉
vip — 2022-06-09 16:53:06 in v3 Mods Requests
Hello can you tell me the code to add on mybonus.php or ? ? to have the function vip 3 day as on this site, thank you in advance 🙄

https://torrenttrader.uk/bonus  
carroussel — 2022-06-06 16:13:57 in v3 Support
thank you both and it works well with the code below  😀


index.php add

// scroller mod
begin_frame(T_("LATEST_TORRENTS_SCROLLER"));
echo '<iframe  src="'.$site_config["SITEURL"].'/carroussel.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="160"  scrolling="no" align="middle"></iframe>';
end_frame();
//////////////carroussel//////////



or if you want to add the code in a block add the code below in your block.php

<?php
if ( get_user_class() >= 1 ) {

begin_frame(T_("LATEST_TORRENTS_SCROLLER"));
echo '<iframe  src="'.$site_config["SITEURL"].'/carroussel.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="160"  scrolling="no" align="middle"></iframe>';
end_frame();
}
?>




create a carroussel.php file and add the code below

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


dbconn(true);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="//www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Infinite Carousel</title>
<style type="text/css" media="screen">
<!--
body { font: 1em "Trebuchet MS", verdana, arial, sans-serif; font-size: 100%; }
input, textarea { font-family: Arial; font-size: 125%; padding: 7px; }
label { display: block; }

a:link {color: transparent; text-decoration: underline; border:0; }
a:active {color: transparent; text-decoration: underline; border:0; }
a:visited {color: transparent; text-decoration: underline; border:0; }
a:hover {color: transparent; text-decoration: none; border:0; }

.infiniteCarousel {
width: 65px;
position: relative;
}

.infiniteCarousel .wrapper {
width: 1000px; /* .infiniteCarousel width - (.wrapper margin-left + .wrapper margin-right) */
overflow: auto;
min-height: 10em;
margin: 0 50px;
position: absolute;
top: -6px;
}

.infiniteCarousel ul a img {
border: 0px solid #000;
border-radius: 14px;/* taille coins en rond */
margin-left: auto;
margin-right: auto;
-moz-border-radius:14px;/* taille coins en rond */
-webkit-border-radius:14px;/* taille coins en rond */
}

.infiniteCarousel .wrapper ul {
width: 9999px;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin:0;
padding:0;
position: absolute;
top: 0;
}

.infiniteCarousel ul li {
display:block;
float:left;
padding: 8px;
height: 120px;
width: 110px;
}

.infiniteCarousel ul li a img {
display:block;
}


.infiniteCarousel .arrow {
display: block;
height: 26px;
width: 37px;
background: url(images/arrow.png) no-repeat 0 0;
 text-indent: -999px;
position: absolute;
top: 50px;
cursor: pointer;
}

.infiniteCarousel .forward {
background-position: 0 0;
right: 0;
}

.infiniteCarousel .back {
background-position: 0 -49.3px;
left: 0;
}

.infiniteCarousel .forward:hover {
background-position: 0 -26px;
}

.infiniteCarousel .back:hover {
background-position: 0 -74px;
}
-->
</style>

<script src="js/jquery-2.2.3.min.js"></script>
<script src="js/overlib.js"></script>

<script type="text/javascript">

(function () {
  $.fn.infiniteCarousel = function () {
      function repeat(str, n) {
          return new Array( n + 1 ).join(str);
      }
     
      return this.each(function () {
          // magic!
          var $wrapper = $('> div', this).css('overflow', 'hidden'),
              $slider = $wrapper.find('> ul').width(9999),
              $items = $slider.find('> li'),
              $single = $items.filter(':first')
             
              singleWidth = $single.outerWidth(),
              visible = Math.ceil($wrapper.innerWidth() / singleWidth),
              currentPage = 1,
              pages = Math.ceil($items.length / visible);
             
          /* TASKS */
         
          // 1. pad the pages with empty element if required
          if ($items.length % visible != 0) {
              // pad
              $slider.append(repeat('<li class="empty" />', visible - ($items.length % visible)));
              $items = $slider.find('> li');
          }
         
          // 2. create the carousel padding on left and right (cloned)
          $items.filter(':first').before($items.slice(-visible).clone().addClass('cloned'));
          $items.filter(':last').after($items.slice(0, visible).clone().addClass('cloned'));
          $items = $slider.find('> li');
         
          // 3. reset scroll
          $wrapper.scrollLeft(singleWidth * visible);
         
          // 4. paging function
          function gotoPage(page) {
              var dir = page < currentPage ? -1 : 1,
                  n = Math.abs(currentPage - page),
                  left = singleWidth * dir * visible * n;
             
              $wrapper.filter(':not(:animated)').animate({
                  scrollLeft : '+=' + left
              }, 500, function () {
                  // if page == last page - then reset position
                  if (page > pages) {
                      $wrapper.scrollLeft(singleWidth * visible);
                      page = 1;
                  } else if (page == 0) {
                      page = pages;
                      $wrapper.scrollLeft(singleWidth * visible * pages);
                  }
                 
                  currentPage = page;
              });
          }
         
          // 5. insert the back and forward link
          $wrapper.after('<a href="#" class="arrow back" border=0><</a><a href="#" class="arrow forward" border=0>></a>');
         
          // 6. bind the back and forward links
          $('a.back', this).click(function () {
              gotoPage(currentPage - 1);
              return false;
          });
         
          $('a.forward', this).click(function () {
              gotoPage(currentPage + 1);
              return false;
          });
         
          $(this).bind('goto', function (event, page) {
              gotoPage(page);
          });
         
          // THIS IS NEW CODE FOR THE AUTOMATIC INFINITE CAROUSEL
          $(this).bind('next', function () {
              gotoPage(currentPage + 1);
          });
      });
  };
})(jQuery);

$(document).ready(function () {
  // THIS IS NEW CODE FOR THE AUTOMATIC INFINITE CAROUSEL
  var autoscrolling = true;
 
  $('.infiniteCarousel').infiniteCarousel().mouseover(function () {
      autoscrolling = false;
  }).mouseout(function () {
      autoscrolling = true;
  });
 
  setInterval(function () {
      if (autoscrolling) {
          $('.infiniteCarousel').trigger('next');
      }
  }, 5000);
});
</script>

</head>
<body>
<?php

if($CURUSER)
{
  $query="SELECT id, name, image1 , seeders,leechers, category, size FROM torrents WHERE  banned ='no' AND visible='yes' AND image1 <> '' ORDER BY added DESC limit 40";
  $result=SQL_Query_exec($query);
  $num = mysqli_num_rows($result);
  {
 ?>
 
  <div class="infiniteCarousel">
    <div class="wrapper">
      <ul>
      <?php
          while($row = mysqli_fetch_assoc($result))
    {
     $t_name  = substr(htmlspecialchars($row['name']), 0, 30)."...";
     $res = SQL_Query_exec("SELECT name FROM categories WHERE id=$row[category]");
     $arr = mysqli_fetch_assoc($res);
     $cat = $arr["name"];
     $name=$row["name"];
?>

        <li> <a href="torrents-details.php?id=<?php echo $row["id"]; ?>" target="_top" onmouseover=" return overlib('<table width=150 border=1><tr><td class=tablea><center><?=$name?><br><?=$cat?><br><font color=green><?=$row['seeders']?></font><font color=white> Seed\'s /</font> <font color=red><?=$row['leechers']?></font><font color=white> Leech\'s</font></center></td></tr></table>',BORDER, 2, CAPTIONSIZE, '0.5ems', TEXTFONT, 'Times Roman' ,CAPCOLOR, '#000000',FGCOLOR, '#000000', VAUTO); " onmouseout="return nd();"><img src= uploads/images/<?=$row["image1"] ?> height="140" width="90"></a></li>
        <?php
   }
?>
      </ul>        
    </div>
  </div>
<?php
   }
  }
 ?>
</body>
</html>
<?php

?>
 
carroussel — 2022-06-05 17:00:09 in v3 Support
thank you but it doesn't work for me instead of the torrent covers I have the tracker header displayed in the block box  🙄
carroussel — 2022-06-05 14:43:27 in v3 Support
thanks spiritblue but I miss the jquery.min.js and the css code  😀
carroussel — 2022-06-05 10:52:47 in v3 Support
Hello everyone and can you tell me the code to add to have the last torrents uploaded on the index, thanks in advance  😴
here is the code below and the image is not displayed ?



index.php

// scroller mod
begin_frame(T_("LATEST_TORRENTS_SCROLLER"));
echo '<iframe  src="'.$site_config["SITEURL"].'/carroussel.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="160"  scrolling="no" align="middle"></iframe>';
end_frame();






carroussel.php

<?php
require_once($_SERVER["DOCUMENT_ROOT"]."/backend/functions/functions.php");
dbconn(true);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Infinite Carousel</title>
<style type="text/css" media="screen">
<!--
body { font: 1em "Trebuchet MS", verdana, arial, sans-serif; font-size: 100%; }
input, textarea { font-family: Arial; font-size: 125%; padding: 7px; }
label { display: block; }
a:link {color: transparent; text-decoration: underline; border:0; }
a:active {color: transparent; text-decoration: underline; border:0; }
a:visited {color: transparent; text-decoration: underline; border:0; }
a:hover {color: transparent; text-decoration: none; border:0; }
.infiniteCarousel {height:130px;width:830px;overflow:hidden;}
.infiniteCarousel .wrapper {width: 90%;overflow:hidden;min-height: 10em;margin: 0 40px;position: absolute;top: 0;}
.infiniteCarousel ul a img {border: 0px solid #000;border-radius: 14px;margin-left: auto;margin-right: auto;-moz-border-radius:14px;-webkit-border-radius:14px;}
.infiniteCarousel .wrapper ul {width: 9999px;list-style-image:none;list-style-position:outside;list-style-type:none;margin:0;padding:0;position: absolute;top: 0;}
.infiniteCarousel ul li {display:block;float:left;padding: 10px;height: 85px;width: 85px;}
.infiniteCarousel ul li a img {display:block;}
.infiniteCarousel .arrow {height: 36px;width: 37px;background: url(images/arrow.png) no-repeat 0 0;text-indent: -999px;position: absolute;top: 37px;cursor: pointer;}
.infiniteCarousel .forward {background-position: 0 0;right: 0;}
.infiniteCarousel .back {background-position: 0 -72px;left: 0;}
.infiniteCarousel .forward:hover {background-position: 0 -36px;}
.infiniteCarousel .back:hover {background-position: 0 -108px;}
-->
</style>
<script src="backend/js/jquery-2.2.3.min.js"></script>
<script src="backend/js/overlib.js"></script>
<script type="text/javascript">

(function () {
   $.fn.infiniteCarousel = function () {
       function repeat(str, n) {
           return new Array( n + 1 ).join(str);
       }
       
       return this.each(function () {
           // magic!
           var $wrapper = $('> div', this).css('overflow', 'hidden'),
               $slider = $wrapper.find('> ul').width(9999),
               $items = $slider.find('> li'),
               $single = $items.filter(':first')
               
               singleWidth = $single.outerWidth(),
               visible = Math.ceil($wrapper.innerWidth() / singleWidth),
               currentPage = 1,
               pages = Math.ceil($items.length / visible);
               
           /* TASKS */
           
           // 1. pad the pages with empty element if required
           if ($items.length % visible != 0) {
               // pad
               $slider.append(repeat('<li class="empty" />', visible - ($items.length % visible)));
               $items = $slider.find('> li');
           }
           
           // 2. create the carousel padding on left and right (cloned)
           $items.filter(':first').before($items.slice(-visible).clone().addClass('cloned'));
           $items.filter(':last').after($items.slice(0, visible).clone().addClass('cloned'));
           $items = $slider.find('> li');
           
           // 3. reset scroll
           $wrapper.scrollLeft(singleWidth * visible);
           
           // 4. paging function
           function gotoPage(page) {
               var dir = page < currentPage ? -1 : 1,
                   n = Math.abs(currentPage - page),
                   left = singleWidth * dir * visible * n;
               
               $wrapper.filter(':not(:animated)').animate({
                   scrollLeft : '+=' + left
               }, 500, function () {
                   // if page == last page - then reset position
                   if (page > pages) {
                       $wrapper.scrollLeft(singleWidth * visible);
                       page = 1;
                   } else if (page == 0) {
                       page = pages;
                       $wrapper.scrollLeft(singleWidth * visible * pages);
                   }
                   
                   currentPage = page;
               });
           }
           
           // 5. insert the back and forward link
           $wrapper.after('<a href="#" class="arrow back" border=0><</a><a href="#" class="arrow forward" border=0>></a>');
           
           // 6. bind the back and forward links
           $('a.back', this).click(function () {
               gotoPage(currentPage - 1);
               return false;
           });
           
           $('a.forward', this).click(function () {
               gotoPage(currentPage + 1);
               return false;
           });
           
           $(this).bind('goto', function (event, page) {
               gotoPage(page);
           });
           
           // THIS IS NEW CODE FOR THE AUTOMATIC INFINITE CAROUSEL
           $(this).bind('next', function () {
               gotoPage(currentPage + 1);
           });
       });
   };
})(jQuery);

$(document).ready(function () {
   // THIS IS NEW CODE FOR THE AUTOMATIC INFINITE CAROUSEL
   var autoscrolling = true;
   
   $('.infiniteCarousel').infiniteCarousel().mouseover(function () {
       autoscrolling = false;
   }).mouseout(function () {
       autoscrolling = true;
   });
   
   setInterval(function () {
       if (autoscrolling) {
           $('.infiniteCarousel').trigger('next');
       }
   }, 5000);
});
</script>
</head>
<body>
<?php

if($CURUSER){
   $query="SELECT id, name, image1 , seeders,leechers, category, size FROM torrents WHERE  banned ='no' AND visible='yes' AND image1 <> '' ORDER BY added DESC limit 60";
   $result = SQL_Query_exec($query);
   $num = mysqli_num_rows($result);
{
?>
   <div class="infiniteCarousel">
   <div class="wrapper">
   <ul>
<?php
   while($row = mysqli_fetch_assoc($result)){
   $name  = substr(htmlspecialchars($row['name']), 0, 30)."...";
   $res = SQL_Query_exec("SELECT name FROM categories WHERE id=$row[category]");
   $arr = mysqli_fetch_assoc($res);
   $cat = $arr["name"];
?>
   <li>

<a href="/torrents-details.php?id=<?php echo $row['id']; ?>" target="_top" onmouseover=" return overlib('<table><tr><td><center><?=$name?><br /><?=$cat?><br /><font color=#00FF7F><?=$row['seeders']?></font>&nbsp;<font color=#FFFFFF>Seed\'s /</font>&nbsp;<font color=#FF0000><?=$row['leechers']?></font>&nbsp;<font color=#FFFFFF>Leech\'s</font></center></td></tr></table>',BORDER, 2, CAPTIONSIZE, '0.5ems', TEXTFONT, 'Times Roman' ,CAPCOLOR, '#000000',FGCOLOR, '#000000', VAUTO); " onmouseout="return nd();"><img src="uploads/images/<?=$row["image1"] ?>" height="150" width="100"></a>

</li>
<?php
}
?>
</ul>
</div>
</div>
<?php
}
}
?>
</body>
</html>
<?php
?>



Theme wow — 2022-05-27 07:00:05 in v3 Themes
thank you for the information I will make the change  😀
Theme wow — 2022-05-23 15:45:02 in v3 Themes
hello and thank you and how to enlarge in width ?
Hello can you tell me if someone has the api-allocine-helper.php that works with the TV series because for the moment it only works with the url of the movie because when we put the url of a TV series the description does not appear, thanks in advance for your help  🙄
Say Thanks & Force — 2022-02-16 16:01:02 in v3 Mods Completed
Hello and here is my modification to add 50 points of seedbonus when a member posts a comment on the torrent

torrents-details.php search this line of code

SQL_Query_exec("UPDATE torrents SET comments = comments + 1 WHERE id = $id");



below add


// Points Seedbonus By spiritblue
$commentaire = get_row_count("comments", "WHERE torrent = $id AND user = $CURUSER[id]");        
if ($commentaire < 1) {
   SQL_Query_exec("UPDATE users SET seedbonus = seedbonus+50.0 WHERE id = ".$CURUSER["id"]."") ;
}
// End Points Seedbonus







Say Thanks & Force — 2022-02-14 16:47:57 in v3 Mods Completed
thanks STorrents2020  👍  😊
Say Thanks & Force — 2022-02-13 14:09:05 in v3 Mods Completed
Hello and thank you for this modification and can you tell me the modification and the code to add to give 20 points to members who post a comment on the torrent, thank you in advance for your help  🙄
phpbb3 forum with tracker — 2022-01-25 19:11:21 in v3 Support
thanks for the info M-jay but I prefer torrent trader  😀
phpbb3 forum with tracker — 2022-01-24 18:22:05 in v3 Support
Good evening kiki 2020 it is not possible I think?  🙄
phpbb3 forum with tracker — 2022-01-23 15:42:41 in v3 Support
Hello, I need your help, I have associated the tracker tt trader v3 to a phpbb 3.3.5 forum and I seek to make the modification on the file of the inscription of the forum which is the file "ucp. php" so that when a member registers on the forum and are registration is also made automatically on the tracker not to make a double registration because for the moment when we register on the forum we are obliged to create a second account on the tracker to have access to the tracker, thank you in advance for your help, I attach the 2 registration file, that of the forum which is "ucp.php" and that of the tracker of the torrent trader v3 which is account-signup.php



ucp.php

<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
require($phpbb_root_path . 'common.' . $phpEx);
require($phpbb_root_path . 'includes/functions_user.' . $phpEx);
require($phpbb_root_path . 'includes/functions_module.' . $phpEx);

// Basic parameter data
$id = $request->variable('i', '');
$mode = $request->variable('mode', '');

if (in_array($mode, array('login', 'login_link', 'logout', 'confirm', 'sendpassword', 'activate')))
{
define('IN_LOGIN', true);
}

if ($mode === 'delete_cookies')
{
define('SKIP_CHECK_BAN', true);
define('SKIP_CHECK_DISABLED', true);
}

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('ucp');

// Setting a variable to let the style designer know where he is...
$template->assign_var('S_IN_UCP', true);

$module = new p_master();
$default = false;

// Basic "global" modes
switch ($mode)
{
case 'activate':
$module->load('ucp', 'activate');
$module->display($user->lang['UCP_ACTIVATE']);

redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
break;

case 'resend_act':
$module->load('ucp', 'resend');
$module->display($user->lang['UCP_RESEND']);
break;

case 'sendpassword':
/** @var \phpbb\controller\helper $controller_helper */
$controller_helper = $phpbb_container->get('controller.helper');

redirect($controller_helper->route('phpbb_ucp_forgot_password_controller'));
break;

case 'register':
if ($user->data['is_registered'] || isset($_REQUEST['not_agreed']))
{
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
}

$module->load('ucp', 'register');
$module->display($user->lang['REGISTER']);
break;

case 'confirm':
$module->load('ucp', 'confirm');
break;

case 'login':
if ($user->data['is_registered'])
{
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
}

login_box($request->variable('redirect', "index.$phpEx"));
break;

case 'login_link':
if ($user->data['is_registered'])
{
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
}

$module->load('ucp', 'login_link');
$module->display($user->lang['UCP_LOGIN_LINK']);
break;

case 'logout':
if ($user->data['user_id'] != ANONYMOUS && $request->is_set('sid') && $request->variable('sid', '') === $user->session_id)
{
$user->session_kill();
}
else if ($user->data['user_id'] != ANONYMOUS)
{
meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx"));

$message = $user->lang['LOGOUT_FAILED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> ');
trigger_error($message);
}

redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
break;

case 'terms':
case 'privacy':

$message = ($mode == 'terms') ? 'TERMS_OF_USE_CONTENT' : 'PRIVACY_POLICY';
$title = ($mode == 'terms') ? 'TERMS_USE' : 'PRIVACY';

if (empty($user->lang[$message]))
{
if ($user->data['is_registered'])
{
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
}

login_box();
}

$template->set_filenames(array(
'body' => 'ucp_agreement.html')
);

// Disable online list
page_header($user->lang[$title]);

$template->assign_vars(array(
'S_AGREEMENT' => true,
'AGREEMENT_TITLE' => $user->lang[$title],
'AGREEMENT_TEXT' => sprintf($user->lang[$message], $config['sitename'], generate_board_url()),
'U_BACK' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
'L_BACK' => $user->lang['BACK_TO_PREV'],
));

page_footer();

break;

case 'delete_cookies':

// Delete Cookies with dynamic names (do NOT delete poll cookies)
if (confirm_box(true))
{
$set_time = time() - 31536000;

foreach ($request->variable_names(\phpbb\request\request_interface::COOKIE) as $cookie_name)
{
$cookie_data = $request->variable($cookie_name, '', true, \phpbb\request\request_interface::COOKIE);

// Only delete board cookies, no other ones...
if (strpos($cookie_name, $config['cookie_name'] . '_') !== 0)
{
continue;
}

$cookie_name = str_replace($config['cookie_name'] . '_', '', $cookie_name);

/**
* Event to save custom cookies from deletion
*
* @event core.ucp_delete_cookies
* @var string cookie_name Cookie name to checking
* @var bool retain_cookie Do we retain our cookie or not, true if retain
* @since 3.1.3-RC1
*/
$retain_cookie = false;
$vars = array('cookie_name', 'retain_cookie');
extract($phpbb_dispatcher->trigger_event('core.ucp_delete_cookies', compact($vars)));
if ($retain_cookie)
{
continue;
}

// Polls are stored as {cookie_name}_poll_{topic_id}, cookie_name_ got removed, therefore checking for poll_
if (strpos($cookie_name, 'poll_') !== 0)
{
$user->set_cookie($cookie_name, '', $set_time);
}
}

$user->set_cookie('track', '', $set_time);
$user->set_cookie('u', '', $set_time);
$user->set_cookie('k', '', $set_time);
$user->set_cookie('sid', '', $set_time);

// We destroy the session here, the user will be logged out nevertheless
$user->session_kill();
$user->session_begin();

meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx"));

$message = $user->lang['COOKIES_DELETED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
trigger_error($message);
}
else
{
confirm_box(false, 'DELETE_COOKIES', '');
}

redirect(append_sid("{$phpbb_root_path}index.$phpEx"));

break;

case 'switch_perm':

$user_id = $request->variable('u', 0);

$sql = 'SELECT *
FROM ' . USERS_TABLE . '
WHERE user_id = ' . (int) $user_id;
$result = $db->sql_query($sql);
$user_row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

if (!$auth->acl_get('a_switchperm') || !$user_row || $user_id == $user->data['user_id'] || !check_link_hash($request->variable('hash', ''), 'switchperm'))
{
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
}

include($phpbb_root_path . 'includes/acp/auth.' . $phpEx);

$auth_admin = new auth_admin();
if (!$auth_admin->ghost_permissions($user_id, $user->data['user_id']))
{
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
}

$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_ACL_TRANSFER_PERMISSIONS', false, array($user_row['username']));

$message = sprintf($user->lang['PERMISSIONS_TRANSFERRED'], $user_row['username']) . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');

/**
* Event to run code after permissions are switched
*
* @event core.ucp_switch_permissions
* @var int user_id User ID to switch permission to
* @var array user_row User data
* @var string message Success message
* @since 3.1.11-RC1
*/
$vars = array('user_id', 'user_row', 'message');
extract($phpbb_dispatcher->trigger_event('core.ucp_switch_permissions', compact($vars)));

trigger_error($message);

break;

case 'restore_perm':

if (!$user->data['user_perm_from'] || !$auth->acl_get('a_switchperm'))
{
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
}

$auth->acl_cache($user->data);

$sql = 'SELECT username
FROM ' . USERS_TABLE . '
WHERE user_id = ' . $user->data['user_perm_from'];
$result = $db->sql_query($sql);
$username = $db->sql_fetchfield('username');
$db->sql_freeresult($result);

$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_ACL_RESTORE_PERMISSIONS', false, array($username));

$message = $user->lang['PERMISSIONS_RESTORED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');

/**
* Event to run code after permissions are restored
*
* @event core.ucp_restore_permissions
* @var string username User name
* @var string message Success message
* @since 3.1.11-RC1
*/
$vars = array('username', 'message');
extract($phpbb_dispatcher->trigger_event('core.ucp_restore_permissions', compact($vars)));

trigger_error($message);

break;

default:
$default = true;
break;
}

// We use this approach because it does not impose large code changes
if (!$default)
{
return true;
}

// Only registered users can go beyond this point
if (!$user->data['is_registered'])
{
if ($user->data['is_bot'])
{
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
}

if ($id == 'pm' && $mode == 'view' && isset($_GET['p']))
{
$redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx?i=pm&p=" . $request->variable('p', 0));
login_box($redirect_url, $user->lang['LOGIN_EXPLAIN_UCP']);
}

login_box('', $user->lang['LOGIN_EXPLAIN_UCP']);
}

// Instantiate module system and generate list of available modules
$module->list_modules('ucp');

// Check if the zebra module is set
if ($module->is_active('zebra', 'friends'))
{
// Output listing of friends online
$update_time = $config['load_online_time'] * 60;

$sql_ary = array(
'SELECT' => 'u.user_id, u.username, u.username_clean, u.user_colour, MAX(s.session_time) as online_time, MIN(s.session_viewonline) AS viewonline',

'FROM' => array(
USERS_TABLE => 'u',
ZEBRA_TABLE => 'z',
),

'LEFT_JOIN' => array(
array(
'FROM' => array(SESSIONS_TABLE => 's'),
'ON' => 's.session_user_id = z.zebra_id',
),
),

'WHERE' => 'z.user_id = ' . $user->data['user_id'] . '
AND z.friend = 1
AND u.user_id = z.zebra_id',

'GROUP_BY' => 'z.zebra_id, u.user_id, u.username_clean, u.user_colour, u.username',

'ORDER_BY' => 'u.username_clean ASC',
);

/**
* Event to modify the SQL query before listing of friends
*
* @event core.ucp_modify_friends_sql
* @var array sql_ary SQL query array for listing of friends
*
* @since 3.2.10-RC1
* @since 3.3.1-RC1
*/
$vars = [
'sql_ary',
];
extract($phpbb_dispatcher->trigger_event('core.ucp_modify_friends_sql', compact($vars)));

$sql = $db->sql_build_query('SELECT_DISTINCT', $sql_ary);
$result = $db->sql_query($sql);

while ($row = $db->sql_fetchrow($result))
{
$which = (time() - $update_time < $row['online_time'] && ($row['viewonline'] || $auth->acl_get('u_viewonline'))) ? 'online' : 'offline';

$tpl_ary = [
'USER_ID' => $row['user_id'],
'U_PROFILE' => get_username_string('profile', $row['user_id'], $row['username'], $row['user_colour']),
'USER_COLOUR' => get_username_string('colour', $row['user_id'], $row['username'], $row['user_colour']),
'USERNAME' => get_username_string('username', $row['user_id'], $row['username'], $row['user_colour']),
'USERNAME_FULL' => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour'])
];

/**
* Event to modify the template before listing of friends
*
* @event core.ucp_modify_friends_template_vars
* @var array row friend user row
* @var array tpl_ary friend template array
* @var string which friend is 'online' or 'offline'
*
* @since 3.2.10-RC1
* @since 3.3.1-RC1
*/
$vars = [
'row',
'tpl_ary',
'which',
];
extract($phpbb_dispatcher->trigger_event('core.ucp_modify_friends_template_vars', compact($vars)));

$template->assign_block_vars("friends_{$which}", $tpl_ary);
}
$db->sql_freeresult($result);
}

// Do not display subscribed topics/forums if not allowed
if (!$config['allow_topic_notify'] && !$config['allow_forum_notify'])
{
$module->set_display('main', 'subscribed', false);
}

/**
* Use this event to enable and disable additional UCP modules
*
* @event core.ucp_display_module_before
* @var p_master module Object holding all modules and their status
* @var mixed id Active module category (can be the int or string)
* @var string mode Active module
* @since 3.1.0-a1
*/
$vars = array('module', 'id', 'mode');
extract($phpbb_dispatcher->trigger_event('core.ucp_display_module_before', compact($vars)));

$template->assign_block_vars('navlinks', array(
'BREADCRUMB_NAME' => $user->lang('UCP'),
'U_BREADCRUMB' => append_sid("{$phpbb_root_path}ucp.$phpEx"),
));

// Select the active module
$module->set_active($id, $mode);

// Load and execute the relevant module
$module->load_active();

// Assign data to the template engine for the list of modules
$module->assign_tpl_vars(append_sid("{$phpbb_root_path}ucp.$phpEx"));

// Generate the page, do not display/query online list
$module->display($module->get_page_title());






account-signup.php

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

$username_length = 15; // Max username length. You shouldn't set this higher without editing the database first
$password_minlength = 6;
$password_maxlength = 40;



       //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"])
               autolink("/index.php", "YOUPSS Pas de chance!!!  Tigers autorise 1 seule compte par ip !!!");
       }


// 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 = "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_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)");
}
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)");
}

   die;
 }

}//end takesignup



stdhead(T_("SIGNUP"));
begin_frame(T_("SIGNUP"));
?>
<?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"); ?>
&nbsp;&nbsp;
<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();
?>






error download torrent — 2021-11-24 19:59:17 in v3 Support
ok thanks ronan for your help i will tell the members and come back to tell you what
error download torrent — 2021-11-24 14:49:17 in v3 Support
Hello some members tell me that torrents are in red as soon as they start in Utorrent.
utorrent client says: "An error occurred during the secure connection"

can you tell me where the problem comes from, thanks in advance for your help
thanks M-jay for your help it works fine now
Hello, I modified the function.php file to make a new torrent.php page but I can't make the torrent description appear and I added this code

" . format_comment($arr['descr']) . "


in the code below and it doesn't work, can you help me to put the description, thanks in advance







               print("</td>\n");
          break;
          case 'name':
              $char1 = 70; //cut name length
              $smallname = htmlspecialchars(CutName($row["name"], $char1));
              $dispname = "<b><br>

</b>

<br><br>


<table class=table_test border=2 width=90% cellpadding=10><tr><th colspan=10 align=center class=table_head><b>".T_("TORRENT_INFO")."</b>:

<b>".$smallname."</b>

</th></tr>" .
     "<tr><td colspan='7' valign=top rowspan=2 class=ttable_col1 cellpadding=5 style='padding: 10px;'><center><i><b><u>".T_("DESCRIPTION")."</u></b></i></center><br /><div style='height:120px; line-height:10em;overflow:auto;padding:10px;'><b><font size=2>


" . format_comment($arr['descr']) . "


</font></b></div></td>




               <td align='center'><a href=torrents-details.php?id=$row[id]'><img id='cover_img1' class='cover_img' border='2' src='uploads/images/$row[image1]' width='128px' height='177px'></a> </td>



<tr>

     <tr><td class=ttable_col2 align='center'>

<b>Genre : </b>
<span style='color:#FF4400'><b>" . $row["cat_name"] . "</b>



" . $catarr["cat_name"] . "

</td>".$lang." ".$flag."<td class=ttable_col2 align='center'><b>" .T_("TOTAL_SIZE"). " : </b>

" . mksize($row["size"]) ."

</td><td align=center class=ttable_col2><b>".T_("NUMBER_OF_DOWNLOADS")." : <font color=green>


".number_format($row['times_completed'])."


</b></font>


".T_("TIMES")."</td><td width=10 class=ttable_col2 align=center><a href=\"download.php?id=$id&name=" . rawurlencode($arr["filename"]) . "\"><img src='" . $site_config['SITEURL'] . "/images/icon_download.gif' border='0' title='".T_("DIRECT_DOWN")."' alt=\"Download torrent\" /></a></td>

<td class=ttable_col2 align=center><img border=\"0\" src=\"images/red_down.png\" width='10' height='10' title=\"".T_("LEECHERS")."!\"></a>(<font color=red>

<b>

".$row['leechers']."

</b>

</font>) - <img border=\"0\" src=\"images/green_up.png\" width='10' height='10' title=\"".T_("SEEDERS")."!\"></a>(<font color=green>

<b>


".$row['seeders']."


</b>

</font>)</td><td class=ttable_col2 align=center><a style='text-decoration:none' href=torrents-details.php?id=$id&hit=1><input type=button value='".T_("TORRENT")."' title='".T_("TORRENT_GO")."' alt='[".T_("TORRENT_GO")."]'></font></a></td></tr></table><br />

";




TMDB — 2021-11-08 19:14:47 in v3 Mods in Progress
thanks M-jay i found for the key but the modification doesn't work for me i will come back later when it will be updated in v3.0 Mods Completed and bravo for your work to make it work  :crying
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