-/*
- this is satmd's old code
- std::string reversedip;
- std::string userip = user->GetIPString();
- std::string tempip = userip;
-
- // reversedip will created in there
- while (tempip.length()>0)
- {
- unsigned int lastdot=tempip.rfind(".");
- if (lastdot == std::string::npos)
- {
- reversedip+=tempip;
- tempip.clear();
- }
- else
- {
- reversedip += tempip.substr(lastdot+1,tempip.length()-lastdot+1);
- reversedip += ".";
- tempip.resize(lastdot);
- }
- }
-*/
-