Changeset 237 for trunk/import/import_sql_mangos.php
- Timestamp:
- Jul 3, 2009, 8:48:02 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/import/import_sql_mangos.php
r224 r237 64 64 } else { 65 65 $LinePart = substr($LinePart,1); 66 $value_buff = substr($LinePart,0, strpos($LinePart,"',")); 67 if ((strpos($LinePart,"',") !== true) and (strpos($LinePart,"'") !== false) and ($value_buff == '')) 68 $value_buff = substr($LinePart,0, strlen($LinePart)-1); 66 $value_buff = substr($LinePart,0, strpos($LinePart,"'")); 69 67 while(substr($value_buff,strlen($value_buff)-1,1) == "\\") 70 68 { 71 69 $str = substr($LinePart,strlen($value_buff)); 72 $str2 = substr($str,0, strpos($str,"' ,",2));70 $str2 = substr($str,0, strpos($str,"'",1)); 73 71 $value_buff = $value_buff.$str2; 74 72 $str = substr($str,strlen($str2)); … … 78 76 } 79 77 $Value[$column] = trim($value_buff); 80 //echo ($column.'-'.$Value[$column].'<br>');78 // echo ($column.'-'.$Value[$column].'<br>'); 81 79 } 82 80 … … 118 116 $Database->SQLCommand('INSERT `'.$Group['TablePrefix'].'` ('.$Columns.') VALUES ('.$Values.')'); 119 117 echo('# '); 120 } else 121 echo('. '); 122 123 WriteLog('Text <a href="form.php?group='.$Group['Id'].'&ID='.$DbRow2['ID'].'">'.$DbRow2['ID'].'</a> ('.$DbRow2['entry'].') ze skupiny '.$Group['Name'].' byl v nové verzi '.$import_version.' změněn.', 11); 118 WriteLog('Text <a href="form.php?group='.$Group['Id'].'&ID='.mysql_insert_id().'">'.mysql_insert_id().'</a> ('.$DbRow2['entry'].') ze skupiny '.$Group['Name'].' byl v nové verzi '.$import_version.' změněn.', 11); 119 } else echo('. '); 124 120 } 125 121 } else
Note:
See TracChangeset
for help on using the changeset viewer.