Category Archives: APS1.0

Method of creating dropdown box for a domainname in APS package ?

in service settings tab create a field with the follwing values ID- domainname Name- Domain Name Class-domain-name Element type-domain name Minterms-1 Maxterms-1 here customer can select add only one domain because minterms and maxterms entered as 1. or else you  can use only ID,Name,class=domain-name this also work fields like Element type-domain name Minterms-1 Maxterms-1 are… Read More »

IN APS can i get the IP address of the customer who is using the customer control panel.

IN aps 1.2 we cant get ip of the customer who is is doing installtion. means ip fetching not supported. please try the following code function tryto_get_my_ip() { $ipaddress = ”; if (getenv(‘HTTP_CLIENT_IP’)) $ipaddress = getenv(‘HTTP_CLIENT_IP’); else if(getenv(‘HTTP_X_FORWARDED_FOR’)) $ipaddress = getenv(‘HTTP_X_FORWARDED_FOR’" else if(getenv(‘HTTP_X_FORWARDED’)) $ipaddress = getenv(‘HTTP_X_FORWARDED’); else if(getenv(‘HTTP_FORWARDED_FOR’)) $ipaddress = getenv(‘HTTP_FORWARDED_FOR’); else if(getenv(‘HTTP_FORWARDED’)) $ipaddress =… Read More »