Пример #1
0
    exit;
}

if (SystemPref::Get("UseDBReplication") == 'Y') {
    $dbReplicationObj = new DbReplication();
    $connectedToOnlineServer = $dbReplicationObj->connect();
    if ($connectedToOnlineServer == false) {
        camp_html_add_msg(getGS("No connected to Online server"));
    }
}

if (!isset($connectedToOnlineServer)
        || $connectedToOnlineServer == true) {
	// load the comment
	$comment = new Phorum_message($f_comment_id);
	$bans = Phorum_ban_item::IsPostBanned($comment);
}
?>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="Expires" content="now" />
	<link rel="stylesheet" type="text/css" href="<?php echo $Campsite['ADMIN_STYLE_URL']; ?>/admin_stylesheet.css" />
	<title><?php putGS("Comment ban settings"); ?></title>
</head>
<body>

<?php
if (isset($connectedToOnlineServer)
    && $connectedToOnlineServer == false) {
?>