Changeset 216 for trunk/includes/global_function.php
- Timestamp:
- Jun 24, 2009, 10:30:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r214 r216 233 233 } 234 234 235 236 function HaveSameText($Group, $DbRow2, $Value) 237 { 238 $result = true; 239 foreach($Group['Items'] as $GroupItem) 240 { 241 $old = $DbRow2[$GroupItem['Column']]; 242 $old = str_replace(chr(10), '', $old); 243 $old = str_replace(chr(13), '', $old); 244 $old = str_replace('\n', '', $old); 245 $old = str_replace('\r', '', $old); 246 $old = str_replace('\"', '"', $old); 247 $old = str_replace('\\\\', '\\', $old); 248 $old = str_replace('\32', '32', $old); 249 $old = str_replace('\124', '124', $old); 250 $old = str_replace("\'", "'", $old); 251 252 $new = $Value[$GroupItem['Column']]; 253 $new = str_replace(chr(10), '', $new); 254 $new = str_replace(chr(13), '', $new); 255 $new = str_replace('\n', '', $new); 256 $new = str_replace('\r', '', $new); 257 $new = str_replace('\"', '"', $new); 258 $new = str_replace('\\\\', '\\', $new); 259 $new = str_replace('\32', '32', $new); 260 $new = str_replace('\124', '124', $new); 261 $new = str_replace("\'", "'", $new); 262 263 if(($old <> $new) and ($GroupItem['Column'] <> 'Comment')) 264 { 265 // echo $old.'-'.$new; 266 $result = false; 267 } 268 } 269 return($result); 270 } 271 272 235 273 function GetBuildNumber($Version) 236 274 { … … 251 289 } 252 290 291 function GetDBCColumns($Version,$DBCFileName) 292 { 293 global $Database; 294 295 $sql = 'SELECT DBCColumns_'.$DBCFileName.' as DBCColumns FROM `wow_client_version` WHERE Version = "'.$Version.'"'; 296 $DbRow = mysql_fetch_assoc($Database->SQLCommand($sql)); 297 return($DbRow['DBCColumns']); 298 } 299 300 function GetDBCColumnIndex($Version,$DBCFileName,$Column) 301 { 302 global $Database; 303 304 $sql = 'SELECT '.$DBCFileName.'_'.$Column.' as DBCColumns FROM `wow_client_version` WHERE Version = "'.$Version.'"'; 305 $DbRow = mysql_fetch_assoc($Database->SQLCommand($sql)); 306 return($DbRow['DBCColumns']); 307 } 308 253 309 ?>
Note:
See TracChangeset
for help on using the changeset viewer.