I am trying to get the manage.cgi script to show the exirations of each domain, NEXT to the domain name when they click on view_domains to view them all.
Here is what I have so far...
my $remainder = $response->{attributes}->{remainder}; # are there more domains to show?
my @domain_names = @{$response->{attributes}->{domain_list}};
my $domain_name_race_obj = undef;
foreach $domain_name (@domain_names) {
$expiredates = $response->{attributes}->{expiredate};
$domain_name_race_obj = RACE::UndoRACE( Domain => pack('A*',$domain_name->{domain}),
EncodingType => $UNIVERSAL_ENCODING_TYPE );
if ( $reg_domain eq $domain_name->{domain} ) {
$domain_html = sprintf "%s<LI>%s</LI>\n", $domain_html, $domain_name_race_obj->{OriginalDomain};
} else {
$domain_html = sprintf "%s<LI><a href=\"%s?action=manage_domain&domain=%s\">%s</a> Expires: $expiredates</LI>\n",
$domain_html,
$cgi,
$domain_name->{domain},
$domain_name_race_obj->{OriginalDomain};
}
}
Basically I only added my $expiredates = $response->{attributes}->{expiredate}; AND
Expires: $expiredates But it does NOT show the exiration dates ONLY the Expires:
in the template. Does anyone know what I'm doing wrong?
I've also tried moving the vars I added to different locations, to no avail. Thought I'd add that.
Also, I want to put next to there a link to have the click on it, to allow them to renew that domain.
Would they have to again, enter their u/p combo since it's a different script?
Any tips would be GREATLY appreciated!
Thanks
Richard.
http://www.firstratehosting.com/indexx.cgi "Your Host With the Most!"
http://register.firstratehosting.com/cgi-bin/index.cgi Register your Domain with prices starting at ONLY $8.50 Per Year!
https://www.firstratehosting.com/register/cgi-bin/name.cgi Pre-Register your .name domain TODAY!
This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:37:04 EDT