Library Hebergement.h

Dependents:   Nucleo_Web_ENC28J60 Nucleo_Web_ENC28J60_ADC

Committer:
Fo170
Date:
Wed Aug 19 16:08:57 2015 +0000
Revision:
3:8f40eff6b3ce
Parent:
2:b71f5a2b31bc
Child:
4:11e8d85ca94c
changement code concernant les ressources images

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Fo170 0:d1929cbe2915 1 #define __hebergement__ "http://olivier.fournet.free.fr/"
Fo170 0:d1929cbe2915 2 #define __Time_between_page_refresh__ "1"
Fo170 0:d1929cbe2915 3
Fo170 0:d1929cbe2915 4 const string str_meta_refresh = "<meta http-equiv=\"refresh\" content=\"" __Time_between_page_refresh__ ";url=http://" __IP_LOCAL__ "/\">";
Fo170 0:d1929cbe2915 5
Fo170 0:d1929cbe2915 6 const string str_JavaScript = "<script language=\"javascript\" type=\"text/javascript\" src=\"" __hebergement__ "electronique/e/WebServerNucleo/js/WebServerNucleo_Interactivity_init.js\"></script>\r\n";
Fo170 0:d1929cbe2915 7
Fo170 0:d1929cbe2915 8 const string str_Compilation_DATE_AND_TIME = "<p>Compilation avec mBED &agrave; " __TIME__ " le " __DATE__" \r\n";
Fo170 0:d1929cbe2915 9
Fo170 0:d1929cbe2915 10 // Logo Test d'image en base64 :
Fo170 0:d1929cbe2915 11 // http://webcodertools.com/imagetobase64converter/Create
Fo170 0:d1929cbe2915 12 // const string str_Logo_image = "<img alt='' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAAAUklEQVQ4T2NggIEGMIBzCTDgSh0cHAjrIcFgiGFoGoCWELYQrgLIgGsg4CtkaTibWNfu378fq2tpHx6EbcAMQ8J6iPU3cpIhbCqaisFpCTwVAwB5lit+0ltbrgAAAABJRU5ErkJggg=='>";
Fo170 0:d1929cbe2915 13 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\">";
Fo170 0:d1929cbe2915 14
Fo170 3:8f40eff6b3ce 15 #define __image_password_folder__ "password_folder.jpg"
Fo170 3:8f40eff6b3ce 16 const string str_image_Password_Folder = "<img alt='' src='" __hebergement__ "jpg/" __image_password_folder__ "'>";
Fo170 3:8f40eff6b3ce 17
Fo170 3:8f40eff6b3ce 18 #define __image_301_Moved_Permanently__ "301_moved_permanently.jpg"
Fo170 3:8f40eff6b3ce 19 const string str_moved_perm = "<img alt='' src='" __hebergement__ "jpg/" __image_301_Moved_Permanently__ "'>";
Fo170 3:8f40eff6b3ce 20
Fo170 3:8f40eff6b3ce 21 #define __image_401_Unauthorized__ "401_Unauthorized.png"
Fo170 3:8f40eff6b3ce 22 const string str_Unauthorized = "<img alt='' src='" __hebergement__ "png/" __image_401_Unauthorized__ "'>";
Fo170 0:d1929cbe2915 23
Fo170 3:8f40eff6b3ce 24 #define __image_ampoule_OFF__ "ampoule_OFF_x32.png"
Fo170 3:8f40eff6b3ce 25 const string str_ampoule_OFF = "<img alt='' src='" __hebergement__ "png/" __image_ampoule_OFF__ "'>";
Fo170 3:8f40eff6b3ce 26
Fo170 3:8f40eff6b3ce 27 #define __image_ampoule_ON__ "ampoule_ON_x32.png"
Fo170 3:8f40eff6b3ce 28 const string str_ampoule_ON = "<img alt='' src='" __hebergement__ "png/" __image_ampoule_ON__ "'>";
Fo170 0:d1929cbe2915 29
Fo170 3:8f40eff6b3ce 30 #define __image_thermometre__ "thermometre_x64.png"
Fo170 3:8f40eff6b3ce 31 const string str_thermometre = "<img alt='' src='" __hebergement__ "png/" __image_thermometre__ "'>";
Fo170 0:d1929cbe2915 32
Fo170 3:8f40eff6b3ce 33 #define __image_chrono__ "chrono_x64.png"
Fo170 3:8f40eff6b3ce 34 const string str_chrono = "<img alt='' src='" __hebergement__ "png/" __image_chrono__ "'>";
Fo170 0:d1929cbe2915 35 //-------------------
Fo170 0:d1929cbe2915 36
Fo170 0:d1929cbe2915 37 const string HTTP_OK = "HTTP/1.0 200 OK";
Fo170 0:d1929cbe2915 38 const string MOVED_PERM = "HTTP/1.0 301 Moved Permanently\r\nLocation: ";
Fo170 1:cdb8b0e889cb 39 const string UNAUTHORIZED = "HTTP/1.0 401 Unauthorized";
Fo170 1:cdb8b0e889cb 40
Fo170 1:cdb8b0e889cb 41 #define ON 1
Fo170 2:b71f5a2b31bc 42 #define OFF 0
Fo170 2:b71f5a2b31bc 43
Fo170 2:b71f5a2b31bc 44 const string str_DOCTYPE = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\r\n";