sql_query($sql); while ( $row = $db->sql_fetchrow($result) ) { $board_config[$row['config_name']] = $row['config_value']; } // // Show 'Board is disabled' message if needed. // if ( $board_config['board_disable'] && !defined('IN_ADMIN') && !defined('IN_LOGIN') ) { $message = ( !empty($board_config['board_disable_msg']) ) ? $board_config['board_disable_msg'] : 'Board_disable'; message_die(MESSAGE, $message, 'Information'); } // // addslashes to vars if magic_quotes_gpc is off this is a security precaution // to prevent someone trying to break out of a SQL statement. // function slash_input_data(&$data) { if ( is_array($data) ) { while ( list($k, $v) = each($data) ) { $data[$k] = ( is_array($v) ) ? slash_input_data($v) : addslashes($v); } @reset($data); } return $data; } ?>