/* * This file is a part of CMSLU -- Content Management System like Unix * and is not publicly distributed * * Copyright (c) 2008, Tomasz Sowa * All rights reserved. * */ #ifndef headerfiledata #define headerfiledata #include #include #include #include "misc.h" #include "item.h" #include "error.h" #include "dir.h" class Data { public: // ----------------------------------------------------------------- // members read from a config file // name of the config file (full path can be) std::string config_file; // log file name std::string log_file; // 1 - minimum // 2 - (default) // 3 - maximum - all logs int log_level; // logging to stdout too bool log_stdout; // fast cgi: socket (unix domain) std::string fcgi_socket; // fast cgi: socket permissions int fcgi_socket_chmod; // fast cgi: owner of the socket std::string fcgi_socket_user; // fast cgi: group of the socket std::string fcgi_socket_group; std::string templates; std::string default_index; std::string db_database; std::string db_user; std::string db_pass; std::string base_url; std::string http_session_id_name; // if there is one item in a directory // it will be showed // (instead of showing directory contents) bool one_item_is_showed; // end config members // ----------------------------------------------------------------- // false at the beginning bool stdout_is_closed; // true if there was the SIGHUP signal volatile bool signal_hup; Dir dir; Data(); }; extern Data data; #endif