plugins/templates/createplugin.sh -text
plugins/templates/helloworld/bin/db-delete.pl -text
plugins/templates/helloworld/bin/db-upgrade.pl -text
+plugins/templates/helloworld/cronjobs/manage_helloworld.php -text
plugins/templates/helloworld/debian/README.Debian -text
plugins/templates/helloworld/debian/README.source -text
plugins/templates/helloworld/debian/changelog -text
plugins/templates/helloworld/debian/po/templates.pot -text
plugins/templates/helloworld/debian/rules -text
plugins/templates/helloworld/debian/source/format -text
+plugins/templates/helloworld/etc/httpd.d/62plugin-helloworld -text
plugins/templates/helloworld/packaging/control/000source -text
plugins/templates/helloworld/packaging/control/222plugin-helloworld -text
plugins/templates/helloworld/packaging/control/222plugin-helloworld.shortdesc -text
--- /dev/null
+#! /usr/bin/php5 -f
+<?php
+/**
+ * FusionForge source control management
+ *
+ * Copyright 2009, Roland Mas
+ *
+ * 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 License,
+ * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+require 'env.inc.php';
+require_once $gfwww.'include/squal_pre.php';
+require_once $gfcommon.'include/cron_utils.php';
+
+// MailingList backend class
+/* This is only sample
+require_once $gfplugins.'helloworld/include/BackendHelloworld.class.php' ;
+
+
+$res = db_query_params ('SELECT id,type, parameters FROM system_event WHERE status=$1 ORDER BY id DESC',
+ array ('1'));
+if (!$res) {
+ printf('Unable to get list of events: '.db_error());
+ return false;
+}
+
+while ($data = db_fetch_array ($res)) {
+ if($data['type'] == 'HELLOWORLD_CREATE') {
+ $result = BackendHelloworld::instance()->createList($data['parameters']);
+ } elseif ($data['type'] == 'HELLOWORLD_DELETE') {
+ $result = BackendHelloworld::instance()->deleteList($data['parameters']);
+ }
+ $result ? $log="DONE":$test="ERROR";
+ $events[$data['id']]=$log;
+ echo "\n Event ".$data['id']." : ".$data['type']." ".$log." for list id=".$data['parameters'];
+}
+if(isset($events)) {
+ foreach($events as $event_id => $log) {
+ $sql = "UPDATE system_event SET end_date=$1, log=$2, status='3' WHERE id=$3;";
+ $result = db_query_params($sql,array(time(),$log,$event_id));
+ if (!$result) {
+ printf('Unable to update the list of events: '.db_error());
+ return false;
+ }
+ }
+
+}
+*/
+
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
+?>
-common/* /usr/share/gforge/plugins/helloworld/common/
-www/* /usr/share/gforge/plugins/helloworld/www/
-etc/plugins/helloworld/* /etc/gforge/plugins/helloworld/
+common/* usr/share/gforge/plugins/helloworld/common/
+include/* usr/share/gforge/plugins/helloworld/include/
+db/* usr/share/gforge/plugins/helloworld/db/
+bin/* usr/share/gforge/plugins/helloworld/bin/
+www/* usr/share/gforge/plugins/helloworld/www/
+cronjobs/* usr/share/gforge/cronjobs
+etc/plugins/helloworld/* etc/gforge/plugins/helloworld/
+etc/httpd.d/* usr/share/gforge/etc/httpd.d/