Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
  #1  
Old 4th May 2012, 10:49
gogo999's Avatar
gogo999 gogo999 is offline
Senior Member
 
Join Date: Feb 2012
Korea South
Posts: 140
Default SMTP are some errors
SMTP are some errors

What's your problem


invite.php

PHP Code:
<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  
function check_amount ($uid)
  {
    
$res sql_query ('SELECT invites FROM users WHERE id = ' sqlesc ($uid));
    if (
mysql_num_rows ($res) == 0)
    {
      return 
false;
    }

    
$amount mysql_fetch_array ($res);
    if (
$amount['invites'] < 1)
    {
      return 
false;
    }

    return 
true;
  }

  function 
invite_amount ($uid)
  {
    
$res sql_query ('SELECT invites FROM users WHERE id = ' sqlesc ($uid));
    
$amount mysql_fetch_array ($res);
    if ((
$amount['invites'] == OR $amount['invites'] == 2))
    {
      
$msg '<font color=red>' $amount['invites'] . '</font>';
    }
    else
    {
      
$msg '<font color=green>' $amount['invites'] . '</font>';
    }

    return 
$msg;
  }

  function 
is_email_exists ($email)
  {
    
$check1 sql_query ('SELECT email FROM users WHERE email = ' sqlesc ($email));
    if (
<= mysql_num_rows ($check1))
    {
      return 
false;
    }

    
$check2 sql_query ('SELECT invitee FROM invites WHERE invitee = ' sqlesc ($email));
    if (
<= mysql_num_rows ($check2))
    {
      return 
false;
    }

    return 
true;
  }

  function 
failed ($msg$error true$clean false)
  {
    global 
$lang;
    if (
$error)
    {
      
$msg $msg ' Click <a href="javascript: history.back(1)">here</a> to go back';
    }

    
stdmsg (($error $lang->invite['failed'] : $lang->invite['success']), $msg$clean);
    
stdfoot ();
    exit ();
  }

  require_once 
'global.php';
  
gzip ();
  
dbconn ();
  
loggedinorreturn ();
  
maxsysop ();
  
define ('I_VERSION''1.2');
  require 
INC_PATH '/readconfig_signup.php';
  require 
INC_PATH '/readconfig_cleanup.php';
  if (
$ai == 'yes')
  {
    
$query sql_query ('SELECT u.id, u.modcomment, u.lastinvite, u.usergroup, g.autoinvite FROM users u LEFT JOIN usergroups g ON (u.usergroup=g.gid) WHERE u.enabled=\'yes\' AND u.usergroup != ' UC_BANNED ' AND u.status=\'confirmed\' AND UNIX_TIMESTAMP(u.lastinvite) < ' . (TIMENOW $autoinvitetime 24 60 60) . ' AND g.autoinvite > 0');
    if (
mysql_num_rows ($query))
    {
      
$lang->load ('cronjobs');
      require_once 
INC_PATH '/functions_pm.php';
      while (
$arr mysql_fetch_assoc ($query))
      {
        
sql_query ('UPDATE users SET lastinvite = NOW(), invites = invites + ' $arr['autoinvite'] . ', modcomment = ' sqlesc (gmdate ('Y-m-d') . ' - Earned ' $arr['autoinvite'] . ' invites by system.
$arr['modcomment']) . ' WHERE id = ' sqlesc ($arr['id']));
        
send_pm ($arr['id'], sprintf ($lang->cronjobs['invite_message'], $arr['autoinvite'], $arr['id']), $lang->cronjobs['invite_subject']);
      }
    }
  }

  if (
$usergroups['caninvite'] != 'yes')
  {
    
print_no_permission ();
    exit ();
  }

  
$lang->load ('invite');
  
$action = (isset ($_POST['action']) ? htmlspecialchars ($_POST['action']) : (isset ($_GET['action']) ? htmlspecialchars ($_GET['action']) : 'main'));
  
$type = (isset ($_POST['type']) ? htmlspecialchars ($_POST['type']) : (isset ($_GET['type']) ? htmlspecialchars ($_GET['type']) : ''));
  
$is_mod is_mod ($usergroups);
  
stdhead ($lang->invite['head'], true'collapse');
  if (((isset (
$_GET['id']) AND is_valid_id ($_GET['id'])) AND ($is_mod OR $usergroups['canuserdetails'] == 'yes')))
  {
    
$inviterid = (int)$_GET['id'];
    
$ra sql_query ('SELECT username FROM users where id = ' sqlesc ($inviterid));
    
$raa mysql_fetch_array ($ra);
    
$invitername htmlspecialchars (trim ($raa['username']));
  }
  else
  {
    
$inviterid = (int)$CURUSER['id'];
    
$invitername htmlspecialchars (trim ($CURUSER['username']));
  }

  if (
$action == 'delete')
  {
    
$error false;
    
$deleteids $_POST['id'];
    if ((empty (
$deleteids) OR !is_array ($deleteids)))
    {
      
$error true;
    }
    else
    {
      foreach (
$deleteids as $id)
      {
        if (!
is_valid_id ($id))
        {
          
$error true;
          break;
        }
      }
    }

    if (!
$error)
    {
      
$ids implode (','$deleteids);
      
sql_query ('' 'DELETE FROM invites WHERE id IN (' $ids ') AND inviter = ' sqlesc ($inviterid));
    }

    
$action 'main';
  }

  if (
$action == 'main')
  {
    
$res sql_query ('SELECT invites FROM users WHERE id = ' sqlesc ($inviterid));
    
$inv mysql_fetch_array ($res);
    if (
$inv['invites'] != 1)
    {
      
$_s 's';
    }
    else
    {
      
$_s '';
    }

    
$number tsrowcount ('id''users''invited_by=' $inviterid);
    
$ret sql_query ('SELECT u.id, u.username, u.email, u.uploaded, u.last_access, u.last_login, u.options, u.added, u.downloaded, u.status, u.warned, u.enabled, u.donor, u.email, g.namestyle FROM users u LEFT JOIN usergroups g ON (u.usergroup=g.gid) WHERE u.invited_by = ' sqlesc ($inviterid));
    
$num mysql_num_rows ($ret);
    echo 
'
    <p align="right">
        <input value="' 
$lang->invite['button'] . '" onclick="jumpto(\'invite.php?action=send\');" type="button">
    </p>'
;
    echo 
'<table border=1 width=100% cellspacing=0 cellpadding=5><tr class=tabletitle><td colspan="8" class="colhead">' ts_collapse ('invitetable1') . '<b>' $lang->invite['status'] . '</b> (' $number ') </td></tr>' ts_collapse ('invitetable1'2);
    if (!
$num)
    {
      
$str '<tr class=tableb><td colspan=8>' $lang->invite['noinvitesyet'] . '</td></tr></tbody>';
    }
    else
    {
      print 
'<tr class=tableb><td class="subheader"><b>' $lang->invite['username'] . '</b></td><td class="subheader"><b>' $lang->invite['email'] . '</b></td><td class="subheader"><b>' $lang->invite['added'] . '</b></td><td class="subheader"><b>' $lang->invite['lastseen'] . '</b></td><td class="subheader"><b>' $lang->invite['uploaded'] . '</b></td><td class="subheader"><b>' $lang->invite['downloaded'] . '</b></td><td class="subheader"><b>' $lang->invite['ratio'] . '</b></td><td class="subheader"><b>' $lang->invite['status2'] . '</b></td></tr>';
      
$dt get_date_time (gmtime () - TS_TIMEOUT);
      while (
$arr mysql_fetch_array ($ret))
      {
        
$orj_username $arr['username'];
        
$arr['username'] = get_user_color ($arr['username'], $arr['namestyle']);
        
$registered my_datee ($dateformat$arr['added']) . ' ' my_datee ($timeformat$arr['added']);
        
$lastseen $arr['last_access'];
        if ((
preg_match ('#B1#is'$arr['options']) AND !$is_mod))
        {
          
$lastseen $arr['last_login'];
        }

        if ((
$lastseen == '0000-00-00 00:00:00' OR $lastseen == '-'))
        {
          
$lastseen $lang->invite['never'];
        }
        else
        {
          
$lastseen my_datee ($dateformat$lastseen) . ' ' my_datee ($timeformat$lastseen);
        }

        if (
$arr['status'] == 'pending')
        {
          
$user '' '<a href=checkuser.php?id=' $arr['id'] . '>' $arr['username'] . '</a>';
        }
        else
        {
          
$user '<a href="' ts_seo ($arr['id'], $orj_username) . ('' '">' $arr['username'] . '</a>') . ($arr['warned'] == 'yes' '&nbsp;<img src=' $pic_base_url 'warned.gif border=0 alt=\'' $lang->global['imgwarned'] . '\' title=\'' $lang->global['imgwarned'] . '\'>' '') . '&nbsp;' . ($arr['enabled'] == 'no' '&nbsp;<img src=' $pic_base_url 'disabled.gif border=0 alt=\'' $lang->global['imgdisabled'] . '\' title=\'' $lang->global['imgdisabled'] . '\'>' '') . '&nbsp;' . ($arr['donor'] == 'yes' '<img src=' $pic_base_url 'star.gif border=0 alt=\'' $lang->global['imgdonated'] . '\' title=\'' $lang->global['imgdonated'] . '\'>' '');
        }

        if (
$arr['downloaded'])
        {
          include_once 
INC_PATH '/functions_ratio.php';
          
$ratio number_format ($arr['uploaded'] / $arr['downloaded'], 2);
          
$ratio '<font color=' get_ratio_color ($ratio) . ('' '>' $ratio '</font>');
        }
        else
        {
          if (
$arr['uploaded'])
          {
            
$ratio 'Inf.';
          }
          else
          {
            
$ratio '---';
          }
        }

        if (
$arr['status'] == 'confirmed')
        {
          
$status '<a href="' ts_seo ($arr['id'], $orj_username) . '"><font color=#1f7309>' $lang->invite['confirmed'] . '</font></a>';
        }
        else
        {
          
$status '' '<a href=checkuser.php?id=' $arr['id'] . '><font color=#ca0226>' $lang->invite['pending'] . '</font></a>';
        }

        
$str .= '' '<tr class=tableb><td>' $user '</td><td><a href=mailto:' $arr['email'] . '>' $arr['email'] . '</a></td><td>' $registered '</td><td>' $lastseen '</td><td>' mksize ($arr['uploaded']) . '</td><td>' mksize ($arr['downloaded']) . ('' '</td><td>' $ratio '</td><td>' $status '</td></tr>');
      }
    }

    echo 
$str '</tbody></table><br />';
    unset (
$str);
    
$number1 tsrowcount ('id''invites''inviter=' $inviterid);
    
$rer sql_query ('SELECT id, invitee, hash, time_invited FROM invites WHERE inviter = ' sqlesc ($inviterid));
    
$num1 mysql_num_rows ($rer);
    print 
'<table border=1 width=100% cellspacing=0 cellpadding=5>' '<tr class=tabletitle><td colspan=5 class=colhead>' ts_collapse ('invitetable2') . '<b>' $lang->invite['status3'] . ('' '</b> (' $number1 ')</td></tr>') . ts_collapse ('invitetable2'2);
    if (!
$num1)
    {
      
$str '<tr class=rowhead><td colspan=5>' $lang->invite['nooutyet'] . '</tr>';
    }
    else
    {
      print 
'<tr class=rowhead><td class="subheader"><b>' $lang->invite['email'] . '</b></td><td class="subheader"><b>' $lang->invite['hash'] . '</b></td><td class="subheader"><b>' $lang->invite['senddate'] . '</b></td><td class="subheader"><b>' $lang->invite['invitedeadtime'] . '</b></td><td class="subheader" align="center"><b>' $lang->invite['action'] . '</b></td></tr>';
      print 
'<form method=\'post\' action=\'' $_SERVER['SCRIPT_NAME'] . '\'><input type=\'hidden\' name=\'action\' value=\'delete\'>';
      include_once 
INC_PATH '/readconfig_cleanup.php';
      
$i 0;
      while (
$i $num1)
      {
        
$arr1 mysql_fetch_array ($rer);
        
$timeout strtotime ($arr1['time_invited']) + 172800;
        
$timeoutdate my_datee ($dateformat$timeout);
        
$timeouttime my_datee ($timeformat$timeout);
        
$senddate my_datee ($dateformat$arr1['time_invited']) . ' ' my_datee ($timeformat$arr1['time_invited']);
        
$_m_link strip_tags (sprintf ($lang->invite['manuellink'], $BASEURL$arr1[hash]));
        
$str .= '' '<tr class=rowhead><td>' $arr1['invitee'] . '<td><span style="float: right;"><a href="" onclick="javascript:prompt(\'' $_m_link '\',\'' $BASEURL '/signup.php?invitehash=' $arr1[hash] . '&type=invite\'); return false;"><img src="' $BASEURL '/' $pic_base_url 'plus.gif" alt="' $lang->invite[hash] . '" title="' $lang->invite[hash] . '" border=""></a></span>' $arr1['hash'] . '</td><td>' $senddate '</td><td>' $timeoutdate ' ' $timeouttime '</td><td align=\'center\'><input type=\'checkbox\' name=\'id[]\' value=\'' $arr1['id'] . '\'></td></tr>';
        ++
$i;
      }

      
$str .= '<tr><td colspan=\'5\' align=\'right\'><input type=\'submit\' value=\'' $lang->invite['actionbutton'] . '\'></form></td></tr>';
    }

    echo 
$str '</table>';
  }
  else
  {
    if (
$action == 'send')
    {
      
$alert false;
      if (!
check_amount ($inviterid))
      {
        
failed ($lang->invite['noinvitesleft']);
      }
      else
      {
        if ((
$invitesystem == 'off' AND $is_mod))
        {
          
$alert true;
        }
        else
        {
          if (
$invitesystem == 'off')
          {
            
failed ($lang->invite['invitesystemoff']);
          }
        }
      }

      if (
$alert)
      {
        echo 
'<div class="error">' $lang->invite['alert'] . '</div>';
      }

      if (
$type == 'email')
      {
        echo 
'<table border="1" cellspacing="0" cellpadding="10" width="100%">';
        echo 
'<form method="post" action="' $_SERVER['SCRIPT_NAME'] . '" name="sendinvite" ' submit_disable ('sendinvite''send') . '>';
        echo 
'<input type="hidden" name="action" value="sendinvite">';
        
tr ($lang->invite['field1'], '<input type="text" name="email" id="specialboxn"> <b><font color=red>' $lang->invite['field2'] . '</b></font>'1);
        
tr ($lang->invite['field3'], '<textarea name="note" rows="10" cols="40" tabindex="2" wrap="virtual" id="specialboxg">' $lang->invite['default_invite_msg'] . '</textarea>'1);
        
tr (sprintf ($lang->invite['field4'], invite_amount ($inviterid)), '<input type="submit" value="' $lang->invite['button2'] . '" name="send"> <input type="reset" value="' $lang->invite['button3'] . '">'1);
        echo 
'</table>';
      }
      else
      {
        if (
$type == 'manual')
        {
          
$hash substr (md5 (md5 (rand ())), 032);
          
$time_invited get_date_time ();
          
sql_query ('INSERT INTO invites (inviter, invitee, hash, time_invited) VALUES (' sqlesc ($inviterid) . ', ' sqlesc ('manual') . ', ' sqlesc ($hash) . ', ' sqlesc ($time_invited) . ')');
          if (
mysql_affected_rows () != 1)
          {
            
failed ($lang->invite['error']);
          }
          else
          {
            
sql_query ('UPDATE users SET invites = invites - 1 WHERE id = ' sqlesc ($inviterid));
          }

          if (
mysql_affected_rows () != 1)
          {
            
failed ($lang->invite['error']);
          }
          else
          {
            
stdmsg ($lang->invite['success'], sprintf ($lang->invite['manuellink'], $BASEURL$hash), false'success');
            
stdfoot ();
            exit ();
          }
        }
        else
        {
          echo 
'
        <table border="1" cellspacing="0" cellpadding="10" width="100%">
        <tr><td class="thead">' 
$lang->invite['selecttype'] . '</td></tr>
        <tr><td class="trow1">
        <form method="post" action="' 
$_SERVER['SCRIPT_NAME'] . '" name="sendinvite" ' submit_disable ('sendinvite''submit') . '>
        <input type="hidden" name="action" value="send">
        <select name="type">
        <option value="email">' 
$lang->invite['type1'] . ' </option>
        <option value="manual">' 
$lang->invite['type2'] . ' </option>
        </select>
         <input type="submit" name="submit" value="' 
$lang->invite['typebutton'] . ' " class="hoptobuttons">
         </form>
         </td></tr>
        </table>'
;
        }
      }
    }
    else
    {
      if (
$action == 'sendinvite')
      {
        function 
safe_email ($email)
        {
          return 
str_replace (array ('<''>''\\\'''\\"''\\\\'), ''$email);
        }

        if ((
$invitesystem == 'off' AND !$is_mod))
        {
          
failed ($lang->invite['invitesystemoff']);
        }

        if (!
check_amount ($inviterid))
        {
          
failed ($lang->invite['noinvitesleft']);
        }

        
$email htmlspecialchars_uni (safe_email ($_POST['email']));
        if (!
check_email ($email))
        {
          
failed ($lang->invite['invalidemail']);
        }

        if (!
is_email_exists ($email))
        {
          
failed ($lang->invite['invalidemail2']);
        }

        
$note htmlspecialchars_uni ($_POST['note']);
        if (empty (
$note))
        {
          
$note $lang->invite['nonote'];
        }

        
$subject sprintf ($lang->invite['subject'], $SITENAME);
        
$time_invited get_date_time ();
        
$invitehash substr (md5 (md5 (rand ())), 032);
        include_once 
INC_PATH '/readconfig_cleanup.php';
        
$message sprintf ($lang->invite['message'], $invitername$SITENAME$BASEURL$invitehash2$note);
        
sql_query ('INSERT INTO invites (inviter, invitee, hash, time_invited) VALUES (' sqlesc ($inviterid) . ', ' sqlesc ($email) . ', ' sqlesc ($invitehash) . ', ' sqlesc ($time_invited) . ')');
        if (
mysql_affected_rows () != 1)
        {
          
failed ($lang->invite['error']);
        }
        else
        {
          
sql_query ('UPDATE users SET invites = invites - 1 WHERE id = ' sqlesc ($inviterid));
        }

        if (
mysql_affected_rows () != 1)
        {
          
failed ($lang->invite['error']);
        }
        else
        {
          
sent_mail ($email$subject$message'invitesignup'false);
        }

        
failed (sprintf ($lang->invite['sent'], $email), false);
      }
    }
  }

  
stdfoot ();
?>

smtp.lib.php

PHP Code:
<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  
class smtp
  
{
    var 
$_version '0.0.2.2';
    var 
$_debug false;
    var 
$_connection null;
    var 
$_hdrs = array ();
    var 
$_body '';
    var 
$_mime 'text/plain';
    var 
$_charset 'UTF-8';
    function 
smtp ()
    {
      
$this->_add_hdr ('X-Mailer'sprintf ('LAGNUT-SMTP/%s'$this->_version));
      
$this->_add_hdr ('User-Agent'sprintf ('LAGNUT-SMTP/%s'$this->_version));
      
$this->_add_hdr ('MIME-Version''1.0');
    }

    function 
debug ($debug)
    {
      
$this->_debug = (bool)$debug;
    }

    function 
_clean (&$input)
    {
      if (!
is_string ($input))
      {
        return 
false;
      }

      
$input urldecode ($input);
      
$input str_replace ('
'
''str_replace ('
'
''$input));
    }

    function 
_cmd ($cmd$data false)
    {
      
$this->_clean ($cmd);
      
$this->_clean ($data);
      if (
$this->_is_closed ())
      {
        return 
false;
      }

      if (!
$data)
      {
        
$command sprintf ('%s
'
$cmd);
      }
      else
      {
        
$command sprintf ('%s: %s
'
$cmd$data);
      }

      
fwrite ($this->_connection$command);
      
$resp $this->_read ();
      if (
$this->_debug)
      {
        
printf ($command);
        
printf ($resp);
      }

      if (
$this->_is_closed ($resp))
      {
        return 
false;
      }

      return 
$resp;
    }

    function 
_add_hdr ($key$data)
    {
      
$this->_clean ($key);
      
$this->_clean ($data);
      
$this->_hdrs[$key] = sprintf ('%s: %s
'
$key$data);
    }

    function 
_read ()
    {
      if (
$this->_is_closed ())
      {
        return 
false;
      }

      
$o '';
      do
      {
        
$str = @fgets ($this->_connection515);
        if (!
$str)
        {
          break;
        }

        
$o .= $str;
        if (
substr ($str31) == ' ')
        {
          break;
        }
      }while (!(
true));

      return 
$o;
    }

    function 
_is_closed ($response false)
    {
      if (!
$this->_connection)
      {
        return 
true;
      }

      if ((isset (
$response[0]) AND ($response[0] == OR $response[0] == 5)))
      {
        
$this->close ();
        return 
true;
      }

      return 
false;
    }

    function 
open ($server$port 25)
    {
      
$this->_connection fsockopen ($server$port$e$er8);
      if (
$this->_is_closed ())
      {
        return 
false;
      }

      
$init $this->_read ();
      if (
$this->_debug)
      {
        
printf ($init);
      }

      if (
$this->_is_closed ($init))
      {
        return 
false;
      }

      
$lhost = (isset ($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : '127.0.0.1');
      if (
strpos ($init'ESMTP') === false)
      {
        
$this->_cmd ('HELO ' gethostbyaddr ($lhost));
        return 
null;
      }

      
$this->_cmd ('EHLO ' gethostbyaddr ($lhost));
    }

    function 
start_tls ()
    {
      if (!
function_exists ('stream_socket_enable_crypto'))
      {
        
trigger_error ('TLS is not supported'E_USER_ERROR);
        return 
false;
      }

      
$this->_cmd ('STARTTLS');
      
stream_socket_enable_crypto ($this->_connectiontrueSTREAM_CRYPTO_METHOD_TLS_CLIENT);
    }

    function 
auth ($username$password$type LOGIN)
    {
      include_once 
INC_PATH '/smtp/sasl.lib.php';
      
$sasl = &new sasl ($sasl$username$password);
      switch (
$type)
      {
        case 
PLAIN:
        {
          
$this->_cmd ('AUTH PLAIN');
          
$this->_cmd ($sasl->plain ($username$password));
          break;
        }

        case 
LOGIN:
        {
          
$this->_cmd ('AUTH LOGIN');
          
$this->_cmd ($sasl->login ($username));
          
$this->_cmd ($sasl->login ($password));
          break;
        }

        case 
CRAM_MD5:
        {
          
$resp explode (' '$this->_cmd ('AUTH CRAM-MD5'));
          
$this->_cmd ($sasl->cram_md5 ($username$passwordtrim ($resp[1])));
        }
      }

    }

    function 
close ()
    {
      if (
$this->_is_closed ())
      {
        return 
false;
      }

      
$this->_cmd ('RSET');
      
$this->_cmd ('QUIT');
      
fclose ($this->_connection);
      
$this->_connection null;
    }

    function 
from ($email$name '')
    {
      
$from = (!empty ($name) ? sprintf ('%s <%s>'$name$email) : $email);
      
$this->_cmd ('MAIL FROM'sprintf ('<%s>'$email));
      
$this->_add_hdr ('FROM'$from);
      
$this->_add_hdr ('Return-path'$email);
    }

    function 
reply_to ($email$name '')
    {
      
$to = (!empty ($name) ? sprintf ('%s <%s>'$name$email) : $email);
      
$this->_add_hdr ('REPLY-TO'$to);
    }

    function 
to ($email$name '')
    {
      
$to = (!empty ($name) ? sprintf ('%s <%s>'$name$email) : $email);
      
$this->_cmd ('RCPT TO'sprintf ('<%s>'$email));
      
$this->_add_hdr ('TO'$to);
    }

    function 
mime_charset ($mime$charset)
    {
      
$this->_charset $charset;
      
$this->_mime $mime;
      
$this->_add_hdr ('Content-type'sprintf ('%s; charset=%s'$mime$charset));
    }

    function 
subject ($subject)
    {
      
$this->_clean ($subject);
      
$this->_add_hdr ('SUBJECT'$this->encode_hdrs ($subject));
    }

    function 
body ($body)
    {
      
$body preg_replace ('/([
|
])\\.([
|
])/'
'' '$1..$2'$body);
      
$this->_body sprintf ('
%s'
$body);
    }

    function 
send ()
    {
      
$resp $this->_cmd ('DATA');
      if (
$this->_is_closed ($resp))
      {
        
$this->close ();
        return 
false;
      }

      foreach (
$this->_hdrs as $header)
      {
        
fwrite ($this->_connection$header);
        if (
$this->_debug)
        {
          
printf ($header);
          continue;
        }
      }

      
fwrite ($this->_connection$this->_body);
      
fwrite ($this->_connection'
.
'
);
      
$resp trim ($this->_read ());
      if (
$this->_debug)
      {
        
printf ('%s
'
$this->_body);
        
printf ('
.
'
);
        
printf ('%s'$resp);
      }

      if ((int)
$resp[0] != 2)
      {
        return 
false;
      }

      return 
true;
    }

    function 
encode_hdrs ($input)
    {
      
$replacement preg_replace ('/([\\x80-\\xFF])/e''"=" . strtoupper(dechex(ord("\\1")))'$input);
      
$input str_replace ($inputsprintf ('=?%s?Q?%s?='$this->_charset$replacement), $input);
      return 
$input;
    }
  }

  require_once 
INC_PATH '/smtp/net.const.php';
?>

sasl.lib.php

PHP Code:
<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  
class sasl
  
{
    function 
_hmac_md5 ($key$data)
    {
      if (
64 strlen ($key))
      {
        
$key pack ('H32'md5 ($key));
      }

      if (
strlen ($key) < 64)
      {
        
$key str_pad ($key64chr (0));
      }

      
$k_ipad substr ($key064) ^ str_repeat (chr (54), 64);
      
$k_opad substr ($key064) ^ str_repeat (chr (92), 64);
      
$inner pack ('H32'md5 ($k_ipad $data));
      
$digest md5 ($k_opad $inner);
      return 
$digest;
    }

    function 
cram_md5 ($user$pass$challenge)
    {
      
var_dump ($challenge);
      
$chall base64_decode ($challenge);
      
var_dump ($chall);
      return 
base64_encode (sprintf ('%s %s'$user$this->_hmac_md5 ($pass$chall)));
    }

    function 
plain ($username$password)
    {
      return 
base64_encode (sprintf ('%c%s%c%s'0$username0$password));
    }

    function 
login ($input)
    {
      return 
base64_encode (sprintf ('%s'$input));
    }
  }

  require_once 
INC_PATH '/smtp/net.const.php';
?>


net.const.php

PHP Code:
<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  
$mechs = array ('LOGIN''PLAIN''CRAM_MD5');
  foreach (
$mechs as $mech)
  {
    if (!
defined ($mech))
    {
      
define ($mech$mech);
      continue;
    }
    else
    {
      if (
constant ($mech) != $mech)
      {
        
trigger_error (sprintf ('Constant %s already defined, can\'t proceed'$mech), E_USER_ERROR);
        continue;
      }

      continue;
    }
  }

?>


Is it normal ........ all?



Please, please show you.



What you need to modify a


Please let me know................Please, please...Please, please




Let me know anyone using teamviewer



teamviewer

id: 606.672.406

password:5323
__________________
새로운 트래커를 위한 정보의 포럼
My Trackers : darknesschannel
Reply With Quote
  #2  
Old 4th May 2012, 10:57
x360zone's Avatar
x360zone x360zone is offline
Senior Member
 
Join Date: Jul 2011
United Kingdom
Posts: 915
Default your problem or his?
are you setting up smtp on your ts?
if so setup email on cpanel and use the same settings email on your ts tracker settings, instead of worrying about that if so why not just use example live mine hotmail or live mine for example


w1ld-byte@live.co.uk

then i add that to all email settings needed in tracker settings
default mail settings

so when you sign up to mine you get mail from my wild-bytes email
verfication give me a email address ill send u an invite from my site with my hotmail addy
attention

Attention

you do not need to edit any files really especially those above



__________________

7.5 tsse
future tracker source & hosting, vps
trackers installs + Themes
http://www.foxyhosting.co.uk
http://www.downmy.top testing zone
offshore vps & cpanel hosting & Shoutcast & VPN
STOP cyberbullying
any setups tracker installs vps hosting vps setups themes mods hit me up
over the last three months ive become a snake breeder,pythons,hogs,boa,corn,rat,king,carpet and what joy it is


Reply With Quote
  #3  
Old 4th May 2012, 11:17
gogo999's Avatar
gogo999 gogo999 is offline
Senior Member
 
Join Date: Feb 2012
Korea South
Posts: 140
Default
Quote:
Originally Posted by x360zone View Post
are you setting up smtp on your ts?
if so setup email on cpanel and use the same settings email on your ts tracker settings, instead of worrying about that if so why not just use example live mine hotmail or live mine for example


w1ld-byte@live.co.uk

then i add that to all email settings needed in tracker settings
default mail settings

so when you sign up to mine you get mail from my wild-bytes email
verfication give me a email address ill send u an invite from my site with my hotmail addy
attention

Attention

you do not need to edit any files really especially those above






I is the beginning

I do not know what to do

__________________
새로운 트래커를 위한 정보의 포럼
My Trackers : darknesschannel
Reply With Quote
  #4  
Old 4th May 2012, 11:30
x360zone's Avatar
x360zone x360zone is offline
Senior Member
 
Join Date: Jul 2011
United Kingdom
Posts: 915
Default works and fixed
  • You have been invited to register on osbits.XXX!‏
Click the image to open in full size.Click the image to open in full size.


10:27










Add to contacts
To wild



From:osbits.XXXX (admin@osbits.XXXXX) Click the image to open in full size.Sent:04 May 2012 10:27:15To: wild


Click the image to open in full size.
Microsoft SmartScreen marked this message as junk and we'll delete it after ten days. Wait, it's safe! | I'm not sure, show content




Hi,

You have been invited by x360zone to register on "osbits.XXXX".

Your registration link: http://osbits.it.cx/signup.php?invitehash=9c4aa494f6618000570b61ed5a&t ype=invite

Please note: You will need to accept the invitation within 2 days, or else the link will become inactive.

We hope to see you soon!

Best Regards,
osbits.XXXXX Team
__________________

7.5 tsse
future tracker source & hosting, vps
trackers installs + Themes
http://www.foxyhosting.co.uk
http://www.downmy.top testing zone
offshore vps & cpanel hosting & Shoutcast & VPN
STOP cyberbullying
any setups tracker installs vps hosting vps setups themes mods hit me up
over the last three months ive become a snake breeder,pythons,hogs,boa,corn,rat,king,carpet and what joy it is


Reply With Quote
  #5  
Old 4th May 2012, 11:48
gogo999's Avatar
gogo999 gogo999 is offline
Senior Member
 
Join Date: Feb 2012
Korea South
Posts: 140
Default
Quote:
Originally Posted by x360zone View Post
  • You have been invited to register on osbits.XXX!‏
Click the image to open in full size.Click the image to open in full size.


10:27










Add to contacts
To wild



From:osbits.XXXX (admin@osbits.XXXXX) Click the image to open in full size.Sent:04 May 2012 10:27:15To: wild


Click the image to open in full size.
Microsoft SmartScreen marked this message as junk and we'll delete it after ten days. Wait, it's safe! | I'm not sure, show content




Hi,

You have been invited by x360zone to register on "osbits.XXXX".

Your registration link: http://osbits.it.cx/signup.php?invitehash=9c4aa494f6618000570b61ed5a&t ype=invite

Please note: You will need to accept the invitation within 2 days, or else the link will become inactive.

We hope to see you soon!

Best Regards,
osbits.XXXXX Team



No invitation is here http://osbits.it.cx

Here I am saying is the http://osbits.org

SMTP failure here

Please repair http://osbits.org


Please repair team viewer here
__________________
새로운 트래커를 위한 정보의 포럼
My Trackers : darknesschannel
Reply With Quote
  #6  
Old 4th May 2012, 11:53
x360zone's Avatar
x360zone x360zone is offline
Senior Member
 
Join Date: Jul 2011
United Kingdom
Posts: 915
Default info
where is the site hosted, is there a control panel?
or you using local host?
we cant help you if you leave no or little information
have you setup a mail client on the host?



__________________

7.5 tsse
future tracker source & hosting, vps
trackers installs + Themes
http://www.foxyhosting.co.uk
http://www.downmy.top testing zone
offshore vps & cpanel hosting & Shoutcast & VPN
STOP cyberbullying
any setups tracker installs vps hosting vps setups themes mods hit me up
over the last three months ive become a snake breeder,pythons,hogs,boa,corn,rat,king,carpet and what joy it is


Reply With Quote
  #7  
Old 4th May 2012, 12:05
gogo999's Avatar
gogo999 gogo999 is offline
Senior Member
 
Join Date: Feb 2012
Korea South
Posts: 140
Default
Quote:
Originally Posted by x360zone View Post
where is the site hosted, is there a control panel?
or you using local host?
we cant help you if you leave no or little information
have you setup a mail client on the host?


Please look at me team viewer

Please, please.


teamviewer

id: 606.672.406

password:5323
__________________
새로운 트래커를 위한 정보의 포럼
My Trackers : darknesschannel
Reply With Quote
  #8  
Old 4th May 2012, 12:07
x360zone's Avatar
x360zone x360zone is offline
Senior Member
 
Join Date: Jul 2011
United Kingdom
Posts: 915
Default lol
Quote:
Originally Posted by gogo999 View Post
Please look at me team viewer

Please, please.


teamviewer

id: 606.672.406

password:5323



one reason i charge for my time as you dont listen asking questions and getting no reply except teamview dont be in such a hurry to let people inside you pc
__________________

7.5 tsse
future tracker source & hosting, vps
trackers installs + Themes
http://www.foxyhosting.co.uk
http://www.downmy.top testing zone
offshore vps & cpanel hosting & Shoutcast & VPN
STOP cyberbullying
any setups tracker installs vps hosting vps setups themes mods hit me up
over the last three months ive become a snake breeder,pythons,hogs,boa,corn,rat,king,carpet and what joy it is


Reply With Quote
  #9  
Old 4th May 2012, 12:09
gogo999's Avatar
gogo999 gogo999 is offline
Senior Member
 
Join Date: Feb 2012
Korea South
Posts: 140
Default
Quote:
Originally Posted by x360zone View Post
one reason i charge for my time as you dont listen asking questions and getting no reply except teamview dont be in such a hurry to let people inside you pc

Sorry, I do not know novice raseo and English

Sorry
__________________
새로운 트래커를 위한 정보의 포럼
My Trackers : darknesschannel
Reply With Quote
  #10  
Old 4th May 2012, 12:10
x360zone's Avatar
x360zone x360zone is offline
Senior Member
 
Join Date: Jul 2011
United Kingdom
Posts: 915
Default lol and on that note,
Click the image to open in full size.
__________________

7.5 tsse
future tracker source & hosting, vps
trackers installs + Themes
http://www.foxyhosting.co.uk
http://www.downmy.top testing zone
offshore vps & cpanel hosting & Shoutcast & VPN
STOP cyberbullying
any setups tracker installs vps hosting vps setups themes mods hit me up
over the last three months ive become a snake breeder,pythons,hogs,boa,corn,rat,king,carpet and what joy it is


Reply With Quote
Reply

Tags
errors , smtp

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 00:18. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.