[Affelio-cvs 1318] CVS update: affelio

Back to archive index

Yoshihisa Fukuhara higef****@users*****
2006年 6月 3日 (土) 13:00:58 JST


Index: affelio/adminajax.cgi
diff -u /dev/null affelio/adminajax.cgi:1.1
--- /dev/null	Sat Jun  3 13:00:58 2006
+++ affelio/adminajax.cgi	Sat Jun  3 13:00:58 2006
@@ -0,0 +1,40 @@
+#!/usr/bin/perl
+
+# Copyright (C) 2005 FishGrove Inc.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
+# $Id: adminajax.cgi,v 1.1 2006/06/03 04:00:58 higefuku Exp $
+use strict;
+use lib("lib");
+use lib("extlib");
+
+my $exec_type = "";
+if ($ENV{'REDIRECT_AF_EXEC_TYPE'}) {
+    $exec_type = $ENV{'REDIRECT_AF_EXEC_TYPE'};
+    eval{
+        use lib("$ENV{'FARM_FS_TOP'}/$ENV{'REDIRECT_AF_EXEC_TYPE'}Farm/lib/");
+    };
+}else{
+    $exec_type = "Standalone";
+}
+
+my $env_cls = "Affelio::App::" . $exec_type . "::Env";
+my $admin_cls = "Affelio::App::" . $exec_type . "::AdminAjax";
+eval "use $env_cls;";
+eval "use $admin_cls;";
+
+my $admin = new $admin_cls (ConfigDir => './config/');
+$admin->run();


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