Changeset 7838

Show
Ignore:
Timestamp:
02/06/07 16:00:23 (1 year ago)
Author:
GamerZ
Message:

Suppress gethostbyaddr() Error

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-email/trunk/email/email.php

    r7754 r7838  
    44Plugin URI: http://www.lesterchan.net/portfolio/programming.php 
    55Description: Allows people to recommand/send your WordPress blog's post/page to a friend. 
    6 Version: 2.10 
     6Version: 2.11 
    77Author: GaMerZ 
    88Author URI: http://www.lesterchan.net 
     
    338338      $current_time = current_time('timestamp'); 
    339339      $email_ip = get_email_ipaddress(); 
    340       $email_host = gethostbyaddr($email_ip); 
     340      $email_host = @gethostbyaddr($email_ip); 
    341341      $email_status = __('Success', 'wp-email'); 
    342342      $last_emailed = $wpdb->get_var("SELECT email_timestamp FROM $wpdb->email WHERE email_ip = '$email_ip' AND email_host = '$email_host' AND email_status = '$email_status' ORDER BY email_timestamp DESC LIMIT 1"); 
     
    755755                  $email_timestamp = current_time('timestamp'); 
    756756                  $email_ip = get_email_ipaddress(); 
    757                   $email_host = gethostbyaddr($email_ip); 
     757                  $email_host = @gethostbyaddr($email_ip); 
    758758                  foreach($friends as $friend) { 
    759759                        $email_friendname = addslashes($friend['name']); 
  • wp-email/trunk/readme.html

    r7717 r7838  
    33<head>       
    44      <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    5       <title>WP-EMail 2.10 Readme</title> 
     5      <title>WP-EMail 2.11 Readme</title> 
    66      <style type="text/css" media="screen"> 
    77            /* Default Style */ 
     
    204204<div id="Container"> 
    205205      <!-- Title --> 
    206       <div id="Title">WP-EMail 2.10&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
     206      <div id="Title">WP-EMail 2.11&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
    207207 
    208208      <!-- Tabs --> 
     
    230230                        <script type="text/javascript"> 
    231231                              /* <![CDATA[*/ 
    232                               document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-EMail%202.10%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>'); 
     232                              document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-EMail%202.11%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>'); 
    233233                              /* ]]> */ 
    234234                        </script> 
     
    244244                  <p> 
    245245                        <b>Download:</b><br /> 
    246                         <b>&raquo;</b> <a href="http://www.lesterchan.net/others/downloads.php?id=13" title="http://www.lesterchan.net/others/downloads.php?id=13">WP-EMail 2.10 For WordPress 2.1.x</a><br /> 
     246                        <b>&raquo;</b> <a href="http://www.lesterchan.net/others/downloads.php?id=13" title="http://www.lesterchan.net/others/downloads.php?id=13">WP-EMail 2.11 For WordPress 2.1.x</a><br /> 
    247247                        <b>&raquo;</b> <a href="http://www.lesterchan.net/others/downloads/wp-email207.zip" title="http://www.lesterchan.net/others/downloads/wp-email207.zip">WP-EMail 2.07 For WordPress 2.0.x</a><br /> 
    248248                        <b>&raquo;</b> <a href="http://www.lesterchan.net/others/downloads/wp-email200b.zip" title="http://www.lesterchan.net/others/downloads/wp-email200b.zip">WP-EMail 2.00b For WordPress 1.5.2</a> 
     
    266266                  <p> 
    267267                        <b>Updated:</b><br /> 
    268                         <b>&raquo;</b> 1st Februrary 2007 
     268                        <b>&raquo;</b> 1st May 2007 
    269269                  </p> 
    270270                  <p> 
     
    288288                  <div class="SubTitle">&raquo; Changelog</div> 
    289289                  <ul> 
     290                        <li> 
     291                              <b>Version 2.11 (01-05-2007)</b> 
     292                              <ul> 
     293                                    <li>FIXED: Suppress gethostbyaddr() Error</li> 
     294                              </ul> 
     295                        </li> 
    290296                        <li> 
    291297                              <b>Version 2.10 (01-02-2007)</b> 
     
    451457            <div id="Upgrade" style="display: none;"> 
    452458                  <div class="SubTitle">&raquo; Upgrade Instructions</div> 
    453                   <div class="SubSubTitle">From v2.0x To v2.10</div> 
     459                  <div class="SubSubTitle">From v2.0x To v2.11</div> 
    454460                  <ol> 
    455461                        <li> 
     
    554560                  <div class="SubSubTitle">Note</div> 
    555561                  <ul> 
    556                         <li>If WP-EMail 2.10 does not work for you (404 error even after re-generating of permalink), please drop me an email with page.php of your theme attached to it. The problem is due to your theme is using an outdated method of getting/display posts/pages.</li> 
     562                        <li>If WP-EMail 2.11 does not work for you (404 error even after re-generating of permalink), please drop me an email with page.php of your theme attached to it. The problem is due to your theme is using an outdated method of getting/display posts/pages.</li> 
    557563                  </ul> 
    558564                  <ul> 
     
    582588      </div> 
    583589</div> 
    584 <p id="Copyright">WP-EMail 2.10<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
     590<p id="Copyright">WP-EMail 2.11<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
    585591</body> 
    586592</html>