Changeset 241
- Timestamp:
- Jul 3, 2009, 1:49:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/import/import_sql_mangos.php
r237 r241 31 31 { 32 32 $folow_structure = False; 33 echo ('Struktura: <br />');34 print_r($structure);35 echo ('<br /><br />');33 // echo ('Struktura: <br />'); 34 // print_r($structure); 35 // echo ('<br /><br />'); 36 36 } 37 37 if (($folow_structure == True) and ($Line != '')) … … 71 71 $value_buff = $value_buff.$str2; 72 72 $str = substr($str,strlen($str2)); 73 74 73 } 75 74 $LinePart = substr($LinePart,strlen($value_buff)+2); 76 } 77 $Value[$column] = trim($value_buff); 78 // echo ($column.'-'.$Value[$column].'<br>'); 75 } 76 if (($value_buff != 'null') and ($value_buff != 'NULL')) 77 { 78 $str = ''; 79 while(substr($value_buff,strlen($value_buff)-1,1) == " ") 80 { 81 $value_buff = substr($value_buff,0,strlen($value_buff)-1); 82 $str .= ' '; 83 } 84 $str2 = ''; 85 while(substr($value_buff,0,1) == " ") 86 { 87 $value_buff = substr($value_buff,1,strlen($value_buff)-1); 88 $str2 .= ' '; 89 } 90 $Value[$column] = $str2.trim($value_buff).$str; 91 } else { 92 $Value[$column] = ''; 93 } 94 // echo ($column.'-"'.$Value[$column].'"<br>'); 79 95 } 80 96 -
trunk/includes/global_function.php
r240 r241 274 274 $new = str_replace("�", "", $new); 275 275 276 if (($old == 'null') or ($old == 'NULL')) $old = ''; 277 if (($new == 'null') or ($new == 'NULL')) $new = ''; 278 279 276 280 if(($old <> $new) and ($GroupItem['Column'] <> 'Comment')) 277 281 {
Note:
See TracChangeset
for help on using the changeset viewer.