Esempio n. 1
0
        }
        static $sent = false;
        if (!$sent) {
            header("HTTP/1.0 500 Internal Server Error");
            echo "<h1>PHP Exception</h1>";
            $sent = true;
        }
        $str = "<br />\n<b>{$errortype[$errno]['desc']}</b>: {$errstr} in <b>{$errfile}</b> on line <b>{$errline}</b>\n<br />\n";
        echo $str;
        //. "<pre>". htmlspecialchars(var_export($vars,true))."</pre>";
        if ($l > 0) {
            ob_start();
            echo $body;
        }
    }
}
set_error_handler("ajax_nice_error");
switch ($_GET['req']) {
    case 10:
        require_once BOARDS_PKG_PATH . 'BitBoardPost.php';
        $comment = new BitBoardPost($_GET['comment_id']);
        $comment->loadMetaData();
        if (@$comment->verifyId($comment->mCommentId)) {
            print $comment->mInfo['warned_message'];
        } else {
            trigger_error(var_export($comment->mErrors, true));
        }
        break;
    default:
        break;
}