this-> ViewGreyListDB

(Caronte Pcode version 2.0)

Description

int this->ViewGreyListDB (HashArray store,optional int how_many default 0,optional int start default 0,optional string search default null, optional int col default 0);

Loads a view of the database of the grey list in the store HashArray, can limit the result to the how_many value, starting from the start value, looking for the search value, in the column col of the database.

Example.

Source:

#import( class , HashArray )

CS_ADMIN_SCRIPT this = new CS_ADMIN_SCRIPT($_this);

int Main(CAdminRequest pRequest, CAdminResponse pResponse)
{

HashArray indexkey = new HashArray();
this->ViewGreyListDB(indexkey,100,0,"",0);

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

this->Print(indexkey->GetByIndexS(i));

}

delete indexkey;

return 0;

}




Out:
1272385012(separator)127.0.0.1(separator) cristiano@inrete.com (separator) info@pistoianet.it(separator)0(separator)