/* * vim: sw=2 ts=2 expandtab * * Copyright (c) 2013-2019 Thomas Kolb * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef TEMPLATES_H #define TEMPLATES_H // generic definitions #define HEADER1 \ "" \ "" \ " " #define HEADER2 \ " " \ " " \ " " \ " " #define FOOTER \ "

Generated by fileshare " VERSION ".

" \ " " \ "" // error page definitions #define ERROR_404 \ HEADER1 \ " Error 404*i - File is imaginary" \ HEADER2 \ "

Error 404*i - File is imaginary

" \ "

This page cannot be displayed because it is imaginary.

" \ "

To view this page in the real world, turn your screen by π/2 .

" \ "
" \
  "            ^ Im\n" \
  "            |\n" \
  "            | +j\n" \
  "        __--+--__\n" \
  "      _-    |    -_\n" \
  "     /      X      \\\n" \
  "    |       |       |\n" \
  "----+-------+-------+-----> Re\n" \
  " -1 |       |    +1 |\n" \
  "     \\      |      /\n" \
  "      --__  |  __--\n" \
  "          --+-- \n" \
  "            | -j\n" \
  "            |\n" \
  "		
" \ FOOTER #define ERROR_500 \ HEADER1 \ " Error 500 - Internal Server Error" \ HEADER2 \ "

Error 500 - Internal Server Error

" \ "
" \
  " _______________________________________ \n" \
  "/ Oops. Something went wrong.           \\\n" \
  "| Please contact the administrator and  |\n" \
  "\\ tell him how to reproduce this error. /\n" \
  " --------------------------------------- \n" \
  "       \\   \\_______\n" \
  " v__v   \\  \\   O   )\n" \
  " (oo)      ||----w |\n" \
  " (__)      ||     ||  \\/\\\n" \
  "		
" \ FOOTER #define ERROR_403 \ HEADER1 \ " Error 403 - Forbidden" \ HEADER2 \ "

Error 403 - Forbidden

" \ "

You are not allowed to access this file or directory.

" \ "

This error is shown under the following conditions:

" \ "

" \ FOOTER #define ERROR_401 \ HEADER1 \ " Error 401 - Unauthorized" \ HEADER2 \ "

Error 401 - Unauthorized

" \ "

You are not authorized to see the requested content.

" \ "

Enter the correct username and password!

" \ FOOTER #endif // TEMPLATES_H