#import( class , HashArray )
#import( class , CDB_Ram )
#import( class , CDomainConf )
CS_ADMIN_SCRIPT this = new CS_ADMIN_SCRIPT($_this);
int Main(CAdminRequest pRequest, CAdminResponse pResponse)
{
///CR_QUERY_ALL_DOMAIN
CDB_Ram db = this->GetDBRamDomains();
HashArray indexkey = new HashArray();
CDomainConf pconfdomain;
db->Query(".+?\\.com",indexkey,1);
for (int i = 0; i < indexkey->GetRecordCount(); i++)
{
pconfdomain = this->GetDomain(indexkey->GetKeyByIndex(i));
this->Print(pconfdomain->GetDomainName() );
}
delete indexkey;
return 0;
}
|