function fix_forum_preferences($forum_preferences)
{
    $text = fix_text($forum_preferences->signature);
    if ($text != $forum_preferences->signature) {
        $query = "update forum_preferences set signature = '" . mysql_escape_string($text) . "' where userid=" . $forum_preferences->userid;
        //echo "$forum_preferences->signature\n\n";
        //echo "$forum_preferences->thread $query\n\n";
        $retval = mysql_query($query);
        if (!$retval) {
            echo mysql_error();
            exit;
        }
    }
}
function fix_profile($profile)
{
    $text = fix_text($profile->response2);
    if ($text != $profile->response2) {
        $query = "update profile set response2 = '" . mysql_escape_string($text) . "' where userid=" . $profile->userid;
        //echo "$profile->response2\n\n";
        //echo "$profile->thread $query\n\n";
        $retval = mysql_query($query);
        if (!$retval) {
            echo mysql_error();
            exit;
        }
    }
}
Exemple #3
0
function fix_post($post)
{
    $text = fix_text($post->content);
    if ($text != $post->content) {
        $query = "update post set content = '" . mysql_escape_string($text) . "' where id=" . $post->id;
        //echo "$post->content\n\n";
        //echo "$post->thread $query\n\n";
        $retval = mysql_query($query);
        if (!$retval) {
            echo mysql_error();
            exit;
        }
    }
}