Changeset 957 for trunk/wp-mail.php
- Timestamp:
- 03/01/2004 07:55:45 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-mail.php
r914 r957 11 11 $time_difference = get_settings('time_difference'); 12 12 13 if ( $use_phoneemail) {13 if (get_settings('use_phoneemail')) { 14 14 // if you're using phone email, the email will already be in your timezone 15 15 $time_difference = 0; … … 22 22 $pop3 = new POP3(); 23 23 24 if(!$pop3->connect( $mailserver_url, $mailserver_port)) {24 if(!$pop3->connect(get_settings('mailserver_url'), get_settings('mailserver_port'))) { 25 25 echo "Ooops $pop3->ERROR <br />\n"; 26 26 exit; 27 27 } 28 28 29 $Count = $pop3->login( $mailserver_login, $mailserver_pass);29 $Count = $pop3->login(get_settings('mailserver_login'), get_settings('mailserver_pass')); 30 30 if((!$Count) || ($Count == -1)) { 31 31 echo "<h1>Login Failed: $pop3->ERROR</h1>\n"; … … 77 77 $subject = wp_iso_descrambler($subject); 78 78 } 79 if ( $use_phoneemail) {80 $subject = explode( $phoneemail_separator, $subject);79 if (get_settings('use_phoneemail')) { 80 $subject = explode(get_settings('phoneemail_separator'), $subject); 81 81 $subject = trim($subject[0]); 82 82 } 83 if (!ereg( $subjectprefix, $subject)) {83 if (!ereg(get_settings('subjectprefix'), $subject)) { 84 84 continue; 85 85 } … … 125 125 } 126 126 127 if (preg_match('/'. $subjectprefix.'/', $subject)) {127 if (preg_match('/'.get_settings('subjectprefix').'/', $subject)) { 128 128 129 129 $userpassstring = ''; … … 132 132 echo "<p><b>$iCount</b></p><p><b>Subject: </b>$subject</p>\n"; 133 133 134 $subject = trim(str_replace( $subjectprefix, '', $subject));134 $subject = trim(str_replace(get_settings('subjectprefix'), '', $subject)); 135 135 136 136 if ($content_type == 'multipart/alternative') { … … 145 145 echo "<p><b>Raw content:</b><br /><pre>".$content.'</pre></p>'; 146 146 147 $btpos = strpos($content, $bodyterminator);147 $btpos = strpos($content, get_settings('bodyterminator')); 148 148 if ($btpos) { 149 149 $content = substr($content, 0, $btpos); … … 155 155 $secondline = $blah[1]; 156 156 157 if ( $use_phoneemail) {158 $btpos = strpos($firstline, $phoneemail_separator);157 if (get_settings('use_phoneemail')) { 158 $btpos = strpos($firstline, get_settings('phoneemail_separator')); 159 159 if ($btpos) { 160 160 $userpassstring = trim(substr($firstline, 0, $btpos)); 161 $content = trim(substr($content, $btpos+strlen( $phoneemail_separator), strlen($content)));162 $btpos = strpos($content, $phoneemail_separator);161 $content = trim(substr($content, $btpos+strlen(get_settings('phoneemail_separator')), strlen($content))); 162 $btpos = strpos($content, get_settings('phoneemail_separator')); 163 163 if ($btpos) { 164 164 $userpassstring = trim(substr($content, 0, $btpos)); 165 $content = trim(substr($content, $btpos+strlen( $phoneemail_separator), strlen($content)));165 $content = trim(substr($content, $btpos+strlen(get_settings('phoneemail_separator')), strlen($content))); 166 166 } 167 167 } … … 219 219 } 220 220 if (empty($post_categories)) { 221 $post_categories[] = $default_category;221 $post_categories[] = get_settings('default_category'); 222 222 } 223 223
Note: See TracChangeset
for help on using the changeset viewer.