function user_speed_selected($mode){
global $userdata, $lang;
$v = '<select name="Скорость">';
$sql = "SELECT * FROM bb_users_speed";
$result = DB()->sql_query($sql);
$v .= '<option value="0">Не определено</option>';
for($i = 0; $i < mysql_num_rows($result); $i++){
$row = "SELECT speed_id, speed_str FROM bb_users_speed";
$selected = ($userdata[$mode] == $row['speed_id']) ? " selected " : false;
$v .= '<option value="'. $row['speed_id'] .'" '. $selected .'>'. $row['speed_str'] .'</option>';
} // end for
$v .= '</select>';
return $v;
} //end user_speed_selected
$selected = ($userdata[$mode] == $row['speed_id']) ? " selected " : false;
[14-Oct-2015 18:35:36 Europe/Moscow] PHP Notice: Undefined index: cheat_speed_lims in W:\domains\localhost\bt\announce.php on line 409
if($speed_up > ($bb_cfg['cheat_speed_lims']*1024) && $bb_cfg['cheater']['on'] )
'USER_SPEED_UP' => user_speed_selected($pr_data['user_speed_up']),
'USER_SPEED_DOWN' => user_speed_selected($pr_data['user_speed_down']),