#include <algorithm>
-#include "stg_locker.h"
+#include "stg/stg_locker.h"
// Polymorphick action invocation
template <class ACTIVE_CLASS, typename DATA_TYPE>
*/
#include "admin_impl.h"
-#include "common.h"
+#include "stg/common.h"
//-----------------------------------------------------------------------------
ADMIN_IMPL::ADMIN_IMPL()
#include <string>
-#include "admin.h"
-#include "os_int.h"
-#include "admin_conf.h"
-#include "stg_logger.h"
+#include "stg/admin.h"
+#include "stg/os_int.h"
+#include "stg/admin_conf.h"
+#include "stg/stg_logger.h"
class ADMIN_IMPL : public ADMIN {
public:
#include <cassert>
#include <algorithm>
+#include "stg/admins.h"
+#include "stg/admin.h"
+#include "stg/common.h"
#include "admins_impl.h"
-#include "admins.h"
-#include "admin.h"
#include "admin_impl.h"
-#include "common.h"
using namespace std;
#include <list>
#include <map>
-#include "admins.h"
-#include "admin.h"
+#include "stg/admins.h"
+#include "stg/admin.h"
+#include "stg/stg_locker.h"
+#include "stg/store.h"
+#include "stg/noncopyable.h"
#include "admin_impl.h"
-#include "stg_locker.h"
-#include "store.h"
-#include "noncopyable.h"
class ADMINS_IMPL : private NONCOPYABLE, public ADMINS {
public:
#include <cerrno>
#include <cstring>
+#include "stg/stg_locker.h"
+#include "stg/common.h"
#include "eventloop.h"
-#include "stg_locker.h"
-#include "common.h"
EVENT_LOOP::EVENT_LOOP()
: ACTIONS_LIST()
#include <pthread.h>
-#include "noncopyable.h"
+#include "stg/noncopyable.h"
#include "actions.h"
class EVENT_LOOP : private NONCOPYABLE,
#include <set>
#include <list>
+#include "stg/user.h"
+#include "stg/common.h"
+#include "stg/plugin.h"
+#include "stg/stg_logger.h"
+#include "stg/script_executer.h"
+#include "stg/conffiles.h"
+#include "stg/version.h"
+#include "stg/pinger.h"
+#include "stg_timer.h"
#include "settings_impl.h"
-#include "user.h"
#include "users_impl.h"
#include "admins_impl.h"
#include "tariffs_impl.h"
-#include "common.h"
#include "traffcounter_impl.h"
-#include "plugin.h"
-#include "stg_logger.h"
-#include "stg_timer.h"
#include "plugin_runner.h"
-#include "script_executer.h"
-#include "conffiles.h"
-#include "version.h"
#include "store_loader.h"
#include "pidfile.h"
#include "eventloop.h"
set<pid_t> executersPid;
static pid_t stgChildPid;
-#include "pinger.h"
//-----------------------------------------------------------------------------
bool StartModCmp(const PLUGIN_RUNNER & lhs, const PLUGIN_RUNNER & rhs)
#include <dlfcn.h>
#include <unistd.h>
+#include "stg/common.h"
+#include "stg/traffcounter.h"
#include "plugin_runner.h"
-#include "common.h"
#include "settings_impl.h"
#include "admins_impl.h"
#include "tariffs_impl.h"
#include "users_impl.h"
-#include "traffcounter.h"
//-----------------------------------------------------------------------------
PLUGIN_RUNNER::PLUGIN_RUNNER(const std::string & pFileName,
#include <string>
-#include "module_settings.h"
-#include "plugin.h"
-#include "os_int.h"
+#include "stg/module_settings.h"
+#include "stg/plugin.h"
+#include "stg/os_int.h"
class SETTINGS_IMPL;
class ADMINS_IMPL;
#include <cerrno>
#include <string>
+#include "stg/stg_logger.h"
+#include "stg/dotconfpp.h"
#include "settings_impl.h"
-#include "stg_logger.h"
-#include "dotconfpp.h"
using namespace std;
#include <string>
#include <vector>
-#include "settings.h"
-#include "common.h"
-#include "stg_logger.h"
-#include "module_settings.h"
+#include "stg/settings.h"
+#include "stg/common.h"
+#include "stg/stg_logger.h"
+#include "stg/module_settings.h"
//-----------------------------------------------------------------------------
enum DETAIL_STAT_PERIOD {
#include <ctime>
#include <cstring>
-#include "common.h"
+#include "stg/common.h"
static int nonstop;
static pthread_t thrStgTimer;
#include <dlfcn.h>
+#include "stg/common.h"
+#include "stg/store.h"
#include "store_loader.h"
-#include "common.h"
-#include "store.h"
#include "settings_impl.h"
STORE_LOADER::STORE_LOADER(const SETTINGS_IMPL & settings)
#include <string>
-#include "module_settings.h"
-#include "noncopyable.h"
+#include "stg/module_settings.h"
+#include "stg/noncopyable.h"
class STORE;
class SETTINGS_IMPL;
#include <ctime>
#include <algorithm> // std::max
+#include "stg/common.h"
#include "tariff_impl.h"
#include "stg_timer.h"
-#include "common.h"
//-----------------------------------------------------------------------------
TARIFF & TARIFF_IMPL::operator=(const TARIFF_DATA & td)
#include <string>
#include <list>
-#include "tariff.h"
-#include "os_int.h"
-#include "tariff_conf.h"
+#include "stg/tariff.h"
+#include "stg/os_int.h"
+#include "stg/tariff_conf.h"
#define TARIFF_DAY 0
#define TARIFF_NIGHT 1
#include <algorithm>
#include <vector>
+#include "stg/stg_locker.h"
+#include "stg/stg_logger.h"
+#include "stg/store.h"
+#include "stg/admin.h"
#include "tariffs_impl.h"
-#include "stg_locker.h"
-#include "stg_logger.h"
-#include "store.h"
-#include "admin.h"
using namespace std;
#include <string>
#include <list>
-#include "tariff.h"
+#include "stg/tariff.h"
+#include "stg/tariffs.h"
+#include "stg/tariff_conf.h"
#include "tariff_impl.h"
-#include "tariffs.h"
-#include "tariff_conf.h"
#define TARIFF_DAY 0
#define TARIFF_NIGHT 1
#include <cassert>
#include <cstdio> // fopen and similar
+#include "stg/common.h"
+#include "stg/stg_locker.h"
#include "traffcounter_impl.h"
-#include "common.h"
-#include "stg_locker.h"
#include "stg_timer.h"
#define FLUSH_TIME (10)
#include <map>
#include <string>
-#include "traffcounter.h"
-#include "os_int.h"
-#include "stg_logger.h"
-#include "raw_ip_packet.h"
-#include "users.h"
+#include "stg/traffcounter.h"
+#include "stg/os_int.h"
+#include "stg/stg_logger.h"
+#include "stg/raw_ip_packet.h"
+#include "stg/users.h"
+#include "stg/noncopyable.h"
#include "actions.h"
-#include "noncopyable.h"
#include "eventloop.h"
#define PROTOMAX (5)
#include <cassert>
#include <cstdlib>
+#include "stg/users.h"
+#include "stg/common.h"
+#include "stg/script_executer.h"
+#include "stg/tariff.h"
+#include "stg/tariffs.h"
+#include "stg/admin.h"
#include "user_impl.h"
-#include "users.h"
-#include "common.h"
#include "settings_impl.h"
-#include "script_executer.h"
-#include "tariff.h"
-#include "tariffs.h"
-#include "admin.h"
USER_IMPL::USER_IMPL(const SETTINGS_IMPL * s,
const STORE * st,
#include <string>
#include <set>
-#include "user.h"
-#include "os_int.h"
-#include "stg_const.h"
-#include "user_stat.h"
-#include "user_conf.h"
-#include "user_ips.h"
-#include "user_property.h"
-#include "auth.h"
-#include "stg_message.h"
-#include "noncopyable.h"
+#include "stg/user.h"
+#include "stg/os_int.h"
+#include "stg/stg_const.h"
+#include "stg/user_stat.h"
+#include "stg/user_conf.h"
+#include "stg/user_ips.h"
+#include "stg/user_property.h"
+#include "stg/auth.h"
+#include "stg/stg_message.h"
+#include "stg/noncopyable.h"
//-----------------------------------------------------------------------------
class TARIFF;
-#include "user_property.h"
+#include "stg/user_property.h"
//-----------------------------------------------------------------------------
USER_PROPERTIES::USER_PROPERTIES(const std::string & sd)
#include <string>
#include <vector>
-#include "settings.h"
+#include "stg/settings.h"
+#include "stg/common.h"
#include "users_impl.h"
-#include "common.h"
#include "stg_timer.h"
using namespace std;
#include <list>
#include <set>
-#include "os_int.h"
-
-#include "store.h"
-#include "settings_impl.h"
-#include "users.h"
-#include "user.h"
-#include "user_impl.h"
-#include "tariffs.h"
-#include "stg_logger.h"
-#include "notifer.h"
+#include "stg/os_int.h"
+#include "stg/store.h"
+#include "stg/users.h"
+#include "stg/user.h"
+#include "stg/tariffs.h"
+#include "stg/stg_logger.h"
+#include "stg/notifer.h"
+#include "stg/noncopyable.h"
#include "actions.h"
-#include "noncopyable.h"
#include "eventloop.h"
+#include "settings_impl.h"
+#include "user_impl.h"
const int userDeleteDelayTime = 120;