inc/mails/beg_mails.php -text svneol=unset#text/plain
inc/mails/bonus_mails.php -text svneol=unset#text/plain
inc/mails/doubler_mails.php -text svneol=unset#text/plain
+inc/math-functions.php svneol=native#text/plain
inc/module-functions.php svneol=native#text/plain
inc/modules/.htaccess -text svneol=unset#text/plain
inc/modules/admin.php -text svneol=unset#text/plain
find -type f -name "*.gif" -exec svn propset svn:mime-type "image/gif" {} \;
find -type f -name "*.txt" -exec svn propset svn:mime-type "text/plain" {} \;
find -type f -name "*.tpl" -exec svn propset svn:mime-type "text/plain" {} \;
+
+find inc/phpmailer/ -type f -name "*.php" -exec svn propdel svn:keywords {} \;
return $code;
}
+// Expression call-back for math functions
+function doExpressionMath ($data) {
+ // Do the replacement
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'template='.$GLOBALS['current_template']);
+ $replacer = '{DQUOTE} . doCalculate' . $data['callback'] . '(' . $data['value'] . ') . {DQUOTE}';
+
+ // Replace the code
+ $code = replaceExpressionCode($data, $replacer);
+
+ // Load include once
+ loadIncludeOnce('inc/math-functions.php');
+
+ // Return the (maybe) replaced code
+ return $code;
+}
+
// [EOF]
?>
--- /dev/null
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL Start: 07/24/2010 *
+ * =================== Last change: 07/24/2010 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : math-functions.php *
+ * -------------------------------------------------------------------- *
+ * Short description : Expression callback functions *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Expression-Callback-Funktionen *
+ * -------------------------------------------------------------------- *
+ * $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
+
+// Math function for x day(s) in seconds
+function doCalculateDay ($days) {
+ // Calculate it
+ return '{DQUOTE} . (getOneDay() * ' . $days . ') . {DQUOTE}';
+}
+
+// Math function for x weeks(s) in seconds
+function doCalculateWeek ($weeks) {
+ // Calculate it
+ return '{DQUOTE} . (getOneDay() * 7 * ' . $weeks . ') . {DQUOTE}';
+}
+
+// [EOF]
+?>
<td>
<select name="warning_interval" class="admin_select" size="1">
<option value="0">{--SELECT_NONE--}</option>
- <option value="{--({?ONE_DAY?}*1)--}">1 {--DAYS--}</option>
- <option value="{--({?ONE_DAY?}*3)--}">3 {--DAYS--}</option>
- <option value="{--({?ONE_DAY?}*7)--}" selected="selected">1 {--LIFE_WEEKS--}</option>
- <option value="{--({?ONE_DAY?}*14)--}">2 {--LIFE_WEEKS--}</option>
- <option value="{--({?ONE_DAY?}*28)--}">4 {--LIFE_WEEKS--}</option>
- <option value="{--({?ONE_DAY?}*56)--}">8 {--LIFE_WEEKS--}</option>
+ <option value="{%math,Day=1%}">1 {--DAYS--}</option>
+ <option value="{%math,Day=3%}">3 {--DAYS--}</option>
+ <option value="{%math,Week=1)%}" selected="selected">1 {--LIFE_WEEKS--}</option>
+ <option value="{%math,Week=2)%}">2 {--LIFE_WEEKS--}</option>
+ <option value="{%math,Week=4)%}">4 {--LIFE_WEEKS--}</option>
+ <option value="{%math,Week=8)%}">8 {--LIFE_WEEKS--}</option>
</select>
</td>
</tr>
<td class="bottom">
<select name="warning_interval" class="guest_select" size="1">
<option value="0">{--SELECT_NONE--}</option>
- <option value="{--({?ONE_DAY?}*1)--}">1 {--DAYS--}</option>
- <option value="{--({?ONE_DAY?}*3)--}">3 {--DAYS--}</option>
- <option value="{--({?ONE_DAY?}*7)--}" selected="selected">1 {--LIFE_WEEKS--}</option>
- <option value="{--({?ONE_DAY?}*14)--}">2 {--LIFE_WEEKS--}</option>
- <option value="{--({?ONE_DAY?}*28)--}">4 {--LIFE_WEEKS--}</option>
- <option value="{--({?ONE_DAY?}*56)--}">8 {--LIFE_WEEKS--}</option>
+ <option value="{%math,Day=1%}">1 {--DAYS--}</option>
+ <option value="{%math,Day=3%}">3 {--DAYS--}</option>
+ <option value="{%math,Week=1%}" selected="selected">1 {--LIFE_WEEKS--}</option>
+ <option value="{%math,Week=2%}">2 {--LIFE_WEEKS--}</option>
+ <option value="{%math,Week=4%}">4 {--LIFE_WEEKS--}</option>
+ <option value="{%math,Week=8%}">8 {--LIFE_WEEKS--}</option>
</select>
</td>
</tr>
</td>
<td class="bottom" align="center">
<select name="warning_interval" class="guest_select" size="1">
- <option value="$content[warning_interval]">{%pipe,createFancyTime=$content[current]%}</option>
- <option value="{--({?ONE_DAY?}*1)--}">1 {--DAYS--}</option>
- <option value="{--({?ONE_DAY?}*3)--}">3 {--DAYS--}</option>
- <option value="{--({?ONE_DAY?}*7)--}">1 {--LIFE_WEEKS--}</option>
- <option value="{--({?ONE_DAY?}*14)--}">2 {--LIFE_WEEKS--}</option>
- <option value="{--({?ONE_DAY?}*28)--}">4 {--LIFE_WEEKS--}</option>
- <option value="{--({?ONE_DAY?}*56)--}">8 {--LIFE_WEEKS--}</option>
+ <option value="$content[warning_interval]">{%pipe,createFancyTime=$content[warning_interval]%}</option>
+ <option value="{%math,Day=1%}">1 {--DAYS--}</option>
+ <option value="{%math,Day=3%}">3 {--DAYS--}</option>
+ <option value="{%math,Week=1%}">1 {--LIFE_WEEKS--}</option>
+ <option value="{%math,Week=2%}">2 {--LIFE_WEEKS--}</option>
+ <option value="{%math,Week=4%}">4 {--LIFE_WEEKS--}</option>
+ <option value="{%math,Week=8%}">8 {--LIFE_WEEKS--}</option>
</select>
</td>
</tr>
<td class="bottom right" align="right" height="32">
{--SPONSOR_ENTER_PASSWORD--}:
</td>
- <td class="bottom">
+ <td class="bottom" align="center">
<input type="password" name="password" class="guest_normal" size="10" maxlength="255" />
</td>
</tr>