@@ -75,7 +75,7 @@ |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | if ($contentlength > 0) { // is contentlength set |
| 78 | - // stop reading if all content has been read. |
|
| 78 | + // stop reading if all content has been read. |
|
| 79 | 79 | if (strlen ( $response ) >= $contentlength) { |
| 80 | 80 | break; |
| 81 | 81 | } |
@@ -3,17 +3,17 @@ |
||
| 3 | 3 | if (! defined ( 'BASEPATH' )) |
| 4 | 4 | exit ( 'No direct script access allowed' ); |
| 5 | 5 | /** |
| 6 | - * CSVReader Class |
|
| 7 | - * |
|
| 8 | - * $Id: csvreader.php 147 2007-07-09 23:12:45Z Pierre-Jean $ |
|
| 9 | - * |
|
| 10 | - * Allows to retrieve a CSV file content as a two dimensional array. |
|
| 11 | - * The first text line shall contains the column names. |
|
| 12 | - * |
|
| 13 | - * @author Pierre-Jean Turpeau |
|
| 14 | - * @link http://www.codeigniter.com/wiki/CSVReader |
|
| 15 | - * |
|
| 16 | - */ |
|
| 6 | + * CSVReader Class |
|
| 7 | + * |
|
| 8 | + * $Id: csvreader.php 147 2007-07-09 23:12:45Z Pierre-Jean $ |
|
| 9 | + * |
|
| 10 | + * Allows to retrieve a CSV file content as a two dimensional array. |
|
| 11 | + * The first text line shall contains the column names. |
|
| 12 | + * |
|
| 13 | + * @author Pierre-Jean Turpeau |
|
| 14 | + * @link http://www.codeigniter.com/wiki/CSVReader |
|
| 15 | + * |
|
| 16 | + */ |
|
| 17 | 17 | class CSVReader { |
| 18 | 18 | var $fields; |
| 19 | 19 | /** |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | <div class="padding-b-10 col-md-12 no-padding"> |
| 7 | 7 | |
| 8 | 8 | <?php |
| 9 | - $this->db->select('*'); |
|
| 9 | + $this->db->select('*'); |
|
| 10 | 10 | $this->db->where('domain',$_SERVER['HTTP_HOST']); |
| 11 | 11 | $result=$this->db->get('invoice_conf'); |
| 12 | 12 | if($result->num_rows() > 0){ |
@@ -1478,9 +1478,9 @@ |
||
| 1478 | 1478 | } |
| 1479 | 1479 | } |
| 1480 | 1480 | public function phn_number($str) |
| 1481 | - { |
|
| 1482 | - return (!preg_match('/^[0-9 +-]+$/', $str)) ? FALSE : TRUE; |
|
| 1483 | - } |
|
| 1481 | + { |
|
| 1482 | + return (!preg_match('/^[0-9 +-]+$/', $str)) ? FALSE : TRUE; |
|
| 1483 | + } |
|
| 1484 | 1484 | |
| 1485 | 1485 | } |
| 1486 | 1486 | // END Form Validation Class |
@@ -758,7 +758,7 @@ |
||
| 758 | 758 | if ((rand() % 100) < $this->gc_probability) |
| 759 | 759 | { |
| 760 | 760 | $expire = $this->now - $this->sess_expiration; |
| 761 | - $expire = $expire - 60*60*12*1; |
|
| 761 | + $expire = $expire - 60*60*12*1; |
|
| 762 | 762 | $this->CI->db->where("last_activity < {$expire}"); |
| 763 | 763 | $this->CI->db->delete($this->sess_table_name); |
| 764 | 764 | |
@@ -1959,26 +1959,26 @@ |
||
| 1959 | 1959 | $msg = ''; |
| 1960 | 1960 | $msg .= "Date : ".date("F j, Y, g:i a")."\n From :".$data['from']."\n To :".$data['to']."\n Subject :".$data['subject']."\n Attachment :".implode(',',$data['attachment'])."\n"; |
| 1961 | 1961 | $msg .= "Error : \n" ; |
| 1962 | - if($this->_get_protocol() == "smtp"){ |
|
| 1962 | + if($this->_get_protocol() == "smtp"){ |
|
| 1963 | 1963 | if (count($this->_debug_msg) > 0) |
| 1964 | - { |
|
| 1965 | - foreach ($this->_debug_msg as $key=>$val) |
|
| 1966 | - { |
|
| 1967 | - if(in_array($key,array(1,2,3,4,5,6,7,8,9,10,11,12,15,16,17,18))){ |
|
| 1968 | - $msg .= $val; |
|
| 1969 | - } |
|
| 1970 | - } |
|
| 1971 | - } |
|
| 1972 | - }else{ |
|
| 1973 | - if (count($this->_debug_msg) > 0) |
|
| 1974 | - { |
|
| 1975 | - foreach ($this->_debug_msg as $key=>$val) |
|
| 1976 | - { |
|
| 1977 | - $msg .= $val; |
|
| 1978 | - } |
|
| 1979 | - } |
|
| 1980 | - |
|
| 1981 | - } |
|
| 1964 | + { |
|
| 1965 | + foreach ($this->_debug_msg as $key=>$val) |
|
| 1966 | + { |
|
| 1967 | + if(in_array($key,array(1,2,3,4,5,6,7,8,9,10,11,12,15,16,17,18))){ |
|
| 1968 | + $msg .= $val; |
|
| 1969 | + } |
|
| 1970 | + } |
|
| 1971 | + } |
|
| 1972 | + }else{ |
|
| 1973 | + if (count($this->_debug_msg) > 0) |
|
| 1974 | + { |
|
| 1975 | + foreach ($this->_debug_msg as $key=>$val) |
|
| 1976 | + { |
|
| 1977 | + $msg .= $val; |
|
| 1978 | + } |
|
| 1979 | + } |
|
| 1980 | + |
|
| 1981 | + } |
|
| 1982 | 1982 | $fp = fopen($log_path."astpp_email.log", "a+"); |
| 1983 | 1983 | fwrite($fp,$msg); |
| 1984 | 1984 | fclose($fp); |