ispman/bin ispman.addvhost,1.10,1.11
Joerg Delker <[email protected]>
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/bin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3331/bin
Modified Files:
ispman.addvhost
Log Message:
added check for domain existence so backend doesn't get traped with incomplete data
Index: ispman.addvhost
===================================================================
RCS file: /cvsroot/ispman/ispman/bin/ispman.addvhost,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- ispman.addvhost 24 Jan 2004 17:18:29 -0000 1.10
+++ ispman.addvhost 1 May 2004 10:18:02 -0000 1.11
@@ -22,8 +22,14 @@
my $r=new CGI();
+# check if domain exists
+if ($ispman->getDomainInfo($opts{"d"})) {
+ $r->param("ispmanDomain", $opts{"d"});
+} else {
+ print "Domain \"" . $opts{"d"} . "\" does not exist!\n";
+ exit;
+}
-$r->param("ispmanDomain", $opts{"d"});
$r->param("ispmanVhostName", $vhost);
$r->param("ispmanVhostServerAlias", $opts{'a'}) if $opts{'a'};
$r->param("userPassword", $opts{'p'}) if $opts{'p'};
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click