* All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * --> NOTICE <-- * This file is part of the core development branch, changing its contents will * make you unable to use the automatic updates manager. Please refer to the * documentation for further information about customizing XNova. * */ /** * * @deprecated * @param unknown_type $GalaxyRow * @param unknown_type $GalaxyRowPlanet * @param unknown_type $GalaxyRowUser * @param unknown_type $Galaxy * @param unknown_type $System * @param unknown_type $Planet * @param unknown_type $PlanetType */ function GalaxyRowUser ( $GalaxyRow, $GalaxyRowPlanet, $GalaxyRowUser, $Galaxy, $System, $Planet, $PlanetType ) { global $lang, $user; // Joueur $Result = ""; if ($GalaxyRowUser && $GalaxyRowPlanet["destruyed"] == 0) { $NoobProt = doquery("SELECT * FROM {{table}} WHERE `config_name` = 'noobprotection';", 'config', true); $NoobTime = doquery("SELECT * FROM {{table}} WHERE `config_name` = 'noobprotectiontime';", 'config', true); $NoobMulti = doquery("SELECT * FROM {{table}} WHERE `config_name` = 'noobprotectionmulti';", 'config', true); $UserPoints = doquery("SELECT * FROM {{table}} WHERE `stat_type` = '1' AND `stat_code` = '1' AND `id_owner` = '". $user['id'] ."';", 'statpoints', true); $User2Points = doquery("SELECT * FROM {{table}} WHERE `stat_type` = '1' AND `stat_code` = '1' AND `id_owner` = '". $GalaxyRowUser['id'] ."';", 'statpoints', true); $CurrentPoints = $UserPoints['total_points']; $RowUserPoints = $User2Points['total_points']; $CurrentLevel = $CurrentPoints * $NoobMulti['config_value']; $RowUserLevel = $RowUserPoints * $NoobMulti['config_value']; if ($GalaxyRowUser['bana'] == 1 AND $GalaxyRowUser['urlaubs_modus'] == 1) { $Systemtatus2 = $lang['vacation_shortcut']." ".$lang['banned_shortcut'].""; $Systemtatus = ""; } elseif ($GalaxyRowUser['bana'] == 1) { $Systemtatus2 = "".$lang['banned_shortcut'].""; $Systemtatus = ""; } elseif ($GalaxyRowUser['urlaubs_modus'] == 1) { $Systemtatus2 = "".$lang['vacation_shortcut'].""; $Systemtatus = ""; } elseif ($GalaxyRowUser['onlinetime'] < (time()-60 * 60 * 24 * 7) AND $GalaxyRowUser['onlinetime'] > (time()-60 * 60 * 24 * 28)) { $Systemtatus2 = "".$lang['inactif_7_shortcut'].""; $Systemtatus = ""; } elseif ($GalaxyRowUser['onlinetime'] < (time()-60 * 60 * 24 * 28)) { $Systemtatus2 = "".$lang['inactif_7_shortcut']." ".$lang['inactif_28_shortcut'].""; $Systemtatus = ""; } elseif ($RowUserLevel < $CurrentPoints AND $NoobProt['config_value'] == 1 AND $NoobTime['config_value'] * 1000 > $RowUserPoints) { $Systemtatus2 = "".$lang['weak_player_shortcut'].""; $Systemtatus = ""; } elseif ($RowUserPoints > $CurrentLevel AND $NoobProt['config_value'] == 1 AND $NoobTime['config_value'] * 1000 > $CurrentPoints) { $Systemtatus2 = $lang['strong_player_shortcut']; $Systemtatus = ""; } else { $Systemtatus2 = ""; $Systemtatus = ""; } $Systemtatus4 = $User2Points['total_rank']; if ($Systemtatus2 != '') { $Systemtatus6 = "("; $Systemtatus7 = ")"; } if ($Systemtatus2 == '') { $Systemtatus6 = ""; $Systemtatus7 = ""; } $admin = ""; if ($GalaxyRowUser['authlevel'] == LEVEL_ADMIN) { $admin = "A"; } else if ($GalaxyRowUser['authlevel'] == LEVEL_OPERATOR) { $admin = "O"; } else if ($GalaxyRowUser['authlevel'] == LEVEL_MODERATOR) { $admin = "M"; } $Systemtart = $User2Points['total_rank']; if (strlen($Systemtart) < 3) { $Systemtart = 1; } else { $Systemtart = (floor( $User2Points['total_rank'] / 100 ) * 100) + 1; } $Result .= ""; $Result .= ""; if ($GalaxyRowUser['id'] != $user['id']) { $Result .= "".$lang['gl_sendmess'].""; $Result .= ""; $Result .= "".$lang['gl_buddyreq'].""; $Result .= ""; } $Result .= "".$lang['gl_stats'].""; $Result .= ""; $Result .= "\""; $Result .= ", STICKY, MOUSEOFF, DELAY, 750, CENTER, OFFSETX, -40, OFFSETY, -40 );'"; $Result .= " onmouseout='return nd();'>"; $Result .= $Systemtatus; $Result .= $GalaxyRowUser["username"].""; $Result .= $Systemtatus6; $Result .= $Systemtatus; $Result .= $Systemtatus2; $Result .= $Systemtatus7." ".$admin; $Result .= ""; } $Result .= ""; return $Result; } ?>