Changeset 1717 for trunk/include
- Timestamp:
- Jan 12, 2007, 12:56:36 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r1699 r1717 516 516 } 517 517 518 function pwg_stripslashes($value)519 {520 if (get_magic_quotes_gpc())521 {522 $value = stripslashes($value);523 }524 return $value;525 }526 527 function pwg_addslashes($value)528 {529 if (!get_magic_quotes_gpc())530 {531 $value = addslashes($value);532 }533 return $value;534 }535 536 function pwg_quotemeta($value)537 {538 if (get_magic_quotes_gpc()) {539 $value = stripslashes($value);540 }541 if (function_exists('mysql_real_escape_string'))542 {543 $value = mysql_real_escape_string($value);544 }545 else546 {547 $value = mysql_escape_string($value);548 }549 return $value;550 }551 552 518 function pwg_query($query) 553 519 {
Note: See TracChangeset
for help on using the changeset viewer.