Recent Posts

Pages: [1] 2 3 ... 10
1
XBTIT Support / Re: Recover password function not working, XBTIT 2.5.4
« Last post by JUFEK on September 04, 2017, 09:57:13 pm »
This has been resolved!!

KingCobra58 (on github) has provided this fix:

Quote
Try replacing this
Code: [Select]
mysqli_query($GLOBALS['conn']to this
Code: [Select]
mysqli_real_escape_string($GLOBALS['conn']in this query
Code: [Select]
do_sqlquery("UPDATE {$TABLE_PREFIX}users SET password='".mysqli_query($GLOBALS['conn'],$multipass[$i]["rehash"])."', salt='".mysqli_query($GLOBALS['conn'],$multipass[$i]["salt"])."', pass_type='".$i."', dupe_hash='".mysqli_query($GLOBALS['conn'],$multipass[$i]["dupehash"])."' WHERE id=$id AND random=$random",true);

After this, no errors and password recovery is functional.

Thank you KingCobra58 and XBTIT dev team for the help and hard work!!

Thanks, problem solved :)
2
XBTIT Support / Pager
« Last post by JUFEK on September 04, 2017, 09:54:54 pm »
Issue pager 2.5.4

Solved oldest pager xbtit 2.2.0

<-Search ->include/function.php

//Pager
function pager($rpp, $count, $href, $opts = array()) {
  global $language;

  $pages=($rpp==0)?1:ceil($count / $rpp);

  if (!isset($opts['lastpagedefault']))
    $pagedefault = 1;
  else {
    $pagedefault = floor(($count - 1) / $rpp);
    if ($pagedefault < 1)
      $pagedefault = 1;
  }

  $pagename='pages';

  if (isset($opts['pagename'])) {
    $pagename=$opts['pagename'];
    if (isset($_GET[$opts['pagename']]))
      $page = max(1 ,((int)$_GET[$opts['pagename']]));
    else
      $page = $pagedefault;
  } elseif (isset($_GET['pages'])) {
    $page = max(1,((int)0 + $_GET['pages']));
    if ($page < 0)
      $page = $pagedefault;
  } else
    $page = $pagedefault;

  $pager = '';

  if ($pages>1) {
    $pager.="\n".'<form name="change_page'.$pagename.'" method="post" action="index.php">'."\n".'<select class="drop_pager" name="pages" onchange="location=document.change_page'.$pagename.'.pages.options[document.change_page'.$pagename.'.pages.selectedIndex].value" size="1">';
    for ($i = 1; $i<=$pages;$i++)
        $pager.="\n<option ".($i==$page?'selected="selected"':'')."value=\"$href$pagename=$i\">$i</option>";
    $pager.="\n</select>";
  }

  $mp = $pages;// - 1;
  $begin=($page > 3?($page<$pages-2?$page-2:$pages-2):1);
  $end=($pages>$begin+2?($begin+2<$pages?$begin+2:$pages):$pages);
  if ($page > 1) {
    $pager .= "\n&nbsp;<span class=\"pager\"><a href=\"{$href}$pagename=1\">&nbsp;&laquo;[/url]</span>";
    $pager .= "\n<span class=\"pager\"><a href=\"{$href}$pagename=".($page-1)."\">&lt;&nbsp;[/url]</span>";
  }

  if ($count) {
    for ($i = $begin; $i <= $end; $i++) {
      if ($i != $page)
        $pager .= "\n&nbsp;<span class=\"pager\"><a href=\"{$href}$pagename=$i\">$i[/url]</span>";
      else
        $pager .= "\n&nbsp;<span class=\"pagercurrent\">$i</span>";
    }

    if ($page < $mp && $mp >= 1) {
      $pager .= "\n&nbsp;<span class=\"pager\"><a href=\"{$href}$pagename=".($page+1)."\">&nbsp;&gt;[/url]</span>";
      $pager .= "\n&nbsp;<span class=\"pager\"><a href=\"{$href}$pagename=$pages\">&nbsp;&raquo;[/url]</span>";
    }

    $pagertop = "$pager\n</form>";
    $pagerbottom = str_replace("change_page","change_page1",$pagertop)."\n";
  } else {
    $pagertop = "$pager\n</form>";
    $pagerbottom = str_replace("change_page","change_page1",$pagertop)."\n";
  }

  $start = ($page-1) * $rpp;
  if ($pages<2) {
    // only 1 page??? don't need pager ;)
    $pagertop='';
    $pagerbottom='';
  }

  return array($pagertop, $pagerbottom, "LIMIT $start,$rpp");
}

<-Replace->

function pager($rpp, $count, $href, $opts = array()) {
  global $language;

  $pages=($rpp==0)?1:ceil($count / $rpp);

  if (!isset($opts['lastpagedefault']))
    $pagedefault = 1;
  else {
    $pagedefault = floor(($count - 1) / $rpp);
    if ($pagedefault < 1)
      $pagedefault = 1;
  }

  $pagename='pages';

  if (isset($opts['pagename'])) {
    $pagename=$opts['pagename'];
    if (isset($_GET[$opts['pagename']]))
      $page = max(1 ,intval($_GET[$opts['pagename']]));
    else
      $page = $pagedefault;
  } elseif (isset($_GET['pages'])) {
    $page = max(1,intval(0 + $_GET['pages']));
    if ($page < 0)
      $page = $pagedefault;
  } else
    $page = $pagedefault;

  $pager = '';

  if ($pages>1) {
    $pager.="\n".'<form name="change_page'.$pagename.'" method="post" action="index.php"><div align="center">'."\n";
  }

  $mp = $pages;// - 1;
  $begin=($page > 10?($page<$pages-10?$page-10:$pages-10):1);
  $end=($pages>$begin+10?($begin+10<$pages?$begin+10:$pages):$pages);
  if ($page > 1) {
    $pager .= "\n&nbsp;<a href=\"{$href}$pagename=1\">First[/url]";
    $pager .= "\n<a href=\"{$href}$pagename=".($page-1)."\"> || <<< [/url]";
  }

  if ($count) {
    for ($i = $begin; $i <= $end; $i++) {
      if ($i != $page)
        $pager .= "\n&nbsp;<a href=\"{$href}$pagename=$i\">$i[/url]";
      else
        $pager .= "\n&nbsp;<span class=\"active_tnt_link\">$i</span>";
    }



    if ($page < $mp && $mp >= 1) {
      $pager .= "\n&nbsp;<a href=\"{$href}$pagename=".($page+1)."\"> >>> || [/url]";
      $pager .= "\n&nbsp;<a href=\"{$href}$pagename=$pages\">Last[/url]";
    }

$pager .='
<select class="drop_pager" name="pages" onchange="location=document.change_page'.$pagename.'.pages.options[document.change_page'.$pagename.'.pages.selectedIndex].value" size="1">';
    for ($i = 1; $i<=$pages;$i++)
        $pager.="\n<option ".($i==$page?'selected="selected"':'')."value=\"$href$pagename=$i\">$i</option>";
    $pager.="\n</select></div>";

    $pagertop = "$pager\n</form>";
    $pagerbottom = str_replace("change_page","change_page1",$pagertop)."\n";
  } else {
    $pagertop = "$pager\n</form>";
    $pagerbottom = str_replace("change_page","change_page1",$pagertop)."\n";
  }

  $start = ($page-1) * $rpp;
  if ($pages<2) {
    // only 1 page??? don't need pager ;)
    $pagertop='';
    $pagerbottom='';
  }

  return array($pagertop, $pagerbottom, "LIMIT $start,$rpp");
}
3
XBTIT Support / Re: Xbtit don't update seeders/leechers
« Last post by JUFEK on September 03, 2017, 11:45:29 am »
here what i change from line 415 to 417 in announce.php
I replaced
Code: [Select]
if ($left === 0)
        $status = 'seeder';
    else
        $status = 'leecher';
with below code

Code: [Select]
if ($left === 0)
        $status = 'leecher';
    else
        $status = 'seeder';

change announcement made, the problem is likely to persist.
4
XBTIT Support / Re: Xbtit don't update seeders/leechers
« Last post by JUFEK on September 02, 2017, 11:17:40 pm »
Hello main problem is not visible uploaded torrent in userdetails.
xbtit 2.5.4

usercp is ok


Userdetails not


Thanks
5
XBTIT Support / Re: Single-Line Shout
« Last post by King Cobra on September 02, 2017, 04:07:23 pm »
pk cool
6
XBTIT Support / Re: Single-Line Shout
« Last post by Mike on September 02, 2017, 12:54:42 pm »
Yes
7
XBTIT Support / Re: Single-Line Shout
« Last post by King Cobra on September 01, 2017, 12:42:44 pm »
I see my fix was download so did it work for you?
8
XBTIT Support / Re: Single-Line Shout
« Last post by King Cobra on September 01, 2017, 03:43:34 am »
try this
replace your ajaxchat/getChatData.php with this one
but remember to backup yours first

9
XBTIT Support / Re: Single-Line Shout
« Last post by Yupy on August 31, 2017, 04:14:48 am »
You want the Username, Date, Text in the same line in shoutbox?
10
XBTIT Support / Re: Broken install
« Last post by Yupy on August 28, 2017, 10:03:20 pm »
PHP Notices are not actually bugs but you can encode it before decode (Not tested but should solve the Notice).

Replace:

Code: [Select]
$TRACKER_ANNOUNCE_URL=unserialize(base64_decode($btit_settings['announce']));
With:

Code: [Select]
$TRACKER_ANNOUNCE_URL = base64_encode(serialize($btit_settings['announce']));
$TRACKER_ANNOUNCE_URL=unserialize(base64_decode($btit_settings['announce']));
Pages: [1] 2 3 ... 10

Powered by EzPortal