[vhffs-dev] [svn] commit: r141 - in /trunk: vhffs-panel/templates/user/prefs.tmpl vhffs-panel/user/prefs.pl vhffs-panel/user/prefs_save.pl vhffs-panel/user/upavatar.pl vhffs-robots/src/create_ml.pl

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


Author: soda
Date: Wed Jan 25 01:53:27 2006
New Revision: 141

Log:
Begin work with avatars


Added:
    trunk/vhffs-panel/user/upavatar.pl   (with props)
Modified:
    trunk/vhffs-panel/templates/user/prefs.tmpl
    trunk/vhffs-panel/user/prefs.pl
    trunk/vhffs-panel/user/prefs_save.pl
    trunk/vhffs-robots/src/create_ml.pl

Modified: trunk/vhffs-panel/templates/user/prefs.tmpl
==============================================================================
--- trunk/vhffs-panel/templates/user/prefs.tmpl (original)
+++ trunk/vhffs-panel/templates/user/prefs.tmpl Wed Jan 25 01:53:27 2006
@@ -75,6 +75,15 @@
 				</p>
 
 			</form>
+
+			<h2><tmpl_var name="TEXT_AVATAR"></h2>
+			<form method="post" action="upavatar.pl">
+				<p>
+				<tmpl_var name="EXPLAIN_AVATAR">
+				</p>
+				<input type="file" name="AVATAR"/>
+				<input type="submit" value="<tmpl_var name="SEND_AVATAR">" />
+			</form>
 			
 			<h2><tmpl_var name="TEXT_DELETE_USER"></h2>
 			
@@ -104,4 +113,4 @@
                                 
 			</form>
 			
-			
+			

Modified: trunk/vhffs-panel/user/prefs.pl
==============================================================================
--- trunk/vhffs-panel/user/prefs.pl (original)
+++ trunk/vhffs-panel/user/prefs.pl Wed Jan 25 01:53:27 2006
@@ -7,7 +7,6 @@
 use CGI;
 use CGI::Session;
 use strict;
-use Data::Dumper;
 
 use Vhffs::User;
 use Vhffs::Main;
@@ -75,6 +74,9 @@
 $template->param( NO => gettext("No, I'm not sure, I prefer to keep it.") );
 $template->param( TEXT_DELETE => gettext("Delete") );
 
+$template->param( SEND_AVATAR => gettext("Send my avatar") );
+$template->param( TEXT_AVATAR => gettext("Send my avatar") );
+$template->param( EXPLAIN_AVATAR => gettext("blablabla /*FIXME*/") );
 
 
 # themes

Modified: trunk/vhffs-panel/user/prefs_save.pl
==============================================================================
--- trunk/vhffs-panel/user/prefs_save.pl (original)
+++ trunk/vhffs-panel/user/prefs_save.pl Wed Jan 25 01:53:27 2006
@@ -7,7 +7,6 @@
 use CGI;
 use CGI::Session;
 use strict;
-use Data::Dumper;
 
 use Vhffs::User;
 use Vhffs::Main;

Modified: trunk/vhffs-robots/src/create_ml.pl
==============================================================================
--- trunk/vhffs-robots/src/create_ml.pl (original)
+++ trunk/vhffs-robots/src/create_ml.pl Wed Jan 25 01:53:27 2006
@@ -14,14 +14,18 @@
 
 foreach $ml ( @{$mls} )
 {
-	$ml->set_status( Vhffs::Constants::ACTIVATED );
-	if( $ml->commit < 0 )
+
+	if( $ml->fetch > 0 )
 	{
-		Vhffs::Robots::vhffs_log( sprintf( "Cannot create list %s", $ml->get_title ));
-	}
-	else
-	{
-		Vhffs::Robots::vhffs_log( sprintf( "Create list %s", $ml->get_title ));
+		$ml->set_status( Vhffs::Constants::ACTIVATED );
+		if( $ml->commit < 0 )
+		{
+			Vhffs::Robots::vhffs_log( sprintf( "Cannot create list %s", $ml->get_title ));
+		}
+		else
+		{
+			Vhffs::Robots::vhffs_log( sprintf( "Create list %s", $ml->get_title ));
+		}
 	}
 }
 




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