本文整理汇总了PHP中Server::insert方法的典型用法代码示例。如果您正苦于以下问题:PHP Server::insert方法的具体用法?PHP Server::insert怎么用?PHP Server::insert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server
的用法示例。
在下文中一共展示了Server::insert方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if (!$return || $return['status'] == 'error') {
$config_nt = array('content' => $return['message'], 'options' => array('type' => 'nf_error', 'cancel_button' => FALSE), 'style' => 'width: 80%; margin: 20px auto; text-align:center;');
$nt = new Notification('nt_1', $config_nt);
$nt->show();
Util::make_form("POST", "newserverform.php");
$db->close();
exit;
} else {
$new_id = strtoupper(str_replace('-', '', $return['data']['server_id']));
if ($return['data']['hostname'] != '') {
$sname = $return['data']['hostname'];
} else {
$sname = 'USM-Server';
}
}
$new_id = Server::insert($conn, $new_id, $sname, $ip, $port);
Util::resend_asset_dump('servers');
Util::memcacheFlush();
$db->close();
?>
<script type='text/javascript'>
if (!parent.is_lightbox_loaded(window.name))
{
document.location.href="server.php?msg=updated";
}
else
{
document.location.href="newserverform.php?id=<?php
echo $new_id;
示例2: strtoupper
Util::make_form("POST", "newserverform.php");
$db->close();
exit;
} else {
$new_id = strtoupper(str_replace('-', '', $return['data']['server_id']));
if ($return['data']['hostname'] != '') {
$sname = $return['data']['hostname'];
}
}
if (!isset($resend_alarms)) {
$resend_alarms = 0;
}
if (!isset($resend_events)) {
$resend_events = 0;
}
$new_id = Server::insert($conn, $sname, $ip, $port, $descr, $correlate, $cross_correlate, $store, $rep, $qualify, $resend_alarms, $resend_events, $sign, $sem, $sim, $alarm_to_syslog, $remoteadmin, $remotepass, $remoteurl, $fwrd_server, TRUE, $new_id);
Util::resend_asset_dump('servers');
Util::memcacheFlush();
$db->close();
}
?>
<script type='text/javascript'>
if (!parent.is_lightbox_loaded(window.name))
{
document.location.href="server.php?msg=updated";
}
else
{
document.location.href="newserverform.php?id=<?php
示例3: _
if (POST('insert')) {
if ($error == true) {
$txt_error = "<div>" . _("We Found the following errors") . ":</div><div style='padding:10px;'>" . implode("<br/>", $message_error) . "</div>";
Util::print_error($txt_error);
Util::make_form("POST", "newserverform.php?" . $get_param);
die;
}
$db = new ossim_db();
$conn = $db->connect();
if (!isset($resend_alarms)) {
$resend_alarms = 0;
}
if (!isset($resend_events)) {
$resend_events = 0;
}
Server::insert($conn, $sname, $ip, $port, $descr, $correlate, $cross_correlate, $store, $qualify, $resend_alarms, $resend_events, $sign, $sem, $sim);
$db->close($conn);
}
if (isset($_SESSION['_server'])) {
unset($_SESSION['_server']);
}
if ($_SESSION["menu_sopc"] == "Servers" && POST('withoutmenu') != "1") {
?>
<p> <?php
echo _("Server succesfully inserted");
?>
</p>
<script type='text/javascript'>document.location.href="server.php"</script>
<?php
} else {
?>