- i = 0;
- }
- }
-
- if (i)
- {
- for (j = i; j <4; j++)
- longbuf[j] = 0;
-
- for (j = 0; j <4; j++)
- longbuf[j] = base64_chars.find(longbuf[j]);
-
- shortbuf[0] = (longbuf[0] << 2) + ((longbuf[1] & 0x30) >> 4);
- shortbuf[1] = ((longbuf[1] & 0xf) << 4) + ((longbuf[2] & 0x3c) >> 2);
- shortbuf[2] = ((longbuf[2] & 0x3) << 6) + longbuf[3];
-
- for (j = 0; (j < i - 1); j++)
- ret += shortbuf[j];
- }
-
- return ret;
- }
-
- void OnEvent(Event* event)
- {
- std::stringstream data("");
-
- if (event->GetEventID() == "httpd_acl")
- {
- ServerInstance->Logs->Log("m_http_stats", DEBUG,"Handling httpd acl event");
- HTTPRequest* http = (HTTPRequest*)event->GetData();
-
- for (std::vector<ACL>::const_iterator this_acl = acl_list.begin(); this_acl != acl_list.end(); ++this_acl)