Library Hebergement.h
Dependents: Nucleo_Web_ENC28J60 Nucleo_Web_ENC28J60_ADC
hebergement.h
- Committer:
- Fo170
- Date:
- 2015-08-19
- Revision:
- 3:8f40eff6b3ce
- Parent:
- 2:b71f5a2b31bc
- Child:
- 4:11e8d85ca94c
File content as of revision 3:8f40eff6b3ce:
#define __hebergement__ "http://olivier.fournet.free.fr/" #define __Time_between_page_refresh__ "1" const string str_meta_refresh = "<meta http-equiv=\"refresh\" content=\"" __Time_between_page_refresh__ ";url=http://" __IP_LOCAL__ "/\">"; const string str_JavaScript = "<script language=\"javascript\" type=\"text/javascript\" src=\"" __hebergement__ "electronique/e/WebServerNucleo/js/WebServerNucleo_Interactivity_init.js\"></script>\r\n"; const string str_Compilation_DATE_AND_TIME = "<p>Compilation avec mBED à " __TIME__ " le " __DATE__" \r\n"; // Logo Test d'image en base64 : // http://webcodertools.com/imagetobase64converter/Create // const string str_Logo_image = "<img alt='' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAAAUklEQVQ4T2NggIEGMIBzCTDgSh0cHAjrIcFgiGFoGoCWELYQrgLIgGsg4CtkaTibWNfu378fq2tpHx6EbcAMQ8J6iPU3cpIhbCqaisFpCTwVAwB5lit+0ltbrgAAAABJRU5ErkJggg=='>"; const string str_favicon = "<LINK REL=\"SHORTCUT ICON\" type=\"image/x-icon\" href=\"" __hebergement__ "favicon.ico\">\r\n<link rel=\"icon\" href=\"" __hebergement__ "favicon.ico\" type=\"image/x-icon\">"; #define __image_password_folder__ "password_folder.jpg" const string str_image_Password_Folder = "<img alt='' src='" __hebergement__ "jpg/" __image_password_folder__ "'>"; #define __image_301_Moved_Permanently__ "301_moved_permanently.jpg" const string str_moved_perm = "<img alt='' src='" __hebergement__ "jpg/" __image_301_Moved_Permanently__ "'>"; #define __image_401_Unauthorized__ "401_Unauthorized.png" const string str_Unauthorized = "<img alt='' src='" __hebergement__ "png/" __image_401_Unauthorized__ "'>"; #define __image_ampoule_OFF__ "ampoule_OFF_x32.png" const string str_ampoule_OFF = "<img alt='' src='" __hebergement__ "png/" __image_ampoule_OFF__ "'>"; #define __image_ampoule_ON__ "ampoule_ON_x32.png" const string str_ampoule_ON = "<img alt='' src='" __hebergement__ "png/" __image_ampoule_ON__ "'>"; #define __image_thermometre__ "thermometre_x64.png" const string str_thermometre = "<img alt='' src='" __hebergement__ "png/" __image_thermometre__ "'>"; #define __image_chrono__ "chrono_x64.png" const string str_chrono = "<img alt='' src='" __hebergement__ "png/" __image_chrono__ "'>"; //------------------- const string HTTP_OK = "HTTP/1.0 200 OK"; const string MOVED_PERM = "HTTP/1.0 301 Moved Permanently\r\nLocation: "; const string UNAUTHORIZED = "HTTP/1.0 401 Unauthorized"; #define ON 1 #define OFF 0 const string str_DOCTYPE = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\r\n";