Changeset 566 for branches/1.1dev
- Timestamp:
- Oct 28, 2016 12:03:20 AM (8 years ago)
- Location:
- branches/1.1dev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/config/defaults.inc.php
r348 r566 5 5 6 6 /* 7 * This file contains global configration variables that apply to the underlying 7 * This file contains global configration variables that apply to the underlying 8 8 * codebase framework. These values can be overwritten in a site-specific config 9 9 * file to customize values for a specific site. … … 22 22 23 23 // The level of error reporting. Don't set this to 0 to suppress messages, use display_errors to control display. 24 error_reporting(E_ALL ^ E_NOTICE); 24 setDefault($CFG->error_reporting, E_ALL & ~E_NOTICE & ~E_STRICT); 25 error_reporting($CFG->error_reporting); 25 26 26 27 // Location to store log files. … … 82 83 setDefault($CFG->login_timeout, 21600); 83 84 84 // The maximum amount of time a user is allowed to be idle before 85 // The maximum amount of time a user is allowed to be idle before 85 86 // their session expires. They will be forced to login again if they expire. 86 87 // This applies to admins and users. In seconds. … … 91 92 * ACCOUNT ABUSE SETTINGS 92 93 *****************************************************************************/ 93 94 94 95 // The period of time to compare login abuse attempts. If a threshold of 95 96 // logins is reached in this amount of time the account is blocked. … … 101 102 $CFG->login_abuse_warnings = 3; 102 103 103 // The maximum number of IP addresses a user can login with over the 104 // The maximum number of IP addresses a user can login with over the 104 105 // timeout period before their account is blocked. 105 106 $CFG->login_abuse_max_ips = 5; 106 107 107 // The IP address subnet size threshold. Uses a CIDR notation 108 // The IP address subnet size threshold. Uses a CIDR notation 108 109 // network mask. Any integar between 0 and 32 is permitted. Setting this 109 110 // to '24' permits any address in a class C network (255.255.255.0) … … 140 141 } 141 142 142 // The maximum byte size that the session cache will hold. 143 // The maximum byte size that the session cache will hold. 143 144 // Used in SessionCache.inc.php 144 145 define('SESSION_CACHE_SIZE_BYTES', 204800); // 200 Kilobytes. -
branches/1.1dev/lib/Email.inc.php
r310 r566 8 8 * @author Quinn Comendant <quinn@strangecode.com> 9 9 * @version 1.0 - backported to codebase v1.1dev 10 * 11 10 * 11 12 12 // Example. 13 13 $email = new Email(array( … … 30 30 } 31 31 32 * 32 * 33 33 */ 34 34 class Email { … … 41 41 'headers' => null, 42 42 'regex' => null, 43 43 44 44 // A single carriage return (\n) should terminate lines for locally injected mail. 45 45 // A carriage return + line-feed (\r\n) should be used if sending mail directly with SMTP. 46 46 'crlf' => "\n", 47 47 48 48 // RFC 2822 says line length MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF. 49 49 // http://mailformat.dan.info/body/linelength.html … … 187 187 function replace($replacements) 188 188 { 189 189 190 190 // Ensure template exists. 191 191 if (!isset($this->_template)) { … … 209 209 // Search and replace all values at once. 210 210 $this->_template_replaced = str_replace($search, $replace, $this->_template); 211 212 return $this->_template_replaced; 211 213 } 212 214 … … 255 257 $final_body = isset($this->_template_replaced) ? $this->_template_replaced : $this->_template; 256 258 if (false !== $this->getParam('wrap')) { 257 $final_body = wordwrap($final_body, $this->getParam('line_length'), $this->getParam('crlf')); 259 $final_body = wordwrap($final_body, $this->getParam('line_length'), $this->getParam('crlf')); 258 260 } 259 261 … … 287 289 $envelope_sender_header = sprintf('-f %s', $envelope_sender_address); 288 290 } else { 289 $envelope_sender_header = ''; 291 $envelope_sender_header = ''; 290 292 } 291 293
Note: See TracChangeset
for help on using the changeset viewer.