]> git.stg.codes - stg.git/log
stg.git
4 years agoUpdate travis dist.
Maksym Mamontov [Tue, 28 Jan 2020 17:33:24 +0000 (19:33 +0200)]
Update travis dist.

4 years agoTarget-specific, compiler-aware warnings.
Maksym Mamontov [Tue, 28 Jan 2020 17:31:40 +0000 (19:31 +0200)]
Target-specific, compiler-aware warnings.

4 years agoGCC version, warnings.
Maksym Mamontov [Tue, 28 Jan 2020 17:23:41 +0000 (19:23 +0200)]
GCC version, warnings.

4 years agoLower C++ version, minmal GCC version, compiler-related flags.
Maksym Mamontov [Tue, 28 Jan 2020 17:05:25 +0000 (19:05 +0200)]
Lower C++ version, minmal GCC version, compiler-related flags.

4 years agoRemove some more std::list.
Maksym Mamontov [Tue, 28 Jan 2020 16:43:43 +0000 (18:43 +0200)]
Remove some more std::list.

4 years agoFix build on OSX.
Maksym Mamontov [Tue, 28 Jan 2020 15:43:23 +0000 (17:43 +0200)]
Fix build on OSX.

4 years agoRemove some more std::list.
Maksym Mamontov [Mon, 27 Jan 2020 21:30:18 +0000 (23:30 +0200)]
Remove some more std::list.

4 years agoRemove std::list from actions.
Maksym Mamontov [Mon, 27 Jan 2020 21:23:57 +0000 (23:23 +0200)]
Remove std::list from actions.

4 years agoRemove std::list from tariffs.
Maksym Mamontov [Mon, 27 Jan 2020 21:20:21 +0000 (23:20 +0200)]
Remove std::list from tariffs.

4 years agoReplace STG::ARRAY with std::array.
Maksym Mamontov [Mon, 27 Jan 2020 21:02:05 +0000 (23:02 +0200)]
Replace STG::ARRAY with std::array.

4 years agoReplace boost::scoped_ptr with std::unique_ptr.
Maksym Mamontov [Mon, 27 Jan 2020 20:58:14 +0000 (22:58 +0200)]
Replace boost::scoped_ptr with std::unique_ptr.

4 years agoRemove x2str/unsigned2str in favor of std::to_string.
Maksym Mamontov [Mon, 27 Jan 2020 20:53:35 +0000 (22:53 +0200)]
Remove x2str/unsigned2str in favor of std::to_string.

4 years agoFix funtests to work with the new build system.
Maksym Mamontov [Sun, 19 Jan 2020 17:42:11 +0000 (19:42 +0200)]
Fix funtests to work with the new build system.

4 years agoRemove some old stuff.
Maksym Mamontov [Sun, 19 Jan 2020 10:23:02 +0000 (12:23 +0200)]
Remove some old stuff.

4 years agoReorganize plugins.
Maksym Mamontov [Sun, 19 Jan 2020 10:11:47 +0000 (12:11 +0200)]
Reorganize plugins.

4 years agoRemove Makefiles from libs.
Maksym Mamontov [Sun, 12 Jan 2020 17:23:12 +0000 (19:23 +0200)]
Remove Makefiles from libs.

4 years agoRestructure libs.
Maksym Mamontov [Sun, 12 Jan 2020 17:22:37 +0000 (19:22 +0200)]
Restructure libs.

4 years agoAdd missing file template.
Maksym Mamontov [Tue, 7 Jan 2020 20:07:42 +0000 (22:07 +0200)]
Add missing file template.

4 years agoFix sgauth build (css embedding).
Maksym Mamontov [Tue, 7 Jan 2020 20:05:20 +0000 (22:05 +0200)]
Fix sgauth build (css embedding).

4 years agoAdd Boost to Travis.
Maksym Mamontov [Tue, 7 Jan 2020 18:06:53 +0000 (20:06 +0200)]
Add Boost to Travis.

4 years agoInstall some necessary libs in Travis.
Maksym Mamontov [Tue, 7 Jan 2020 17:42:38 +0000 (19:42 +0200)]
Install some necessary libs in Travis.

4 years agoUpdate Travis config.
Maksym Mamontov [Tue, 7 Jan 2020 17:38:00 +0000 (19:38 +0200)]
Update Travis config.

4 years agoPort to CMake, get rid of os_int.h.
Maksym Mamontov [Tue, 7 Jan 2020 17:35:08 +0000 (19:35 +0200)]
Port to CMake, get rid of os_int.h.

4 years agoMerge branch 'stg-2.409-radius'
Maksym Mamontov [Wed, 1 Jan 2020 19:12:22 +0000 (21:12 +0200)]
Merge branch 'stg-2.409-radius'

4 years agoMerge branch 'stg-2.409'
Maksym Mamontov [Wed, 1 Jan 2020 19:11:53 +0000 (21:11 +0200)]
Merge branch 'stg-2.409'

6 years agoMerge branch 'stg-2.409' into stg-2.409-radius
Maxim Mamontov [Sun, 11 Mar 2018 10:12:32 +0000 (12:12 +0200)]
Merge branch 'stg-2.409' into stg-2.409-radius

6 years agoRemove redundand ctors.
Maxim Mamontov [Sun, 18 Feb 2018 17:48:42 +0000 (19:48 +0200)]
Remove redundand ctors.

6 years agoUnused code.
Maxim Mamontov [Sun, 18 Feb 2018 17:48:08 +0000 (19:48 +0200)]
Unused code.

6 years agoVariable scope reduction.
Maxim Mamontov [Sun, 18 Feb 2018 17:17:04 +0000 (19:17 +0200)]
Variable scope reduction.

6 years agoMinor changes.
Maxim Mamontov [Sun, 18 Feb 2018 17:12:49 +0000 (19:12 +0200)]
Minor changes.

6 years agoRemove dead code.
Maxim Mamontov [Sun, 18 Feb 2018 17:09:28 +0000 (19:09 +0200)]
Remove dead code.

6 years agoMinor changes.
Maxim Mamontov [Sun, 18 Feb 2018 16:54:01 +0000 (18:54 +0200)]
Minor changes.

6 years agoRemove redindand ctors from USER_IPS.
Maxim Mamontov [Sun, 18 Feb 2018 15:31:17 +0000 (17:31 +0200)]
Remove redindand ctors from USER_IPS.

6 years agoExplicit prohibition of the PLUGIN_LOGGER assignment.
Maxim Mamontov [Sun, 18 Feb 2018 14:57:57 +0000 (16:57 +0200)]
Explicit prohibition of the PLUGIN_LOGGER assignment.

6 years agoMerge branch 'stg-2.409' into stg-2.409-radius
Maxim Mamontov [Wed, 14 Feb 2018 10:34:27 +0000 (12:34 +0200)]
Merge branch 'stg-2.409' into stg-2.409-radius

6 years agoMerge remote-tracking branch 'origin/ticket52' into stg-2.409
Maxim Mamontov [Wed, 14 Feb 2018 10:29:56 +0000 (12:29 +0200)]
Merge remote-tracking branch 'origin/ticket52' into stg-2.409

6 years agoFix build on FreeBSD.
Maxim Mamontov [Wed, 14 Feb 2018 08:17:11 +0000 (10:17 +0200)]
Fix build on FreeBSD.

6 years agoTicket 52. Definition of the tariff pointer added to the ticket52
Elena Mamontova [Mon, 12 Feb 2018 11:07:33 +0000 (13:07 +0200)]
Ticket 52. Definition of the tariff pointer added to the
USER_IMPL::Init() function.

6 years agoMore verbose debug.
Maxim Mamontov [Wed, 10 Jan 2018 21:05:49 +0000 (23:05 +0200)]
More verbose debug.

7 years agoMinor fixes.
Maxim Mamontov [Sat, 21 Jan 2017 19:26:32 +0000 (21:26 +0200)]
Minor fixes.

7 years agoMerge branch 'stg-2.409'
Maxim Mamontov [Sat, 21 Jan 2017 19:05:30 +0000 (21:05 +0200)]
Merge branch 'stg-2.409'

7 years agoMerge branch 'stg-2.409' into stg-2.409-radius
Maxim Mamontov [Sat, 21 Jan 2017 19:02:07 +0000 (21:02 +0200)]
Merge branch 'stg-2.409' into stg-2.409-radius

7 years agoVarious fixes of issues reported by static analyzers.
Maxim Mamontov [Sat, 21 Jan 2017 18:19:06 +0000 (20:19 +0200)]
Various fixes of issues reported by static analyzers.

7 years agoTicket 37. The construction if-else removed and ReadString() changed to
Elena Mamontova [Thu, 19 Jan 2017 14:46:41 +0000 (16:46 +0200)]
Ticket 37. The construction if-else removed and ReadString() changed to
ReadTime() for the ChangedPolicyTimeout in the RestoreTariff().

7 years agoTicket 37. The readTime() changed to str2x(), default value in the
Elena Mamontova [Wed, 18 Jan 2017 17:45:44 +0000 (19:45 +0200)]
Ticket 37. The readTime() changed to str2x(), default value in the
ReadString() changed to "0" for the changePolicyTimeout field in the
RestoreTariff() function.

7 years agoTicket 37. WriteString() changed to WriteTime() and formatTime() remowed
Elena Mamontova [Wed, 28 Dec 2016 13:32:32 +0000 (15:32 +0200)]
Ticket 37. WriteString() changed to WriteTime() and formatTime() remowed
for the ChangePolicyTimeout field in the SaveTariff() function in
file_store.cpp.

7 years agoTicket 37. WriteTime() changed to WriteString() and formatTime() added
Elena Mamontova [Wed, 28 Dec 2016 06:40:42 +0000 (08:40 +0200)]
Ticket 37. WriteTime() changed to WriteString() and formatTime() added
for the ChangePolicyTimeout field in the SaveTariff() function in
file_store.cpp.

7 years agoMerge remote-tracking branch 'origin/master' into ticket ticket
Elena Mamontova [Thu, 19 Jan 2017 14:00:03 +0000 (16:00 +0200)]
Merge remote-tracking branch 'origin/master' into ticket

7 years agoTicket. GetChangePolicyTimeout() function removed.
Elena Mamontova [Thu, 19 Jan 2017 13:35:29 +0000 (15:35 +0200)]
Ticket. GetChangePolicyTimeout() function removed.
GetChangePolicyTimeout parameter removed in AddParser() function in
PARSER() constructor.

7 years agoMerge branch 'stg-2.409'
Maxim Mamontov [Thu, 22 Dec 2016 20:25:24 +0000 (22:25 +0200)]
Merge branch 'stg-2.409'

7 years agoMerge branch 'stg-2.409' into stg-2.409-radius
Maxim Mamontov [Thu, 22 Dec 2016 20:24:24 +0000 (22:24 +0200)]
Merge branch 'stg-2.409' into stg-2.409-radius

7 years agoFix XMLRPC doc build.
Maxim Mamontov [Thu, 22 Dec 2016 20:23:56 +0000 (22:23 +0200)]
Fix XMLRPC doc build.

7 years agoMerge branch 'stg-2.409' of stg.codes:stg into stg-2.409
Maxim Mamontov [Thu, 22 Dec 2016 20:04:28 +0000 (22:04 +0200)]
Merge branch 'stg-2.409' of stg.codes:stg into stg-2.409

7 years agoMerge remote-tracking branch 'origin/ticket'
Maxim Mamontov [Thu, 22 Dec 2016 19:56:56 +0000 (21:56 +0200)]
Merge remote-tracking branch 'origin/ticket'

7 years agoMerge branch 'stg-2.409'
Maxim Mamontov [Thu, 22 Dec 2016 19:56:09 +0000 (21:56 +0200)]
Merge branch 'stg-2.409'

7 years agoMerge branch 'stg-2.409' into stg-2.409-radius
Maxim Mamontov [Thu, 22 Dec 2016 19:46:27 +0000 (21:46 +0200)]
Merge branch 'stg-2.409' into stg-2.409-radius

7 years agoTicket 37. In the if() construction for the changePolicyTimeout
Elena Mamontova [Tue, 20 Dec 2016 13:31:06 +0000 (15:31 +0200)]
Ticket 37. In the if() construction for the changePolicyTimeout
ReadTime() changed to ReadString(), else construction added, error
message remowed in RestoreTariff().

7 years agoMinor changes.
Maxim Mamontov [Thu, 15 Dec 2016 19:05:11 +0000 (21:05 +0200)]
Minor changes.

7 years agoTicket 37. In the TariffChangeIsAllowed() function return "" added and
Elena Mamontova [Mon, 12 Dec 2016 13:18:05 +0000 (15:18 +0200)]
Ticket 37. In the TariffChangeIsAllowed() function return "" added and
unnecessary brackets removed in the if (currentTime > timeout && timeout != 0).

7 years agoTicket 37. test<11>, test<12>, test<13> added. Current time argument
Elena Mamontova [Wed, 30 Nov 2016 14:17:21 +0000 (16:17 +0200)]
Ticket 37. test<11>, test<12>, test<13> added. Current time argument
added in the TariffChangeIsAllowed() function in test<7>, test<8>,
test<9>, test<10>.

7 years agoTicket 37. '../stglibs/common.lib/strptime.cpp' added in the
Elena Mamontova [Wed, 30 Nov 2016 14:04:52 +0000 (16:04 +0200)]
Ticket 37. '../stglibs/common.lib/strptime.cpp' added in the
Makefile.darwin.

7 years agoTicket 37. '../stglibs/common.lib/strptime.cpp' added in the Makefile.
Elena Mamontova [Wed, 30 Nov 2016 14:02:03 +0000 (16:02 +0200)]
Ticket 37. '../stglibs/common.lib/strptime.cpp' added in the Makefile.

7 years agoTicket 37. The stgTime argument added in TariffChangeIsAllowed()
Elena Mamontova [Mon, 28 Nov 2016 13:24:46 +0000 (15:24 +0200)]
Ticket 37. The stgTime argument added in TariffChangeIsAllowed()
function call.

7 years agoTicket 37. The stgTime argument added in TariffChangeIsAllowed()
Elena Mamontova [Mon, 28 Nov 2016 13:23:19 +0000 (15:23 +0200)]
Ticket 37. The stgTime argument added in TariffChangeIsAllowed()
function call.

7 years agoTicket 37. The stgTime argument added in TariffChangeIsAllowed()
Elena Mamontova [Mon, 28 Nov 2016 13:21:47 +0000 (15:21 +0200)]
Ticket 37. The stgTime argument added in TariffChangeIsAllowed()
function call.

7 years agoTicket 37. The stgTime argument added in TariffChangeIsAllowed()
Elena Mamontova [Mon, 28 Nov 2016 13:18:37 +0000 (15:18 +0200)]
Ticket 37. The stgTime argument added in TariffChangeIsAllowed()
function call.

7 years agoTicket 37. The time_t currentTime parameter added in
Elena Mamontova [Mon, 28 Nov 2016 13:12:12 +0000 (15:12 +0200)]
Ticket 37. The time_t currentTime parameter added in
TariffChangeIsAllow() function decfinition. The brackets added in
construction if ((currentTime > timeout) && (timeout != 0)).

7 years agoTicket 37. The time_t currentTime parameter added in
Elena Mamontova [Mon, 28 Nov 2016 13:07:46 +0000 (15:07 +0200)]
Ticket 37. The time_t currentTime parameter added in
TariffChangeIsAllow() function declaration.

7 years agoTicket 37. The time_t currentTime parameter added in
Elena Mamontova [Mon, 28 Nov 2016 13:02:47 +0000 (15:02 +0200)]
Ticket 37. The time_t currentTime parameter added in
TariffChangeIsAllow() function declaration.

7 years agoTicket 37. if (year < 1990) checking added in the ts2time() function.
Elena Mamontova [Thu, 17 Nov 2016 08:06:55 +0000 (10:06 +0200)]
Ticket 37. if (year < 1990) checking added in the ts2time() function.

7 years agoFix passing params to OnDisconnect in rscriptd.
Maxim Mamontov [Sun, 13 Nov 2016 02:12:56 +0000 (21:12 -0500)]
Fix passing params to OnDisconnect in rscriptd.

7 years agoFix build on Darwin.
Maxim Mamontov [Sun, 13 Nov 2016 02:12:39 +0000 (21:12 -0500)]
Fix build on Darwin.

7 years agoMinor changes.
Maxim Mamontov [Thu, 15 Dec 2016 19:05:11 +0000 (21:05 +0200)]
Minor changes.

7 years agoMerge remote-tracking branch 'origin/master' into ticket
Elena Mamontova [Mon, 28 Nov 2016 13:50:59 +0000 (15:50 +0200)]
Merge remote-tracking branch 'origin/master' into ticket

7 years agoTicket. The stgTime argument added in TariffChangeIsAllowed() function
Elena Mamontova [Mon, 28 Nov 2016 13:39:42 +0000 (15:39 +0200)]
Ticket. The stgTime argument added in TariffChangeIsAllowed() function
call.

7 years agoTicket. The stgTime argument added in TariffChangeIsAllowed() function
Elena Mamontova [Mon, 28 Nov 2016 13:38:35 +0000 (15:38 +0200)]
Ticket. The stgTime argument added in TariffChangeIsAllowed() function
call.

7 years agoTicket. The stgTime argument added in TariffChangeIsAllowed() function
Elena Mamontova [Mon, 28 Nov 2016 13:37:29 +0000 (15:37 +0200)]
Ticket. The stgTime argument added in TariffChangeIsAllowed() function
call.

7 years agoTicket. The stgTime argument added in TariffChangeIsAllowed()
Elena Mamontova [Mon, 28 Nov 2016 13:35:40 +0000 (15:35 +0200)]
Ticket. The stgTime argument added in TariffChangeIsAllowed()
function call.

7 years agoTicket. The time_t currentTime parameter added in
Elena Mamontova [Mon, 28 Nov 2016 13:31:52 +0000 (15:31 +0200)]
Ticket. The time_t currentTime parameter added in
TariffChangeIsAllow() function decfinition. The time_t timeout variable and
construction if ((currentTime > timeout) && (timeout != 0)) added in
TariffChangeIsAllowed().

7 years agoTicket. The time_t currentTime parameter added in TariffChangeIsAllow()
Elena Mamontova [Mon, 28 Nov 2016 13:28:38 +0000 (15:28 +0200)]
Ticket. The time_t currentTime parameter added in TariffChangeIsAllow()
function declaration.

7 years agoTicket. The time_t currentTime parameter added in
Elena Mamontova [Mon, 28 Nov 2016 13:26:52 +0000 (15:26 +0200)]
Ticket. The time_t currentTime parameter added in
TariffChangeIsAllow() function declaration.

7 years agoTicket. The checking if(!data.tariffConf.changePolicyTimeout.emplty)
Elena Mamontova [Thu, 17 Nov 2016 08:22:55 +0000 (10:22 +0200)]
Ticket. The checking if(!data.tariffConf.changePolicyTimeout.emplty)
removed and appendResetableTag() added for the changePolicyTimeout
in the Serialize() function.

7 years agoTicket. ConvChangePolicyTimeout() function definition added. The
Elena Mamontova [Thu, 17 Nov 2016 08:13:13 +0000 (10:13 +0200)]
Ticket. ConvChangePolicyTimeout() function definition added. The
function readTime() replaced by ConvChangePolicyTimeout() for the changePolicyTimeout
in SGCONF::MaybeSet in AddTariffFunction(), ChgTariffFunction.

8 years agoMerge branch 'stg-2.409'
Maxim Mamontov [Sun, 13 Nov 2016 02:17:00 +0000 (21:17 -0500)]
Merge branch 'stg-2.409'

8 years agoMerge branch 'stg-2.409' into stg-2.409-radius
Maxim Mamontov [Sun, 13 Nov 2016 02:16:23 +0000 (21:16 -0500)]
Merge branch 'stg-2.409' into stg-2.409-radius

8 years agoFix passing params to OnDisconnect in rscriptd.
Maxim Mamontov [Sun, 13 Nov 2016 02:12:56 +0000 (21:12 -0500)]
Fix passing params to OnDisconnect in rscriptd.

8 years agoFix build on Darwin.
Maxim Mamontov [Sun, 13 Nov 2016 02:12:39 +0000 (21:12 -0500)]
Fix build on Darwin.

8 years agoTicket. AddParser() call added for the changePolicyTimeout.
Elena Mamontova [Tue, 1 Nov 2016 14:11:01 +0000 (16:11 +0200)]
Ticket. AddParser() call added for the changePolicyTimeout.

8 years agoTicket. GetChangePolicyTimeout() function added.
Elena Mamontova [Tue, 1 Nov 2016 14:05:49 +0000 (16:05 +0200)]
Ticket. GetChangePolicyTimeout() function added.

8 years agoTicket. if(!data.tariffConf.changePolicyTimeout.empty()) construction
Elena Mamontova [Tue, 1 Nov 2016 13:54:43 +0000 (15:54 +0200)]
Ticket. if(!data.tariffConf.changePolicyTimeout.empty()) construction
added in the Serialize() function.

8 years agoTicket. MybeSet()function call added for the change-policy-timeout.
Elena Mamontova [Tue, 1 Nov 2016 12:57:32 +0000 (14:57 +0200)]
Ticket. MybeSet()function call added for the change-policy-timeout.

8 years agoTicket. MybeSet()function call added for the change-policy-timeout.
Elena Mamontova [Tue, 1 Nov 2016 12:49:08 +0000 (14:49 +0200)]
Ticket. MybeSet()function call added for the change-policy-timeout.

8 years agoTicket. The line for the change-policy-timeout adding to the vector
Elena Mamontova [Tue, 1 Nov 2016 07:50:28 +0000 (09:50 +0200)]
Ticket. The line for the change-policy-timeout adding to the vector
params added in the GetTariffParams(). The line for the
changePolicyTimeout output added in the PrintTariffConf().

8 years agoTicket 37. The timeout variable added, if(stgTime > timeout && timeout
Elena Mamontova [Thu, 27 Oct 2016 13:17:04 +0000 (16:17 +0300)]
Ticket 37. The timeout variable added, if(stgTime > timeout && timeout
!= 0) construction added in the TariffChangeIsAllowed() function.

8 years agoMerge remote-tracking branch 'other/ticket37' into ticket
Elena Mamontova [Tue, 25 Oct 2016 15:34:40 +0000 (18:34 +0300)]
Merge remote-tracking branch 'other/ticket37' into ticket

8 years agoMerge remote-tracking branch 'origin/master' into ticket
Elena Mamontova [Fri, 21 Oct 2016 11:17:02 +0000 (14:17 +0300)]
Merge remote-tracking branch 'origin/master' into ticket

8 years agoTicket 37. The checking schemaVersion = 0, 1, 2 removed,
Elena Mamontova [Fri, 21 Oct 2016 09:09:24 +0000 (12:09 +0300)]
Ticket 37. The checking schemaVersion = 0, 1, 2 removed,
st->Set(num, id) added before st->Execute() in SaveTariff() function.

8 years agoTicket 37. In the SaveTariff() function unsigned num variable added,
Elena Mamontova [Wed, 19 Oct 2016 13:39:38 +0000 (16:39 +0300)]
Ticket 37. In the SaveTariff() function  unsigned num variable added,
schemaVersion checking and id value setting depending on the version added.

8 years agoTicket 37. The 'change_policy_timeout' field added to update tb_tariffs
Elena Mamontova [Wed, 19 Oct 2016 08:13:24 +0000 (11:13 +0300)]
Ticket 37. The 'change_policy_timeout' field added to update tb_tariffs
query if schemaVersion > 1, in st->Set(7, id) 7 changed to 8 in
SaveTariff() function.

8 years agoTicket 37. The long int policyTime type changed to int64_t policyTime.
Elena Mamontova [Wed, 19 Oct 2016 07:31:18 +0000 (10:31 +0300)]
Ticket 37. The long int policyTime type changed to int64_t policyTime.