]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mdhelp: add passwd and ipblocking classes
authorJaroslav Kysela <perex@perex.cz>
Wed, 6 Apr 2016 15:55:06 +0000 (17:55 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 6 Apr 2016 15:55:06 +0000 (17:55 +0200)
docs/class/ipblocking.md [new file with mode: 0644]
docs/class/passwd.md [new file with mode: 0644]
src/access.c
src/webui/static/app/config.js

diff --git a/docs/class/ipblocking.md b/docs/class/ipblocking.md
new file mode 100644 (file)
index 0000000..82933c1
--- /dev/null
@@ -0,0 +1,4 @@
+##Configuration - IP Blocking Records
+
+This tab allows to configure blocked IP ranges. Users within these ranges
+are not allowed to login (use any Tvheadend service).
diff --git a/docs/class/passwd.md b/docs/class/passwd.md
new file mode 100644 (file)
index 0000000..d3fb1ce
--- /dev/null
@@ -0,0 +1,6 @@
+##Configuration - Passwords
+
+This tab is the second part of Tvheadend's access control mechanism. It is
+where you set and maintain all user passwords (e.g. for streaming or DVR access).
+
+One user name might have multiple passwords.
index cc45a854b765f151664dbc180ce3b2fe6e19a5c4..d2c9be464cbfc77fe648b65bb9fac3279855ba77 100644 (file)
@@ -1897,11 +1897,14 @@ passwd_entry_class_password2_set(void *o, const void *v)
   return 0;
 }
 
+extern const char *tvh_doc_passwd_class[];
+
 const idclass_t passwd_entry_class = {
   .ic_class      = "passwd",
   .ic_caption    = N_("Passwords"),
   .ic_event      = "passwd",
   .ic_perm_def   = ACCESS_ADMIN,
+  .ic_doc        = tvh_doc_passwd_class,
   .ic_save       = passwd_entry_class_save,
   .ic_get_title  = passwd_entry_class_get_title,
   .ic_delete     = passwd_entry_class_delete,
@@ -2046,11 +2049,15 @@ ipblock_entry_class_prefix_get(void *o)
   return &ret;
 }
 
+extern const char *tvh_doc_ipblocking_class[];
+
+
 const idclass_t ipblock_entry_class = {
   .ic_class      = "ipblocking",
   .ic_caption    = N_("IP blocking"),
   .ic_event      = "ipblocking",
   .ic_perm_def   = ACCESS_ADMIN,
+  .ic_doc        = tvh_doc_ipblocking_class,
   .ic_save       = ipblock_entry_class_save,
   .ic_get_title  = ipblock_entry_class_get_title,
   .ic_delete     = ipblock_entry_class_delete,
index 8f06c58c48d669277a5a0244c82034a43ccf9fe6..1c55f1f703e659135e9c8650a951d9189a2a095b 100644 (file)
@@ -41,7 +41,7 @@ tvheadend.baseconf = function(panel, index) {
                 if (l !== tvheadend.uilevel)
                     reload = 1;
             }
-            var n = data['theme'];
+            var n = data['theme_ui'];
             if (n !== tvheadend.theme)
               reload = 1;
             var n = data['uilevel_nochange'] ? true : false;