[Affelio-cvs 955] CVS update: affelio

Back to archive index

Tadashi Okoshi slash****@users*****
2005年 12月 19日 (月) 16:10:19 JST


Index: affelio/incoming.cgi
diff -u affelio/incoming.cgi:1.15 affelio/incoming.cgi:1.16
--- affelio/incoming.cgi:1.15	Sun Dec 18 14:26:54 2005
+++ affelio/incoming.cgi	Mon Dec 19 16:10:19 2005
@@ -16,7 +16,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
-# $Id: incoming.cgi,v 1.15 2005/12/18 05:26:54 slash5234 Exp $
+# $Id: incoming.cgi,v 1.16 2005/12/19 07:10:19 slash5234 Exp $
 
 use strict;
 
@@ -79,6 +79,13 @@
 my $passAB;
 try{
    $passAB = $af->getFM->get_attribute_by_afid($referrer, "password");
+   
+   $af->getFM->set_attribute_by_afid($referrer, 
+				     "last_incoming",
+				     Affelio::misc::Time::get_timestamp());
+   $af->getFM->incr_attribute_by_afid($referrer, 
+				      "count_incoming");
+
 }catch Error with{
     my $e = shift;
     error($q, "Error from FriendManager.\n" . $e);
@@ -88,6 +95,9 @@
     error($q, "Affelio: Invalid forwarding. Shared key not found!");
 }
 
+$referrer,
+
+
 
 ############################################################################
 #Decrypt the forward_id message;
Index: affelio/outgoing.cgi
diff -u affelio/outgoing.cgi:1.12 affelio/outgoing.cgi:1.13
--- affelio/outgoing.cgi:1.12	Sun Dec 18 14:26:54 2005
+++ affelio/outgoing.cgi	Mon Dec 19 16:10:19 2005
@@ -16,7 +16,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-# $Id: outgoing.cgi,v 1.12 2005/12/18 05:26:54 slash5234 Exp $
+# $Id: outgoing.cgi,v 1.13 2005/12/19 07:10:19 slash5234 Exp $
 
 use strict;
 
@@ -99,6 +99,14 @@
 my $passAB="";
 try{
     $passAB = $af->getFM->get_attribute_by_afid($dest_URL, "password");
+
+    $af->getFM->set_attribute_by_afid($dest_URL,
+				      "last_outgoing",
+				      Affelio::misc::Time::get_timestamp());
+
+    $af->getFM->incr_attribute_by_afid($dest_URL,
+				       "count_outgoing");
+
 }catch Error with{
     my $e = shift;
     error($q, "Error from FriendManager.\n" . $e);
@@ -109,6 +117,8 @@
     exit(1);
 }
 
+
+
 #########################################
 # Put this forwarding information into my DB
 # so that we can logout this session in the future.


Affelio-cvs メーリングリストの案内
Back to archive index