📄 galaxyrowplanetname.php
字号:
<?php
/**
* GalaxyRowPlanetName.php
*
* @version 1.0
* @copyright 2008 By Chlorel for XNova
*/
function GalaxyRowPlanetName ( $GalaxyRow, $GalaxyRowPlanet, $GalaxyRowUser, $Galaxy, $System, $Planet, $PlanetType ) {
global $lang, $user, $HavePhalanx, $CurrentSystem, $CurrentGalaxy;
// Planete (Nom)
$Result = "<th style=\"white-space: nowrap;\" width=130>";
if ($GalaxyRowUser['ally_id'] == $user['ally_id'] AND
$GalaxyRowUser['id'] != $user['id'] AND
$user['ally_id'] != '') {
$TextColor = "<font color=\"green\">";
$EndColor = "</font>";
} elseif ($GalaxyRowUser['id'] == $user['id']) {
$TextColor = "<font color=\"red\">";
$EndColor = "</font>";
} else {
$TextColor = '';
$EndColor = "";
}
if ($GalaxyRowPlanet['last_update'] > (time()-59 * 60) AND
$GalaxyRowUser['id'] != $user['id']) {
$Inactivity = pretty_time_hour(time() - $GalaxyRowPlanet['last_update']);
}
if ($GalaxyRow && $GalaxyRowPlanet["destruyed"] == 0) {
if ($HavePhalanx <> 0) {
if ($GalaxyRowPlanet["galaxy"] == $CurrentGalaxy) {
$Range = GetPhalanxRange ( $HavePhalanx );
if ($CurrentGalaxy + $Range <= $CurrentSystem AND
$CurrentSystem >= $CurrentGalaxy - $Range) {
$PhalanxTypeLink = "<a href=# onclick=fenster('phalanx.php?galaxy=".$Galaxy."&system=".$System."&planet=".$Planet."&planettype=".$PlanetType."') title=\"".$lang['gl_phalanx']."\">".$GalaxyRowPlanet['name']."</a><br />";
} else {
$PhalanxTypeLink = $GalaxyRowPlanet['name'];
}
} else {
$PhalanxTypeLink = $GalaxyRowPlanet['name'];
}
} else {
$PhalanxTypeLink = $GalaxyRowPlanet['name'];
}
$Result .= $TextColor . $PhalanxTypeLink . $EndColor;
if ($GalaxyRowPlanet['last_update'] > (time()-59 * 60) AND
$GalaxyRowUser['id'] != $user['id']) {
if ($GalaxyRowPlanet['last_update'] > (time()-10 * 60) AND
$GalaxyRowUser['id'] != $user['id']) {
$Result .= "(*)";
} else {
$Result .= " (".$Inactivity.")";
}
}
} elseif ($GalaxyRowPlanet["destruyed"] != 0) {
$Result .= $lang['gl_destroyedplanet'];
}
$Result .= "</th>";
return $Result;
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -