this-> GetDBRamIpInferno

(Caronte Pcode version 2.0)

Description

CDB_Ram this->GetDBRamIpInferno (void);

Load the list of the ips that are in the hell, in a CDB_Ram class variable.

Example.

Source:

#import( class , HashArray )
#import( class , CDB_Ram )

CS_ADMIN_SCRIPT this = new CS_ADMIN_SCRIPT($_this);

int Main(CAdminRequest pRequest, CAdminResponse pResponse)
{

CDB_Ram db = this->GetDBRamIpInferno();

HashArray indexkey = new HashArray();
db->Query(0,indexkey,0);

for (int i = 0; i < indexkey->GetRecordCount(); i++)
{

this->Print(indexkey->GetByIndexS(i) + "\n");

}

delete indexkey;

return 0;


}




Out:
151.XXX.XXX.XXX
143.XXX.XXX.XXX