This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  c93d304ff4278be198988f58af34abafdb07146e (commit)
      from  5263b7f63318692cfcb4478fbf4dbce71e99a792 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=c93d304ff4278be198988f58af34abafdb07146e

commit c93d304ff4278be198988f58af34abafdb07146e
Author: Franck Villaume <[email protected]>
Date:   Sun Sep 8 14:53:58 2019 +0200

    [#902]: add missing action file for project voting

diff --git a/src/www/project/index.php b/src/www/project/index.php
new file mode 100644
index 0000000..fc05b86
--- /dev/null
+++ b/src/www/project/index.php
@@ -0,0 +1,48 @@
+<?php
+/**
+ * Project Index page
+ *
+ * Copyright 2019, Franck Villaume - TrivialDev
+ * http://fusionforge.org/
+ *
+ * This file is part of FusionForge. FusionForge 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 Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge 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 FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+require_once '../env.inc.php';
+require_once $gfcommon.'include/pre.php';
+
+$group_id=getIntFromGet('group_id');
+
+/* validate group */
+if (!$group_id)
+       exit_no_group();
+
+$g = group_get_object($group_id);
+if (!$g || !is_object($g))
+       exit_no_group();
+
+session_require_perm('project_read', $group_id);
+
+if ($g->isError())
+       exit_error($g->getErrorMessage(), 'home');
+       
+/* everything sounds ok, now let's do the job */
+$action = getStringFromRequest('action');
+if 
(file_exists(forge_get_config('source_path').'/common/project/actions/'.$action.'.php'))
 {
+       
include(forge_get_config('source_path').'/common/project/actions/'.$action.'.php');
+}
+
+session_redirect('/projects/'.$g->getUnixName());

-----------------------------------------------------------------------

Summary of changes:
 .../pointer_down.php => www/project/index.php}     | 31 ++++++++++++++++------
 1 file changed, 23 insertions(+), 8 deletions(-)
 copy src/{common/project/actions/pointer_down.php => www/project/index.php} 
(57%)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to