Namespaces | |
auth | |
Classes | |
class | blacklist |
Add-on blacklist table. More... | |
class | control_line |
Represents a server control line written to a communication socket. More... | |
class | command_line |
class | server |
Legacy add-ons server. More... | |
Functions | |
std::string | format_addon_feedback_url (const std::string &format, const config ¶ms) |
Format a feedback URL for an add-on. More... | |
void | support_translation (config &addon, const std::string &locale_id) |
void | find_translations (const config &base_dir, config &addon) |
Scans an add-on archive directory for translations. More... | |
void | add_license (config &cfg) |
Adds a COPYING.txt file with the full text of the GNU GPL to an add-on. More... | |
std::map< version_info, config > | get_version_map (config &addon) |
bool | data_apply_removelist (config &data, const config &removelist) |
void | data_apply_addlist (config &data, const config &addlist) |
bool | is_text_markup_char (char c) |
std::ostream & | operator<< (std::ostream &o, const server::request &r) |
std::string | client_address (const any_socket_ptr &sock) |
Variables | |
const std::string | illegal_markup_chars = "*`~{^}|@#<&" |
Markup characters recognized by GUI1 code. More... | |
void campaignd::add_license | ( | config & | cfg | ) |
Adds a COPYING.txt file with the full text of the GNU GPL to an add-on.
This only has an effect if the add-on archive cfg does not already contain an equivalent file ('copying.txt', 'COPYING', etc.).
Definition at line 123 of file addon_utils.cpp.
References config::add_child(), LOG_CS, config::optional_child(), game_config::path, and filesystem::read_file().
Referenced by campaignd::server::handle_upload().
|
inline |
Definition at line 857 of file server.cpp.
Referenced by wesnothd::server::authenticate(), wesnothd::server::is_login_allowed(), wesnothd::server::login_client(), and campaignd::server::send_error().
Definition at line 183 of file addon_utils.cpp.
References config::child_range(), data, and f.
Referenced by campaignd::server::handle_upload().
Definition at line 166 of file addon_utils.cpp.
References config::child_range(), d, data, and f.
Referenced by campaignd::server::handle_upload().
Scans an add-on archive directory for translations.
Any subdirectories of base_dir containing a subdirectory named 'LC_MESSAGES' are assumed to be translation dirs. The names of the subdirectories thus located are recorded into the addon WML node in [translation] children nodes like the following (comments included for documentation purposes):
* [translation] * language="es" # translations/es/LC_MESSAGES/ * [/translation] * [translation] * language="ja" # translations/ja/LC_MESSAGES/ * [/translation] *
Definition at line 104 of file addon_utils.cpp.
References filesystem::base_name(), config::child_range(), and support_translation().
Referenced by campaignd::server::handle_upload().
std::string campaignd::format_addon_feedback_url | ( | const std::string & | format, |
const config & | params | ||
) |
Format a feedback URL for an add-on.
format | The format string for the URL, presumably obtained from the add-ons server identification. |
params | The URL format parameters table. |
Definition at line 64 of file addon_utils.cpp.
References config::attribute_range(), config::empty(), and utils::urlencode().
Referenced by campaignd::server::handle_request_campaign_list().
std::map< version_info, config > campaignd::get_version_map | ( | config & | addon | ) |
Definition at line 155 of file addon_utils.cpp.
References config::child_range().
Referenced by campaignd::server::handle_request_campaign(), campaignd::server::handle_request_campaign_hash(), and campaignd::server::handle_upload().
|
inline |
Definition at line 34 of file addon_utils.hpp.
References c, and illegal_markup_chars.
Referenced by campaignd::server::validate_addon().
std::ostream& campaignd::operator<< | ( | std::ostream & | o, |
const server::request & | r | ||
) |
Definition at line 486 of file server.cpp.
void campaignd::support_translation | ( | config & | addon, |
const std::string & | locale_id | ||
) |
Definition at line 94 of file addon_utils.cpp.
References config::add_child(), and config::find_child().
Referenced by find_translations().
const std::string campaignd::illegal_markup_chars = "*`~{^}|@#<&" |
Markup characters recognized by GUI1 code.
These must be the same as the constants defined in marked-up_text.cpp.
Definition at line 62 of file addon_utils.cpp.
Referenced by is_text_markup_char().