var minisrv_service_file = true;
var create = true;
var pagenums = session_data.pagestore.listPages().length;
if (minisrv_config.services["wtv-author"].max_pages) {
if (pagenums + 1 > minisrv_config.services["wtv-author"].max_pages) {
create = false;
}
}
if (create) {
headers = `200 OK
Connection: Keep-Alive
Content-Type: text/html`
data = `
Select a page style
|
|
|
Choose a page style
|
|
|
|
|
You can change the style at any time without losing your text or images.
|
|
|
|
|
|
|
|
|
|
|
|
|
`;
} else {
var err = wtvshared.doErrorPage(500, "You are not allowed to create more than "+minisrv_config.services["wtv-author"].max_pages+" pages.");
headers = err[0];
data = err[1];
}