[vhffs-dev] [577] Removed a bunch of unused template and perl files.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 577
Author:   beuss
Date:     2007-04-18 19:20:12 +0000 (Wed, 18 Apr 2007)

Log Message:
-----------
Removed a bunch of unused template and perl files.

Modified Paths:
--------------
    trunk/vhffs-panel/Makefile.am
    trunk/vhffs-panel/dns/prefs.pl
    trunk/vhffs-panel/templates/Makefile.am

Removed Paths:
-------------
    trunk/vhffs-panel/dns/dns_type_submit.pl
    trunk/vhffs-panel/templates/dns/end.tmpl
    trunk/vhffs-panel/templates/dns/list_sub.tmpl
    trunk/vhffs-panel/templates/dns/type_a.tmpl
    trunk/vhffs-panel/templates/dns/type_cname.tmpl
    trunk/vhffs-panel/templates/dns/type_mx.tmpl


Modified: trunk/vhffs-panel/Makefile.am
===================================================================
--- trunk/vhffs-panel/Makefile.am	2007-04-18 18:55:18 UTC (rev 576)
+++ trunk/vhffs-panel/Makefile.am	2007-04-18 19:20:12 UTC (rev 577)
@@ -89,7 +89,6 @@
 	dns/create.pl \
 	dns/delete.pl \
 	dns/dns_submit.pl \
-	dns/dns_type_submit.pl \
 	dns/prefs.pl \
 	group/create.pl \
 	group/delete.pl \

Deleted: trunk/vhffs-panel/dns/dns_type_submit.pl
===================================================================
--- trunk/vhffs-panel/dns/dns_type_submit.pl	2007-04-18 18:55:18 UTC (rev 576)
+++ trunk/vhffs-panel/dns/dns_type_submit.pl	2007-04-18 19:20:12 UTC (rev 577)
@@ -1,96 +0,0 @@
-#!%PERL% -w
-# Copyright (c) vhffs project and its contributors
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without 
-# modification, are permitted provided that the following conditions 
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright 
-#   notice, this list of conditions and the following disclaimer.
-#2. Redistributions in binary form must reproduce the above copyright
-#   notice, this list of conditions and the following disclaimer in 
-#   the documentation and/or other materials provided with the 
-#   distribution.
-#3. Neither the name of vhffs nor the names of its contributors 
-#   may be used to endorse or promote products derived from this 
-#   software without specific prior written permission.
-#
-#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
-#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
-#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
-#FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
-#COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
-#INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-#BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
-#LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
-#CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
-# POSSIBILITY OF SUCH DAMAGE.
-
-
-use POSIX qw(locale_h);
-use HTML::Template;
-use locale;
-use Locale::gettext;
-use CGI;
-use CGI::Session;
-use strict;
-
-use lib '%VHFFS_LIB_DIR%';
-use Vhffs::User;
-use Vhffs::Group;
-use Vhffs::Main;
-use Vhffs::Panel::Main;
-use Vhffs::Panel::Menu;
-use Vhffs::Panel::Group;
-use Vhffs::Services::DNS;
-
-my $panel = new Vhffs::Panel::Main;
-if(!$panel)  {
-        exit 0;
-}
-
-my $vhffs = $panel->{'vhffs'};
-my $session = $panel->{'session'};
-my $maintemplate = $panel->{'template'};
-my $user = $panel->{'user'};
-my $group = $panel->{'group'};
-my $cgi = $panel->{'cgi'};
-my $message;
-
-my $domain_name = $cgi->param("DOMAIN_NAME");
-
-my $prefix = $cgi->param("PREFIX");
-my $ip = $cgi->param("IP");
-my $question = $cgi->param("QUESTION");
-my $dns = Vhffs::Services::DNS::get_by_domainname( $vhffs , $domain_name );
-
-my $templatedir = $vhffs->get_config->get_templatedir;
-
-if(  ! defined $dns  )
-{
-	$message = gettext("This domain name doesn't exist in the VHFFS database");
-
-}
-else
-{
-   	if( $dns->add_a( $prefix , $ip )  < 0 ) {
-	    $message = "Error while create a type A";
-	} else {
-	    if( $dns->commit  < 0) {
-		    $message = "Error while update object";
-		} else {
-		    $message = "Modifications applied to the database";
-		}
-	}
-}
-
-
-
-my $template = new HTML::Template( filename => $templatedir."/misc/simplemsg.tmpl" );
-$template->param( MESSAGE => $message );
-
-set_refresh_url Vhffs::Panel::Main($panel, "/dns/prefs.pl?name=$domain_name", 0);
-display Vhffs::Panel::Main($panel, $template->output);

Modified: trunk/vhffs-panel/dns/prefs.pl
===================================================================
--- trunk/vhffs-panel/dns/prefs.pl	2007-04-18 18:55:18 UTC (rev 576)
+++ trunk/vhffs-panel/dns/prefs.pl	2007-04-18 19:20:12 UTC (rev 577)
@@ -66,7 +66,6 @@
 my $projectname = $session->param("project");
 
 my $templatedir = $vhffs->get_config->get_templatedir;
-my $subtemplate;
 my $thirdtemplate;
 my $template;
 my $output = "";
@@ -319,8 +318,6 @@
     $template->param( TXT_DATA_TEXT => gettext('Text') );
     $template->param( TXT_NAME_TEXT => gettext('Name for record') );
 
-	$subtemplate = new HTML::Template( filename =>$templatedir. "/dns/list_sub.tmpl" );
-
     if( scalar(keys %{$a_rr}) ) {
         my $thirdtemplate = new HTML::Template( filename => $templatedir.'/dns/list_a_sub.tmpl', global_vars => 1, die_on_bad_params => 0);
         my @list_a = sort {$a->{name} cmp $b->{name}} values(%{$a_rr});
@@ -418,7 +415,7 @@
 
 	if( $user->is_admin == 1 )
 	{
-            $subtemplate = new HTML::Template( filename => $templatedir."/admin/misc/opart.tmpl" );
+            my $subtemplate = new HTML::Template( filename => $templatedir."/admin/misc/opart.tmpl" );
 			$subtemplate->param( OID => $dns->get_oid );
 			$subtemplate->param( OPART_TEXT => gettext("Go to object-part admin") );
 			$subtemplate->param( OPART_TITLE => gettext("Object part") );

Modified: trunk/vhffs-panel/templates/Makefile.am
===================================================================
--- trunk/vhffs-panel/templates/Makefile.am	2007-04-18 18:55:18 UTC (rev 576)
+++ trunk/vhffs-panel/templates/Makefile.am	2007-04-18 19:20:12 UTC (rev 577)
@@ -91,7 +91,6 @@
 	cvs/menu.tmpl \
 	cvs/prefs.tmpl \
 	dns/create.tmpl \
-	dns/end.tmpl \
 	dns/list_a_sub.tmpl \
 	dns/list_aaaa_sub.tmpl \
 	dns/list_cname_sub.tmpl \
@@ -99,14 +98,10 @@
 	dns/list_ns_sub.tmpl \
 	dns/list_srv_sub.tmpl \
 	dns/list_txt_sub.tmpl \
-	dns/list_sub.tmpl \
 	dns/menu_sub.tmpl \
 	dns/menu_sub_wait.tmpl \
 	dns/menu.tmpl \
 	dns/prefs.tmpl \
-	dns/type_a.tmpl \
-	dns/type_cname.tmpl \
-	dns/type_mx.tmpl \
 	group/add_user.tmpl \
 	group/create.tmpl \
 	group/each_user.tmpl \

Deleted: trunk/vhffs-panel/templates/dns/end.tmpl
===================================================================
--- trunk/vhffs-panel/templates/dns/end.tmpl	2007-04-18 18:55:18 UTC (rev 576)
+++ trunk/vhffs-panel/templates/dns/end.tmpl	2007-04-18 19:20:12 UTC (rev 577)
@@ -1,29 +0,0 @@
-
-<h2><tmpl_var name="TEXT_DELETE_DNS"></h2>
-
-<form method="post" action="/dns/delete.pl">
-	<fieldset>
-		<legend>
-			<tmpl_var name="ASK_DELETE_DNS">:
-		</legend>
-
-		<p class="warning"><tmpl_var name="TEXT_BEFORE_DELETE"></p>
-		<p>
-			<input type="radio" name="DELETE" id="DELETE_NO"  value="0" checked="checked" />
-			<label for="DELETE_NO">
-				<tmpl_var name="NO">
-			</label>
-		</p>
-		<p>
-			<input type="radio" name="DELETE" id="DELETE_YES" value="1" />
-			<label for="DELETE_YES">
-				<tmpl_var name="YES">
-			</label>
-		</p>
-	</fieldset>
-	
-	<p class="button" id="buttonDelete">
-		<input type="submit" value="<tmpl_var name="TEXT_DELETE">" />
-	</p>
-				
-</form>
\ No newline at end of file

Deleted: trunk/vhffs-panel/templates/dns/list_sub.tmpl
===================================================================
--- trunk/vhffs-panel/templates/dns/list_sub.tmpl	2007-04-18 18:55:18 UTC (rev 576)
+++ trunk/vhffs-panel/templates/dns/list_sub.tmpl	2007-04-18 19:20:12 UTC (rev 577)
@@ -1,22 +0,0 @@
-
-<tr>
-	<td>
-		<TMPL_VAR NAME="TYPE">
-	</td>
-	<td>
-		<TMPL_VAR NAME="NOM">
-	</td>
-	<td>
-		<TMPL_VAR NAME="PRIORITE">
-	</td>
-	<td>
-		<TMPL_VAR NAME="IPNOM">
-	</td>
-	<td>
-		<form method="post" action=/dns/dns_type_submit.pl">
-			<input type="submit" value="<TMPL_VAR NAME="MODIFY">" />
-			<input type="submit" value="<TMPL_VAR NAME="DEL">" />
-		</form>
-	</td>
-</tr>
-

Deleted: trunk/vhffs-panel/templates/dns/type_a.tmpl
===================================================================
--- trunk/vhffs-panel/templates/dns/type_a.tmpl	2007-04-18 18:55:18 UTC (rev 576)
+++ trunk/vhffs-panel/templates/dns/type_a.tmpl	2007-04-18 19:20:12 UTC (rev 577)
@@ -1,37 +0,0 @@
-<form method="post" action="dns_type_submit.pl">
-	<p>
-		<label for="PREFIX">
-			<TMPL_VAR NAME="NAMESDOMAIN">
-		</label>
-		<input type="text" name="PREFIX" id="PREFIX"><strong>.<TMPL_VAR NAME="DOMAIN_NAME"></strong>
-	</p>
-	<p>
-		<label for="IP">
-			<TMPL_VAR NAME="ADDIP">
-		</label>
-		<input type="text" name="IP" id="IP">
-	</p>
-	<fieldset>
-		<legend>
-			<TMPL_VAR NAME="REDIRECTF"> :
-		</legend>
-		<p>
-			<input type="radio" name="QUESTION" id="QUESTION_YES" value="1" checked="checked" />
-			<label for="QUESTION_YES">
-				<TMPL_VAR NAME="YESR">
-			</label>
-		</p>
-		<p>
-			<input type="radio" name="QUESTION" value="0" id="QUESTION_NO" />
-			<label for="QUESTION_NO">
-				<TMPL_VAR NAME="NORE">
-			</label>
-		</p>
-	</fieldset>
-
-	<p class="button" id="buttonModify">
-		<input type="hidden" name="DOMAIN_NAME" value="<TMPL_VAR NAME="DOMAIN_NAME">" />
-		<input type="submit" value="<TMPL_VAR NAME="ENREG">" />
-	</p>
-</form>
-

Deleted: trunk/vhffs-panel/templates/dns/type_cname.tmpl
===================================================================
--- trunk/vhffs-panel/templates/dns/type_cname.tmpl	2007-04-18 18:55:18 UTC (rev 576)
+++ trunk/vhffs-panel/templates/dns/type_cname.tmpl	2007-04-18 19:20:12 UTC (rev 577)
@@ -1,24 +0,0 @@
-<h1>
-	<TMPL_VAR NAME="TYPECNAME">
-</h1>
-
-<form method="post" action=/dns/dns_type_submit.pl">
-
-	<p>
-		<label for="PREFIX">
-			<TMPL_VAR NAME="NAMESDOMAIN">
-		</label>
-		<input type="text" name="PREFIX" id="PREFIX" /><strong>.<TMPL_VAR NAME="DOMAIN_NAME"></strong>
-	</p>
-	
-	<p>
-		<label for="IP">
-			<TMPL_VAR NAME="VERS">
-		</label>
-		<input type="text" name="IP" id="IP" />
-	</p>
-	<p class="button" id="buttonModify">
-		<input type="submit" value="<TMPL_VAR NAME="ENREG">" />
-	</p>
-</form>
-

Deleted: trunk/vhffs-panel/templates/dns/type_mx.tmpl
===================================================================
--- trunk/vhffs-panel/templates/dns/type_mx.tmpl	2007-04-18 18:55:18 UTC (rev 576)
+++ trunk/vhffs-panel/templates/dns/type_mx.tmpl	2007-04-18 19:20:12 UTC (rev 577)
@@ -1,45 +0,0 @@
-<h1><TMPL_VAR NAME="TYPEMX"></h1>
-
-<form method="post" action=/dns/dns_type_submit.pl">
-	<p>
-		<label for="PREFIX">
-			<TMPL_VAR NAME="NAMESDOMAIN">
-		</label>
-		@<input type="text" name="PREFIX" id="PREFIX" /><strong>.<TMPL_VAR NAME="DOMAIN_NAME"></strong>
-	</p>
-	<p>
-		<label for="PRIO">
-			<TMPL_VAR NAME="PRIORITY">
-		</label>
-		<input type="text" name="PRIO" name="PRIO"/>
-	</p>
-	<p>
-		<label for="id">
-			<TMPL_VAR NAME="ADDIP">
-		</label>
-			<input type="text" name="IP" id="IP" />
-		</p>
-	
-	<fieldset>
-		<legend>
-			<TMPL_VAR NAME="REDIRECTF"> :
-		</legend>
-		<p>
-			<input type="radio" name="QUESTION" id="QUESTION_YES" value="1" checked="checked" />
-			<label for="QUESTION_YES">
-				<TMPL_VAR NAME="YESR">
-			</label>
-		</p>
-		<p>
-			<input type="radio" name="QUESTION" value="0" id="QUESTION_NO" />
-			<label for="QUESTION_NO">
-				<TMPL_VAR NAME="NORE">
-			</label>
-		</p>
-	</fieldset>
-		
-	<p class="button" id="buttonModify">
-		<input type="submit" value="<TMPL_VAR NAME="ENREG">" />
-	</p>
-</form>
-


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/