From c798b518dd51530b3e309f58de96cdc5c61f7355 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 7 Dec 2010 15:59:01 +0200 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20=D0=BF?= =?utf8?q?=D1=80=D0=B8=D0=B2=D0=BE=D0=B4=D1=8F=D1=89=D0=B0=D1=8F=20=D0=BA?= =?utf8?q?=20=D1=82=D0=BE=D0=BC=D1=83=20=D1=87=D1=82=D0=BE=20=D0=B2=20OnCh?= =?utf8?q?ange=20=D0=BD=D0=B5=20=D0=BF=D0=BE=D0=BF=D0=B0=D0=B4=D0=B0=D0=BB?= =?utf8?q?=D0=B8=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BD=20=D0=B8=20IP-=D0=B0?= =?utf8?q?=D0=B4=D1=80=D0=B5=D1=81=20=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD=D0=B0?= =?utf8?q?=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=B2=D1=88=D0=B5=D0=B3?= =?utf8?q?=D0=BE=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/stargazer/user_property.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/projects/stargazer/user_property.h b/projects/stargazer/user_property.h index 57e11a49..3ea1be45 100644 --- a/projects/stargazer/user_property.h +++ b/projects/stargazer/user_property.h @@ -213,8 +213,6 @@ if (value == newValue) typename set *>::iterator ni; -//printf("USER_PROPERTY::operator= (const varT& rhs)\n"); - varT oldVal = value; ni = beforeNotifiers.begin(); @@ -435,13 +433,7 @@ stgLogger("%s User \'%s\': \'%s\' parameter changed from \'%s\' to \'%s\'. %s", newValue.c_str(), msg.c_str()); - -/*char userLogMsg[2048]; -sprintf(userLogMsg, "\'%s\' parameter changed from \'%s\' to \'%s\'. %s", - parameter.c_str(), oldValue.c_str(), - newValue.c_str(), msg.c_str());*/ store->WriteUserChgLog(login, admin.GetLogin(), admin.GetAdminIP(), parameter, oldValue, newValue, msg); -//store->WriteLogString(userLogMsg, login); } //------------------------------------------------------------------------- template @@ -449,7 +441,7 @@ void USER_PROPERTY_LOGGED::OnChange(const string & login, const string & paramName, const string & oldValue, const string & newValue, - const ADMIN &) + const ADMIN & admin) { string str1; @@ -457,7 +449,7 @@ str1 = settings->GetConfDir() + "/OnChange"; if (access(str1.c_str(), X_OK) == 0) { - string str2("\"" + str1 + "\" \"" + login + "\" \"" + paramName + "\" \"" + oldValue + "\" \"" + newValue + "\""); + string str2("\"" + str1 + "\" \"" + login + "\" \"" + paramName + "\" \"" + oldValue + "\" \"" + newValue + "\" \"" + admin.GetLogin() + "\" \"" + admin.GetAdminIPStr() + "\""); ScriptExec(str2); } else -- 2.44.2