This commit is contained in:
2018-05-31 21:03:33 +02:00
parent 787af11a57
commit be9f0249e9
2 changed files with 11 additions and 9 deletions

2
run.sh
View File

@ -1,6 +1,6 @@
#!/bin/bash
echo "-- Building and starting Necronda Server..."
make && \
make compile && \
echo -e "-- Successfully finished compiling!\n" && \
sleep 0.0625 && \
echo -e "-- Starting Server...\n" && \

View File

@ -139,14 +139,6 @@ std::string formatSize(unsigned long bytes) {
return std::string(buffer);
}
string getWebRoot(string host) {
string root = webroot + host;
if (fileExists(root)) {
return root;
} else {
return webroot + "www.necronda.net";
}
}
@ -227,6 +219,16 @@ string read_line(FILE* file) {
#include "network/http/HttpResponse.cpp"
#include "network/http/HttpConnection.cpp"
string getWebRoot(string host) {
string root = webroot + host;
if (fileExists(root)) {
return root;
} else {
return webroot + "www.necronda.net";
}
}
#include "client.cpp"