X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/6e6de2ae8f5f661500c565aca8c36277e860b834..20d4dd0571e75d254444acf755a01b48a691c7c2:/stargazer/admin_impl.cpp diff --git a/stargazer/admin_impl.cpp b/stargazer/admin_impl.cpp deleted file mode 100644 index 86764e08..00000000 --- a/stargazer/admin_impl.cpp +++ /dev/null @@ -1,61 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -/* - * Date: 27.10.2002 - */ - -/* - * Author : Boris Mikhailenko - */ - - /* - $Revision: 1.13 $ - $Date: 2010/10/04 20:16:09 $ - $Author: faust $ - */ - -#include "admin_impl.h" - -#include "stg/common.h" - -using STG::AdminImpl; - -//----------------------------------------------------------------------------- -std::string AdminImpl::GetIPStr() const -{ - return inet_ntostring(ip); -} -//----------------------------------------------------------------------------- -void AdminImpl::Print() const -{ - printfd(__FILE__, "=======================================\n"); - printfd(__FILE__, "login %s\n", conf.login.c_str()); - printfd(__FILE__, "password %s\n", conf.password.c_str()); - printfd(__FILE__, "ChgConf %d\n", conf.priv.userConf); - printfd(__FILE__, "ChgStat %d\n", conf.priv.userStat); - printfd(__FILE__, "ChgCash %d\n", conf.priv.userCash); - printfd(__FILE__, "UsrAddDel %d\n", conf.priv.userAddDel); - printfd(__FILE__, "ChgAdmin %d\n", conf.priv.adminChg); - printfd(__FILE__, "ChgTariff %d\n", conf.priv.tariffChg); - printfd(__FILE__, "=======================================\n"); -} -//----------------------------------------------------------------------------- -const std::string AdminImpl::GetLogStr() const -{ - return "Admin \'" + conf.login + "\', " + GetIPStr() + ":"; -} -//-----------------------------------------------------------------------------