Changeset 382 for trunk/includes/global_function.php
- Timestamp:
- Mar 14, 2010, 10:08:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r381 r382 292 292 } 293 293 294 function HaveSameText($Group, $DbRow2, $Value)295 {296 $result = true;297 foreach($Group['Items'] as $GroupItem)298 {299 $old = $DbRow2[$GroupItem['Column']];300 $old = str_replace(chr(10), '', $old);301 $old = str_replace(chr(13), '', $old);302 $old = str_replace('\n', '', $old);303 $old = str_replace('\r', '', $old);304 $old = str_replace('\"', '"', $old);305 $old = str_replace('\\\\', '\\', $old);306 $old = str_replace('\32', '32', $old);307 $old = str_replace('\124', '124', $old);308 $old = str_replace("\'", "'", $old);309 $old = str_replace("Â", "", $old);310 $old = str_replace("�", "", $old);311 312 313 if (($GroupItem['MangosColumn'] <> '') and ($Group['MangosDatabase'] == 'mangos'))314 $new = $Value[$GroupItem['MangosColumn']];315 else316 $new = $Value[$GroupItem['Column']];317 $new = str_replace(chr(10), '', $new);318 $new = str_replace(chr(13), '', $new);319 $new = str_replace('\n', '', $new);320 $new = str_replace('\r', '', $new);321 $new = str_replace('\"', '"', $new);322 $new = str_replace('\\\\', '\\', $new);323 $new = str_replace('\32', '32', $new);324 $new = str_replace('\124', '124', $new);325 $new = str_replace("\'", "'", $new);326 $new = str_replace("Â", "", $new);327 $new = str_replace("�", "", $new);328 329 if (($old == 'null') or ($old == 'NULL')) $old = '';330 if (($new == 'null') or ($new == 'NULL')) $new = '';331 332 333 if(($old <> $new) and ($GroupItem['Column'] <> 'Comment'))334 {335 // echo $old.'X'.$new;336 $result = false;337 }338 }339 return($result);340 }341 342 294 function GetBuildNumber($Version) 343 295 {
Note:
See TracChangeset
for help on using the changeset viewer.