From: Roland Häder <roland@mxchange.org>
Date: Mon, 16 Aug 2010 01:51:55 +0000 (+0000)
Subject: New extension 'terms' introduced
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8722c9768bade6b7717c0a79345618090fe43454;p=mailer.git

New extension 'terms' introduced
---

diff --git a/.gitattributes b/.gitattributes
index db540eb132..cf682f6f73 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -181,6 +181,7 @@ inc/extensions/ext-sql_patches.php -text svneol=unset#text/plain
 inc/extensions/ext-support.php -text svneol=unset#text/plain
 inc/extensions/ext-surfbar.php -text svneol=unset#text/plain
 inc/extensions/ext-task.php -text svneol=unset#text/plain
+inc/extensions/ext-terms.php svneol=native#text/plain
 inc/extensions/ext-theme.php -text svneol=unset#text/plain
 inc/extensions/ext-timezone.php svneol=native#text/plain
 inc/extensions/ext-top10.php -text svneol=unset#text/plain
@@ -1394,6 +1395,7 @@ templates/de/html/ext/ext_sql_patches.tpl -text svneol=unset#text/plain
 templates/de/html/ext/ext_support.tpl -text svneol=unset#text/plain
 templates/de/html/ext/ext_surfbar.tpl -text svneol=unset#text/plain
 templates/de/html/ext/ext_task.tpl -text svneol=unset#text/plain
+templates/de/html/ext/ext_terms.tpl svneol=native#text/plain
 templates/de/html/ext/ext_theme.tpl -text svneol=unset#text/plain
 templates/de/html/ext/ext_timezone.tpl -text svneol=unset#text/plain
 templates/de/html/ext/ext_top10.tpl -text svneol=unset#text/plain
diff --git a/inc/extensions/ext-terms.php b/inc/extensions/ext-terms.php
new file mode 100644
index 0000000000..4bc4c99fdb
--- /dev/null
+++ b/inc/extensions/ext-terms.php
@@ -0,0 +1,97 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 08/16/2010 *
+ * ===================                          Last change: 08/16/2010 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : ext-terms.php                                    *
+ * -------------------------------------------------------------------- *
+ * Short description : Extension for 'Terms&Conditions'                 *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Erweiterung fuer AGBs                            *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * For more information visit: http://www.mxchange.org                  *
+ *                                                                      *
+ * 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., 51 Franklin St, Fifth Floor, Boston,               *
+ * MA  02110-1301  USA                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+	die();
+} // END - if
+
+// Version number
+setThisExtensionVersion('0.0');
+
+// Version history array (add more with , '0.1.0' and so on)
+setExtensionVersionHistory(array('0.0'));
+
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
+switch (getExtensionMode()) {
+	case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+		// SQL commands to run
+		break;
+
+	case 'remove': // Do stuff when removing extension
+		// SQL commands to run
+		break;
+
+	case 'activate': // Do stuff when admin activates this extension
+		// SQL commands to run
+		break;
+
+	case 'deactivate': // Do stuff when admin deactivates this extension
+		// SQL commands to run
+		break;
+
+	case 'update': // Update an extension
+		switch (getCurrentExtensionVersion()) {
+			case '0.0.1': // SQL queries for v0.0.1
+				addExtensionSql('');
+
+				// Update notes (these will be set as task text!)
+				setExtensionUpdateNotes('');
+				break;
+		} // END - switch
+		break;
+
+	case 'modify': // When the extension got modified
+		break;
+
+	case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
+		break;
+
+	case 'init': // Do stuff when extension is initialized
+		break;
+
+	default: // Unknown extension mode
+		logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
+		break;
+} // END - switch
+
+// [EOF]
+?>
diff --git a/templates/de/html/ext/ext_terms.tpl b/templates/de/html/ext/ext_terms.tpl
new file mode 100644
index 0000000000..44132fdf65
--- /dev/null
+++ b/templates/de/html/ext/ext_terms.tpl
@@ -0,0 +1,26 @@
+<div class="para">
+	Die alte, statische Template-Datei <strong>agb.tpl</strong> hat ausgedient.
+	Genau diese wird mit dieser Erweiterung komplett ersetzt (wie
+	<strong>impressum.tpl</strong> von <strong>ext-imprint</strong>. Das
+	Hinzuf&uuml;gen, &Auml;ndern oder L&ouml;schen von Paragraphen war vorher
+	nur mit HTML-Kenntnissen m&ouml;glich und ist nun ein Kinderspiel (bis auf
+	das Schreiben der AGBs vielleicht).
+</div>
+
+<div class="para">
+	Sobald Sie nun &Auml;nderungen an den AGBs vornehmen, sollten Ihre
+	Mitglieder diese erneut zustimmen k&ouml;nnen oder ablehnen, was dann
+	meistens mit einer Accountl&ouml;schung endet. Sind die &Auml;nderungen
+	abgespeichert und durch Sie freigegeben, werden Sie um eine Zeitangabe
+	gebeten, wie lange Ihre Mitglieder Zeit haben, auf die AGB-&Auml;nderung
+	zu reagieren. Solange sie dies nicht tun, erhalten sie keine Verg&uuml;tung
+	bei Mailbest&auml;tigungen usw. Das Werben neuer Mitglieder kann optimional
+	auch nicht mehr verg&uuml;tbar sein (die Anmeldung jedoch klappt, wartende
+	Referal-Verg&uuml;tungen werden bei Zustimmung dann automatisch dem Werber
+	gutgeschrieben).
+</div>
+
+<div class="para">
+	Eine Archivierung der alten AGBs mit G&uuml;ltigkeitsdauer (zur Einsicht
+	f&uuml;r interessierte Mitglieder z.B.) ist optional m&ouml;glich.
+</div>