this-> GetDBRamSpamTrap

(Caronte Pcode version 2.0)

Description

CDB_Ram this->GetDBRamSpamTrap (void);

Load the spam trap list 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->GetDBRamSpamTrap();

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:
honey1@caronteantispam.it
honey2@caronteantispam.it