templates/de/html/guest/guest_register.tpl svneol=native#text/plain
templates/de/html/guest/guest_register_refid.tpl svneol=native#text/plain
templates/de/html/guest/guest_register_refid_hide.tpl svneol=native#text/plain
+templates/de/html/guest/guest_registration_select.tpl svneol=native#text/plain
templates/de/html/guest/guest_show_rallye.tpl svneol=native#text/plain
templates/de/html/guest/guest_sponsor_act_row.tpl svneol=native#text/plain
templates/de/html/guest/guest_sponsor_activate.tpl svneol=native#text/plain
$OUT = loadTemplate('admin_extension_sql_table', TRUE, $content);
} else {
// No addional SQL commands to run
- $OUT = displayMessage('{--ADMIN_EXTENSION_VERBOSE_SQLS_404--}', TRUE);
+ $OUT = returnMessage('{--ADMIN_EXTENSION_VERBOSE_SQLS_404--}');
}
} // END - if
$content = $GLOBALS['install_content'];
} else {
// Nothing found, this needs fixing
- $content = displayMessage('{--INSTALLER_CONTENT_404--}', TRUE);
+ $content = returnMessage('{--INSTALLER_CONTENT_404--}');
}
// Return content
addMessages(array(
'GUEST_REGISTER_MUST_SET_NOTICE' => "Sind Pflichtangaben, ansonsten erfolgt keine Anmeldung.",
'PRE_USER_REGISTRATION_FAILED' => "Anmeldung fehlgeschlagen: Pre-Filterkette nicht gelaufen! Bitte melden Sie dies beim zuständigen Webmaster.",
- 'CNTRY' => "Ländercode",
+ 'COUNTRY_CODE' => "Ländercode",
'GUEST_EMAIL_IS_ALREADY_REGISTERED' => "Sie haben sich bereits mit dieser Email-Adresse angemeldet, oder jemand anderes verwendet Ihre. Doppelte Anmeldungen sind bei uns verboten.",
'GUEST_ENTER_PASSWORDS' => "Passwort und -wiederholung eingeben:",
'POINTS_SUBJECT_REFERRAL_BONUS' => "Einmalige Werbeprämie",
'POINTS_SUBJECT_REFERRAL_BONUS_REF' => "Anteilige einml. Werbeprämie",
+ // Guest - others
+ 'GUEST_SELECT_OTHER_REGISTRATION_FORM_TITLE' => "Mit anderen Diensten bei {?MAIN_TITLE?} anmelden.",
+ 'GUEST_SELECT_OTHER_REGISTRATION_FORM_NOTICE' => "Beim Anmelden mit einen anderen Dienst "verbinden" Sie diesen mit diesem {?mt_word?}. Dadurch werden Daten vom Anmeldedienst an diesen übertragen. Mehr dazu steht beim Anmeldeformular des jweiligen Anbieters.",
+ 'GUEST_EXTRA_REGISTRATION_PROVIDER_404' => "Es wurden noch keine weiteren Anmeldedienste freigegeben oder eingerichtet. Bitte verwenden Sie das nachfolgende Formular zur lokalen Anmeldung.",
+
// Admin - others
'ADMIN_SAVE_REGISTER_MUST' => "Einstellungen ändern",
'ADMIN_REGISTER_CHANGES_SAVED' => "Es wurden <span class=\"data\">%s</span> Pflichtfelder aktualisiert.",
'ADMIN_SPONSOR_ENTER_CONTACT_DATA' => "Kontaktdaten des Sponsors",
'SPONSOR_ENTER_STREET_NR1' => "Straße mit Hausnummer",
'SPONSOR_ENTER_STREET_NR2' => "(noch Straße; Zeile 2)",
- 'SPONSOR_ENTER_CNTRY_ZIP_CITY' => "Ländercode, PLZ, Wohnort",
+ 'SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY' => "Ländercode, PLZ, Wohnort",
'SPONSOR_ENTER_PHONE' => "Telefonnummer",
'SPONSOR_ENTER_FAX' => "Faxnummer",
'SPONSOR_ENTER_CELL' => "Handynummer",
'SPONSOR_ACCOUNT_UNLOCKED' => "Ihr Sponsorenaccount wurde hiermit von einem unserer Administratoren wieder freigegeben. Sie können sich mit den alten Logindaten wieder einloggen. Sollten Sie Ihr Passwort vergessen haben, können Sie sich unter Sponsoren->Einloggen ein neues zusenden lassen.",
'SPONSOR_EMAIL_STREET_NR1' => "Strasse mit Hausnummer",
'SPONSOR_EMAIL_STREET_NR2' => "(noch Strasse; Zeile 2)",
- 'SPONSOR_EMAIL_CNTRY_ZIP_CITY' => "Ländercode, PLZ, Wohnort",
+ 'SPONSOR_EMAIL_COUNTRY_CODE_ZIP_CITY' => "Ländercode, PLZ, Wohnort",
'SPONSOR_PASS_UNCHANGED' => "- Nicht geändert! -",
// Guest headers
}
} else {
// Nothing selected
- $content = displayErrorMessage('{--ADMIN_ENTRIES_404--}');
+ $content = returnErrorMessage('{--ADMIN_ENTRIES_404--}');
}
// Free the result
$content = generateSelectionBoxFromArray($rows, 'network_type', 'network_type_id');
} else {
// Nothing selected
- $content = displayErrorMessage('{--ADMIN_ENTRIES_404--}');
+ $content = returnErrorMessage('{--ADMIN_ENTRIES_404--}');
}
// Free the result
$content = generateSelectionBoxFromArray($rows, 'network_type', 'network_type_id', '', '_title');
} else {
// Nothing selected
- $content = displayErrorMessage('{--ADMIN_ENTRIES_404--}');
+ $content = returnErrorMessage('{--ADMIN_ENTRIES_404--}');
}
// Free the result
return registerGenerateCategoryTable('admin', $configEntry);
}
+// Template helper for generating a list of all activated user registration provider
+function doTemplateGuestRegistrationList ($templateName, $clear = FALSE) {
+ // Init output
+ $content = '';
+
+ // Default is only activated provider
+ $addSql = " AND `provider_is_active`='Y'";
+
+ // Is admin logged-in?
+ if (isAdmin()) {
+ // Then show all
+ $addSql = '';
+ } // END - if
+
+ // Search for all
+ $result = sqlQuery("SELECT
+ `provider_name`,
+ `provider_extension`
+FROM
+ `{?_MYSQL_PREFIX?}_user_register_provider`
+WHERE
+ `provider_extension` != 'register'
+ " . $addSql . "
+ORDER BY
+ `provider_name` ASC", __FUNCTION__, __LINE__);
+
+ // Are there entries?
+ if (sqlNumRows($result) > 0) {
+ // Loop through all
+ $row = '';
+ while ($content = sqlFetchArray($result)) {
+ // Load row template
+ $row .= loadTemplate('guest_registration_provider_row', TRUE, $content);
+ } // END - while
+
+ // Load main template
+ $content = loadTemplate('guest_registration_provider', TRUE, $row);
+ } else {
+ // Nothing found
+ $content = returnMessage('{--GUEST_EXTRA_REGISTRATION_PROVIDER_404--}');
+ }
+
+ // Free result
+ sqlFreeResult($result);
+
+ // Return the generated content
+ return $content;
+}
+
// [EOF]
?>
// Is this non-productive?
if (isExtensionProductive() === FALSE) {
// Issue warning
- $taskData['text'] = displayMessage('{%message,ADMIN_EXTENSION_IS_NON_PRODUCTIVE=' . $ext_name . '%}', TRUE) . $taskData['text'];
+ $taskData['text'] = returnMessage('{%message,ADMIN_EXTENSION_IS_NON_PRODUCTIVE=' . $ext_name . '%}') . $taskData['text'];
} // END - if
// Set current extension name
$content['withdraw_form'] = loadTemplate('admin_list_beg_form', TRUE);
} else {
// Display message "no manual withdraw possible"
- $content['withdraw_form'] = displayMessage('{--ADMIN_BEG_ALREADY_WITHDRAW--}', TRUE);
+ $content['withdraw_form'] = returnMessage('{--ADMIN_BEG_ALREADY_WITHDRAW--}');
}
// Prepare constant for timemark
if (isExtensionActive('autopurge')) {
$content['autopurge_timeout'] = generateDateTime(time() - getApInactiveSince(), 2);
} else {
- $content['autopurge_timeout'] = displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=autopurge%}', TRUE);
+ $content['autopurge_timeout'] = returnMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=autopurge%}');
}
// Load final template
$content['withdraw_form'] = loadTemplate('admin_list_bonus_form', TRUE);
} else {
// Display message "no manual withdraw possible"
- $content['withdraw_form'] = displayErrorMessage('{--ADMIN_BONUS_ALREADY_WITHDRAW--}', TRUE);
+ $content['withdraw_form'] = returnErrorMessage('{--ADMIN_BONUS_ALREADY_WITHDRAW--}');
}
// Prepare constant for timemark
$content['list_out'] = loadTemplate('admin_list_sponsor_pay', TRUE, $OUT);
} else {
// Noting setup so far!
- $content['list_out'] = displayMessage('{--ADMIN_SPONSOR_NO_PAYTYPES--}', TRUE);
+ $content['list_out'] = returnMessage('{--ADMIN_SPONSOR_NO_PAYTYPES--}');
}
// Free memory
$OUT = loadTemplate('admin_list_unconfirmed_list', TRUE, $OUT);
} else {
// All links are confirmed... strange, you shall normally not get a link to this place in this scenario... hmmm.
- $OUT = displayMessage('{--ADMIN_UNCONFIRMED_NO_LINK_LEFT--}', TRUE);
+ $OUT = returnMessage('{--ADMIN_UNCONFIRMED_NO_LINK_LEFT--}');
}
// Prepare content
// Errors found?
if (isFilledArray($formErrors)) {
- $OUT = displayMessage('{--SPONSOR_REGISTER_SOMETHING_MISSING--}', TRUE);
+ $OUT = returnMessage('{--SPONSOR_REGISTER_SOMETHING_MISSING--}');
$OUT .= '<ol>';
foreach ($formErrors as $error) {
$OUT .= '<li>' . $error . '</li>';
// How far is last change on his profile away from now?
if ((($content['last_update'] + getProfileLock()) > time()) && (!isAdmin()) && (getProfileLock() > 0)) {
// You cannot change your account
- $content['change'] = displayMessage('<div class="notice">{%message,MEMBER_PROFILE_LOCKED=' . generateDateTime($content['last_update'] + getProfileLock(), 0) . '%}</div>', TRUE);
+ $content['change'] = returnMessage('<div class="notice">{%message,MEMBER_PROFILE_LOCKED=' . generateDateTime($content['last_update'] + getProfileLock(), 0) . '%}</div>');
} else {
// He is allowed to change his profile
$content['change'] = loadTemplate('member_mydata_button', TRUE);
$content['refbanner_content'] = loadTemplate('member_list_reflinks', TRUE, $OUT);
} else {
// No refbanner found
- $content['refbanner_content'] = displayMessage('{--MEMBER_REFERRAL_BANNER_404--}', TRUE);
+ $content['refbanner_content'] = returnMessage('{--MEMBER_REFERRAL_BANNER_404--}');
}
// Free result
$main_content['pool'] = loadTemplate('member_pool_table', TRUE, $OUT);
} else {
// No mails in pool!
- $main_content['pool'] = displayMessage('{--MEMBER_NO_MAILS_IN_POOL--}', TRUE);
+ $main_content['pool'] = returnMessage('{--MEMBER_NO_MAILS_IN_POOL--}');
}
// Free result
$main_content['stats'] = loadTemplate('member_stats_table', TRUE, $OUT);
} else {
// No mail orders fond
- $main_content['stats'] = displayMessage('{--MEMBER_NO_MAILS_IN_STATS--}', TRUE);
+ $main_content['stats'] = returnMessage('{--MEMBER_NO_MAILS_IN_STATS--}');
}
// Free result
sqlFreeResult($result);
} else {
// No one else is opt-in
- $OUT = displayMessage('{--MEMBER_TRANSFER_NO_ONE_ELSE_OPT_IN--}', TRUE);
+ $OUT = returnMessage('{--MEMBER_TRANSFER_NO_ONE_ELSE_OPT_IN--}');
$content['to_disabled'] = ' disabled="disabled"';
}
$content['captcha_code'] = '<input type="hidden" name="code_chk" value="' . $rand . '" /><input type="text" name="code" class="form_field" size="5" maxlength="7"' . $content['to_disabled'] . ' /> ' . $img;
} else {
$code = '00000';
- $content['captcha_code'] = displayMessage('{--MEMBER_TRANSFER_NO_CODE--}', TRUE);
+ $content['captcha_code'] = returnMessage('{--MEMBER_TRANSFER_NO_CODE--}');
}
// Init points/reason
if (!empty($message)) {
// Output message
- $GLOBALS['sponsor_output'] = displayMessage($message, TRUE);
+ $GLOBALS['sponsor_output'] = returnMessage($message);
} else {
// No message generated
- $GLOBALS['sponsor_output'] = displayMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}', TRUE);
+ $GLOBALS['sponsor_output'] = returnMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}');
}
} else {
// Output formular
}
} else {
// Locked or so?
- $GLOBALS['sponsor_output'] = displayMessage('{%message,SPONSOR_ACCOUNT_FAILED=' . $content['status'] . '%}', TRUE);
+ $GLOBALS['sponsor_output'] = returnMessage('{%message,SPONSOR_ACCOUNT_FAILED=' . $content['status'] . '%}');
}
} else {
// Sponsor account not found
- $GLOBALS['sponsor_output'] = displayMessage('{%message,SPONSOR_ACCOUNT_404=' . getSession('sponsor_id') . '%}', TRUE);
+ $GLOBALS['sponsor_output'] = returnMessage('{%message,SPONSOR_ACCOUNT_404=' . getSession('sponsor_id') . '%}');
}
// Free memory
if (!empty($message)) {
// Output message
- $GLOBALS['sponsor_output'] = displayMessage($message, TRUE);
+ $GLOBALS['sponsor_output'] = returnMessage($message);
} else {
// No message generated
- $GLOBALS['sponsor_output'] = displayMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}', TRUE);
+ $GLOBALS['sponsor_output'] = returnMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}');
}
} else {
// Make yes/no selection
}
} else {
// Locked or so?
- $GLOBALS['sponsor_output'] = displayMessage('{%message,SPONSOR_ACCOUNT_FAILED=' . $content['status'] . '%}', TRUE);
+ $GLOBALS['sponsor_output'] = returnMessage('{%message,SPONSOR_ACCOUNT_FAILED=' . $content['status'] . '%}');
}
} else {
// Sponsor account not found
- $GLOBALS['sponsor_output'] = displayMessage('{%message,SPONSOR_ACCOUNT_404=' . getSession('sponsor_id') . '%}', TRUE);
+ $GLOBALS['sponsor_output'] = returnMessage('{%message,SPONSOR_ACCOUNT_404=' . getSession('sponsor_id') . '%}');
}
// Free memory
}
// Displays given message in admin_settings_saved template
-function displayMessage ($message, $return = FALSE) {
+function displayMessage ($message) {
+ // Call inner function
+ outputHtml(returnMessage($message));
+}
+
+// Returns given message in admin_settings_saved template
+function returnMessage ($message) {
+ // Load the template
+ return loadTemplate('admin_settings_saved', TRUE, $message);
+}
+
+// Displays given error message in admin_settings_unsaved template
+function displayErrorMessage ($message) {
// Load the template
- return loadTemplate('admin_settings_saved', $return, $message);
+ outputHtml(returnErrorMessage($message));
}
-// Displays given error message in admin_settings_saved template
-function displayErrorMessage ($message, $return = FALSE) {
+// Displays given error message in admin_settings_unsaved template
+function returnErrorMessage ($message) {
// Load the template
- return loadTemplate('admin_settings_unsaved', $return, $message);
+ return loadTemplate('admin_settings_unsaved', TRUE, $message);
}
// Generates a selection box for (maybe) given gender
{--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_EMAIL_COUNTRY_CODE_ZIP_CITY--}: $content[new_data][country]-$content[new_data][zip] $content[new_data][city] ($content[country]-$content[zip] $content[city])
------------------------------
{--SPONSOR_ENTER_PHONE--}: $content[new_data][phone] ($content[phone])
{--SPONSOR_ENTER_FAX--}: $content[new_data][fax] ($content[fax])
{--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_EMAIL_COUNTRY_CODE_ZIP_CITY--}: $content[new_data][country]-$content[new_data][zip] $content[new_data][city] ($content[country]-$content[zip] $content[city])
------------------------------
{--SPONSOR_ENTER_PHONE--}: $content[new_data][phone] ($content[phone])
{--SPONSOR_ENTER_FAX--}: $content[new_data][fax] ($content[fax])
{--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]
+{--SPONSOR_EMAIL_COUNTRY_CODE_ZIP_CITY--}: $content[country]-$content[zip] $content[city]
------------------------------
{--SPONSOR_ENTER_PHONE--}: $content[phone]
{--SPONSOR_ENTER_FAX--}: $content[fax]
{--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_EMAIL_COUNTRY_CODE_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])
</tr>
<tr>
<td align="right" valign="top">
- {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:
+ {--SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY--}:
</td>
<td>
<input type="text" class="form_field" name="country" size="2" maxlength="2" value="DE" />-<input type="text" class="form_field" name="zip" size="5" maxlength="6" />
</tr>
<tr>
<td align="right">
- {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:
+ {--SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY--}:
</td>
<td>
<input type="text" class="form_field" name="country" size="2" maxlength="2" value="$content[country]" />-<input type="text" class="form_field" name="zip" size="2" maxlength="6" value="$content[zip]" />
</tr>
<tr>
- <td align="right" class="bottom right">{--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:</td>
+ <td align="right" class="bottom right">{--SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY--}:</td>
<td class="bottom">$content[country]-$content[zip]$content[city]</td>
</tr>
--- /dev/null
+<div align="center">
+<div class="table dashed">
+ <div class="table_header bottom">
+ {--GUEST_SELECT_OTHER_REGISTRATION_FORM_TITLE--}
+ </div>
+
+ <div class="bottom" align="left">
+ {%template,GuestRegistrationList%}
+ </div>
+ <div class="table_footer">
+ <div class="notice">
+ {--GUEST_SELECT_OTHER_REGISTRATION_FORM_NOTICE--}
+ </div>
+ </div>
+</div>
+</div>
</tr>
<tr>
<td align="right" valign="top">
- {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:
+ {--SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY--}:
</td>
<td>
<input type="text" class="form_field" name="country" size="2" maxlength="2" value="$content[country]" />-<input type="text" class="form_field" name="zip" size="5" maxlength="6" value="$content[zip]" />
</tr>
<tr>
<td class="bottom right" align="right" height="27">
- {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:
+ {--SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY--}:
</td>
<td class="bottom">
<input type="text" class="form_field" name="country" size="2" maxlength="2" value="{%sponsor,country=$content[id]%}" />-<input type="text" class="form_field" name="zip" size="5" maxlength="6" value="{%sponsor,zip,bigintval=$content[id]%}" />