Added alliance node.

This commit is contained in:
Relintai 2022-02-18 00:01:19 +01:00
parent c553d1c850
commit 2aeb1712b9
2 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,42 @@
#include "alliance_node.h"
#include "web/html/form_validator.h"
#include "web/html/html_builder.h"
#include "web/http/cookie.h"
#include "web/http/http_enums.h"
#include "web/http/http_session.h"
#include "web/http/request.h"
#include "web/http/session_manager.h"
#include "../html_macros.h"
#include "database/database.h"
#include "database/database_manager.h"
#include "database/query_builder.h"
#include "database/query_result.h"
#include "database/table_builder.h"
#include "crypto/hash/sha256.h"
void AllianceNode::handle_request_default(Request *request) {
}
void AllianceNode::admin_handle_request_main(Request *request) {
request->send_error(404);
}
String AllianceNode::admin_get_section_name() {
return "Alliances";
}
void AllianceNode::admin_add_section_links(Vector<AdminSectionLinkInfo> *links) {
links->push_back(AdminSectionLinkInfo("- Alliance Editor", ""));
}
bool AllianceNode::admin_full_render() {
return false;
}
AllianceNode::AllianceNode() :
AdminNode() {
}
AllianceNode::~AllianceNode() {
}

View File

@ -0,0 +1,28 @@
#ifndef ALLIANCE_NODE_H
#define ALLIANCE_NODE_H
#include "core/containers/vector.h"
#include "core/string.h"
#include "web_modules/admin_panel/admin_node.h"
class Request;
class FormValidator;
class QueryResult;
class AllianceNode : public AdminNode {
RCPP_OBJECT(AllianceNode, AdminNode);
public:
void handle_request_default(Request *request);
void admin_handle_request_main(Request *request);
String admin_get_section_name();
void admin_add_section_links(Vector<AdminSectionLinkInfo> *links);
bool admin_full_render();
AllianceNode();
~AllianceNode();
};
#endif