[vhffs-dev] [1360] get rid of old public stuff.

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


Revision: 1360
Author:   beuss
Date:     2009-03-09 19:40:40 +0100 (Mon, 09 Mar 2009)

Log Message:
-----------
get rid of old public stuff.

Modified Paths:
--------------
    branches/vhffs-design/vhffs-public/Makefile.am
    branches/vhffs-design/vhffs-public/templates/Makefile.am

Added Paths:
-----------
    branches/vhffs-design/vhffs-public/avatar.pl

Removed Paths:
-------------
    branches/vhffs-design/vhffs-public/allwebsites.pl
    branches/vhffs-design/vhffs-public/getavatar.pl
    branches/vhffs-design/vhffs-public/tagsearch.pl
    branches/vhffs-design/vhffs-public/templates/banner.tmpl
    branches/vhffs-design/vhffs-public/templates/group.tmpl
    branches/vhffs-design/vhffs-public/templates/group_part.tmpl
    branches/vhffs-design/vhffs-public/templates/groupslist.tmpl
    branches/vhffs-design/vhffs-public/templates/index.tmpl
    branches/vhffs-design/vhffs-public/templates/misc/
    branches/vhffs-design/vhffs-public/templates/simplemsg.tmpl
    branches/vhffs-design/vhffs-public/templates/user.tmpl
    branches/vhffs-design/vhffs-public/templates/user_part.tmpl
    branches/vhffs-design/vhffs-public/templates/userslist.tmpl
    branches/vhffs-design/vhffs-public/templates/websiteslist.tmpl
    branches/vhffs-design/vhffs-public/user.pl
    branches/vhffs-design/vhffs-public/websitesearch.pl


Modified: branches/vhffs-design/vhffs-public/Makefile.am
===================================================================
--- branches/vhffs-design/vhffs-public/Makefile.am	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/Makefile.am	2009-03-09 18:40:40 UTC (rev 1360)
@@ -4,19 +4,15 @@
 publicdir = @PUBLICDIR@
 nobase_dist_public_SCRIPTS = \
 	allgroups.pl \
-	allwebsites.pl \
-	getavatar.pl \
+	avatar.pl \
 	group.pl \
 	groupsearch.pl \
 	groupsearch_form.pl \
 	index.pl \
 	lastgroups.pl \
 	lastusers.pl \
-	tagsearch.pl \
-	user.pl \
 	usersearch.pl \
 	usersearch_form.pl \
-	websitesearch.pl \
 	extern/newgroupsrss.pl \
 	extern/newusersrss.pl \
 	extern/stats.pl

Deleted: branches/vhffs-design/vhffs-public/allwebsites.pl
===================================================================
--- branches/vhffs-design/vhffs-public/allwebsites.pl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/allwebsites.pl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,79 +0,0 @@
-#!%PERL%
-# 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 strict;
-use utf8;
-
-use POSIX qw(locale_h);
-use locale;
-use Locale::gettext;
-use CGI;
-
-use lib '%VHFFS_LIB_DIR%';
-use Vhffs::Panel::Commons;
-use Vhffs::Panel::Main;
-use Vhffs::Panel::Template;
-use Vhffs::Panel::Web;
-
-my $panel = new Vhffs::Panel::Main();
-exit 0 unless $panel;
-
-my $vhffs = $panel->{'vhffs'};
-my $cgi = $panel->{'cgi'};
-my $templatedir = $panel->{'templatedir'};
-
-$panel->check_public();
-
-my $letters = Vhffs::Panel::Web::get_used_letters($vhffs);
-my $letter = ( defined $cgi->param('letter') ? $cgi->param('letter') : (defined $letters->[0] ? $letters->[0]->{letter} : undef) );
-undef $letter if ( $letter eq 'all' );
-
-my $page = $cgi->param('page');
-$page = 1 unless(defined $page && int($page) > 0);
-my $per_page_count = 20;
-
-my $res = Vhffs::Panel::Web::get_websites_starting_with( $vhffs, $letter, ($page - 1) * $per_page_count, $per_page_count);
-
-my $hostname = $vhffs->get_config->get_host_name;
-
-my $template = new Vhffs::Panel::Template( filename => $templatedir."/public/websiteslist.tmpl" );
-
-Vhffs::Panel::Commons::paginate($template, $page, $res->{total_count}, $per_page_count, {'letter' => (defined($letter) ? $letter : 'all') });
-
-
-$template->param( TEXT_TITLE => sprintf( gettext("All websites on %s") , $hostname ) );
-$template->param( LETTERS => $letters );
-$template->param( ALL => gettext('All') );
-$template->param( URL_PANEL => $vhffs->get_config->get_panel->{'url'} );
-$template->param( WEBSITES => $res->{data} );
-
-$panel->light( $template );
-$panel->display;

Copied: branches/vhffs-design/vhffs-public/avatar.pl (from rev 1245, branches/vhffs-design/vhffs-public/getavatar.pl)
===================================================================
--- branches/vhffs-design/vhffs-public/avatar.pl	                        (rev 0)
+++ branches/vhffs-design/vhffs-public/avatar.pl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -0,0 +1,129 @@
+#!%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 strict;
+use utf8;
+use CGI;
+use GD;
+use GD::Text::Wrap;
+use lib '%VHFFS_LIB_DIR%';
+use Vhffs::Main;
+use Vhffs::Object;
+use Vhffs::Panel::Avatar;
+
+#Get some basics informations with CGI
+my $cgi;
+my $oid;
+my $code;
+my $vhffs;
+my $gd;
+my $wp;
+my $black;
+my $white;
+my $blue;
+my $path;
+my $buf;
+my $object;
+
+$cgi 		= new CGI;
+$cgi->charset('utf-8');
+$vhffs		= init Vhffs::Main;	
+$oid 		= $cgi->param( "oid" );
+
+$object = Vhffs::Object::get_by_oid( $vhffs , $oid );
+
+$path = Vhffs::Panel::Avatar::exists_avatar( $vhffs , $object );
+
+if( ! ( defined $oid ) )
+{
+	print CGI->header( -type=>"text/html", -charset=>"utf-8" );
+	print "oid error";
+	exit 1;
+}
+
+$gd = GD::Image->new(70,100);
+$white = $gd->colorAllocate(255,255,255);
+$black = $gd->colorAllocate(  0,  0,  0);
+$blue  = $gd->colorAllocate(127,127,255);
+
+#print "No colours: $black ", $gd->colorsTotal, "\n";
+    
+
+# Assume the user has set FONT_PATH or TTF_FONT_PATH
+#$wp->font_path('/usr/share/fonts/ttfonts');
+print CGI->header( -type=>"image/png" );
+
+binmode STDOUT ;
+
+# TODO user pregenerated images	
+
+if( $vhffs->get_config->get_panel->{'users_avatars'} ne 'yes' && $vhffs->get_config->get_panel->{'groups_avatars'} ne 'yes' )
+{
+	$wp = GD::Text::Wrap->new($gd,
+		width       => 70,
+		line_space  => 0,
+		color       => $black, 
+		text        => "This platform does not support avatar",
+	);
+	$wp->set_font(gdLargeFont, 14);
+	$wp->set(align => 'center');
+	$wp->draw(0,5);
+	$wp->set(para_space => 10, preserve_nl => 0);
+	print STDOUT $gd->png();
+}
+else
+{
+	if( defined $path )
+	{
+		open FORIG , "$path";
+		while( read( FORIG , $buf , 1024 ) )
+		{
+			print STDOUT $buf;
+		}
+		close( FORIG );
+	}
+	else
+	{
+		$wp = GD::Text::Wrap->new($gd,
+			width       => 70,
+			line_space  => 0,
+			color       => $black, 
+			text        => "No avatar",
+		);
+		$wp->set_font(gdLargeFont, 14);
+		$wp->set(align => 'center');
+		$wp->draw(0,5);
+		$wp->set(para_space => 10, preserve_nl => 0);
+		print STDOUT $gd->png();
+	}
+}
+
+close STDOUT;


Property changes on: branches/vhffs-design/vhffs-public/avatar.pl
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mergeinfo
   + 

Deleted: branches/vhffs-design/vhffs-public/getavatar.pl
===================================================================
--- branches/vhffs-design/vhffs-public/getavatar.pl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/getavatar.pl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,127 +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 strict;
-use utf8;
-use CGI;
-use GD;
-use GD::Text::Wrap;
-use lib '%VHFFS_LIB_DIR%';
-use Vhffs::Main;
-use Vhffs::Object;
-use Vhffs::Panel::Avatar;
-
-#Get some basics informations with CGI
-my $cgi;
-my $oid;
-my $code;
-my $vhffs;
-my $gd;
-my $wp;
-my $black;
-my $white;
-my $blue;
-my $path;
-my $buf;
-my $object;
-
-$cgi 		= new CGI;
-$cgi->charset('utf-8');
-$vhffs		= init Vhffs::Main;	
-$oid 		= $cgi->param( "oid" );
-
-$object = Vhffs::Object::get_by_oid( $vhffs , $oid );
-
-$path = Vhffs::Panel::Avatar::exists_avatar( $vhffs , $object );
-
-if( ! ( defined $oid ) )
-{
-	print CGI->header( -type=>"text/html", -charset=>"utf-8" );
-	print "oid error";
-	exit 1;
-}
-
-$gd = GD::Image->new(70,100);
-$white = $gd->colorAllocate(255,255,255);
-$black = $gd->colorAllocate(  0,  0,  0);
-$blue  = $gd->colorAllocate(127,127,255);
-
-#print "No colours: $black ", $gd->colorsTotal, "\n";
-    
-
-# Assume the user has set FONT_PATH or TTF_FONT_PATH
-#$wp->font_path('/usr/share/fonts/ttfonts');
-print CGI->header( -type=>"image/png" );
-
-binmode STDOUT ;
-
-if( $vhffs->get_config->get_panel->{'users_avatars'} ne 'yes' && $vhffs->get_config->get_panel->{'groups_avatars'} ne 'yes' )
-{
-	$wp = GD::Text::Wrap->new($gd,
-		width       => 70,
-		line_space  => 0,
-		color       => $black, 
-		text        => "This platform does not support avatar",
-	);
-	$wp->set_font(gdLargeFont, 14);
-	$wp->set(align => 'center');
-	$wp->draw(0,5);
-	$wp->set(para_space => 10, preserve_nl => 0);
-	print STDOUT $gd->png();
-}
-else
-{
-	if( defined $path )
-	{
-		open FORIG , "$path";
-		while( read( FORIG , $buf , 1024 ) )
-		{
-			print STDOUT $buf;
-		}
-		close( FORIG );
-	}
-	else
-	{
-		$wp = GD::Text::Wrap->new($gd,
-			width       => 70,
-			line_space  => 0,
-			color       => $black, 
-			text        => "No avatar",
-		);
-		$wp->set_font(gdLargeFont, 14);
-		$wp->set(align => 'center');
-		$wp->draw(0,5);
-		$wp->set(para_space => 10, preserve_nl => 0);
-		print STDOUT $gd->png();
-	}
-}
-
-close STDOUT;

Deleted: branches/vhffs-design/vhffs-public/tagsearch.pl
===================================================================
--- branches/vhffs-design/vhffs-public/tagsearch.pl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/tagsearch.pl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,84 +0,0 @@
-#!%PERL%
-# 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 strict;
-use utf8;
-
-use POSIX qw(locale_h);
-use locale;
-use Locale::gettext;
-use CGI;
-use Encode;
-
-use lib '%VHFFS_LIB_DIR%';
-use Vhffs::Panel::Commons;
-use Vhffs::Panel::Main;
-use Vhffs::Panel::Tag;
-use Vhffs::Panel::Template;
-
-my $panel = new Vhffs::Panel::Main();
-exit 0 unless $panel;
-
-my $vhffs = $panel->{'vhffs'};
-my $templatedir = $panel->{'templatedir'};
-my $cgi = $panel->{'cgi'};
-
-$panel->check_public();
-
-my $template = new Vhffs::Panel::Template( filename => $templatedir.'/public/groupslist.tmpl', die_on_bad_params => 0 );
-my $tag = $cgi->param('tag');
-my $page = $cgi->param('page');
-my $per_page_count = 5;
-$page = 1 unless(defined $page && int($page) > 0);
-$panel->redirect('/') unless(defined $tag && int($tag) > 0);
-
-my $result = Vhffs::Panel::Tag::get_groups(
-    $vhffs,
-    int($tag),
-    ($page -1) * $per_page_count,
-    $per_page_count
-);
-
-$template->param( URL_PANEL => $vhffs->get_config->get_panel->{'url'} );
-
-if($result->{total_count} == 0) {
-    $template->param( TEXT_TITLE => gettext('No group found') );
-} else {
-    Vhffs::Panel::Commons::paginate($template, $page, $result->{total_count}, $per_page_count,
-        { tag => $tag });
-    $template->param( USE_AVATAR => $panel->use_groups_avatars );
-    $template->param( TEXT_TITLE => sprintf( gettext('%d group(s) found'), $result->{total_count} ) );
-    $template->param( GROUPS => $result->{data} );
-}
-
-$panel->light( $template );
-$panel->display;
-

Modified: branches/vhffs-design/vhffs-public/templates/Makefile.am
===================================================================
--- branches/vhffs-design/vhffs-public/templates/Makefile.am	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/templates/Makefile.am	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,6 +1,5 @@
 publictemplatesdir = @TEMPLATESDIR@/public
 nobase_dist_publictemplates_DATA = \
-	banner.tmpl \
 	common/error.tt \
 	common/pager.tt \
 	content/all-groups.tt \
@@ -11,28 +10,11 @@
 	content/groupsearch-results.tt \
 	content/usersearch-form.tt \
 	content/usersearch-results.tt \
-	group_part.tmpl \
-	group.tmpl \
-	groupslist.tmpl \
-	index.tmpl \
 	layouts/public.tt \
-	misc/cvs-part.tmpl \
-	misc/groupinfo.tmpl \
-	misc/list-part.tmpl \
-	misc/pagination.tmpl \
-	misc/userinfo.tmpl \
-	misc/svn-part.tmpl \
-	misc/git-part.tmpl \
-	misc/web-part.tmpl \
 	parts/footer.tt \
 	parts/group-general.tt \
 	parts/header.tt \
 	parts/left-menu.tt \
 	parts/tags-cloud.tt \
 	parts/top-menu.tt \
-	parts/user-general.tt \
-	simplemsg.tmpl \
-	user_part.tmpl \
-	user.tmpl \
-	userslist.tmpl \
-	websiteslist.tmpl
+	parts/user-general.tt

Deleted: branches/vhffs-design/vhffs-public/templates/banner.tmpl
===================================================================
--- branches/vhffs-design/vhffs-public/templates/banner.tmpl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/templates/banner.tmpl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,12 +0,0 @@
-<div id="header">
-    <div id="top_menu">
-        <div id="userToolBox">
-            <a href="<TMPL_VAR ESCAPE=1 NAME="URL_PANEL">"><img src="/themes/vhffs/images/login.png" alt="<TMPL_I18N KEY="Back to login page">" title="<TMPL_I18N KEY="Back to login page">"/></a>
-            <a href="/index.pl"><img src="/themes/vhffs/images/home.png" alt="<TMPL_I18N KEY="Homepage of public area">" title="<TMPL_I18N KEY="Homepage of public area">"/></a>
-            <a href="/lastusers.pl"><img src="/themes/vhffs/images/users.png" alt="<TMPL_I18N KEY="Last Users">" title="<TMPL_I18N KEY="Last Users">"/></a>
-            <a href="/lastgroups.pl"><img src="/themes/vhffs/images/projects.png" alt="<TMPL_I18N KEY="Last Groups">" title="<TMPL_I18N KEY="Last Groups">"/></a>
-            <a href="/allwebsites.pl"><img src="/themes/vhffs/images/webs.png" alt="<TMPL_I18N KEY="List of all websites">" title="<TMPL_I18N KEY="List of all websites">"/></a>
-        </div>
-    </div>
-</div>
-

Deleted: branches/vhffs-design/vhffs-public/templates/group.tmpl
===================================================================
--- branches/vhffs-design/vhffs-public/templates/group.tmpl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/templates/group.tmpl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,50 +0,0 @@
-<TMPL_INCLUDE NAME="banner.tmpl">
-<div id="public">
-<h1><TMPL_VAR ESCAPE=1 NAME="VALUE_REALNAME"></h1>
-<ul>
-    <li><TMPL_I18N KEY="Groupname">: <TMPL_VAR ESCAPE=1 NAME="VALUE_GROUPNAME"></li>
-    <li><TMPL_INCLUDE NAME="user_part.tmpl"></li>
-</ul>
-<fieldset><legend><TMPL_I18N KEY="Description"></legend>
-<TMPL_VAR NAME="VALUE_DESCRIPTION">
-</fieldset>
-
-<TMPL_IF NAME="WEBSITES">
-<h2><TMPL_I18N KEY="Websites for this group"></h2>
-<TMPL_INCLUDE NAME="misc/web-part.tmpl">
-</TMPL_IF>
-
-<TMPL_IF NAME="CVSREPOS">
-<h2><TMPL_I18N KEY="CVS Repositories for this group"></h2>
-<TMPL_INCLUDE NAME="misc/cvs-part.tmpl">
-</TMPL_IF>
-
-<TMPL_IF NAME="SVNREPOS">
-<h2><TMPL_I18N KEY="Subversion Repositories for this group"></h2>
-<TMPL_INCLUDE NAME="misc/svn-part.tmpl">
-</TMPL_IF>
-
-<TMPL_IF NAME="GITREPOS">
-<h2><TMPL_I18N KEY="GIT Repositories for this group"></h2>
-<TMPL_INCLUDE NAME="misc/git-part.tmpl">
-</TMPL_IF>
-
-<TMPL_IF NAME="LISTS">
-<h2><TMPL_I18N KEY="Mailing Lists for this group"></h2>
-<TMPL_INCLUDE NAME="misc/list-part.tmpl">
-</TMPL_IF>
-
-<TMPL_IF NAME="TAG_CATEGORIES">
-<h2><TMPL_I18N KEY="Tags"></h2>
-<ul>
-<TMPL_LOOP NAME="TAG_CATEGORIES">
-<li><TMPL_VAR NAME="LABEL" ESCAPE="1">:
-<TMPL_LOOP NAME="TAGS">
-<a href="/tagsearch.pl?tag=<TMPL_VAR NAME="TAG_ID">"><TMPL_VAR NAME="LABEL" ESCAPE="1"><TMPL_UNLESS NAME="__LAST__"></a>,</TMPL_UNLESS>
-</TMPL_LOOP>
-</li>
-</TMPL_LOOP>
-</ul>
-</TMPL_IF>
-
-</div>

Deleted: branches/vhffs-design/vhffs-public/templates/group_part.tmpl
===================================================================
--- branches/vhffs-design/vhffs-public/templates/group_part.tmpl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/templates/group_part.tmpl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,8 +0,0 @@
-<TMPL_IF NAME="GROUPS">
-    <TMPL_I18N KEY="Groups">:
-    <TMPL_LOOP NAME="GROUPS">
-        <a href="/group.pl?name=<TMPL_VAR ESCAPE=1 NAME="GROUPNAME">"><TMPL_VAR ESCAPE=1 NAME="GROUPNAME"></a><TMPL_UNLESS NAME="__LAST__">,</TMPL_UNLESS>
-    </TMPL_LOOP>
-<TMPL_ELSE>
-    <TMPL_I18N KEY="No group">
-</TMPL_IF>

Deleted: branches/vhffs-design/vhffs-public/templates/groupslist.tmpl
===================================================================
--- branches/vhffs-design/vhffs-public/templates/groupslist.tmpl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/templates/groupslist.tmpl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,20 +0,0 @@
-<TMPL_INCLUDE NAME="banner.tmpl">
-
-<div id="public">
-<h1><TMPL_VAR ESCAPE=1 NAME="TEXT_TITLE"></h1>
-<TMPL_IF NAME="LETTERS">
-<p style="text-align:center">
-<TMPL_LOOP NAME="LETTERS">
-[<a href="/allgroups.pl?letter=<TMPL_VAR ESCAPE=1 NAME="letter">"><TMPL_VAR ESCAPE=1 NAME="letter"></a>]&nbsp;
-</TMPL_LOOP>
-[<a href="/allgroups.pl?letter=all"><TMPL_VAR ESCAPE=1 NAME="ALL"></a>]
-</p>
-</TMPL_IF>
-<TMPL_INCLUDE NAME="misc/pagination.tmpl">
-<TMPL_IF NAME="MESSAGE">
-<p style="text-align:center;font-weight:bold;"><TMPL_VAR ESCAPE=1 NAME="MESSAGE"></p>
-</TMPL_IF>
-<TMPL_LOOP NAME="GROUPS">
-<TMPL_INCLUDE NAME="misc/groupinfo.tmpl">
-</TMPL_LOOP>
-</div>

Deleted: branches/vhffs-design/vhffs-public/templates/index.tmpl
===================================================================
--- branches/vhffs-design/vhffs-public/templates/index.tmpl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/templates/index.tmpl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,70 +0,0 @@
-<TMPL_INCLUDE NAME="banner.tmpl">
-<div id="public">
-    <h1><TMPL_VAR ESCAPE=1 NAME="TEXT_TITLE"></h1>
-
-    <h2><TMPL_I18N KEY="Users"></h2>
-    <ul>
-        <li><a href="/lastusers.pl"><TMPL_I18N KEY="Last users"></a></li>
-    </ul>
-    <fieldset>
-        <legend><TMPL_I18N KEY="Search an user"></legend>
-        <form method="post" action="/usersearch.pl">
-            <p><label for="search_username"><TMPL_I18N KEY="Username">:</label>
-                <input type="text" name="username" id="search_username"/></p>
-            <p><label for="search_firstname"><TMPL_I18N KEY="Firstname">:</label>
-                <input type="text" name="firstname" id="search_firstname"/></p>
-            <p><label for="search_lastname"><TMPL_I18N KEY="Lastname">:</label>
-                <input type="text" name="lastname" id="search_lastname"/></p>
-            <p><input type="submit" name="search_user_submit" value="<TMPL_I18N KEY="Search">"/></p>
-        </form>
-    </fieldset>
-
-    <h2><TMPL_I18N KEY="Groups/Projects"></h2>
-    <h3><TMPL_I18N KEY="Project search"></h3>
-    <ul>
-        <li><a href="/lastgroups.pl"><TMPL_I18N KEY="Last Groups"></a></li>
-        <li><a href="/allgroups.pl"><TMPL_I18N KEY="All Groups"></a></li>
-    </ul>
-    <fieldset>
-        <legend><TMPL_I18N KEY="Search a group"></legend>
-        <form method="post" action="/groupsearch.pl">
-            <p><label for="search_groupname"><TMPL_I18N KEY="Groupname">:</label>
-                <input type="text" name="groupname" id="search_groupname"/></p>
-            <p><label for="search_description"><TMPL_I18N KEY="Description contains">:</label>
-                <input type="text" name="description" id="search_description"/></p>
-            <p><input type="submit" name="search_group_submit" value="<TMPL_I18N KEY="Search">"/></p>
-        </form>
-   </fieldset>
-	<TMPL_IF NAME="TOP_TAGS">
-	<h3><TMPL_I18N KEY="Most popular tags"></h3>
-	<TMPL_LOOP NAME="TOP_TAGS">
-		<span class="tag-<TMPL_VAR NAME="WEIGHT">">
-			<a href="/tagsearch.pl?tag=<TMPL_VAR NAME="TAG_ID">"> <span title="<TMPL_VAR ESCAPE=1 NAME="CATEGORY_DESCRIPTION">"><TMPL_VAR NAME="CATEGORY_LABEL"></span>::<span title="<TMPL_VAR ESCAPE=1 NAME="TAG_DESCRIPTION">"><TMPL_VAR NAME="TAG_LABEL"></span></a>
-		</span>
-	</TMPL_LOOP>
-	</TMPL_IF>
-	<TMPL_IF NAME="RANDOM_TAGS">
-	<h3><TMPL_I18N KEY="Random tags"></h3>
-	<TMPL_LOOP NAME="RANDOM_TAGS">
-		<span class="tag-<TMPL_VAR NAME="WEIGHT">">
-			<a href="/tagsearch.pl?tag=<TMPL_VAR NAME="TAG_ID">" ><span title="<TMPL_VAR ESCAPE=1 NAME="CATEGORY_DESCRIPTION">"><TMPL_VAR NAME="CATEGORY_LABEL"></span>::<span title="<TMPL_VAR ESCAPE=1 NAME="TAG_DESCRIPTION">"><TMPL_VAR NAME="TAG_LABEL"></span></a>
-		</span>
-	</TMPL_LOOP>
-	</TMPL_IF>
-    <h2><TMPL_I18N KEY="Websites"></h2>
-    <ul>
-        <li><a href="/allwebsites.pl"><TMPL_I18N KEY="All Websites"></a></li>
-    </ul>
-    <fieldset>
-        <legend><TMPL_I18N KEY="Search a website"></legend>
-        <form method="post" action="/websitesearch.pl">
-            <p><label for="search_servername"><TMPL_I18N KEY="Website name">:</label>
-                <input type="text" name="servername" id="search_servername"/></p>
-            <p><label for="search_wdesc"><TMPL_I18N KEY="Website description">:</label>
-                <input type="text" name="description" id="search_wdesc"/></p>
-            <p><input type="submit" name="search_website_submit" value="<TMPL_I18N KEY="Search">"/></p>
-        </form>
-   </fieldset>
-
-
-</div>

Deleted: branches/vhffs-design/vhffs-public/templates/simplemsg.tmpl
===================================================================
--- branches/vhffs-design/vhffs-public/templates/simplemsg.tmpl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/templates/simplemsg.tmpl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,6 +0,0 @@
-        <div class="logo">
-        </div>
-
-        <div class="misc" id="misc">
-            <h1 class="message"><TMPL_VAR ESCAPE=1 NAME="MESSAGE"></h1>
-        </div>

Deleted: branches/vhffs-design/vhffs-public/templates/user.tmpl
===================================================================
--- branches/vhffs-design/vhffs-public/templates/user.tmpl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/templates/user.tmpl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,6 +0,0 @@
-<TMPL_INCLUDE NAME="banner.tmpl">
-
-<div id="public">
-<h1><TMPL_VAR ESCAPE=0 NAME="USERNAME"></h1>
-<TMPL_INCLUDE NAME="misc/userinfo.tmpl">
-</div>

Deleted: branches/vhffs-design/vhffs-public/templates/user_part.tmpl
===================================================================
--- branches/vhffs-design/vhffs-public/templates/user_part.tmpl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/templates/user_part.tmpl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,8 +0,0 @@
-<TMPL_IF NAME="USERS">
-    <TMPL_I18N KEY="Users">:
-    <TMPL_LOOP NAME="USERS">
-        <a href="/user.pl?name=<TMPL_VAR ESCAPE=1 NAME="USERNAME">"><TMPL_VAR ESCAPE=1 NAME="USERNAME"></a><TMPL_UNLESS NAME="__LAST__">,</TMPL_UNLESS>
-    </TMPL_LOOP>
-<TMPL_ELSE>
-    <TMPL_I18N KEY="No user">
-</TMPL_IF>

Deleted: branches/vhffs-design/vhffs-public/templates/userslist.tmpl
===================================================================
--- branches/vhffs-design/vhffs-public/templates/userslist.tmpl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/templates/userslist.tmpl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,10 +0,0 @@
-<TMPL_INCLUDE NAME="banner.tmpl">
-
-<div id="public">
-
-<h1><TMPL_VAR ESCAPE=1 NAME="TEXT_TITLE"></h1>
-<TMPL_INCLUDE NAME="misc/pagination.tmpl">
-<TMPL_LOOP NAME="USERS">
-<TMPL_INCLUDE NAME="misc/userinfo.tmpl">
-</TMPL_LOOP>
-</div>

Deleted: branches/vhffs-design/vhffs-public/templates/websiteslist.tmpl
===================================================================
--- branches/vhffs-design/vhffs-public/templates/websiteslist.tmpl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/templates/websiteslist.tmpl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,21 +0,0 @@
-<TMPL_INCLUDE NAME="banner.tmpl">
-
-<div id="public">
-<h1><TMPL_VAR ESCAPE=1 NAME="TEXT_TITLE"></h1>
-<TMPL_IF NAME="LETTERS">
-<p style="text-align:center">
-<TMPL_LOOP name="LETTERS">
-[<a href="/allwebsites.pl?letter=<TMPL_VAR ESCAPE=1 name="letter">" title="<TMPL_VAR ESCAPE=1 name="count"> <TMPL_I18N KEY="website(s)">"><TMPL_VAR ESCAPE=1 name="letter"></a>]&nbsp;
-</TMPL_LOOP>
-[<a href="/allwebsites.pl?letter=all"><TMPL_VAR ESCAPE=1 name="ALL"></a>]
-</p>
-</TMPL_IF>
-<TMPL_INCLUDE NAME="misc/pagination.tmpl">
-<TMPL_IF NAME="WEBSITES">
-<TMPL_INCLUDE NAME="misc/web-part.tmpl">
-<TMPL_ELSE>
-<p style="text-align:center;font-weight:bold;">
-<TMPL_I18N KEY="No websites">
-</p>
-</TMPL_IF>
-</div>

Deleted: branches/vhffs-design/vhffs-public/user.pl
===================================================================
--- branches/vhffs-design/vhffs-public/user.pl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/user.pl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,77 +0,0 @@
-#!%PERL%
-# 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 strict;
-use utf8;
-
-use POSIX qw(locale_h);
-use locale;
-use Locale::gettext;
-use CGI;
-
-use lib '%VHFFS_LIB_DIR%';
-use Vhffs::Panel::Main;
-use Vhffs::Panel::Template;
-use Vhffs::Panel::User;
-use Vhffs::User;
-
-my $panel = new Vhffs::Panel::Main();
-exit 0 unless $panel;
-
-$panel->check_public();
-my $cgi = $panel->{cgi};
-my $vhffs = $panel->{vhffs};
-my $templatedir = $panel->{templatedir};
-
-my $username = $cgi->param('name');
-my $user;
-my $template;
-
-if(!defined $username) {
-    $template =  new HTML::Template( filename => $templatedir.'/public/simplemsg.tmpl' );
-    my $message = gettext( "CGI Error !");
-    $template->param( MESSAGE => $message );
-} elsif(!defined($user = Vhffs::User::get_by_username($vhffs, $username))) {
-    $template =  new HTML::Template( filename => $templatedir.'/public/simplemsg.tmpl' );
-    my $message = gettext( "CGI Error !");
-    $template->param( MESSAGE => $message );
-} else {
-    $template = new Vhffs::Panel::Template( filename => $templatedir.'/public/user.tmpl', loop_context_vars => 1, die_on_bad_params => 0);
-    $template->param( OBJECT_ID => $user->get_oid );
-    $template->param( USERNAME => $user->get_username );
-    $template->param( FIRSTNAME => $user->get_firstname );
-    $template->param( LASTNAME => $user->get_lastname );
-    $template->param( GROUPS => Vhffs::Panel::User::get_groups($user) );
-    $template->param( USE_AVATAR => $panel->use_users_avatars );
-}
-
-$panel->light( $template );
-$panel->display;

Deleted: branches/vhffs-design/vhffs-public/websitesearch.pl
===================================================================
--- branches/vhffs-design/vhffs-public/websitesearch.pl	2009-03-09 18:27:42 UTC (rev 1359)
+++ branches/vhffs-design/vhffs-public/websitesearch.pl	2009-03-09 18:40:40 UTC (rev 1360)
@@ -1,85 +0,0 @@
-#!%PERL%
-# 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 strict;
-use utf8;
-
-use POSIX qw(locale_h);
-use locale;
-use Locale::gettext;
-use CGI;
-use Encode;
-
-use lib '%VHFFS_LIB_DIR%';
-use Vhffs::Panel::Main;
-use Vhffs::Panel::Template;
-use Vhffs::Panel::Web;
-
-my $panel = new Vhffs::Panel::Main();
-exit 0 unless $panel;
-
-my $vhffs = $panel->{'vhffs'};
-my $templatedir = $panel->{'templatedir'};
-my $cgi = $panel->{'cgi'};
-
-$panel->check_public();
-
-my $hostname = $vhffs->get_config->get_host_name;
-my $template = new Vhffs::Panel::Template( filename => $templatedir."/public/websiteslist.tmpl" );
-
-my $servername = $cgi->param('servername') || '';
-my $description = Encode::decode_utf8( $cgi->param('description') ) || '';
-my $page = $cgi->param('page');
-my $per_page_count = 10;
-$page = 1 unless(defined $page && int($page) > 0);
-
-my $result = Vhffs::Panel::Web::public_search(
-    $vhffs,
-    $servername =~ /^\s*$/ ? undef : $servername,
-    $description =~ /^\s*$/ ? undef : $description, 
-    ($page - 1) * $per_page_count,
-    $per_page_count
-);
-
-
-if($result->{total_count} == 0) {
-    $template->param( TEXT_TITLE => gettext('No website found') );
-} else {
-    Vhffs::Panel::Commons::paginate($template, $page, $result->{total_count}, $per_page_count,
-        { servername => $servername, description => $description });
-    $template->param( TEXT_TITLE => sprintf( gettext('%d websites(s) found'), $result->{total_count} ) );
-    $template->param( WEBSITES => $result->{data} );
-}
-
-
-
-$panel->light( $template );
-$panel->display;


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