Avetisyan Karen пре 7 година
родитељ
комит
dd3e8477dd
3 измењених фајлова са 36 додато и 35 уклоњено
  1. BIN
      modules/HTTP_Server/fs/role.js
  2. 35 34
      modules/HTTP_Server/fsdata.c
  3. 1 1
      web_interface/src/wui/role.js

BIN
modules/HTTP_Server/fs/role.js


+ 35 - 34
modules/HTTP_Server/fsdata.c

@@ -1836,10 +1836,10 @@ static const unsigned char data__role_js[] = {
 0x2e,0x31,0x20,0x28,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x73,0x61,0x76,0x61,0x6e,
 0x6e,0x61,0x68,0x2e,0x6e,0x6f,0x6e,0x67,0x6e,0x75,0x2e,0x6f,0x72,0x67,0x2f,0x70,
 0x72,0x6f,0x6a,0x65,0x63,0x74,0x73,0x2f,0x6c,0x77,0x69,0x70,0x29,0x0d,0x0a,
-/* "Content-Length: 2123
+/* "Content-Length: 2132
 " (18+ bytes) */
 0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x2d,0x4c,0x65,0x6e,0x67,0x74,0x68,0x3a,0x20,
-0x32,0x31,0x32,0x33,0x0d,0x0a,
+0x32,0x31,0x33,0x32,0x0d,0x0a,
 /* "Connection: Close
 " (19 bytes) */
 0x43,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x69,0x6f,0x6e,0x3a,0x20,0x43,0x6c,0x6f,0x73,
@@ -1856,7 +1856,7 @@ Cache-Control: private, max-age=86400
 0x43,0x61,0x63,0x68,0x65,0x2d,0x43,0x6f,0x6e,0x74,0x72,0x6f,0x6c,0x3a,0x20,0x70,
 0x72,0x69,0x76,0x61,0x74,0x65,0x2c,0x20,0x6d,0x61,0x78,0x2d,0x61,0x67,0x65,0x3d,
 0x38,0x36,0x34,0x30,0x30,0x0d,0x0a,0x0d,0x0a,
-/* raw file data (2123 bytes) */
+/* raw file data (2132 bytes) */
 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x04,0x0a,0xb5,0x58,0xef,0x6e,0xdb,0xc8,
 0x11,0x7f,0x15,0x7a,0xef,0xe0,0x70,0x23,0x9a,0x47,0xe5,0xae,0x29,0x22,0x86,0x11,
 0x62,0x27,0x3d,0xfb,0x10,0xc7,0x87,0xb3,0x8a,0x5e,0x61,0x18,0xc1,0x72,0x77,0x65,
@@ -1959,37 +1959,38 @@ Cache-Control: private, max-age=86400
 0x99,0x3c,0x19,0x8f,0x01,0xe6,0x30,0x13,0xb8,0x20,0xf7,0x04,0x16,0xf1,0x8e,0xa6,
 0x3d,0x0e,0x5d,0xf7,0x3c,0xa0,0x3a,0xf6,0x7c,0xa2,0xd5,0x49,0x86,0xad,0xf4,0x70,
 0x74,0xfc,0x26,0xb2,0xa3,0x69,0xb9,0x74,0x69,0x58,0x97,0xa7,0xca,0xcc,0x0b,0xa4,
-0x9b,0x66,0x14,0xcc,0x46,0x91,0xef,0xdc,0x5f,0xe5,0x15,0xd6,0x61,0x3c,0xde,0x67,
-0x69,0xc6,0xe6,0xe8,0xd8,0xee,0xea,0x86,0xdd,0x53,0xcb,0x3a,0xba,0x78,0x82,0x25,
-0x38,0xe6,0xad,0x3c,0xdf,0x3c,0x66,0xd8,0xd1,0x78,0xfd,0x86,0x7a,0xcf,0xe6,0xac,
-0xe4,0x45,0x92,0xeb,0xc1,0x5c,0x25,0xc2,0x0d,0x68,0x48,0x3c,0x8e,0x8e,0x69,0x5c,
-0x23,0xab,0xbf,0xdc,0xfd,0xe9,0xee,0x8f,0xab,0xff,0xac,0x7e,0x74,0x5c,0xd2,0xeb,
-0x74,0xee,0xcc,0x74,0x24,0xca,0x93,0x50,0x23,0xa1,0x32,0xbb,0x9d,0x63,0x67,0x36,
-0x4f,0x43,0x2f,0xf6,0x81,0x98,0xf5,0x5b,0x90,0xe0,0x1b,0x6f,0x56,0xff,0x2e,0x11,
-0x53,0x16,0x43,0xfc,0x60,0x92,0xa4,0xc2,0x45,0x66,0x98,0x79,0x7f,0xac,0x09,0x31,
-0x5d,0x2e,0xbd,0x2d,0xb0,0xdc,0xe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f7,0xc3,0xdd,0x9f,0x0d,
+0x1b,0xba,0xb5,0xf3,0xc6,0xa9,0xab,0x05,0xaf,0xe3,0xce,0x13,0xfe,0x11,0xe9,0x6d,
+0x64,0x0d,0xd6,0xf6,0xc8,0x23,0xef,0x11,0x7e,0x4e,0x78,0xe4,0x39,0xb3,0x5c,0xa0,
+0xc6,0x73,0xcc,0x60,0x8a,0xea,0xde,0xac,0x15,0x4e,0x97,0x35,0x52,0x03,0x5d,0xec,
+0xdc,0xf6,0x39,0xcb,0xb8,0x4c,0xf7,0xad,0x37,0x95,0xcf,0x78,0x1c,0x34,0x0d,0x75,
+0x9f,0xcf,0xe2,0x63,0x3e,0x5f,0xb1,0x22,0xc3,0x36,0xd9,0x71,0xda,0x2c,0xb4,0x06,
+0xc9,0xa6,0xac,0xc0,0x2f,0x13,0x6f,0xe4,0x58,0x47,0xe4,0x17,0x39,0xea,0x42,0x6c,
+0x45,0xe3,0xaf,0x88,0xc4,0xbf,0x56,0x3f,0xad,0xfe,0xbd,0xfa,0xbb,0x39,0xfc,0x1f,
+0x62,0x50,0xb9,0xf1,0xeb,0x4f,0x8e,0x04,0x9e,0xec,0x6b,0x2f,0x63,0x25,0x16,0xe8,
+0xe4,0x12,0xa9,0xda,0x97,0x78,0xdf,0x49,0x8c,0xbd,0xcd,0x43,0x6e,0x5a,0xef,0xad,
+0x12,0xb2,0xc4,0x43,0x8e,0x7a,0x63,0xfc,0x7e,0x71,0x94,0xb9,0x6d,0x1b,0xfd,0x7c,
+0x0b,0xda,0x35,0x77,0xab,0x07,0x3b,0xb2,0x35,0x8a,0xb5,0x94,0x70,0xf3,0xf2,0x42,
+0x4e,0xd5,0x5c,0x56,0xdd,0x8f,0x9f,0xb5,0x96,0xe1,0x7f,0x01,0x1e,0x03,0x16,0xfc,
+0x09,0x13,0x00,0x00,};
 
 static const unsigned int dummy_align__rotek_png = 8;
 static const unsigned char data__rotek_png[] = {

+ 1 - 1
web_interface/src/wui/role.js

@@ -57,7 +57,7 @@ var customClock = (function() {
 }());
 
 window.onload = function(){
-  if (window.location.pathname !== '/login.html'){
+  if (window.location.pathname !== '/login.html' && getCookie('auth') !== '0'){
     var navId = document.getElementById('nav');
     var li = document.createElement('li');
     var logout = document.createElement('a');