./inc/modules/guest/what-mediadata.php:183:// @TODO Rewrite all these if-blocks to filters
./inc/modules/guest/what-mediadata.php:70: // @TODO Find a better formular than this one
./inc/modules/guest/what-rallyes.php:91: // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&what=impressum&admin=' . $adminId . '%}">' . $login . '</a>';
+./inc/modules/guest/what-sponsor_reg.php:297: // @TODO Maybe a default referal id?
./inc/modules/guest/what-stats.php:116: // @TODO This can be somehow rewritten
./inc/modules/guest/what-stats.php:76:// @TODO This can be rewritten in a dynamic include
./inc/modules/member/what-beg.php:56:// @TODO Can't this be moved into EL?
./templates/de/html/admin/admin_refbanner_edit.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_refbanner_row.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_refbanner.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/guest/guest_menu_whats.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/member/member_menu_whats.tpl:1:<!-- @DEPRECATED //-->
### ### template-warnings.log follows: ### ###
Warning: Not parsing JavaScript templates/de/html/js/js_order_send.tpl.
Warning: Not parsing JavaScript templates/de/html/js/js_cookies_disabled.tpl.
// Adds SQLs to the SQLs array but "assigns" it with current extension name
function addExtensionSql ($sql) {
// Add it
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . getCurrentExtensionName() . ',ext_version=' . getCurrentExtensionVersion() . ',sql=' . $sql);
+ /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . getCurrentExtensionName() . ',ext_version=' . getCurrentExtensionVersion() . ',sql=' . $sql);
$GLOBALS['ext_sqls'][getCurrentExtensionName()][getCurrentExtensionVersion()][] = $sql;
}
addExtensionSql($sql);
} elseif (isDebugModeEnabled()) {
// Double menus should be located and fixed!
- logDebugMessage(__FUNCTION__, __LINE__, sprintf("Double admin menu action=%s, what=%s detected.", $action, $what));
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf("Double admin menu action=%s,what=%s,title=%s detected.", $action, $what, $title));
}
}
addExtensionSql($sql);
} elseif (isDebugModeEnabled()) {
// Double menus should be located and fixed!
- logDebugMessage(__FUNCTION__, __LINE__, sprintf("Double guest menu action=%s, what=%s detected.", $action, $what));
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf("Double guest menu action=%s,what=%s,title=%s,active=%s detected.", $action, $what, $title, $active));
}
}
addExtensionSql($sql);
} elseif (isDebugModeEnabled()) {
// Double menus should be located and fixed!
- logDebugMessage(__FUNCTION__, __LINE__, sprintf("Double member menu action=%s, what=%s detected.", $action, $what));
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf("Double member menu action=%s,what=%s,title=%s,visivle=%s,locked=%s detected.", $action, $what, $title, $visible, $locked));
}
}
addExtensionSql($sql);
} elseif (isDebugModeEnabled()) {
// Double menus should be located and fixed!
- logDebugMessage(__FUNCTION__, __LINE__, sprintf("Double sponsor menu action=%s, what=%s detected.", $action, $what));
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf("Double sponsor menu action=%s,what=%s,title=%s,active=%s detected.", $action, $what, $title, $active));
}
}
addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_sponsor_display_data`');
addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='sponsor' OR `what` IN('repr_sponsor','sponsor_medit','sponsor_madd')");
addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE `action`='sponsor'");
- addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what`='sponsor'");
+ addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `what` IN('sponsor_list','sponsor_reg')");
break;
case 'activate': // Do stuff when admin activates this extension
'SPONSOR_UNKNOWN_STATUS' => "Bei der Anmeldung wurde ein unbekannter Rückgabewert <span class=\"data\">%s</span> erkannt. Bitte melden Sie dies dem Betreiber dieses {?mt_word2?}!<br />Vielen Dank.",
'SPONSOR_EMAIL_404' => "Bei der Anmeldung ist uns ein Fehler unterlaufen: Ihr Sponsor-Account mit der EMail-Adresse <span class=\"data\">%s</span> wurde nicht gefunden.",
'SPONSOR_ACCOUNT_PENDING_FAILED' => "Bei der Umschaltung Ihres Sponorenaccounts auf <em>Wartend</em> trat ein unerwarteter Fehler auf.",
- 'SPONSOR_ACCOUNT_404' => "Sponsorenaccount <span class=\"data\">%s</span> nicht gefunden.",
+ 'SPONSOR_ACCOUNT_404' => "Das von Ihnen angegebene Sponsorenaccount <span class=\"data\">%s</span> konnte nicht gefunden werden.",
'SPONSOR_ACCOUNT_FAILED' => "Sponsorenaccount konnte nicht geladen werden: <span class=\"data\">%s</span>",
'SPONSOR_ACCOUNT_EMAIL_FAILED' => "Konnten Sponsorenaccount nicht freigeben! Bitte benachrichtigen Sie den Support.",
// Wether the current user is a sponsor
function isSponsor () {
- // Failed...
+ // Failed is default
$ret = false;
- if ((isSessionVariableSet('sponsor_id')) && (isSessionVariableSet('sponsorpass'))) {
- // Check cookies against database records...
- $result = SQL_QUERY_ESC("SELECT
- `id`
-FROM
- `{?_MYSQL_PREFIX?}_sponsor_data`
-WHERE
- `id`=%s AND `password`='%s' AND `status`='CONFIRMED'
-LIMIT 1",
- array(
- bigintval(getSession('sponsor_id')),
- getSession('sponsorpass')
- ), __FUNCTION__, __LINE__);
- if (SQL_NUMROWS($result) == 1) {
- // All is fine
- $ret = true;
- } // END - if
- // Free memory
- SQL_FREERESULT($result);
- } // END - if
+ // Determine it
+ $ret = (
+ (isSessionVariableSet('sponsor_id')) &&
+ (isSessionVariableSet('sponsorpass')) &&
+ (fetchSponsorData(getSession('sponsor_id')))
+ );
// Return status
return $ret;
}
// Prepare data for the main template
- $content = array(
- 'title' => $content['main_title'],
- 'menu' => $SUB
- );
+ $content['menu'] = $SUB;
// Load menu template
$OUT .= loadTemplate('sponsor_action', true, $content);
//
function addSponsorContent ($what) {
- $OUT = '';
+ // Init sponsor content
+ $GLOBALS['sponsor_output'] = '';
+
+ // Generate IFN (Include FileName)
$INC = sprintf("inc/modules/sponsor/%s.php", $what);
if (isIncludeReadable($INC)) {
- // Every sponsor action will output nothing directly. It will be written into $OUT!
+ // Every sponsor action will output nothing directly. It will be written into $GLOBALS['sponsor_output']!
loadIncludeOnce($INC);
} else {
// File not found!
- $OUT .= loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_CONTENT_404', $what));
+ $GLOBALS['sponsor_output'] .= loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_CONTENT_404', $what));
}
// Return content
- return $OUT;
+ return $GLOBALS['sponsor_output'];
}
//
// This update went fine?
$login = (SQL_AFFECTEDROWS() == 1);
- }
+ } // END - if
// Return status
return $login;
return $GLOBALS['sponsor_data'][getCurrentSponsorId()][$column];
}
+// Determines the country of the given sponsor id
+function determineSponsorCountry ($sponsor_id) {
+ // Then handle it over
+ $country = getSponsorData('country');
+
+ // Return it
+ return $country;
+}
+
// [EOF]
?>
FROM
`{?_MYSQL_PREFIX?}_sponsor_data`
WHERE
- `hash='%s' AND (`status`='UNCONFIRMED' OR `status`='EMAIL')
+ `hash`='%s' AND (
+ `status`='UNCONFIRMED' OR
+ `status`='EMAIL'
+ )
LIMIT 1", array(getRequestParameter('hash')), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// Sponsor found, load his data...
SQL_QUERY_ESC("UPDATE
`{?_MYSQL_PREFIX?}_sponsor_data`
SET
- `status`='PENDING'
+ `status`='PENDING',
+ `hash`=NULL
WHERE
`id`=%s AND
- hash='%s' AND
+ `hash`='%s' AND
`status`='UNCONFIRMED'
LIMIT 1",
array(
SQL_QUERY_ESC("UPDATE
`{?_MYSQL_PREFIX?}_sponsor_data`
SET
- `status`='CONFIRMED'
+ `status`='CONFIRMED',
+ `hash`=NULL
WHERE
`id`=%s AND
`hash`='%s' AND
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-}
+} // END - if
// Add description as navigation point
addMenuDescription('guest', __FILE__);
} // END - if
// Create array for form errors (= missing data)
-$FORM_ERRORS = array();
+$formErrors = array();
if (isFormSent()) {
//
// 1. Salutation / Surname / family name
if (!isPostRequestParameterSet('gender')) {
// Surname is empty
- $FORM_ERRORS[] = '{--SPONSOR_NO_GENDER_SELECTED--}';
+ $formErrors[] = '{--SPONSOR_NO_GENDER_SELECTED--}';
} // END - if
if (!isPostRequestParameterSet('surname')) {
// Surname is empty
- $FORM_ERRORS[] = '{--SPONSOR_SURNAME_IS_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_SURNAME_IS_EMPTY--}';
} // END - if
if (!isPostRequestParameterSet('family')) {
// Surname is empty
- $FORM_ERRORS[] = '{--SPONSOR_FAMILY_IS_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_FAMILY_IS_EMPTY--}';
} // END - if
// 2. Company name
if (((!isPostRequestParameterSet('company')) && ((isPostRequestParameterSet('tax_ident')) || (isPostRequestParameterSet('position')))) || ((isPostRequestParameterSet('company')) && (!isPostRequestParameterSet('tax_ident')))) {
if (!isPostRequestParameterSet('company')) {
// Company name is empty
- $FORM_ERRORS[] = '{--SPONSOR_COMPANY_IS_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_COMPANY_IS_EMPTY--}';
} elseif (!isPostRequestParameterSet('tax_ident')) {
// Tax ident number name is empty
- $FORM_ERRORS[] = '{--SPONSOR_TAX_IDENT_IS_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_TAX_IDENT_IS_EMPTY--}';
}
if (!isPostRequestParameterSet('position')) {
// Not fatal but not nice: position in company is empty
- $FORM_ERRORS[] = '{--SPONSOR_POSITION_IS_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_POSITION_IS_EMPTY--}';
} // END - if
} // END - if
// 3. Street and number
if (!isPostRequestParameterSet('street_nr1')) {
// Street name and house number are empty
- $FORM_ERRORS[] = '{--SPONSOR_STREET_NR1_IS_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_STREET_NR1_IS_EMPTY--}';
} elseif ((isPostRequestParameterSet('street_nr2')) && (!isPostRequestParameterSet('street_nr1'))) {
// 1st line for street is empty, but 2nd line not
- $FORM_ERRORS[] = '{--SPONSOR_STREET_NR1_IS_EMPTY_2_NOT--}';
+ $formErrors[] = '{--SPONSOR_STREET_NR1_IS_EMPTY_2_NOT--}';
}
// 4. Country code
if (!isPostRequestParameterSet('country')) {
// Country code is empty
- $FORM_ERRORS[] = '{--kSPONSOR_COUNTRY_IS_EMPTY--}';
+ $formErrors[] = '{--kSPONSOR_COUNTRY_IS_EMPTY--}';
} elseif (strlen(postRequestParameter('country')) != 2) {
// Country code is invalid
- $FORM_ERRORS[] = '{--SPONSOR_COUNTRY_IS_INVALID--}';
+ $formErrors[] = '{--SPONSOR_COUNTRY_IS_INVALID--}';
}
// 3. ZIP code
if (!isPostRequestParameterSet('zip')) {
// ZIP code is empty
- $FORM_ERRORS[] = '{--SPONSOR_ZIP_IS_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_ZIP_IS_EMPTY--}';
} elseif (bigintval(postRequestParameter('zip')) != postRequestParameter('zip')) {
// ZIP is invalid
- $FORM_ERRORS[] = '{--SPONSOR_ZIP_IS_INVALID--}';
+ $formErrors[] = '{--SPONSOR_ZIP_IS_INVALID--}';
setPostRequestParameter('zip', '');
}
// 4. City
if (!isPostRequestParameterSet('city')) {
// City is empty
- $FORM_ERRORS[] = '{--SPONSOR_CITY_IS_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_CITY_IS_EMPTY--}';
} // END - if
// 5. Phone number
if (!isPostRequestParameterSet('phone')) {
// City is empty
- $FORM_ERRORS[] = '{--SPONSOR_PHONE_IS_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_PHONE_IS_EMPTY--}';
} // END - if
// 6. Homepage URL
if (!isPostRequestParameterSet('url')) {
// Homepage URL is empty
- $FORM_ERRORS[] = '{--SPONSOR_URL_IS_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_URL_IS_EMPTY--}';
} elseif (!isUrlValid(postRequestParameter('url'))) {
// Homepage URL is invalid
- $FORM_ERRORS[] = '{--SPONSOR_URL_IS_INVALID--}';
+ $formErrors[] = '{--SPONSOR_URL_IS_INVALID--}';
setPostRequestParameter('url', '');
}
// 7. Light validation of email address
if ((!isPostRequestParameterSet('email')) || (postRequestParameter('email') == '@')) {
// Email is invalid/empty
- $FORM_ERRORS[] = '{--SPONSOR_EMAIL_IS_INVALID--}';
+ $formErrors[] = '{--SPONSOR_EMAIL_IS_INVALID--}';
} elseif (isSponsorRegisteredWithEmail(postRequestParameter('email'))) {
// Email already found in database!
- $FORM_ERRORS[] = '{--SPONSOR_EMAIL_IS_ALREADY_REGISTERED--}';
+ $formErrors[] = '{--SPONSOR_EMAIL_IS_ALREADY_REGISTERED--}';
setPostRequestParameter('email', '');
}
// 8. Pay type selected?
if (!isPostRequestParameterSet('pay_type')) {
// Not pay type selected
- $FORM_ERRORS[] = '{--SPONSOR_NO_PAYTYPE_SELECTED--}';
+ $formErrors[] = '{--SPONSOR_NO_PAYTYPE_SELECTED--}';
} // END - if
// 9. Interval of mails
if (!isPostRequestParameterSet('warning_interval')) {
// No warning interval selected
- $FORM_ERRORS[] = '{--SPONSOR_NO_WARNING_INTERVAL_SELECTED--}';
+ $formErrors[] = '{--SPONSOR_NO_WARNING_INTERVAL_SELECTED--}';
} // END - if
// 10. Mail notifications disabled/enabled
if (!isPostRequestParameterSet('receive_warnings')) {
// Option not selected!
- $FORM_ERRORS[] = '{--SPONSOR_NO_RECEIVE_WARNINGS_SELECTED--}';
+ $formErrors[] = '{--SPONSOR_NO_RECEIVE_WARNINGS_SELECTED--}';
} // END - if
// Did he enter his password twice?
if (((!isPostRequestParameterSet('pass1')) || (!isPostRequestParameterSet('pass2'))) || ((postRequestParameter('pass1') != postRequestParameter('pass2')) && (isPostRequestParameterSet('pass1')) && (isPostRequestParameterSet('pass2')))) {
if ((postRequestParameter('pass1') != postRequestParameter('pass2')) && (isPostRequestParameterSet('pass1')) && (isPostRequestParameterSet('pass2'))) {
// Passwords missmatch
- $FORM_ERRORS[] = '{--SPONSOR_PASSWORDS_MISMATCH--}';
+ $formErrors[] = '{--SPONSOR_PASSWORDS_MISMATCH--}';
} else {
if (!isPostRequestParameterSet('pass1')) {
// Password 1 is empty
- $FORM_ERRORS[] = '{--SPONSOR_PASSWORD1_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_PASSWORD1_EMPTY--}';
}
if (!isPostRequestParameterSet('pass2')) {
// Password 2 is empty
- $FORM_ERRORS[] = '{--SPONSOR_PASSWORD2_EMPTY--}';
+ $formErrors[] = '{--SPONSOR_PASSWORD2_EMPTY--}';
}
}
} elseif (strlen(postRequestParameter('pass1')) < getConfig('pass_len')) {
// Password is to short!
- $FORM_ERRORS[] = '{--SPONSOR_PASSWORD_TOO_SHORT--}';
+ $formErrors[] = '{--SPONSOR_PASSWORD_TOO_SHORT--}';
}
// Check if he has accepted the terms&conditions
if (!isPostRequestParameterSet('terms')) {
// Homepage URL is empty
- $FORM_ERRORS[] = '{--SPONSOR_TERMS_NOT_ACCEPTED--}';
+ $formErrors[] = '{--SPONSOR_TERMS_NOT_ACCEPTED--}';
} // END - if
// If there is something wrong/missing stop registration
- if (count($FORM_ERRORS) > 0) unsetPostRequestParameter('ok');
-}
+ if (count($formErrors) > 0) unsetPostRequestParameter('ok');
+} // END - if
-if ((isFormSent()) && (count($FORM_ERRORS) == 0)) {
+if ((isFormSent()) && (count($formErrors) == 0)) {
// Generate message array
$messageArray = array(
'failed' => '{--SPONSOR_REGISTRATION_FAILED--}',
} // END - foreach
// Check for invalid entries
- if (count($FORM_ERRORS) > 0) {
+ if (count($formErrors) > 0) {
// Some found... :-(
foreach (array('company','position','tax_ident','surname','family','street_nr1','street_nr2','country','zip','city','phone','fax','cell','email','url') as $entry) {
$content[$entry] = secureString(postRequestParameter($entry));
$OUT = '';
// Errors found?
- if (count($FORM_ERRORS) > 0) {
+ if (count($formErrors) > 0) {
$OUT = loadTemplate('admin_settings_saved', true, '{--SPONSOR_REGISTER_SOMETHING_MISSING--}');
$OUT .= '<ol>';
- foreach ($FORM_ERRORS as $error) {
+ foreach ($formErrors as $error) {
$OUT .= '<li>' . $error . '</li>';
} // END - foreach
} // END - if
$content['form_errors'] = $OUT;
- $content['refid'] = bigintval(postRequestParameter('refid'));
+
+ // @TODO Maybe a default referal id?
+ $content['refid'] = 0;
+
+ // Is the referal id valid?
+ if ((isPostRequestParameterSet('refid')) && (isValidUserId(postRequestParameter('refid')))) {
+ // Transfer referal id
+ $content['refid'] = bigintval(postRequestParameter('refid'));
+ } // END - if
} // END - if
// Display registration form
// No sponsor!
addFatalMessage(__FILE__, __LINE__, '{--SPONSOR_ONLY_AREA_ENTERED--}');
return;
-} elseif (!isWhatSet()) {
+} elseif ((!isWhatSet()) || (getWhat() == '')) {
// Empty what value detected!
setWhat('welcome');
}
return;
}
-// Put all HTML code into $OUT!
-// E.g.: $OUT = loadTemplate('sponsor_template', true);
+// Put all HTML code into $GLOBALS['sponsor_output']!
+// E.g.: $GLOBALS['sponsor_output'] = loadTemplate('sponsor_template', true);
// [EOF]
?>
// Data for the formular
$result = SQL_QUERY_ESC("SELECT
- `company`, `position`, `tax_ident`,
+ `id`, `company`, `position`, `tax_ident`,
`gender`, `surname`, `family`, `street_nr1`, `street_nr2`, `zip`, `city`, `country`,
`phone`, `fax`, `cell`, `email`, `url`,
`status`, `receive_warnings`
if (!empty($message)) {
// Output message
- $OUT = loadTemplate('admin_settings_saved', true, $message);
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, $message);
} else {
// No message generated
- $OUT = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
}
} else {
// Init gender
$content['gender_' . strtolower($content['gender'])] = ' selected="selected"';
// Output formular
- $OUT = loadTemplate('sponsor_account_form', true, $content);
+ $GLOBALS['sponsor_output'] = loadTemplate('sponsor_account_form', true, $content);
}
} else {
// Locked or so?
$STATUS = sponsorTranslateUserStatus($content['status']);
- $OUT = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
}
} else {
// Sponsor account not found!
- $OUT = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
}
// Free memory
if (!empty($message)) {
// Output message
- $OUT = loadTemplate('admin_settings_saved', true, $message);
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, $message);
} else {
// No message generated
- $OUT = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
}
} else {
// Make yes/no selection
$content['receive_warnings_' . strtolower($content['receive_warnings'])] = ' checked="checked"';
// Output formular
- $OUT = loadTemplate('sponsor_settings_form', true, $content);
+ $GLOBALS['sponsor_output'] = loadTemplate('sponsor_settings_form', true, $content);
}
} else {
// Locked or so?
$STATUS = sponsorTranslateUserStatus($content['status']);
- $OUT = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
}
} else {
// Sponsor account not found!
- $OUT = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
}
// Free memory
// Load some data
$result = SQL_QUERY_ESC("SELECT
- `gender`, `surname`, `family`, (`points_amount` - `points_used`) AS points
+ `id`, `gender`, `surname`, `family`, (`points_amount` - `points_used`) AS points
FROM
`{?_MYSQL_PREFIX?}_sponsor_data`
WHERE
SQL_FREERESULT($result);
// Load main template
-$OUT = loadTemplate('sponsor_welcome', true, $content);
+$GLOBALS['sponsor_output'] = loadTemplate('sponsor_welcome', true, $content);
// [EOF]
?>
{--SPONSOR_ENTER_TAX_IDENT--}: $content[new_data][tax_ident] ($content[tax_ident])
------------------------------
{--GUEST_GENDER--}: {%pipe,translateGender=$content[new_data][gender]%} ({%pipe,translateGender=$content[gender]%})
-{--SURNAME_FAMILY--}: $content[new_data][surname] $content[new_data][family] ({%sponsor,surname=$userid%} {%sponsor,family=$userid%})
+{--SURNAME_FAMILY--}: $content[new_data][surname] $content[new_data][family] ({%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%})
{--SPONSOR_EMAIL_STREET_NR1--}: $content[new_data][street_nr1] ($content[street_nr1])
{--SPONSOR_EMAIL_STREET_NR2--}: $content[new_data][street_nr2] ($content[street_nr2])
{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $content[new_data][country]-$content[new_data][zip] $content[new_data][city] ($content[country]-$content[zip] $content[city])
{--SPONSOR_ENTER_TAX_IDENT--}: $content[new_data][tax_ident] ($content[tax_ident])
------------------------------
{--GUEST_GENDER--}: {%pipe,translateGender=$content[new_data][gender]%} ({%pipe,translateGender=$content[gender]%})
-{--SURNAME_FAMILY--}: $content[new_data][surname] $content[new_data][family] ({%sponsor,surname=$userid%} {%sponsor,family=$userid%})
+{--SURNAME_FAMILY--}: $content[new_data][surname] $content[new_data][family] ({%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%})
{--SPONSOR_EMAIL_STREET_NR1--}: $content[new_data][street_nr1] ($content[street_nr1])
{--SPONSOR_EMAIL_STREET_NR2--}: $content[new_data][street_nr2] ($content[street_nr2])
{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $content[new_data][country]-$content[new_data][zip] $content[new_data][city] ($content[country]-$content[zip] $content[city])
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
------------------------------
Ihre Sponsor-Id lautet: $content[id]
{--SPONSOR_ENTER_COMPANY_POSITION--}: $content[position]
{--SPONSOR_ENTER_TAX_IDENT--}: $content[tax_ident]
------------------------------
-{--GUEST_GENDER--}: {%sponsor,gender,translateGender=$userid%}
-{--SURNAME_FAMILY--}: {%sponsor,surname=$userid%} {%sponsor,family=$userid%}
+{--GUEST_GENDER--}: {%sponsor,gender,translateGender=$content[id]%}
+{--SURNAME_FAMILY--}: {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%}
{--SPONSOR_EMAIL_STREET_NR1--}: $content[street_nr1]
{--SPONSOR_EMAIL_STREET_NR2--}: $content[street_nr2]
{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $content[country]-$content[zip] $content[city]
------------------------------
Anrede: {%pipe,translateGender=$content[gender]%}
------------------------------
-Vorname: {%sponsor,surname=$userid%}
+Vorname: {%sponsor,surname=$content[id]%}
------------------------------
-Nachname: {%sponsor,family=$userid%}
+Nachname: {%sponsor,family=$content[id]%}
------------------------------
-- Firmendaten: --
------------------------------
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
Einer unserer Administratoren hat soeben Ihren Account gelöscht!
------------------------------------
$content[reason]
------------------------------------
-Ihre Sponsor-Id war: $userid
+Ihre Sponsor-Id war: $content[id]
------------------------------------
Wir wünschen Ihnen weiterhin noch alles Gute und können Sie vielleicht irgentwann einmal wieder als Sponsor begruessen.
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
--------------------------
-Ihre Sponsor-Id bei uns: $userid
+Ihre Sponsor-Id bei uns: $content[id]
--------------------------
$content[message]
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%}) haben soeben Ihren Bestätigungslink erneut angefordert.
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
Einer unserer Administratoren hat Ihnen soeben {%pipe,translateComma=$content[points]%} {?POINTS?} Ihrem Sponsoren-Account mit der id $content[id] gutgeschrieben!
Hier sind alle neuen (und in Klammern alten) Daten:
------------------------------
-{--SPONSOR_ENTER_COMPANY_TITLE--}: $content[company] ({%sponsor,company=$userid%})
-{--SPONSOR_ENTER_COMPANY_POSITION--}: $content[position] ({%sponsor,position=$userid%})
-{--SPONSOR_ENTER_TAX_IDENT--}: $content[tax_ident] ({%sponsor,tax_ident=$userid%})
-------------------------------
-{--GUEST_GENDER--}: $content[gender] ({%sponsor,gender,translateGender=$userid%})
-{--SURNAME_FAMILY--}: $content[surname] $content[family] ({%sponsor,surname=$userid%} {%sponsor,family=$userid%})
-{--SPONSOR_EMAIL_STREET_NR1--}: $content[street_nr1] ({%sponsor,street_nr1=$userid%})
-{--SPONSOR_EMAIL_STREET_NR2--}: $content[street_nr2] ({%sponsor,street_nr2=$userid%})
-{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $content[country]-$content[zip] $content[city] ({%sponsor,country,determineCountry=$userid%}-{%sponsor,zip,bigintval=$userid%} {%sponsor,city=$userid%})
+{--SPONSOR_ENTER_COMPANY_TITLE--}: $content[company] ({%sponsor,company=$content[id]%})
+{--SPONSOR_ENTER_COMPANY_POSITION--}: $content[position] ({%sponsor,position=$content[id]%})
+{--SPONSOR_ENTER_TAX_IDENT--}: $content[tax_ident] ({%sponsor,tax_ident=$content[id]%})
+------------------------------
+{--GUEST_GENDER--}: $content[gender] ({%sponsor,gender,translateGender=$content[id]%})
+{--SURNAME_FAMILY--}: $content[surname] $content[family] ({%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%})
+{--SPONSOR_EMAIL_STREET_NR1--}: $content[street_nr1] ({%sponsor,street_nr1=$content[id]%})
+{--SPONSOR_EMAIL_STREET_NR2--}: $content[street_nr2] ({%sponsor,street_nr2=$content[id]%})
+{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $content[country]-$content[zip] $content[city] ({%sponsor,country,determineSponsorCountry=$content[id]%}-{%sponsor,zip,bigintval=$content[id]%} {%sponsor,city=$content[id]%})
------------------------------
{--SPONSOR_ENTER_PHONE--}: $content[phone] ($content[phone])
{--SPONSOR_ENTER_FAX--}: $content[fax] ($content[fax])
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%}) haben sich soeben als Sponsor zu unserem {?mt_word?} angemeldet. Sie haben somit den ersten Schritt zu uns getan wofür wir uns sehr bedanken.
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
Sie hatten bei uns Ihre EMail-Adresse geändert und den Bestätigungslink erneut angefordert. Hier sind nun alle nötigen Daten dazu.
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%}) haben soeben ein neues Passwort angefordert.
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
Sie haben soeben Ihre EMail-Adresse bestätigt. Dies wurde von der IP-Nummer {%server,remote_addr%} aus durchgefuehrt.
------------------------------
-- Persoenliche Daten: --
------------------------------
-Anrede: {%sponsor,gender,translateGender=$userid%}
+Anrede: {%sponsor,gender,translateGender=$content[id]%}
------------------------------
-Vorname: {%sponsor,surname=$userid%}
+Vorname: {%sponsor,surname=$content[id]%}
------------------------------
-Nachname: {%sponsor,family=$userid%}
+Nachname: {%sponsor,family=$content[id]%}
------------------------------
-- Firmendaten: --
------------------------------
-Firmenname: {%sponsor,company=$userid%}
+Firmenname: {%sponsor,company=$content[id]%}
------------------------------
-Position: {%sponsor,position=$userid%}
+Position: {%sponsor,position=$content[id]%}
------------------------------
-Ust-Ident-Nr.: {%sponsor,tax_ident=$userid%}
+Ust-Ident-Nr.: {%sponsor,tax_ident=$content[id]%}
------------------------------
-- Kontaktdaten: --
------------------------------
-Strasse, Zeile 1: {%sponsor,street_nr1=$userid%}
+Strasse, Zeile 1: {%sponsor,street_nr1=$content[id]%}
------------------------------
-Strasse, Zeile 2: {%sponsor,street_nr2=$userid%}
+Strasse, Zeile 2: {%sponsor,street_nr2=$content[id]%}
------------------------------
-Ländercode: {%sponsor,country,determineCountry=$userid%}
+Ländercode: {%sponsor,country,determineSponsorCountry=$content[id]%}
------------------------------
-Postleitzahl: {%sponsor,zip,bigintval=$userid%}
+Postleitzahl: {%sponsor,zip,bigintval=$content[id]%}
------------------------------
-Wohnort: {%sponsor,city=$userid%}
+Wohnort: {%sponsor,city=$content[id]%}
------------------------------
Telefonnummer: $content[phone]
------------------------------
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
------------------------------
Ihre Sponsor-Id lautet: $content[id]
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
Sie haben heute Ihre Einstellungen geaendert.
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
Einer unserer Administratoren hat Ihnen soeben {%pipe,translateComma=$content[points]%} {?POINTS?} von Ihrem Sponsoren-Account mit der id $content[id] abgezogen!
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%}) haben soeben Ihren Bestätigungslink erneut angefordert.
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
+Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
------------------------------
Ihre Sponsor-Id lautet: $content[id]
-<tr>
- <td class="guest_menu_whats {%pipe,getMenuCssClasses=$content[visible]|$content[locked]%}">
- <div class="{%pipe,getMenuCssClasses=$content[visible]|$content[locked]%}">
- <strong><big>·</big></strong>
- $content
- </div>
- </td>
-</tr>
+<!-- @DEPRECATED //-->
-<tr>
- <td class="member_menu_whats {%pipe,getMenuCssClasses=$content[visible]|$content[locked]%}">
- <div class="{%pipe,getMenuCssClasses=$content[visible]|$content[locked]%}">
- <strong><big>·</big></strong>
- $content
- </div>
- </td>
-</tr>
+<!-- @DEPRECATED //-->
{--SPONSOR_ENTER_COMPANY_TITLE--}:
</td>
<td class="bottom">
- <input type="text" name="company" class="guest_normal" size="20" maxlength="255" value="{%sponsor,company=$userid%}" />
+ <input type="text" name="company" class="guest_normal" size="20" maxlength="255" value="{%sponsor,company=$content[id]%}" />
</td>
</tr>
<tr>
{--SPONSOR_ENTER_COMPANY_POSITION--}:
</td>
<td class="bottom">
- <input type="text" name="position" class="guest_normal" size="20" maxlength="255" value="{%sponsor,position=$userid%}" />
+ <input type="text" name="position" class="guest_normal" size="20" maxlength="255" value="{%sponsor,position=$content[id]%}" />
</td>
</tr>
<tr>
{--SPONSOR_ENTER_TAX_IDENT--}:
</td>
<td class="bottom">
- <input type="text" name="tax_ident" class="guest_normal" size="20" maxlength="255" value="{%sponsor,tax_ident=$userid%}" />
+ <input type="text" name="tax_ident" class="guest_normal" size="20" maxlength="255" value="{%sponsor,tax_ident=$content[id]%}" />
</td>
</tr>
<tr>
{--GUEST_SURNAME--}:
</td>
<td class="bottom">
- <input type="text" name="surname" class="guest_normal" size="20" maxlength="255" value="{%sponsor,surname=$userid%}" />
+ <input type="text" name="surname" class="guest_normal" size="20" maxlength="255" value="{%sponsor,surname=$content[id]%}" />
</td>
</tr>
<tr>
{--GUEST_FAMILY--}:
</td>
<td class="bottom">
- <input type="text" name="family" class="guest_normal" size="20" maxlength="255" value="{%sponsor,family=$userid%}" />
+ <input type="text" name="family" class="guest_normal" size="20" maxlength="255" value="{%sponsor,family=$content[id]%}" />
</td>
</tr>
<tr>
{--SPONSOR_ENTER_STREET_NR1--}:
</td>
<td class="bottom">
- <input type="text" name="street_nr1" class="guest_normal" size="20" maxlength="255" value="{%sponsor,street_nr1=$userid%}" />
+ <input type="text" name="street_nr1" class="guest_normal" size="20" maxlength="255" value="{%sponsor,street_nr1=$content[id]%}" />
</td>
</tr>
<tr>
{--SPONSOR_ENTER_STREET_NR2--}:
</td>
<td class="bottom">
- <input type="text" name="street_nr2" class="guest_normal" size="20" maxlength="255" value="{%sponsor,street_nr2=$userid%}" />
+ <input type="text" name="street_nr2" class="guest_normal" size="20" maxlength="255" value="{%sponsor,street_nr2=$content[id]%}" />
</td>
</tr>
<tr>
{--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:
</td>
<td class="bottom">
- <input type="text" name="country" class="guest_normal" size="2" maxlength="2" value="{%sponsor,country,determineCountry=$userid%}" />-<input type="text" name="zip" class="guest_normal" size="5" maxlength="6" value="{%sponsor,zip,bigintval=$userid%}" />
- <input type="text" name="city" class="guest_normal" size="10" maxlength="255" value="{%sponsor,city=$userid%}" />
+ <input type="text" name="country" class="guest_normal" size="2" maxlength="2" value="{%sponsor,country=$content[id]%}" />-<input type="text" name="zip" class="guest_normal" size="5" maxlength="6" value="{%sponsor,zip,bigintval=$content[id]%}" />
+ <input type="text" name="city" class="guest_normal" size="10" maxlength="255" value="{%sponsor,city=$content[id]%}" />
</td>
</tr>
<tr>
-<table border="0" cellspacing="0" cellpadding="0" width="100%">
+<div align="left">
+<table border="0" cellspacing="0" cellpadding="0" class="sponsor_menu">
<tr>
<td class="sponsor_action bottom left right" align="center">
<strong>$content[title]</strong>
</tr>
$content[menu]
</table>
+</div>
-<div class="para big">
+<div class="big">
Willkommen zum Sponsorenbereich von {?MAIN_TITLE?}
</div>
<div class="para">
-Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%}!
+ Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%}!
</div>
<div class="para">
-Schön, dass wir Sie wieder in unserem Sponsorenbereich begrüssen dürfen!
+ Schön, dass wir Sie wieder in unserem Sponsorenbereich begrüssen dürfen!
</div>
<div class="para">
-Sie haben noch <strong>{%pipe,translateComma=$content[points]%} {?POINTS?}</strong> für weitere Sponsorenaktionen übrig.
+ Sie haben noch <strong>{%pipe,translateComma=$content[points]%} {?POINTS?}</strong> für weitere Sponsorenaktionen übrig.
</div>
<tr>
<td class="sponsor_what bottom left right">
- <strong><big>·</big></strong>
- <a class="menu_blur" href="{%url=modules.php?module=sponsor&what=$content[what]%}">$content[title]</a>
+ <a class="menu_blur" href="{%url=modules.php?module=sponsor&what=$content[what]%}">
+ <strong><big>·</big></strong>
+ $content[title]
+ </a>
</td>
</tr>
border: 1px solid #000000;
}
-.guest_menu_row, .guest_menu_bottom, .member_menu_row, .member_menu_bottom
- {
+.guest_menu_row, .guest_menu_bottom, .member_menu_row, .member_menu_bottom {
border: 1px solid #000000;
border-top: 0px;
background-color: #ffffff;
}
.sponsor_what {
- height: 24px;
+ height: 22px;
}
.sponsor_header, .sponsor_footer {
.sponsor_action {
background-color: #EEEEFF;
- height: 25px;
+ height: 22px;
+}
+
+.sponsor_menu {
+ margin: 0px;
+ padding: 0px;
+ width: 200px;
}
border: 1px solid #00aa44;
}
-.guest_menu_row, .guest_menu_bottom, .member_menu_row, .member_menu_bottom
- {
+.guest_menu_row, .guest_menu_bottom, .member_menu_row, .member_menu_bottom {
border: 1px solid #00aa44;
border-top: 0px;
background-color: #eeffbc;
.sponsor_action {
background-color: #CCDDCC;
- height: 25px;
+ height: 22px;
}
.sponsor_what {
- height: 24px;
+ height: 22px;
+}
+
+.sponsor_menu {
+ margin: 0px;
+ padding: 0px;
+ width: 200px;
}
.sponsor_action {
background-color: #DDDDAA;
- height: 25px;
+ height: 22px;
}
.sponsor_header, .sponsor_footer {
.sponsor_what {
background-color: #FFFFCC;
- height: 24px;
+ height: 22px;
}
-TR.sponsor_row_blur:hover {
- background-color: #DDDDAA;
+.sponsor_menu {
+ margin: 0px;
+ padding: 0px;
+ width: 200px;
}
-
-A.sponsor_blur {
- display: block;
- height: 33px;
- padding-top: 9px;
- padding-left: 7px;
-}
\ No newline at end of file
.sponsor_table {
- background-color : #DDEEDD;
+ background-color: #DDEEDD;
}
.sponsor_header, .sponsor_footer {
- background-color : #CCDDCC;
+ background-color: #CCDDCC;
}
.sponsor_action {
- background-color : #CCDDCC;
- height : 27px;
+ background-color: #CCDDCC;
+ height: 22px;
}
.sponsor_what {
- height : 24px;
+ height: 22px;
}
-.sponsor_menu_blur {
- display : block;
- height : 24px;
-}
-
-.sponsor_menu_blur:hover {
- background-color : #CCDDCC;
+.sponsor_menu {
+ margin: 0px;
+ padding: 0px;
+ width: 200px;
}