diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2009-09-07 19:13:48 +0200 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2009-09-07 19:13:48 +0200 |
commit | 4cf240cb6faa33f1e51d1040ee6162f245525f8f (patch) | |
tree | 477ccddccc832dff245fc1590d7a52fbd59f59b5 /live.cpp | |
parent | ac835e1d5366908e0c3a706ed3c9298041c4bad9 (diff) | |
download | vdr-plugin-live-4cf240cb6faa33f1e51d1040ee6162f245525f8f.tar.gz vdr-plugin-live-4cf240cb6faa33f1e51d1040ee6162f245525f8f.tar.bz2 |
new user management within setup that also handles different user rights
Diffstat (limited to 'live.cpp')
-rw-r--r-- | live.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* - * httpd.c: A plugin for the Video Disk Recorder + * live.cpp: A plugin for the Video Disk Recorder * * See the README file for copyright information and how to reach the author. * @@ -15,6 +15,7 @@ #include "thread.h" #include "timers.h" #include "preload.h" +#include "users.h" namespace vdrlive { @@ -25,6 +26,8 @@ const char *Plugin::DESCRIPTION = LIVESUMMARY; std::string Plugin::m_configDirectory; +cUsers Users; + Plugin::Plugin(void) { } @@ -52,6 +55,9 @@ bool Plugin::Start(void) // preload files into file Cache PreLoadFileCache(m_configDirectory); + // load users + Users.Load(AddDirectory(m_configDirectory.c_str(), "users.conf"), true); + // XXX error handling m_thread.reset( new ServerThread ); m_thread->Start(); |