Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge of a bunch of @DookTibsCarl and other @carelton work. Improved …
…form builder. Catalog commits. akismet for forms. Deleted page/site redirection admin ui. Leaves out profile commits for now.
- Loading branch information
Showing
202 changed files
with
19,019 additions
and
2,324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* @package carl_util | ||
* @subpackage db | ||
*/ | ||
|
||
/** | ||
* Escape a string for use in a SQL statement | ||
* | ||
* Internally uses mysql_real_escape_string(), so a DB connection should be established to ensure | ||
* proper encoding before calling this function. | ||
* | ||
* @param string $str | ||
* @param resource $link_identifier | ||
* @return string | ||
*/ | ||
function carl_util_sql_string_escape($str, $link_identifier = NULL) | ||
{ | ||
if(NULL === $link_identifier) | ||
return mysql_real_escape_string($str); | ||
return mysql_real_escape_string($str, $link_identifier); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.