@@ -134,7 +134,7 @@ |
||
134 | 134 | */ |
135 | 135 | function quotes_to_entities($str) |
136 | 136 | { |
137 | - return str_replace(array("\'","\"","'",'"'), array("'",""","'","""), $str); |
|
137 | + return str_replace(array("\'", "\"", "'", '"'), array("'", """, "'", """), $str); |
|
138 | 138 | } |
139 | 139 | } |
140 | 140 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | function nl2br_except_pre($str) |
61 | 61 | { |
62 | - $CI =& get_instance(); |
|
62 | + $CI = & get_instance(); |
|
63 | 63 | $CI->load->library('typography'); |
64 | 64 | return $CI->typography->nl2br_except_pre($str); |
65 | 65 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | function auto_typography($str, $reduce_linebreaks = FALSE) |
80 | 80 | { |
81 | - $CI =& get_instance(); |
|
81 | + $CI = & get_instance(); |
|
82 | 82 | $CI->load->library('typography'); |
83 | 83 | return $CI->typography->auto_typography($str, $reduce_linebreaks); |
84 | 84 | } |
@@ -76,12 +76,12 @@ discard block |
||
76 | 76 | $lang['UP45'] = '(UTC +4:30) Afghanistan'; |
77 | 77 | $lang['UP5'] = '(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time'; |
78 | 78 | $lang['UP55'] = '(UTC +5:30) Indian Standard Time, Sri Lanka Time'; |
79 | -$lang['UP575'] = '(UTC +5:45) Nepal Time'; |
|
79 | +$lang['UP575'] = '(UTC +5:45) Nepal Time'; |
|
80 | 80 | $lang['UP6'] = '(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time'; |
81 | 81 | $lang['UP65'] = '(UTC +6:30) Cocos Islands, Myanmar'; |
82 | 82 | $lang['UP7'] = '(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam'; |
83 | 83 | $lang['UP8'] = '(UTC +8:00) Australian Western Standard Time, Beijing Time, Irkutsk Time'; |
84 | -$lang['UP875'] = '(UTC +8:45) Australian Central Western Standard Time'; |
|
84 | +$lang['UP875'] = '(UTC +8:45) Australian Central Western Standard Time'; |
|
85 | 85 | $lang['UP9'] = '(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk Time'; |
86 | 86 | $lang['UP95'] = '(UTC +9:30) Australian Central Standard Time'; |
87 | 87 | $lang['UP10'] = '(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time'; |
@@ -89,6 +89,6 @@ discard block |
||
89 | 89 | $lang['UP11'] = '(UTC +11:00) Srednekolymsk Time, Solomon Islands, Vanuatu'; |
90 | 90 | $lang['UP115'] = '(UTC +11:30) Norfolk Island'; |
91 | 91 | $lang['UP12'] = '(UTC +12:00) Fiji, Gilbert Islands, Kamchatka Time, New Zealand Standard Time'; |
92 | -$lang['UP1275'] = '(UTC +12:45) Chatham Islands Standard Time'; |
|
92 | +$lang['UP1275'] = '(UTC +12:45) Chatham Islands Standard Time'; |
|
93 | 93 | $lang['UP13'] = '(UTC +13:00) Samoa Time Zone, Phoenix Islands Time, Tonga'; |
94 | 94 | $lang['UP14'] = '(UTC +14:00) Line Islands'; |
@@ -37,32 +37,32 @@ |
||
37 | 37 | */ |
38 | 38 | defined('BASEPATH') OR exit('No direct script access allowed'); |
39 | 39 | |
40 | -$lang['form_validation_required'] = 'The {field} field is required.'; |
|
41 | -$lang['form_validation_isset'] = 'The {field} field must have a value.'; |
|
42 | -$lang['form_validation_valid_email'] = 'The {field} field must contain a valid email address.'; |
|
43 | -$lang['form_validation_valid_emails'] = 'The {field} field must contain all valid email addresses.'; |
|
44 | -$lang['form_validation_valid_url'] = 'The {field} field must contain a valid URL.'; |
|
45 | -$lang['form_validation_valid_ip'] = 'The {field} field must contain a valid IP.'; |
|
40 | +$lang['form_validation_required'] = 'The {field} field is required.'; |
|
41 | +$lang['form_validation_isset'] = 'The {field} field must have a value.'; |
|
42 | +$lang['form_validation_valid_email'] = 'The {field} field must contain a valid email address.'; |
|
43 | +$lang['form_validation_valid_emails'] = 'The {field} field must contain all valid email addresses.'; |
|
44 | +$lang['form_validation_valid_url'] = 'The {field} field must contain a valid URL.'; |
|
45 | +$lang['form_validation_valid_ip'] = 'The {field} field must contain a valid IP.'; |
|
46 | 46 | $lang['form_validation_min_length'] = 'The {field} field must be at least {param} characters in length.'; |
47 | 47 | $lang['form_validation_max_length'] = 'The {field} field cannot exceed {param} characters in length.'; |
48 | -$lang['form_validation_exact_length'] = 'The {field} field must be exactly {param} characters in length.'; |
|
49 | -$lang['form_validation_alpha'] = 'The {field} field may only contain alphabetical characters.'; |
|
50 | -$lang['form_validation_alpha_numeric'] = 'The {field} field may only contain alpha-numeric characters.'; |
|
51 | -$lang['form_validation_alpha_numeric_spaces'] = 'The {field} field may only contain alpha-numeric characters and spaces.'; |
|
48 | +$lang['form_validation_exact_length'] = 'The {field} field must be exactly {param} characters in length.'; |
|
49 | +$lang['form_validation_alpha'] = 'The {field} field may only contain alphabetical characters.'; |
|
50 | +$lang['form_validation_alpha_numeric'] = 'The {field} field may only contain alpha-numeric characters.'; |
|
51 | +$lang['form_validation_alpha_numeric_spaces'] = 'The {field} field may only contain alpha-numeric characters and spaces.'; |
|
52 | 52 | $lang['form_validation_alpha_dash'] = 'The {field} field may only contain alpha-numeric characters, underscores, and dashes.'; |
53 | 53 | $lang['form_validation_numeric'] = 'The {field} field must contain only numbers.'; |
54 | 54 | $lang['form_validation_is_numeric'] = 'The {field} field must contain only numeric characters.'; |
55 | 55 | $lang['form_validation_integer'] = 'The {field} field must contain an integer.'; |
56 | -$lang['form_validation_regex_match'] = 'The {field} field is not in the correct format.'; |
|
56 | +$lang['form_validation_regex_match'] = 'The {field} field is not in the correct format.'; |
|
57 | 57 | $lang['form_validation_matches'] = 'The {field} field does not match the {param} field.'; |
58 | 58 | $lang['form_validation_differs'] = 'The {field} field must differ from the {param} field.'; |
59 | 59 | $lang['form_validation_is_unique'] = 'The {field} field must contain a unique value.'; |
60 | 60 | $lang['form_validation_is_natural'] = 'The {field} field must only contain digits.'; |
61 | 61 | $lang['form_validation_is_natural_no_zero'] = 'The {field} field must only contain digits and must be greater than zero.'; |
62 | -$lang['form_validation_decimal'] = 'The {field} field must contain a decimal number.'; |
|
63 | -$lang['form_validation_less_than'] = 'The {field} field must contain a number less than {param}.'; |
|
62 | +$lang['form_validation_decimal'] = 'The {field} field must contain a decimal number.'; |
|
63 | +$lang['form_validation_less_than'] = 'The {field} field must contain a number less than {param}.'; |
|
64 | 64 | $lang['form_validation_less_than_equal_to'] = 'The {field} field must contain a number less than or equal to {param}.'; |
65 | -$lang['form_validation_greater_than'] = 'The {field} field must contain a number greater than {param}.'; |
|
65 | +$lang['form_validation_greater_than'] = 'The {field} field must contain a number greater than {param}.'; |
|
66 | 66 | $lang['form_validation_greater_than_equal_to'] = 'The {field} field must contain a number greater than or equal to {param}.'; |
67 | 67 | $lang['form_validation_error_message_not_set'] = 'Unable to access an error message corresponding to your field name {field}.'; |
68 | -$lang['form_validation_in_list'] = 'The {field} field must be one of: {param}.'; |
|
68 | +$lang['form_validation_in_list'] = 'The {field} field must be one of: {param}.'; |
@@ -37,8 +37,8 @@ |
||
37 | 37 | */ |
38 | 38 | defined('BASEPATH') OR exit('No direct script access allowed'); |
39 | 39 | |
40 | -$lang['ftp_no_connection'] = 'Unable to locate a valid connection ID. Please make sure you are connected before performing any file routines.'; |
|
41 | -$lang['ftp_unable_to_connect'] = 'Unable to connect to your FTP server using the supplied hostname.'; |
|
40 | +$lang['ftp_no_connection'] = 'Unable to locate a valid connection ID. Please make sure you are connected before performing any file routines.'; |
|
41 | +$lang['ftp_unable_to_connect'] = 'Unable to connect to your FTP server using the supplied hostname.'; |
|
42 | 42 | $lang['ftp_unable_to_login'] = 'Unable to login to your FTP server. Please check your username and password.'; |
43 | 43 | $lang['ftp_unable_to_mkdir'] = 'Unable to create the directory you have specified.'; |
44 | 44 | $lang['ftp_unable_to_changedir'] = 'Unable to change directories.'; |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | public function __construct($config = array()) |
131 | 131 | { |
132 | - $this->CI =& get_instance(); |
|
132 | + $this->CI = & get_instance(); |
|
133 | 133 | $this->CI->lang->load('calendar'); |
134 | 134 | |
135 | 135 | empty($config) OR $this->initialize($config); |
@@ -205,15 +205,15 @@ discard block |
||
205 | 205 | |
206 | 206 | $adjusted_date = $this->adjust_date($month, $year); |
207 | 207 | |
208 | - $month = $adjusted_date['month']; |
|
209 | - $year = $adjusted_date['year']; |
|
208 | + $month = $adjusted_date['month']; |
|
209 | + $year = $adjusted_date['year']; |
|
210 | 210 | |
211 | 211 | // Determine the total days in the month |
212 | 212 | $total_days = $this->get_total_days($month, $year); |
213 | 213 | |
214 | 214 | // Set the starting day of the week |
215 | 215 | $start_days = array('sunday' => 0, 'monday' => 1, 'tuesday' => 2, 'wednesday' => 3, 'thursday' => 4, 'friday' => 5, 'saturday' => 6); |
216 | - $start_day = isset($start_days[$this->start_day]) ? $start_days[$this->start_day] : 0; |
|
216 | + $start_day = isset($start_days[$this->start_day]) ? $start_days[$this->start_day] : 0; |
|
217 | 217 | |
218 | 218 | // Set the starting day number |
219 | 219 | $local_date = mktime(12, 0, 0, $month, 1, $year); |
@@ -227,9 +227,9 @@ discard block |
||
227 | 227 | |
228 | 228 | // Set the current month/year/day |
229 | 229 | // We use this to determine the "today" date |
230 | - $cur_year = date('Y', $local_time); |
|
231 | - $cur_month = date('m', $local_time); |
|
232 | - $cur_day = date('j', $local_time); |
|
230 | + $cur_year = date('Y', $local_time); |
|
231 | + $cur_month = date('m', $local_time); |
|
232 | + $cur_day = date('j', $local_time); |
|
233 | 233 | |
234 | 234 | $is_current_month = ($cur_year == $year && $cur_month == $month); |
235 | 235 | |
@@ -270,9 +270,9 @@ discard block |
||
270 | 270 | |
271 | 271 | $day_names = $this->get_day_names(); |
272 | 272 | |
273 | - for ($i = 0; $i < 7; $i ++) |
|
273 | + for ($i = 0; $i < 7; $i++) |
|
274 | 274 | { |
275 | - $out .= str_replace('{week_day}', $day_names[($start_day + $i) %7], $this->replacements['week_day_cell']); |
|
275 | + $out .= str_replace('{week_day}', $day_names[($start_day + $i) % 7], $this->replacements['week_day_cell']); |
|
276 | 276 | } |
277 | 277 | |
278 | 278 | $out .= "\n".$this->replacements['week_row_end']."\n"; |
@@ -423,8 +423,8 @@ discard block |
||
423 | 423 | { |
424 | 424 | $date = array(); |
425 | 425 | |
426 | - $date['month'] = $month; |
|
427 | - $date['year'] = $year; |
|
426 | + $date['month'] = $month; |
|
427 | + $date['year'] = $year; |
|
428 | 428 | |
429 | 429 | while ($date['month'] > 12) |
430 | 430 | { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | public function __construct($params = array()) |
100 | 100 | { |
101 | 101 | // Set the super object to a local variable for use later |
102 | - $this->CI =& get_instance(); |
|
102 | + $this->CI = & get_instance(); |
|
103 | 103 | |
104 | 104 | // Are any config settings being passed manually? If so, set them |
105 | 105 | $config = is_array($params) ? $params : array(); |
@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | */ |
547 | 547 | public function format_number($n = '') |
548 | 548 | { |
549 | - return ($n === '') ? '' : number_format( (float) $n, 2, '.', ','); |
|
549 | + return ($n === '') ? '' : number_format((float) $n, 2, '.', ','); |
|
550 | 550 | } |
551 | 551 | |
552 | 552 | // -------------------------------------------------------------------- |
@@ -55,77 +55,77 @@ discard block |
||
55 | 55 | * |
56 | 56 | * @var string |
57 | 57 | */ |
58 | - public $useragent = 'CodeIgniter'; |
|
58 | + public $useragent = 'CodeIgniter'; |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * Path to the Sendmail binary. |
62 | 62 | * |
63 | 63 | * @var string |
64 | 64 | */ |
65 | - public $mailpath = '/usr/sbin/sendmail'; // Sendmail path |
|
65 | + public $mailpath = '/usr/sbin/sendmail'; // Sendmail path |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Which method to use for sending e-mails. |
69 | 69 | * |
70 | 70 | * @var string 'mail', 'sendmail' or 'smtp' |
71 | 71 | */ |
72 | - public $protocol = 'mail'; // mail/sendmail/smtp |
|
72 | + public $protocol = 'mail'; // mail/sendmail/smtp |
|
73 | 73 | |
74 | 74 | /** |
75 | 75 | * STMP Server host |
76 | 76 | * |
77 | 77 | * @var string |
78 | 78 | */ |
79 | - public $smtp_host = ''; |
|
79 | + public $smtp_host = ''; |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * SMTP Username |
83 | 83 | * |
84 | 84 | * @var string |
85 | 85 | */ |
86 | - public $smtp_user = ''; |
|
86 | + public $smtp_user = ''; |
|
87 | 87 | |
88 | 88 | /** |
89 | 89 | * SMTP Password |
90 | 90 | * |
91 | 91 | * @var string |
92 | 92 | */ |
93 | - public $smtp_pass = ''; |
|
93 | + public $smtp_pass = ''; |
|
94 | 94 | |
95 | 95 | /** |
96 | 96 | * SMTP Server port |
97 | 97 | * |
98 | 98 | * @var int |
99 | 99 | */ |
100 | - public $smtp_port = 25; |
|
100 | + public $smtp_port = 25; |
|
101 | 101 | |
102 | 102 | /** |
103 | 103 | * SMTP connection timeout in seconds |
104 | 104 | * |
105 | 105 | * @var int |
106 | 106 | */ |
107 | - public $smtp_timeout = 5; |
|
107 | + public $smtp_timeout = 5; |
|
108 | 108 | |
109 | 109 | /** |
110 | 110 | * SMTP persistent connection |
111 | 111 | * |
112 | 112 | * @var bool |
113 | 113 | */ |
114 | - public $smtp_keepalive = FALSE; |
|
114 | + public $smtp_keepalive = FALSE; |
|
115 | 115 | |
116 | 116 | /** |
117 | 117 | * SMTP Encryption |
118 | 118 | * |
119 | 119 | * @var string empty, 'tls' or 'ssl' |
120 | 120 | */ |
121 | - public $smtp_crypto = ''; |
|
121 | + public $smtp_crypto = ''; |
|
122 | 122 | |
123 | 123 | /** |
124 | 124 | * Whether to apply word-wrapping to the message body. |
125 | 125 | * |
126 | 126 | * @var bool |
127 | 127 | */ |
128 | - public $wordwrap = TRUE; |
|
128 | + public $wordwrap = TRUE; |
|
129 | 129 | |
130 | 130 | /** |
131 | 131 | * Number of characters to wrap at. |
@@ -133,49 +133,49 @@ discard block |
||
133 | 133 | * @see CI_Email::$wordwrap |
134 | 134 | * @var int |
135 | 135 | */ |
136 | - public $wrapchars = 76; |
|
136 | + public $wrapchars = 76; |
|
137 | 137 | |
138 | 138 | /** |
139 | 139 | * Message format. |
140 | 140 | * |
141 | 141 | * @var string 'text' or 'html' |
142 | 142 | */ |
143 | - public $mailtype = 'text'; |
|
143 | + public $mailtype = 'text'; |
|
144 | 144 | |
145 | 145 | /** |
146 | 146 | * Character set (default: utf-8) |
147 | 147 | * |
148 | 148 | * @var string |
149 | 149 | */ |
150 | - public $charset = 'utf-8'; |
|
150 | + public $charset = 'utf-8'; |
|
151 | 151 | |
152 | 152 | /** |
153 | 153 | * Multipart message |
154 | 154 | * |
155 | 155 | * @var string 'mixed' (in the body) or 'related' (separate) |
156 | 156 | */ |
157 | - public $multipart = 'mixed'; // "mixed" (in the body) or "related" (separate) |
|
157 | + public $multipart = 'mixed'; // "mixed" (in the body) or "related" (separate) |
|
158 | 158 | |
159 | 159 | /** |
160 | 160 | * Alternative message (for HTML messages only) |
161 | 161 | * |
162 | 162 | * @var string |
163 | 163 | */ |
164 | - public $alt_message = ''; |
|
164 | + public $alt_message = ''; |
|
165 | 165 | |
166 | 166 | /** |
167 | 167 | * Whether to validate e-mail addresses. |
168 | 168 | * |
169 | 169 | * @var bool |
170 | 170 | */ |
171 | - public $validate = FALSE; |
|
171 | + public $validate = FALSE; |
|
172 | 172 | |
173 | 173 | /** |
174 | 174 | * X-Priority header value. |
175 | 175 | * |
176 | 176 | * @var int 1-5 |
177 | 177 | */ |
178 | - public $priority = 3; // Default priority (1 - 5) |
|
178 | + public $priority = 3; // Default priority (1 - 5) |
|
179 | 179 | |
180 | 180 | /** |
181 | 181 | * Newline character sequence. |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * @link http://www.ietf.org/rfc/rfc822.txt |
185 | 185 | * @var string "\r\n" or "\n" |
186 | 186 | */ |
187 | - public $newline = "\n"; // Default newline. "\r\n" or "\n" (Use "\r\n" to comply with RFC 822) |
|
187 | + public $newline = "\n"; // Default newline. "\r\n" or "\n" (Use "\r\n" to comply with RFC 822) |
|
188 | 188 | |
189 | 189 | /** |
190 | 190 | * CRLF character sequence |
@@ -198,14 +198,14 @@ discard block |
||
198 | 198 | * @link http://www.ietf.org/rfc/rfc822.txt |
199 | 199 | * @var string |
200 | 200 | */ |
201 | - public $crlf = "\n"; |
|
201 | + public $crlf = "\n"; |
|
202 | 202 | |
203 | 203 | /** |
204 | 204 | * Whether to use Delivery Status Notification. |
205 | 205 | * |
206 | 206 | * @var bool |
207 | 207 | */ |
208 | - public $dsn = FALSE; |
|
208 | + public $dsn = FALSE; |
|
209 | 209 | |
210 | 210 | /** |
211 | 211 | * Whether to send multipart alternatives. |
@@ -213,14 +213,14 @@ discard block |
||
213 | 213 | * |
214 | 214 | * @var bool |
215 | 215 | */ |
216 | - public $send_multipart = TRUE; |
|
216 | + public $send_multipart = TRUE; |
|
217 | 217 | |
218 | 218 | /** |
219 | 219 | * Whether to send messages to BCC recipients in batches. |
220 | 220 | * |
221 | 221 | * @var bool |
222 | 222 | */ |
223 | - public $bcc_batch_mode = FALSE; |
|
223 | + public $bcc_batch_mode = FALSE; |
|
224 | 224 | |
225 | 225 | /** |
226 | 226 | * BCC Batch max number size. |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | * @see CI_Email::$bcc_batch_mode |
229 | 229 | * @var int |
230 | 230 | */ |
231 | - public $bcc_batch_size = 200; |
|
231 | + public $bcc_batch_size = 200; |
|
232 | 232 | |
233 | 233 | // -------------------------------------------------------------------- |
234 | 234 | |
@@ -237,77 +237,77 @@ discard block |
||
237 | 237 | * |
238 | 238 | * @var bool |
239 | 239 | */ |
240 | - protected $_safe_mode = FALSE; |
|
240 | + protected $_safe_mode = FALSE; |
|
241 | 241 | |
242 | 242 | /** |
243 | 243 | * Subject header |
244 | 244 | * |
245 | 245 | * @var string |
246 | 246 | */ |
247 | - protected $_subject = ''; |
|
247 | + protected $_subject = ''; |
|
248 | 248 | |
249 | 249 | /** |
250 | 250 | * Message body |
251 | 251 | * |
252 | 252 | * @var string |
253 | 253 | */ |
254 | - protected $_body = ''; |
|
254 | + protected $_body = ''; |
|
255 | 255 | |
256 | 256 | /** |
257 | 257 | * Final message body to be sent. |
258 | 258 | * |
259 | 259 | * @var string |
260 | 260 | */ |
261 | - protected $_finalbody = ''; |
|
261 | + protected $_finalbody = ''; |
|
262 | 262 | |
263 | 263 | /** |
264 | 264 | * multipart/alternative boundary |
265 | 265 | * |
266 | 266 | * @var string |
267 | 267 | */ |
268 | - protected $_alt_boundary = ''; |
|
268 | + protected $_alt_boundary = ''; |
|
269 | 269 | |
270 | 270 | /** |
271 | 271 | * Attachment boundary |
272 | 272 | * |
273 | 273 | * @var string |
274 | 274 | */ |
275 | - protected $_atc_boundary = ''; |
|
275 | + protected $_atc_boundary = ''; |
|
276 | 276 | |
277 | 277 | /** |
278 | 278 | * Final headers to send |
279 | 279 | * |
280 | 280 | * @var string |
281 | 281 | */ |
282 | - protected $_header_str = ''; |
|
282 | + protected $_header_str = ''; |
|
283 | 283 | |
284 | 284 | /** |
285 | 285 | * SMTP Connection socket placeholder |
286 | 286 | * |
287 | 287 | * @var resource |
288 | 288 | */ |
289 | - protected $_smtp_connect = ''; |
|
289 | + protected $_smtp_connect = ''; |
|
290 | 290 | |
291 | 291 | /** |
292 | 292 | * Mail encoding |
293 | 293 | * |
294 | 294 | * @var string '8bit' or '7bit' |
295 | 295 | */ |
296 | - protected $_encoding = '8bit'; |
|
296 | + protected $_encoding = '8bit'; |
|
297 | 297 | |
298 | 298 | /** |
299 | 299 | * Whether to perform SMTP authentication |
300 | 300 | * |
301 | 301 | * @var bool |
302 | 302 | */ |
303 | - protected $_smtp_auth = FALSE; |
|
303 | + protected $_smtp_auth = FALSE; |
|
304 | 304 | |
305 | 305 | /** |
306 | 306 | * Whether to send a Reply-To header |
307 | 307 | * |
308 | 308 | * @var bool |
309 | 309 | */ |
310 | - protected $_replyto_flag = FALSE; |
|
310 | + protected $_replyto_flag = FALSE; |
|
311 | 311 | |
312 | 312 | /** |
313 | 313 | * Debug messages |
@@ -315,42 +315,42 @@ discard block |
||
315 | 315 | * @see CI_Email::print_debugger() |
316 | 316 | * @var string |
317 | 317 | */ |
318 | - protected $_debug_msg = array(); |
|
318 | + protected $_debug_msg = array(); |
|
319 | 319 | |
320 | 320 | /** |
321 | 321 | * Recipients |
322 | 322 | * |
323 | 323 | * @var string[] |
324 | 324 | */ |
325 | - protected $_recipients = array(); |
|
325 | + protected $_recipients = array(); |
|
326 | 326 | |
327 | 327 | /** |
328 | 328 | * CC Recipients |
329 | 329 | * |
330 | 330 | * @var string[] |
331 | 331 | */ |
332 | - protected $_cc_array = array(); |
|
332 | + protected $_cc_array = array(); |
|
333 | 333 | |
334 | 334 | /** |
335 | 335 | * BCC Recipients |
336 | 336 | * |
337 | 337 | * @var string[] |
338 | 338 | */ |
339 | - protected $_bcc_array = array(); |
|
339 | + protected $_bcc_array = array(); |
|
340 | 340 | |
341 | 341 | /** |
342 | 342 | * Message headers |
343 | 343 | * |
344 | 344 | * @var string[] |
345 | 345 | */ |
346 | - protected $_headers = array(); |
|
346 | + protected $_headers = array(); |
|
347 | 347 | |
348 | 348 | /** |
349 | 349 | * Attachment data |
350 | 350 | * |
351 | 351 | * @var array |
352 | 352 | */ |
353 | - protected $_attachments = array(); |
|
353 | + protected $_attachments = array(); |
|
354 | 354 | |
355 | 355 | /** |
356 | 356 | * Valid $protocol values |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | * @see CI_Email::$protocol |
359 | 359 | * @var string[] |
360 | 360 | */ |
361 | - protected $_protocols = array('mail', 'sendmail', 'smtp'); |
|
361 | + protected $_protocols = array('mail', 'sendmail', 'smtp'); |
|
362 | 362 | |
363 | 363 | /** |
364 | 364 | * Base charsets |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | * |
369 | 369 | * @var string[] |
370 | 370 | */ |
371 | - protected $_base_charsets = array('us-ascii', 'iso-2022-'); |
|
371 | + protected $_base_charsets = array('us-ascii', 'iso-2022-'); |
|
372 | 372 | |
373 | 373 | /** |
374 | 374 | * Bit depths |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | * @see CI_Email::$_encoding |
379 | 379 | * @var string[] |
380 | 380 | */ |
381 | - protected $_bit_depths = array('7bit', '8bit'); |
|
381 | + protected $_bit_depths = array('7bit', '8bit'); |
|
382 | 382 | |
383 | 383 | /** |
384 | 384 | * $priority translations |
@@ -482,11 +482,11 @@ discard block |
||
482 | 482 | */ |
483 | 483 | public function clear($clear_attachments = FALSE) |
484 | 484 | { |
485 | - $this->_subject = ''; |
|
486 | - $this->_body = ''; |
|
487 | - $this->_finalbody = ''; |
|
485 | + $this->_subject = ''; |
|
486 | + $this->_body = ''; |
|
487 | + $this->_finalbody = ''; |
|
488 | 488 | $this->_header_str = ''; |
489 | - $this->_replyto_flag = FALSE; |
|
489 | + $this->_replyto_flag = FALSE; |
|
490 | 490 | $this->_recipients = array(); |
491 | 491 | $this->_cc_array = array(); |
492 | 492 | $this->_bcc_array = array(); |
@@ -755,12 +755,12 @@ discard block |
||
755 | 755 | } |
756 | 756 | else |
757 | 757 | { |
758 | - $file_content =& $file; // buffered file |
|
758 | + $file_content = & $file; // buffered file |
|
759 | 759 | } |
760 | 760 | |
761 | 761 | $this->_attachments[] = array( |
762 | 762 | 'name' => array($file, $newname), |
763 | - 'disposition' => empty($disposition) ? 'attachment' : $disposition, // Can also be 'inline' Not sure if it matters |
|
763 | + 'disposition' => empty($disposition) ? 'attachment' : $disposition, // Can also be 'inline' Not sure if it matters |
|
764 | 764 | 'type' => $mime, |
765 | 765 | 'content' => chunk_split(base64_encode($file_content)) |
766 | 766 | ); |
@@ -1014,7 +1014,7 @@ discard block |
||
1014 | 1014 | { |
1015 | 1015 | return (count($this->_attachments) === 0) ? 'html' : 'html-attach'; |
1016 | 1016 | } |
1017 | - elseif ($this->mailtype === 'text' && count($this->_attachments) > 0) |
|
1017 | + elseif ($this->mailtype === 'text' && count($this->_attachments) > 0) |
|
1018 | 1018 | { |
1019 | 1019 | return 'plain-attach'; |
1020 | 1020 | } |
@@ -1036,7 +1036,7 @@ discard block |
||
1036 | 1036 | $timezone = date('Z'); |
1037 | 1037 | $operator = ($timezone[0] === '-') ? '-' : '+'; |
1038 | 1038 | $timezone = abs($timezone); |
1039 | - $timezone = floor($timezone/3600) * 100 + ($timezone % 3600) / 60; |
|
1039 | + $timezone = floor($timezone / 3600) * 100 + ($timezone % 3600) / 60; |
|
1040 | 1040 | |
1041 | 1041 | return sprintf('%s %s%04d', date('D, j M Y H:i:s'), $operator, $timezone); |
1042 | 1042 | } |
@@ -1543,7 +1543,7 @@ discard block |
||
1543 | 1543 | // as they are the encoding delimiter! |
1544 | 1544 | elseif ($ascii === 61) |
1545 | 1545 | { |
1546 | - $char = $escape.strtoupper(sprintf('%02s', dechex($ascii))); // =3D |
|
1546 | + $char = $escape.strtoupper(sprintf('%02s', dechex($ascii))); // =3D |
|
1547 | 1547 | } |
1548 | 1548 | elseif ( ! in_array($ascii, $ascii_safe_chars, TRUE)) |
1549 | 1549 | { |
@@ -1734,7 +1734,7 @@ discard block |
||
1734 | 1734 | $set = ''; |
1735 | 1735 | } |
1736 | 1736 | |
1737 | - if ($i === $c-1) |
|
1737 | + if ($i === $c - 1) |
|
1738 | 1738 | { |
1739 | 1739 | $chunk[] = substr($set, 1); |
1740 | 1740 | } |
@@ -2302,7 +2302,7 @@ discard block |
||
2302 | 2302 | */ |
2303 | 2303 | protected function _set_error_message($msg, $val = '') |
2304 | 2304 | { |
2305 | - $CI =& get_instance(); |
|
2305 | + $CI = & get_instance(); |
|
2306 | 2306 | $CI->lang->load('email'); |
2307 | 2307 | |
2308 | 2308 | if (sscanf($msg, 'lang:%s', $line) !== 1 OR FALSE === ($line = $CI->lang->line($line))) |
@@ -2327,7 +2327,7 @@ discard block |
||
2327 | 2327 | { |
2328 | 2328 | $ext = strtolower($ext); |
2329 | 2329 | |
2330 | - $mimes =& get_mimes(); |
|
2330 | + $mimes = & get_mimes(); |
|
2331 | 2331 | |
2332 | 2332 | if (isset($mimes[$ext])) |
2333 | 2333 | { |
@@ -55,21 +55,21 @@ |
||
55 | 55 | * |
56 | 56 | * @var string |
57 | 57 | */ |
58 | - public $encryption_key = ''; |
|
58 | + public $encryption_key = ''; |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * Type of hash operation |
62 | 62 | * |
63 | 63 | * @var string |
64 | 64 | */ |
65 | - protected $_hash_type = 'sha1'; |
|
65 | + protected $_hash_type = 'sha1'; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Flag for the existence of mcrypt |
69 | 69 | * |
70 | 70 | * @var bool |
71 | 71 | */ |
72 | - protected $_mcrypt_exists = FALSE; |
|
72 | + protected $_mcrypt_exists = FALSE; |
|
73 | 73 | |
74 | 74 | /** |
75 | 75 | * Current cipher to be used with mcrypt |