Torrent subscription Issue.

  • 2 Replies
  • 259 Views
*

Offline colors

  • **
  • 4
  • +0/-0
Torrent subscription Issue.
« on: November 22, 2018, 01:39:14 pm »
I had a problem that Torrents Subscription is not working properly. Only the owner of the site is getting email after uploading a torrent. There are few other users also subscribed categories to get email. But, none of them receiving emails. I believe, there is small bug with below code. Kindly have a look and correction please.

Quote
// send email to subscriptors
         $subscriptors=get_result("SELECT email, subscription FROM {$TABLE_PREFIX}users WHERE subscription IS NOT NULL",true);
         if (count($subscriptors)>0)
          {
           $bcc=array();
           $ne=0;
           include(load_language("lang_usercp.php"));
           for ($i=0;$i<count($subscriptors);$i++)
            {
                if (in_array($categoria, explode(",",$subscriptors[$i]["subscription"])))
                  {
                   $bcc[]=$subscriptors[$i]["email"];
                   $ne++;
                   if ($ne>49)
                      send_mail($SITEEMAIL,$language["SUB_SUBJECT"],sprintf($language["SUB_EMAIL"],$filename, "$BASEURL/index.php?page=torrent-details&id=$hash","$BASEURL/download.php?id=$hash&f=" . urlencode($filename) . ".torrent"),false,array(),$bcc);
                }
            }

            send_mail($SITEEMAIL,$language["SUB_SUBJECT"],sprintf($language["SUB_EMAIL"],$filename, "$BASEURL/index.php?page=torrent-details&id=$hash","$BASEURL/download.php?id=$hash&f=" . urlencode($filename) . ".torrent"),false,array(),$bcc);
         }


Note: What I understood is email is sending to only first value from the array of emails.
« Last Edit: November 22, 2018, 01:49:53 pm by colors »

*

Offline AgneLowe

  • **
  • 2
  • +0/-0
Re: Torrent subscription Issue.
« Reply #1 on: February 21, 2019, 10:33:29 am »
Die meisten Inhalte dieser Versionen ermöglichen es mir, Informationen sehr gut auszutauschen.

*

Offline King Cobra

  • XBTIT Maintainer / Developer
  • *****
  • 543
  • +0/-0
  • xbtitFM Administrator
Re: Torrent subscription Issue.
« Reply #2 on: February 22, 2019, 03:48:49 pm »
Die meisten Inhalte dieser Versionen ermöglichen es mir, Informationen sehr gut auszutauschen.
English only please

 


Powered by EzPortal