inc/extensions/ext-register.php -text
inc/extensions/ext-repair.php -text
inc/extensions/ext-rewrite.php -text
+inc/extensions/ext-safe.php -text
inc/extensions/ext-sponsor.php -text
inc/extensions/ext-sql_patches.php -text
inc/extensions/ext-support.php -text
templates/de/html/ext/ext_register.tpl -text
templates/de/html/ext/ext_repair.tpl -text
templates/de/html/ext/ext_rewrite.tpl -text
+templates/de/html/ext/ext_safe.tpl -text
templates/de/html/ext/ext_sponsor.tpl -text
templates/de/html/ext/ext_sql_patches.tpl -text
templates/de/html/ext/ext_support.tpl -text
define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "327");
+define('CURR_SVN_REVISION', "328");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- unset($dummy);
break;
}
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "active";
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
-
// Do we have a daily-reset-run?
if (isBooleanConstantAndTrue('__DAILY_RESET') && (!DEBUG_MODE) && ($CSS != 1))
{
}
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "autopurge";
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
-
// Remove old entries
$OLD = $_CONFIG['beg_timeout'];
if ($_CONFIG['beg_uid_timeout'] > $OLD) $OLD = $_CONFIG['beg_uid_timeout'];
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
-
- // Copy config to main array
- $_CONFIG = merge_array($_CONFIG, $dummy);
-
- // Save some RAM...
- unset($dummy);
-
if ((isBooleanConstantAndTrue('__DAILY_RESET')) && ($_CONFIG['birthday_points'] > 0)) {
// Daily reset was run and we shall pay points so we start checking for members who
// has a birthday for today
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
-
if (isBooleanConstantAndTrue('__DAILY_RESET') && (!DEBUG_MODE) && ($CSS != 1))
{
// Daily reset was run so let's check if active rallye is activated
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
-
// Create instance on class
- if ($cacheMode != "init")
- {
+ if ($cacheMode != "init") {
// Initialize cache system only when it's needed
$cacheInstance = new mxchange_cache($_CONFIG['cache_update'], PATH."inc/".$_CONFIG['cache_path'], $_CONFIG['cache_tested']);
if ($cacheInstance->ret != "done")
}
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "cache";
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
-
if ((isBooleanConstantAndTrue('__DAILY_RESET')) && ($_CONFIG['doubler_send_mode'] == "RESET")) {
// So let's check for points
$INC_POOL[] = sprintf("%sinc/doubler_send.php", PATH);
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "maintenance";
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
-
// URL ends which are used to indentify the end of an URL or email link
// Don't use these chars in links... ;-)
//
break;
default: // Do stuff when extension is loaded
+ // DEPRECATED WAY - PLEASE REWRITE IT
$dummy = LOAD_CONFIG();
define('__NICKNAME_LANG_CHARS', $dummy['nickname_chars']);
define('__NICKNAME_LENGTH' , $dummy['nickname_len']);
unset($dummy);
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "nickname";
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
-
// Do daily reset only when installed and extension version is at least 0.1.1
if ((isBooleanConstantAndTrue('__DAILY_RESET')) && (isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered')) && (GET_EXT_VERSION("order") >= "0.1.1"))
{
}
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "order";
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG['max_comma'] = $dummy['max_comma']; // Maximum numbers behind commata
- $_CONFIG['reject_url'] = $dummy['reject_url']; // Default rejection URL
- $_CONFIG['mailid_error_redirect'] = $dummy['mailid_error_redirect']; // Default rejection URL
- define('__CURRENCY', $dummy['currency']); // This is the currency for fees! They shall normally remain in real money currencies...
- unset($dummy);
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "other";
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "primera";
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "rewrite";
--- /dev/null
+<?php
+/************************************************************************
+ * MXChange v0.2.1 Start: 09/14/2008 *
+ * ================ Last change: 09/14/2008 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : ext-safe.php *
+ * -------------------------------------------------------------------- *
+ * Short description : A safe for storing points on a "safe" place *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Ein Tresor zum Ablegen der Punkte an einem *
+ * sicheren Ort *
+ * -------------------------------------------------------------------- *
+ * *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) {
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ require($INC);
+}
+
+// Version number
+$EXT_VERSION = "0.0";
+
+// Auto-set extension version
+if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION;
+
+// Version history array (add more with , "0.1" and so on)
+$EXT_VER_HISTORY = array("0.0");
+
+switch ($EXT_LOAD_MODE)
+{
+case "register": // Do stuff when installtion is running (modules.php?module=admin&action=login is called)
+ // SQL commands to run
+
+ // Load CSS file?
+ $EXT_CSS = 'Y';
+ 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 ($EXT_VER)
+ {
+ case "0.0.1": // SQL queries for v0.0.1
+ $SQLs[] = "";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "";
+ break;
+ }
+ break;
+
+default: // Do stuff when extension is loaded
+ break;
+}
+
+// Language file prefix
+$EXT_LANG_PREFIX = "safe";
+
+// Extension is always active?
+$EXT_ALWAYS_ACTIVE = 'N';
+
+//
+?>
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
-
// When the sql_patches is not installed we cannot load it's configuration... *sigh*
if (GET_EXT_VERSION("sql_patches") != '') {
$_CONFIG['secret_key'] = "";
- //die("<pre>".print_r($dummy, true)."</pre>");
- $_CONFIG = merge_array($_CONFIG, $dummy);
// Read key from secret file
if ((empty($_CONFIG['file_hash'])) || (empty($_CONFIG['master_salt'])) || (empty($_CONFIG['pass_scramble']))) {
} // END - if
// Transfer words/numbers to constants
- define('POINTS' , $dummy['points_word']);
- define('MT_WORD' , $dummy['mt_word']);
- define('MT_WORD2', $dummy['mt_word2']);
- define('MT_WORD3', $dummy['mt_word3']);
- define('_MAX' , $dummy['rand_no']);
+ define('POINTS' , $_CONFIG['points_word']);
+ define('MT_WORD' , $_CONFIG['mt_word']);
+ define('MT_WORD2', $_CONFIG['mt_word2']);
+ define('MT_WORD3', $_CONFIG['mt_word3']);
+ define('_MAX' , $_CONFIG['rand_no']);
} else {
// Set some lame ;-) default settings
$_CONFIG['def_refid'] = 0;
define('MT_WORD2', DEFAULT_MT_WORD2);
define('POINTS' , DEFAULT_POINTS);
}
-
- // Remove dummy config array
- unset($dummy);
break;
}
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
-
- if ((isBooleanConstantAndTrue('__DAILY_RESET')) && ($_CONFIG['ap_transfer'] == "Y"))
- {
+ if ((isBooleanConstantAndTrue('__DAILY_RESET')) && ($_CONFIG['ap_transfer'] == "Y")) {
// Automatically remove outdated or not displayed transactions
TRANSFER_AUTPPURGE($_CONFIG['transfer_max'], $_CONFIG['transfer_age']);
}
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "transfer";
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "user";
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "wernis";
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- unset($dummy);
break;
}
require_once(PATH."inc/mysql-manager.php"); // Functions which interact with the database
// Load configuration stuff
- $result = SQL_QUERY("SELECT pass_len, points_register, points_ref, least_cats, check_double_email, check_double_pass, admin_notify, url_tlock, test_text, max_tlength, test_subj, autosend_active, max_send, url_blacklist, auto_purge, auto_purge_active, last_update, unconfirmed, profile_lock, online_timeout, mad_timestamp, mad_count, profile_update, send_prof_update, resend_profile_update, code_length, patch_level, patch_ctime, guest_stats, ref_payout, activate_xchange, order_multi_page, display_refid, ip_timeout, allow_direct_pay, config
-FROM "._MYSQL_PREFIX."_config
-WHERE config=0
-LIMIT 1", __FILE__, __LINE__);
-
- if (SQL_NUMROWS($result) == 1) {
- // Load data when previous SQL query did not fail
- if (!is_resource($result)) {
- // Something went wrong
- ADD_FATAL(FATAL_CANNOT_LOAD_CONFIG);
- return;
- } // END - if
-
- // Load the configuration
- $_CONFIG = array_merge($_CONFIG, SQL_FETCHARRAY($result));
-
- // Initialize include-file-pool
- $INC_POOL = array();
-
- // Load "databases" aka static arrays
- require_once(PATH."inc/databases.php");
-
- // Loading patching system is required here...
- require_once(PATH."inc/patch-system.php"); // Initialize patch system
-
- // Functions which are related to themes
- require_once(PATH."inc/theme-manager.php");
-
- // Run daily reset
- require_once(PATH."inc/check-reset.php");
-
- // Load admin include file if he is admin
- if (IS_ADMIN()) {
- // Administrative functions
- require_once(PATH."inc/modules/admin/admin-inc.php");
- } // END - if
-
- // Get all values
- if (($CSS != 1) && ($CSS != -1)) {
- if (empty($GLOBALS['module'])) $GLOBALS['module'] = "empty";
- if (empty($GLOBALS['what'])) $GLOBALS['what'] = GET_WHAT($GLOBALS['module']);
- if (empty($GLOBALS['action'])) $GLOBALS['action'] = GET_ACTION($GLOBALS['module'], $GLOBALS['what']);
- } else {
- // Set action/what to empty
- $GLOBALS['action'] = "";
- $GLOBALS['what'] = "";
- }
+ $_CONFIG = LOAD_CONFIG();
+
+ // Initialize include-file-pool
+ $INC_POOL = array();
+
+ // Load "databases" aka static arrays
+ require_once(PATH."inc/databases.php");
+
+ // Loading patching system is required here...
+ require_once(PATH."inc/patch-system.php"); // Initialize patch system
+
+ // Functions which are related to themes
+ require_once(PATH."inc/theme-manager.php");
+
+ // Run daily reset
+ require_once(PATH."inc/check-reset.php");
- // Secure and validate user ID from cookie
- UPDATE_LOGIN_DATA();
-
- // Update online list
- UPDATE_ONLINE_LIST($PHPSESSID, $GLOBALS['module'], $GLOBALS['action'], $GLOBALS['what']);
-
- // Load theme name
- $currTheme = GET_CURR_THEME();
-
- // Set default 'what' value
- //* DEBUG */ echo "-".$GLOBALS['module']."/".$GLOBALS['what']."-<br />\n";
- if ((empty($GLOBALS['what'])) && (empty($GLOBALS['action'])) && ($CSS != 1) && ($CSS != -1)) {
- if ($GLOBALS['module'] == "admin") {
- // Set 'action' value to 'login' in admin menu
- $GLOBALS['action'] = GET_ACTION($GLOBALS['module'], $GLOBALS['what']);
- } elseif (($GLOBALS['module'] == "index") || ($GLOBALS['module'] == "login")) {
- // Set 'what' value to 'welcome' in guest and member menu
- $GLOBALS['what'] = "welcome";
- if (!empty($_CONFIG['index_home'])) $GLOBALS['what'] = $_CONFIG['index_home'];
- } else {
- // Anything else like begging link
- $GLOBALS['what'] = "";
- }
- } // END - if
-
- // Update sending pool
- if (($CSS != "1") && ($CSS != "-1")) require_once(PATH."inc/pool-update.php"); // Sends out mails in configureable steps
-
- // Load all active extension including language files when not upgrading.
- // Check module for testing and count one click
- $dummy = CHECK_MODULE($GLOBALS['module']);
- if ($dummy == "done") COUNT_MODULE($GLOBALS['module']);
- unset($dummy);
-
- // Shall we activate the exchange?
- if ($_CONFIG['activate_xchange'] > 0) activateExchange();
+ // Load admin include file if he is admin
+ if (IS_ADMIN()) {
+ // Administrative functions
+ require_once(PATH."inc/modules/admin/admin-inc.php");
+ } // END - if
+
+ // Get all values
+ if (($CSS != 1) && ($CSS != -1)) {
+ if (empty($GLOBALS['module'])) $GLOBALS['module'] = "empty";
+ if (empty($GLOBALS['what'])) $GLOBALS['what'] = GET_WHAT($GLOBALS['module']);
+ if (empty($GLOBALS['action'])) $GLOBALS['action'] = GET_ACTION($GLOBALS['module'], $GLOBALS['what']);
} else {
- // If you will read following error message you probably need to contact me (webmaster@mxchange.org)
- // and download the sql-upgrades extension from my server. Please ask me which SQL file(s) you need to
- // import *BEFORE* you import them!
- ADD_FATAL(FATAL_CANNOT_LOAD_CONFIG);
-
- // Reset link and db here, close database first
- SQL_CLOSE($link, __FILE__, __LINE__);
- $link = false; $db = false;
+ // Set action/what to empty
+ $GLOBALS['action'] = "";
+ $GLOBALS['what'] = "";
}
- // Free memory
- SQL_FREERESULT($result);
+ // Secure and validate user ID from cookie
+ UPDATE_LOGIN_DATA();
+
+ // Update online list
+ UPDATE_ONLINE_LIST($PHPSESSID, $GLOBALS['module'], $GLOBALS['action'], $GLOBALS['what']);
+
+ // Load theme name
+ $currTheme = GET_CURR_THEME();
+
+ // Set default 'what' value
+ //* DEBUG */ echo "-".$GLOBALS['module']."/".$GLOBALS['what']."-<br />\n";
+ if ((empty($GLOBALS['what'])) && (empty($GLOBALS['action'])) && ($CSS != 1) && ($CSS != -1)) {
+ if ($GLOBALS['module'] == "admin") {
+ // Set 'action' value to 'login' in admin menu
+ $GLOBALS['action'] = GET_ACTION($GLOBALS['module'], $GLOBALS['what']);
+ } elseif (($GLOBALS['module'] == "index") || ($GLOBALS['module'] == "login")) {
+ // Set 'what' value to 'welcome' in guest and member menu
+ $GLOBALS['what'] = "welcome";
+ if (!empty($_CONFIG['index_home'])) $GLOBALS['what'] = $_CONFIG['index_home'];
+ } else {
+ // Anything else like begging link
+ $GLOBALS['what'] = "";
+ }
+ } // END - if
+
+ // Update sending pool
+ if (($CSS != "1") && ($CSS != "-1")) require_once(PATH."inc/pool-update.php"); // Sends out mails in configureable steps
+
+ // Load all active extension including language files when not upgrading.
+ // Check module for testing and count one click
+ $dummy = CHECK_MODULE($GLOBALS['module']);
+ if ($dummy == "done") COUNT_MODULE($GLOBALS['module']);
+ unset($dummy);
+
+ // Shall we activate the exchange?
+ if ($_CONFIG['activate_xchange'] > 0) activateExchange();
// Generate random number
if (isset($GLOBALS['userid'])) {
--- /dev/null
+Der Tresor kann von Ihren Mitgliedern zum Sichern von angesammelten {!POINTS!}
+benutzt werden. Zusätzlich erhalten Ihre Mitglieder, wenn Sie die
+Erweiterung <strong>active</strong> in Ihrem {!MT_WORD!} installiert und die
+Aktiv-Rallye aktiviert haben, jeden Monat Zinsen auf das gesicherte Guthaben.
+Die Zinsabstuffung können Sie im Adminbereich frei einstellen und dabei
+beliebig viele Zinsstufen einrichten. Eine Zinsstufe richtet sich nach einem
+einstellbaren Bereich an Aktiv-{!POINTS!}, die das Mitglied für diverse
+Aktionen gesammelt hat.<br />
+<br />
+Zusätzlich ist der Tresor durch ein Tresor-Passwort geschützt. Hat das
+Mitglied dies nicht mehr, so es einen Link per Mail zugesandt bekommen, womit es
+dann ein neues Tresor-Passwort einstellen kann. Das Tresor-Passwort muss
+unterschiedlich zum Account-Passwort sein!