Cod: Selectaţi tot
define('RANK_COLORS_TABLE', $table_prefix.'rank_colors');function colorize_userrank($user_level, $user_rank) { global $board_config; $rank_color = ''; $user_level = ($user_level < 0) ? 0 : $user_level; $rank_color = $board_config['rank'][$user_level]; if ($rank_color == '') { $rank_color = $board_config['rank'][0]; } $user_rank = ''.$user_rank.''; return $user_rank; }$sql = "SELECT * FROM " . RANK_COLORS_TABLE . " ORDER BY user_level"; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, 'Could not get rank colors for user levels', '', __LINE__, __FILE__, $sql); } while ($row = $db->sql_fetchrow($result)) { $board_config['rank'][$row['user_level']] = $row['rank_color']; } $db->sql_freeresult($result);
Warning: Cannot modify header information - headers already sent by (output started at /home/www/fcsteaua.ro.im//includes/constants.php:183) in /home/www/fcsteaua.ro.im//includes/sessions.php on line 254
Warning: Cannot modify header information - headers already sent by (output started at /home/www/fcsteaua.ro.im//includes/constants.php:183) in /home/www/fcsteaua.ro.im//includes/sessions.php on line 255
Warning: Cannot modify header information - headers already sent by (output started at /home/www/fcsteaua.ro.im//includes/constants.php:183) in /home/www/fcsteaua.ro.im/includes/page_header.php on line 483
Warning: Cannot modify header information - headers already sent by (output started at /home/www/fcsteaua.ro.im//includes/constants.php:183) in /home/www/fcsteaua.ro.im//includes/page_header.php on line 485
Warning: Cannot modify header information - headers already sent by (output started at /home/www/fcsteaua.ro.im//includes/constants.php:183) in /home/www/fcsteaua.ro.im/includes/page_header.php on line 486