First batch of removal of the headers needed for revision-functions.php
[mailer.git] / contrib / ideas / ext-refund.php
1 <?php
2 /************************************************************************
3  * Mailer-Project 0.2.1-FINAL                         Start: 12/26/2005 *
4  * ==========================                   Last change: 12/26/2005 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : ext-refund.php                                   *
8  * -------------------------------------------------------------------- *
9  * Short description : Payback-points system                            *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Treuepunkte-System                               *
12  * -------------------------------------------------------------------- *
13  *                                                                      *
14  * -------------------------------------------------------------------- *
15  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
16  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
17  * For more information visit: http://www.mxchange.org                  *
18  *                                                                      *
19  * This program is free software; you can redistribute it and/or modify *
20  * it under the terms of the GNU General Public License as published by *
21  * the Free Software Foundation; either version 2 of the License, or    *
22  * (at your option) any later version.                                  *
23  *                                                                      *
24  * This program is distributed in the hope that it will be useful,      *
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
27  * GNU General Public License for more details.                         *
28  *                                                                      *
29  * You should have received a copy of the GNU General Public License    *
30  * along with this program; if not, write to the Free Software          *
31  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
32  * MA  02110-1301  USA                                                  *
33  ************************************************************************/
34
35 // Some security stuff...
36 if (!defined('__SECURITY')) {
37         exit();
38 } // END - if
39
40 // Version number
41 setThisExtensionVersion('0.0.0');
42
43 // Version history array (add more with , '0.1' and so on)
44 setExtensionVersionHistory(array('0.0.0'));
45
46 // This extension is in development (non-productive)
47 enableExtensionProductive(false);
48
49 switch (getExtensionMode()) {
50         case 'register': // Do stuff when installtion is running
51                 // SQL commands to run
52                 addExtensionSql('');
53                 break;
54
55         case 'remove': // Do stuff when removing extension
56                 // SQL commands to run
57                 addExtensionSql('');
58                 break;
59
60         case 'activate': // Do stuff when admin activates this extension
61                 // SQL commands to run
62                 addExtensionSql('');
63                 break;
64
65         case 'deactivate': // Do stuff when admin deactivates this extension
66                 // SQL commands to run
67                 addExtensionSql('');
68                 break;
69
70         case 'update': // Update an extension
71                 switch (getCurrentExtensionVersion()) {
72                         case '0.0.1': // SQL queries for v0.0.1
73                                 addExtensionSql('');
74
75                                 // Update notes (these will be set as task text!)
76                                 setExtensionUpdateNotes('');
77                                 break;
78                 } // END - switch
79                 break;
80
81         case 'modify': // When the extension got modified
82                 break;
83
84         case 'test': // For testing purposes
85                 break;
86
87         case 'init': // Do stuff when extension is initialized
88                 break;
89
90         default: // Unknown extension mode
91                 logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
92                 break;
93 } // END - switch
94
95 // [EOF]
96 ?>