= v4.3.0 if( $new_enough_php ) { // PHP v4.3.0 or higher // undo any magic quote effects so mysql_real_escape_string can do the work if( $magic_quotes_active ) { $value = stripslashes( $value ); } } else { // before PHP v4.3.0 // if magic quotes aren't already on then add slashes manually if( !$magic_quotes_active ) { $value = addslashes( $value ); } // if magic quotes are active, then the slashes already exist } $value = trim($value); $value = stripslashes($value); $value = stripslashes_deep($value); return $value; } // function yydev_redirect_mysql_prep( $value ) { // ================================================================== // This function will display error message if there was something wrong // $error_message will be the name of the string we define and if it's exists // it will echo the message to the page // if $display_inline is set to 1 it will have style of display: inline // ================================================================== function yydev_redirect_show_error_message($error_message, $display_inline = "") { if($display_inline == 1) { $display_inline_echo = "display-inline"; } // if($display_inline == 1) { if( isset($error_message) ) { ?>
" . htmlentities($_GET['message']) . " "; } // if(isset($_GET['message'])) { if(isset($_GET['error-message'])) { echo "