本文整理汇总了PHP中Header::display方法的典型用法代码示例。如果您正苦于以下问题:PHP Header::display方法的具体用法?PHP Header::display怎么用?PHP Header::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Header
的用法示例。
在下文中一共展示了Header::display方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isDestroyed
public static function isDestroyed(\PDO $pdo_db, string $lang, Reg $tkireg, array $langvars, Smarty $template, array $playerinfo) : bool
{
// Check for destroyed ship
if ($playerinfo['ship_destroyed'] === 'Y') {
// if the player has an escapepod, set the player up with a new ship
if ($playerinfo['dev_escapepod'] === 'Y') {
$sql = "UPDATE ::prefix::ships SET hull=0, engines=0, power=0," . "computer=0, sensors=0, beams=0, torp_launchers=0, torps=0, armor=0, " . "armor_pts=100, cloak=0, shields=0, sector=1, ship_ore=0, " . "ship_organics=0, ship_energy=1000, ship_colonists=0, ship_goods=0, " . "ship_fighters=100, ship_damage=0, on_planet='N', dev_warpedit=0, " . "dev_genesis=0, dev_beacon=0, dev_emerwarp=0, dev_escapepod='N', " . "dev_fuelscoop='N', dev_minedeflector=0, ship_destroyed='N', " . "dev_lssd='N' WHERE email=:email";
$stmt = $pdo_db->prepare($sql);
$stmt->bindParam(':email', $_SESSION['username']);
$stmt->execute();
Db::logDbErrors($pdo_db, $sql, __LINE__, __FILE__);
// $error_status = str_replace('[here]', "<a href='main.php'>" . $langvars['l_here'] . '</a>', $langvars['l_login_died']); Error status is not used anywhere
} else {
// if the player doesn't have an escapepod - they're dead, delete them.
// But we can't delete them yet. (This prevents the self-distruct inherit bug)
$error_status = str_replace('[here]', "<a href='log.php'>" . ucfirst($langvars['l_here']) . '</a>', $langvars['l_global_died']) . '<br><br>' . $langvars['l_global_died2'];
$error_status .= str_replace('[logout]', "<a href='logout.php'>" . $langvars['l_logout'] . '</a>', $langvars['l_die_please']);
$title = $langvars['l_error'];
Header::display($pdo_db, $lang, $template, $title);
echo $error_status;
Footer::display($pdo_db, $lang, $tkireg, $template);
die;
}
} else {
return false;
}
}
示例2: isGameClosed
public static function isGameClosed(\PDO $pdo_db, Reg $tkireg, string $lang, Smarty $template, array $langvars) : bool
{
if ($tkireg->game_closed) {
$title = $langvars['l_login_closed_message'];
Header::display($pdo_db, $lang, $template, $title);
echo $langvars['l_login_closed_message'];
Footer::display($pdo_db, $lang, $tkireg, $template);
die;
} else {
return false;
}
}
示例3: nastavProgram
nastavProgram(0);
links_widget.add("ZŠ 17.nov, Sabinov","www.zsnovsab.edu.sk");
links_widget.add("Školský časopis - Sedemnástka","localhost/casopis");
$("#widgets")
.addWidget(dnesny_datum())
.addWidget(aktualny_cas())
.addWidget(links_widget.display());
});
</script>
</head>
<body>
<div id="main" class="main">
<div id="header" class="header">
<?php
$header->display();
//zobrazí hlavičku
?>
</div>
<?php
$menu->display();
//zobrazí menu
?>
<div id="window" class="window">
<table id="window_layout" class="window_layout" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="15%" id="toolbox">
<!-- Tu sa zobrazi panel nastrojov -->
</td>