ispman/ispman-web/cgi-bin/tmpl/customerMan/websites editVhost.tmpl,1.6,1.7 editVhostHeader.tmpl,1.9,1.10 editVhostWebsiteInfos.tmpl,1.6,1.7

Joerg Delker <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/customerMan/websites
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24569/ispman-web/cgi-bin/tmpl/customerMan/websites

Modified Files:
	editVhost.tmpl editVhostHeader.tmpl editVhostWebsiteInfos.tmpl 
Log Message:
fixed [ 925126 ] directory options not shown in admin interface
this was accompanied with some redesign of WebsiteInfo page
Notice: due to many changes this fix will not go to rel_1_1-bugfixes

Index: editVhostHeader.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/customerMan/websites/editVhostHeader.tmpl,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- editVhostHeader.tmpl	28 Apr 2003 17:19:49 -0000	1.9
+++ editVhostHeader.tmpl	2 May 2004 17:31:06 -0000	1.10
@@ -10,7 +10,7 @@
         function Delete(){
                 var vhost="<perl>$r->param("vhost")</perl>";
                 if (confirm("<perl>$customer->getText("Are you sure you want to permanently delete this website?")</perl>")) {
-                        self.location="<perl>$r->url</perl>?mode=deleteVhost&cn="+vhost;
+                        self.location="<perl>$r->url</perl>?mode=deleteVhost&ispmanVhostName="+vhost;
                 }
         }
    
@@ -138,8 +138,8 @@
                 push @{$vhost->{'urlredirect'}}, $vhost->{'urlredirect'} if $vhost->{'urlredirect'} ;
             }
         
-            unless (ref $vhost->{'ispmanVhostScriptdirOption'} eq "ARRAY"){
-                push @{$vhost->{'ispmanVhostScriptdirOption'}}, $vhost->{'ispmanVhostScriptdirOption'};
+            unless (ref $vhost->{'ispmanVhostScriptDirOption'} eq "ARRAY"){
+                push @{$vhost->{'ispmanVhostScriptDirOption'}}, $vhost->{'ispmanVhostScriptdirOption'};
             }
             
             for (@{$vhost->{'ispmanVhostServerAlias'}}){
@@ -150,7 +150,7 @@
                 $DocumentRootOptions->{$_}=1;
                 }
         
-            for (@{$vhost->{'ispmanVhostScriptdirOption'}}){
+            for (@{$vhost->{'ispmanVhostScriptDirOption'}}){
                 $ScriptDirOptions->{$_}=1;
                 }
             

Index: editVhostWebsiteInfos.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/customerMan/websites/editVhostWebsiteInfos.tmpl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- editVhostWebsiteInfos.tmpl	2 May 2004 08:32:33 -0000	1.6
+++ editVhostWebsiteInfos.tmpl	2 May 2004 17:31:06 -0000	1.7
@@ -1,45 +1,40 @@
 <tr>
         <td><perl>$customer->getText("Allow directory listing")</perl> </td>
         <td>
-                <perl>$customer->getText("Yes")</perl>
-                <input
-                        type=radio 
-                        name='documentrootoption.Indexes' 
-                        value='+Indexes' <perl>($DocumentRootOptions->{'Indexes'} || $DocumentRootOptions->{'+Indexes'})?"checked":""</perl>
-                        >
-                <perl>$customer->getText("No")</perl><input type=radio name='documentrootoption.Indexes' value='-Indexes' <perl>($DocumentRootOptions->{'-Indexes'})?"checked":""</perl>>
+                <input type=checkbox name='documentrootoption.Indexes' value='Indexes'
+                <perl>($DocumentRootOptions->{'Indexes'})?"checked>":">"</perl>
         </td>
 </tr>
 
 <tr>
         <td><perl>$customer->getText("Allow MultiLanguage selection")</perl></td>
         <td>
-                <perl>$customer->getText("Yes")</perl><input type=radio name='documentrootoption.MultiViews' value='+MultiViews' <perl>($DocumentRootOptions->{'MultiViews'} || $DocumentRootOptions->{'+MultiViews'})?"checked":""</perl>>
-                <perl>$customer->getText("No")</perl><input type=radio name='documentrootoption.MultiViews' value='-MultiViews' <perl>($DocumentRootOptions->{'-MultiViews'})?"checked":""</perl>>
+                <input type=checkbox name='documentrootoption.MultiViews' value='MultiViews'
+                <perl>($DocumentRootOptions->{'MultiViews'})?"checked>":">"</perl>
         </td>
 </tr>
 
 <tr>
         <td><perl>$customer->getText("Allow SSI Includes")</perl></td>
         <td>
-                <perl>$customer->getText("Yes")</perl><input type=radio name='documentrootoption.Includes' value='+Includes' <perl>($DocumentRootOptions->{'Includes'}||$DocumentRootOptions->{'+Includes'})?"checked":""</perl>>
-                <perl>$customer->getText("No")</perl><input type=radio name='documentrootoption.Includes' value='-Includes' <perl>($DocumentRootOptions->{'-Includes'})?"checked":""</perl>>
+                <input type=checkbox name='documentrootoption.Includes' value='Includes'
+                 <perl>($DocumentRootOptions->{'Includes'})?"checked>":">"</perl>
         </td>
 </tr>
 
 <tr>
-        <td><perl>$customer->getText("Allow cgi execution outside of cgi-bin directory")</perl></td>
+        <td><perl>$customer->getText("Allow cgi execution in document root")</perl></td>
         <td>
-                <perl>$customer->getText("Yes")</perl><input type=radio name='documentrootoption.ExecCGI' value='+ExecCGI' <perl>($DocumentRootOptions->{'ExecCGI'}||$DocumentRootOptions->{'+ExecCGI'})?"checked":""</perl>>
-                <perl>$customer->getText("No")</perl><input type=radio name='documentrootoption.ExecCGI' value='-ExecCGI' <perl>($DocumentRootOptions->{'-ExecCGI'})?"checked":""</perl>>
+                <input type=checkbox name='documentrootoption.ExecCGI' value='ExecCGI'
+                <perl>($DocumentRootOptions->{'ExecCGI'})?"checked>":">"</perl>
         </td>
 </tr>
 
 <tr>
-        <td><perl>$customer->getText("Allow cgi execution inside cgi-bin directory")</perl></td>
+        <td><perl>$customer->getText("Allow cgi execution in cgi-bin directory")</perl></td>
         <td>
-                <perl>$customer->getText("Yes")</perl><input type=radio name='scriptdiroption.ExecCGI' value='+ExecCGI' <perl>($ScriptDirOptions->{'ExecCGI'}|| $ScriptDirOptions->{'+ExecCGI'})?"checked":""</perl>>
-                <perl>$customer->getText("No")</perl><input type=radio name='scriptdiroption.ExecCGI' value='-ExecCGI' <perl>($ScriptDirOptions->{'-ExecCGI'})?"checked":""</perl>>
+                <input type=checkbox name='scriptdiroption.ExecCGI' value='ExecCGI'
+                <perl>($ScriptDirOptions->{'ExecCGI'})?"checked>":">"</perl>
         </td>
 </tr>
 

Index: editVhost.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/customerMan/websites/editVhost.tmpl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- editVhost.tmpl	28 Apr 2003 17:19:49 -0000	1.6
+++ editVhost.tmpl	2 May 2004 17:31:06 -0000	1.7
@@ -58,7 +58,7 @@
     $vhost=$customer->getDomainVhostInfo($r);
     $DocumentRootOptions=$vhost->{'ispmanVhostDocumentRootOption'};
     $ScriptDirOptions=$vhost->{'ispmanVhostScriptDirOption'};
-    $AccessContro=$vhost->{'accesscontrol'};
+    $AccessControl=$vhost->{'accesscontrol'};
     $customer->getDomainVhostInfo($r)
 </perl>
 



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.