inc/libs/html_mail_functions.php -text svneol=unset#text/plain
inc/libs/jackpot_functions.php -text svneol=unset#text/plain
inc/libs/mailid_functions.php svneol=native#text/plain
+inc/libs/maintenance_functions.php svneol=native#text/plain
inc/libs/mediadata_functions.php -text svneol=unset#text/plain
inc/libs/network_functions.php -text svneol=unset#text/plain
inc/libs/newsletter_functions.php -text svneol=unset#text/plain
// Checks wether the given extension has a language file
function ifExtensionHasLanguageFile ($ext_name) {
- // Default is no language file
- $hasLanguage = false;
-
// Do we have cache?
if (isset($GLOBALS['cache_array']['extension']['ext_lang'][$ext_name])) {
- // Then use it
- $hasLanguage = ($GLOBALS['cache_array']['extension']['ext_lang'][$ext_name] == 'Y');
-
// Count cache hits
incrementStatsEntry('cache_hits');
} else {
} // END - if
// Version number
-setThisExtensionVersion('0.5.4');
+setThisExtensionVersion('0.5.5');
// Version history array (add more with , '0.1.0' and so on)
-setExtensionVersionHistory(array('0.0', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4'));
+setExtensionVersionHistory(array('0.0', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5'));
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
setExtensionUpdateNotes("Weiteren Menüpunkt aus <strong>menu-{?DEFAULT_LANG?} heraus geholt.");
break;
+ case '0.5.5': // SQL queries for v0.5.5
+ addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `register_generate_password_empty` ENUM('Y','N') NOT NULL DEFAULT 'Y'");
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Weiteren Menüpunkt aus <strong>menu-{?DEFAULT_LANG?} heraus geholt.");
+ break;
} // END - switch
break;
// Generate a password in a specified length or use default password length
function generatePassword ($length = '0') {
// Auto-fix invalid length of zero
- if ($length == '0') $length = getConfig('pass_len');
+ if ($length == '0') $length = getPassLen();
// Initialize array with all allowed chars
$ABC = explode(',', 'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,0,1,2,3,4,5,6,7,8,9,-,+,_,/,.');
'FAMILY' => "Nachname",
'STREET_NR' => "Straße + Hausnummer",
'COUNTRY' => "Land",
- 'ZIP' => "Postleitzahl",
+ 'ZIP' => "PLZ",
'CITY' => "Wohnort",
'EMAIL' => "Email-Adresse",
'MARKER' => "Markierer (keine Daten)",
'PER_DAY' => "Mails",
'REFID_BY' => "Sie wurden geworben von",
'TERMS_OF_USAGE' => "AGBs zustimmen und absenden",
- 'YOU_FINALIZE' => "Sie haben es gleich geschafft.",
'AGREE_TO_THIS' => "Stimmen Sie unseren [<a href=\"{%url=modules.php?module=index&what=agb%}\" target=\"_blank\">AGBs</a>] zu?",
'SUBMIT_REGISTER' => "Anmeldedaten abschicken",
'HAVE_TO_AGREE' => "Sie müssen unseren AGBs zustimmen, damit Sie an diesem {?mt_word?} teilnehmen können.",
'SETTINGS_SAVED' => "Einstellungen gespeichert.",
'FATAL_CANNOT_LOAD_CONFIG' => "Kann die Konfigurationsdaten nicht laden! Vermutlich richtet der Webmaster diesen {?mt_word?} gerade das Script erst ein! Bitte schauen Sie später noch einmal vorbei.",
'ADMIN_ACTION_INVALID' => "Die action/what-Kombination <span class=\"data\">%s</span> ist ungültig.",
- 'SHORT_PASS' => "Das eingegebene Passwort ist nach unseren Sicherheitseinstellungen zu kurz. Mindestlänge ist",
+ 'GUEST_SHORT_PASS' => "Das eingegebene Passwort ist nach unseren Sicherheitseinstellungen zu kurz. Mindestlänge ist",
+ 'GUEST_EMPTY_PASSWORD_HINT' => "Lassen Sie beide Passwörter leer, so wird Ihnen eines per Zufall generiert.",
'ADMIN_EDIT_POINTS_SETTINGS_TITLE' => "Ändern der Willkommensgutschrift und anderer {?POINTS?}",
'ADMIN_ENTER_POINTS_REGISTER' => "Willkommensgutschrift",
'ADMIN_ENTER_POINTS_REFERAL' => "Einmalige Referal-Gutschrift",
- 'ADMIN_CONFIG_REGFORM_SETTINGS_TITLE' => "Einstellungen am Anmeldeformular",
- 'ADMIN_CONFIG_LEAST_CATEGORIES' => "Mindestens auszuwählende Kategorieanzahl",
- 'CATS_LEAST' => "Bitte wählen Sie mehr Kategorien aus! Minimum ist: <span class=\"data\">{?least_cats?}</span>",
- 'GUEST_EMAIL_ALREADY_DB' => "Sie haben sich bereits mit dieser Email-Adresse angemeldet, oder jemand anderes verwendet Ihre. Doppelte Anmeldungen sind bei uns verboten.",
+ 'CHOOSE_MORE_CATEGORIES' => "Bitte wählen Sie mehr Kategorien aus! Minimum ist: <span class=\"data\">{?least_cats?}</span>",
+ '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.",
'ADMIN_CONFIG_REJECT_DOUBLE_EMAIL' => "Doppelt angemeldete Email-Adressen ablehnen?",
- 'ADMIN_CONFIG_REJECT_DOUBLE_PASS' => "Gleiche Passwörter bei der Anmeldung ablehnen? (Wird nicht angezeigt!)",
'ADMIN_EDIT_POINTS' => "Willkommensgutschrift und andere Festbeträge editieren",
'ADMIN_EDIT_REFERAL_DEPTHS' => "Referal-Ebenen editieren / löschen / hinzufügen",
'ADMIN_ADD_NEW_REFERAL_DEPTH_TITLE' => "Neue Referal-Ebene hinzufügen",
'ADMIN_EDIT_LEVEL' => "Ref-Ebene editieren",
'ADMIN_DELETE_LEVEL' => "Ref-Ebene löschen",
'HELLO' => "Hallo",
- 'GUEST_YOU_REGISTERED_WITH_US' => "vielen Dank, dass Sie sich für {?MAIN_TITLE?} entschieden haben! Sollten Sie dies nicht gewesen sein, so melden Sie sich bitte bei uns.",
- 'GUEST_YOUR_PERSONA_DATA' => "Hier sind nochmals zur Überprüfung Ihre persönlichen Daten",
'GUEST_SURNAME' => "Vorname",
'GUEST_FAMILY' => "Nachname",
'GUEST_STREET_NR' => "Straße und Hausnummer",
'GUEST_COUNTRY' => "Ländercode",
- 'GUEST_ZIPCODE' => "Postleitzahl",
+ 'GUEST_ZIPCODE' => "PLZ",
'GUEST_CITY' => "Wohnort",
'GUEST_EMAIL' => "Email-Adresse",
'GUEST_BIRTHDAY' => "Geburtsdatum",
'GUEST_REF' => "Geworben von",
- 'GUEST_YOUR_REFERAL_LINK' => "Hier ist Ihr persönlicher Referal-Link, mit dem Sie bereits jetzt schon neue Mitglieder werben können:",
'GUEST_CONFIRM_LINK_SUBJECT' => "Ihr Bestätigungslink",
'ADMIN_GUEST_REGISTERED_WITH_US' => "Ein Gast hat sich soeben bei uns angemeldet.",
'ADMIN_GUEST_PERSONA_DATA' => "Hier sind zur Überprüfung nochmals seine persönlichen Daten",
'ADMIN_REGISTER_FIELD_NAME' => "Eingabefeld",
'ADMIN_REGISTER_FIELD_REQUIRED' => "Pflichtfeld?",
'ADMIN_REGISTER_CHANGES_SAVED' => "Es wurden <span class=\"data\">%s</span> Pflichtfelder aktualisiert.",
- 'REGISTER_SURNAME_REQUIRED' => "Bitte geben Sie Ihren Vornamen ein.",
- 'REGISTER_FAMILY_REQUIRED' => "Bitte geben Sie Ihren Nachnamen ein.",
- 'REGISTER_STREET_NR_REQUIRED' => "Bitte geben Sie Straße und Hausnummer ein.",
- 'REGISTER_CNTRY_REQUIRED' => "Bitte geben Sie den zweistelligen Ländercode ein.",
- 'REGISTER_ZIP_REQUIRED' => "Bitte geben Sie die Postleitzahl ein.",
- 'REGISTER_CITY_REQUIRED' => "Bitte geben Sie den Wohnort ein.",
'CNTRY' => "Ländercode",
'ADMIN_CONFIG_REGISTER_DEFAULT' => "Standart-Vorauswahl in der Kategorienliste einstellen auf Ja/Nein",
'ADMIN_CONFIG_REGISTER_DISPLAY_REFID' => "Soll die Ref-Id angezeigt werden? <div class=\"notice\">(Nein = id wird editierbar!)</div>",
'ADMIN_CONFIG_REGISTER_IP_TIMEOUT' => "IP-Zeitsperre",
+ 'ADMIN_CONFIG_REGFORM_SETTINGS_TITLE' => "Einstellungen am Anmeldeformular",
+ 'ADMIN_CONFIG_LEAST_CATEGORIES' => "Mindestens auszuwählende Kategorieanzahl",
+ 'ADMIN_CONFIG_REGISTER_GENERATE_PASSWORD_EMPTY' => "Soll bei leergelassenem Passwort in der Anmeldung eines per Zufall generiert werden?",
+ 'ADMIN_CONFIG_REJECT_DOUBLE_EMAIL' => "Doppelt angemeldete Email-Adressen ablehnen?",
+ '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.",
));
// [EOF]
`holiday_end` <= UNIX_TIMESTAMP()
ORDER BY
`userid` ASC", __FUNCTION__, __LINE__);
- if (SQL_NUMROWS($result_stop) > 0) {
+ if (!SQL_HASZERONUMS($result_stop)) {
// We foud at least one
$admin = '';
--- /dev/null
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL Start: 11/09/2010 *
+ * =================== Last change: 11/09/2010 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : maintenance_functions.php *
+ * -------------------------------------------------------------------- *
+ * Short description : Functions for ext-maintenance *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Funktionen fuer ext-maintenance *
+ * -------------------------------------------------------------------- *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * -------------------------------------------------------------------- *
+ * 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
+
+//-----------------------------------------------------------------------------
+// Wrapper functions for ext-maintenance
+//-----------------------------------------------------------------------------
+
+// Getter for 'maintenance'
+function getMaintenance () {
+ // Is the cache entry set
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('maintenance');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks wether 'maintenance' is "YES"
+function isMaintenanceEnabled () {
+ // Is the cache entry set
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getMaintenance() == 'Y');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// [EOF]
+?>
`sort` ASC', __FUNCTION__, __LINE__);
// Do we have entries?
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// Get all entries
while ($row = SQL_FETCHARRAY($result)) {
// Add it to our global array
$ret['tables'] = array();
// Do we have entries?
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// Fetch all rows
while ($row = SQL_FETCHARRAY($result)) {
$tot_data = $row['Data_length'];
`userid`=%s
LIMIT 1",
array(bigintval($id), bigintval($content['userid'])), __FUNCTION__, __LINE__);
- if (SQL_NUMROWS($result_ref) == 0) {
- // Free memory
- SQL_FREERESULT($result_ref);
+ if (SQL_HASZERONUMS($result_ref)) {
// Add userid and his ref count to table
$result_ref = SQL_QUERY_ESC("SELECT
$un = true;
} // END - if
+ // Free memory
+ SQL_FREERESULT($result_ref);
+
// Ignored but for the template required refs (made before start of rallye)
$content['refs'] = $count;
), __FUNCTION__, __LINE__);
// Is this user added?
- if (SQL_NUMROWS($result) < 1) {
+ if (SQL_HASZERONUMS($result)) {
// Add userid and his ref count to table
SQL_QUERY_ESC("INSERT INTO
`{?_MYSQL_PREFIX?}_rallye_users`
// When no entry was updated then we have to create it here
//* DEBUG: */ print(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__."</font>):found=".SQL_NUMROWS($result_refid)."<br />");
- if (SQL_NUMROWS($result_refid) > 0) {
+ if (!SQL_HASZERONUMS($result_refid)) {
// Load all refids
while (list($GLOBALS['refback_refid'][$GLOBALS['refback_level']]) = SQL_FETCHROW($result_refid)) {
// Remmber userid
$content['default_no'] = '';
// Mark categories
- if ((postRequestParameter('cat', $content['id']) == 'Y') || ((getConfig('register_default') == 'Y') && (!isPostRequestParameterSet('cat', $content['id'])))) {
+ if ((postRequestParameter('cat', $content['id']) == 'Y') || ((isRegisterDefaultEnabled()) && (!isPostRequestParameterSet('cat', $content['id'])))) {
$content['default_yes'] = ' checked="checked"';
} else {
$content['default_no'] = ' checked="checked"';
while ($row = SQL_FETCHARRAY($result)) {
// Must the user fill out this element?
$value = '';
- if ($row['field_required'] == 'Y') $value = '<span class="notice">(*)</span>';
+ if ($row['field_required'] == 'Y') {
+ $value = '<span class="notice">(*)</span>';
+ } // END - if
// Add it
$content['must_fillout_' . strtolower($row['field_name']) . ''] = $value;
// Init elements
$GLOBALS['registration_ip_timeout'] = false;
$GLOBALS['registration_short_password'] = false;
- $GLOBALS['register_selected_cats'] = '0';
+ $GLOBALS['registration_selected_cats'] = '0';
// Default is okay
$isOkay = true;
setPostRequestParameter('pass1', '!');
setPostRequestParameter('pass2', '!');
} else {
- if (!isPostRequestParameterSet('pass1')) { setPostRequestParameter('pass1', '!'); } else { setPostRequestParameter('pass1', ''); }
- if (!isPostRequestParameterSet('pass2')) { setPostRequestParameter('pass2', '!'); } else { setPostRequestParameter('pass2', ''); }
+ if (!isPostRequestParameterSet('pass1')) {
+ setPostRequestParameter('pass1', '!');
+ } else {
+ setPostRequestParameter('pass1', '');
+ }
+ if (!isPostRequestParameterSet('pass2')) {
+ setPostRequestParameter('pass2', '!');
+ } else {
+ setPostRequestParameter('pass2', '');
+ }
}
$isOkay = false;
} // END - if
+ // Are both passwords zero length?
+ if ((strlen(postRequestParameter('pass1')) == 0) && (strlen(postRequestParameter('pass2')) == 0) && ($isOkay === true)) {
+ // Is the extension 'register' newer or equal 0.5.5?
+ if ((isExtensionInstalledAndNewer('register', '0.5.5')) && (isRegisterGeneratePasswordEmptyEnabled())) {
+ // Generate a random password
+ $randomPassword = generatePassword();
+
+ // Set it in both entries
+ setPostRequestParameter('pass1', $randomPassword);
+ setPostRequestParameter('pass2', $randomPassword);
+ } else {
+ // Not allowed or no recent extension version
+ setPostRequestParameter('pass1', '!');
+ setPostRequestParameter('pass2', '!');
+
+ // ... which is both not okay
+ $isOkay = false;
+ }
+ } // END - if
+
// Is the password long enouth?
- if ((strlen(postRequestParameter('pass1')) < getConfig('pass_len')) && ($isOkay === true)) {
+ if ((strlen(postRequestParameter('pass1')) < getPassLen()) && ($isOkay === true)) {
$GLOBALS['registration_short_password'] = true;
$isOkay = false;
} // END - if
foreach (postRequestParameter('cat') as $id => $answer) {
// Is this category choosen?
if ($answer == 'Y') {
- $GLOBALS['register_selected_cats']++;
+ $GLOBALS['registration_selected_cats']++;
} // END - if
} // END - foreach
} // END - if
// Enougth categories selected?
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isOkay='.intval($isOkay).',selected='.$GLOBALS['register_selected_cats'].'/'.getConfig('least_cats'));
- $isOkay = (($isOkay) && ($GLOBALS['register_selected_cats'] >= getConfig('least_cats')));
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isOkay='.intval($isOkay).',selected='.$GLOBALS['registration_selected_cats'].'/'.getLeastCats());
+ $isOkay = (($isOkay) && ($GLOBALS['registration_selected_cats'] >= getLeastCats()));
- if ((postRequestParameter('email') != '!') && (getConfig('check_double_email') == 'Y')) {
+ if ((postRequestParameter('email') != '!') && (isCheckDoubleEmailEnabled())) {
// Does the email address already exists in our database?
if ((!isAdmin()) && (isEmailTaken(postRequestParameter('email')))) {
setPostRequestParameter('email', '?');
// Check for IP timeout?
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isOkay='.intval($isOkay));
- if ((!isAdmin()) && (getConfig('ip_timeout') > 0)) {
+ if ((!isAdmin()) && (getIpTimeout() > 0)) {
// Check his IP number
$GLOBALS['registration_ip_timeout'] = (countSumTotalData(detectRemoteAddr() , 'user_data', 'userid', 'REMOTE_ADDR', true, " AND ((UNIX_TIMESTAMP() - `joined`) < {?ip_timeout?} OR (UNIX_TIMESTAMP() - `last_update`) < {?ip_timeout?}) LIMIT 1") == 1);
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isOkay='.intval($isOkay).',timeout='.intval($GLOBALS['registration_ip_timeout']));
// Check if I shall disable sending mail to newly registered members out about active/begging rallye
//
// First comes first: begging rallye
- if (!isBegNewMemberNotifyEnabled()) {
+ if ((isExtensionInstalledAndNewer('beg', '0.2.7')) && (!isBegNewMemberNotifyEnabled())) {
$GLOBALS['register_sql_columns'] .= ', `beg_rallye_enable_notify`, `beg_rallye_disable_notify`';
$GLOBALS['register_sql_data'] .= ', UNIX_TIMESTAMP(), UNIX_TIMESTAMP()';
} // END - if
} // END - if
// ... rewrite a zero referal id to the main title
- if (!isValidUserId(postRequestParameter('refid'))) setPostRequestParameter('refid', getMainTitle());
+ if (!isValidUserId(postRequestParameter('refid'))) {
+ setPostRequestParameter('refid', getMainTitle());
+ } // END - if
// Is ZIP code set?
if (isPostRequestParameterSet('zip')) {
} // END - switch
// Display information to the user that he got mail and send it away
- $messageGuest = loadEmailTemplate('register-member', $content, $userid);
+ $messageGuest = loadEmailTemplate('register-member', $content, $userid, false);
// Send mail to user (confirmation link!)
$email = $content['email'];
sendAdminNotification('{--ADMIN_NEW_ACCOUNT_SUBJECT--}', 'register-admin', $content, $userid);
}
+//-----------------------------------------------------------------------------
+// Wrapper functions for ext-register
+//-----------------------------------------------------------------------------
+
+// Getter for 'display_refid'
+function getDisplayRefid () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('display_refid');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks wether 'display_refid' is "YES"
+function isDisplayRefidEnabled () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getDisplayRefid() == 'Y');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'ip_timeout'
+function getIpTimeout () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('ip_timeout');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'check_double_email'
+function getCheckDoubleEmail () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('check_double_email');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks wether 'check_double_email' is "YES"
+function isCheckDoubleEmailEnabled () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getCheckDoubleEmail() == 'Y');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'register_default'
+function getRegisterDefault () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('register_default');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks wether 'register_default' is "YES"
+function isRegisterDefaultEnabled () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getRegisterDefault() == 'Y');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'register_generate_password_empty'
+function getRegisterGeneratePasswordEmpty () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('register_generate_password_empty');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks wether 'register_generate_password_empty' is "YES"
+function isRegisterGeneratePasswordEmptyEnabled () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getRegisterGeneratePasswordEmpty() == 'Y');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
// [EOF]
?>
// Rewrite CSS class if not last entry is reached
if ($key < (count($sqls) - 1)) $content['bottom'] = 'bottom';
- if ((SQL_NUMROWS($result) > 0) && (!empty($WHATs[$key]))) {
+ if ((!SQL_HASZERONUMS($result)) && (!empty($WHATs[$key]))) {
if (empty($TITLEs[$key])) {
$TITLEs[$key] = '{--ADMIN_TASK_UNKNOWN_LIST_TITLE--}';
} // END - if
), __FILE__, __LINE__);
// Do we have entries found?
-if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != 'Y'))) {
+if (((!SQL_HASZERONUMS($result_total)) && (getConfig('doubler_sent_all') == 'Y')) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != 'Y'))) {
// Switch to matching SQL resource
$result_load = $result_main;
- if ((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) $result_load = $result_total;
+ if ((!SQL_HASZERONUMS($result_total)) && (getConfig('doubler_sent_all') == 'Y')) {
+ $result_load = $result_total;
+ } // END - if
// At least one account was found
while ($content = SQL_FETCHARRAY($result_load)) {
array($module), __FUNCTION__, __LINE__);
// Is the entry there?
- if (SQL_NUMROWS($result)) {
+ if (SQL_NUMROWS($result) == 1) {
// Get the title from database
$data = SQL_FETCHARRAY($result);
} // END - if
// Check "logical-area-mode"
function adminGetMenuMode () {
// Set the default menu mode as the mode for all admins
- $mode = getConfig('admin_menu');
+ $mode = getAdminMenu();
$adminMode = $mode;
// Get admin id
}
// Check what the admin wants and set it when it's not the default mode
- if ($adminMode != 'global') $mode = $adminMode;
+ if ($adminMode != 'global') {
+ $mode = $adminMode;
+ } // END - if
// Return admin-menu's mode
return $mode;
// Is the extension not yet installed?
if ($extInstalled === false) {
// We maybe want to install an extension so let's test-drive it...
- if (loadExtension($ext_name, getExtensionMode(), '', true)) {
+ if (loadExtension($ext_name, getExtensionMode(), '0.0', true)) {
// Create a task for newly installed extension (we ignore the task id here)
createNewExtensionTask($ext_name);
} // END - if
$result = SQL_QUERY("SELECT id, action, what, title, sort FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$AND." ORDER BY `sort` ASC", __FILE__, __LINE__);
// Do we have entries?
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// Remember sub value
$content['sub'] = $SUB;
// Prepare data for the template
$content['admin_menu_new'] = '';
$content['admin_menu_old'] = '';
- $content['admin_menu_' . strtolower(getConfig('admin_menu'))] = ' checked="checked"';
+ $content['admin_menu_' . strtolower(getAdminMenu())] = ' checked="checked"';
// Display form
loadTemplate('admin_config_admin', false, $content);
d.`network_short_name` ASC", __FILE__, __LINE__);
// Do we have entries?
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
// We have some networks here
$OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
if (!isPostRequestParameterSet('max_send')) { unsetPostRequestParameter('ok'); }
if (!isPostRequestParameterSet('code_length')) { unsetPostRequestParameter('ok'); }
if (!isPostRequestParameterSet('reject_url')) { unsetPostRequestParameter('ok'); }
-}
+} // END - if
if (isFormSent()) {
// Update stamps directly
adminSaveSettingsFromPostData();
} else {
// Remember stuff in constants
- $content['display_refid'] = addSelectionBox('yn', getConfig('display_refid') , 'display_refid');
- $content['ip_timeout'] = createTimeSelections(getConfig('ip_timeout') , 'ip_timeout', 'Dhm');
- $content['check_double_email'] = addSelectionBox('yn', getConfig('check_double_email'), 'check_double_email');
- $content['check_double_pass'] = addSelectionBox('yn', getConfig('check_double_pass') , 'check_double_pass');
- $content['register_default'] = addSelectionBox('yn', getConfig('register_default') , 'register_default');
+ $content['display_refid'] = addSelectionBox('yn', getDisplayRefid() , 'display_refid');
+ $content['ip_timeout'] = createTimeSelections(getIpTimeout() , 'ip_timeout', 'Dhm');
+ $content['check_double_email'] = addSelectionBox('yn', getCheckDoubleEmail() , 'check_double_email');
+ $content['register_default'] = addSelectionBox('yn', getRegisterDefault() , 'register_default');
+ $content['register_generate_password_empty'] = addSelectionBox('yn', getRegisterGeneratePasswordEmpty(), 'register_generate_password_empty');
// Load normal template
loadTemplate('admin_config_register2', false, $content);
}
// Do we have entries?
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// Set sub value
$content['sub'] = $subMenu;
}
// Do we have some entries?
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// Some unconfirmed mails left
if (getRequestParameter('delete') == "all") {
// Delete all unconfirmed mails by this user
), __FILE__, __LINE__);
// Do we have entries?
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// List all entries
$OUT = '';
while ($row = SQL_FETCHARRAY($result)) {
),__FILE__, __LINE__);
// Do we have entries?
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// At least one link left to confirm
$OUT = '';
while ($row = SQL_FETCHARRAY($result)) {
if (isFormSent()) {
// De- or activate maintenance mode
- switch (getConfig('maintenance')) {
+ switch (getMaintenance()) {
case 'Y':
$target_mode = 'N';
$message = '{--ADMIN_MAINTENANCE_DEACTIVATED--}';
// Load template
loadTemplate('admin_settings_saved', false, $message);
} else {
- switch (getConfig('maintenance')) {
+ switch (getMaintenance()) {
case 'Y': // Maintenance mode is active
$message = '{--ADMIN_MAINTENANCE_MODE_IS_ACTIVE--}';
break;
}
// Some are there?
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// Set sub value
$content['sub'] = $subMenu;
}
if ((isset($GLOBALS['registration_short_password'])) && ($GLOBALS['registration_short_password'] === true)) {
- registerOutputFailedMessage('SHORT_PASS', ': ' . getConfig('pass_len'));
+ registerOutputFailedMessage('GUEST_SHORT_PASS', ': ' . getPassLen());
} // END - if
if ((isset($GLOBALS['registration_ip_timeout'])) && ($GLOBALS['registration_ip_timeout'] === true)) {
registerOutputFailedMessage('REMOTE_ADDR_TIMEOUT');
} // END - if
- if ((!empty($GLOBALS['register_selected_cats'])) && ($GLOBALS['register_selected_cats'] < getConfig('least_cats'))) {
- registerOutputFailedMessage('', '{--CATS_LEAST--}');
+ if ((!empty($GLOBALS['registration_selected_cats'])) && ($GLOBALS['registration_selected_cats'] < getLeastCats())) {
+ registerOutputFailedMessage('', '{--CHOOSE_MORE_CATEGORIES--}');
} // END - if
} // END - if
$content['max_receive_list'] = addMaxReceiveList('guest', '', true);
// Shall I display the refid or shall I make it editable?
- if (getConfig('display_refid') == 'Y') {
+ if (isDisplayRefidEnabled()) {
// Load "hide" form template
$content['refid_content'] = loadTemplate('guest_register_refid_hide', true);
} else {
$formErrors[] = '{--SPONSOR_PASSWORD2_EMPTY--}';
}
}
- } elseif (strlen(postRequestParameter('pass1')) < getConfig('pass_len')) {
+ } elseif (strlen(postRequestParameter('pass1')) < getPassLen()) {
// Password is to short!
$formErrors[] = '{--SPONSOR_PASSWORD_TOO_SHORT--}';
}
$result = SQL_QUERY("SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats`".$whereStatement." ORDER BY `sort` ASC", __FILE__, __LINE__);
// Do we have entries?
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
$LEAST = false;
if (isFormSent()) {
$count = '0';
if ($joined != 'Y') $count++;
} // END - foreach
- if ((SQL_NUMROWS($result) - $count) < getConfig('least_cats')) {
+ if ((SQL_NUMROWS($result) - $count) < getLeastCats()) {
unsetPostRequestParameter('ok');
$LEAST = true;
} // END - if
} else {
if ($LEAST === true) {
// Also here we have to secure it... :(
- loadTemplate('admin_settings_saved', false, '{--CATS_LEAST--}');
+ loadTemplate('admin_settings_saved', false, '{--CHOOSE_MORE_CATEGORIES--}');
} // END - if
// Put some data into constants for the template
`holiday_active`='N'
WHERE
`userid`=%s
-LIMIT 1", array(getMemberId()), __FILE__, __LINE__);
+LIMIT 1",
+ array(getMemberId()), __FILE__, __LINE__);
redirectToUrl('modules.php?module=login&what=holiday');
return;
}
} elseif ((isPostRequestParameterSet('pass1')) && (!isPostRequestParameterSet('pass2'))) {
// No password two entered
$message = '{--SPONSOR_PASSWORD_TWO_EMPTY--}';
- } elseif ((isPostRequestParameterSet('pass1')) && (strlen(postRequestParameter('pass1')) < getConfig('pass_len'))) {
+ } elseif ((isPostRequestParameterSet('pass1')) && (strlen(postRequestParameter('pass1')) < getPassLen())) {
// Too short password
$message = '{--SPONSOR_PASSWORD_TOO_SHORT--}';
} else {
$result_bonus = SQL_QUERY("SELECT `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='NEW' ORDER BY `timestamp` DESC", __FILE__, __LINE__);
}
- if (SQL_NUMROWS($result_bonus) > 0) {
+ if (!SQL_HASZERONUMS($result_bonus)) {
// Send these mails away...
$count2 = '';
while ($DATA = SQL_FETCHARRAY($result_bonus)) {
// If there's no stats entry add it!
//* DEBUG: */ debugOutput('!L:'.__LINE__.'/'.SQL_NUMROWS($result_stats).'!');
- if (SQL_NUMROWS($result_stats) == 0) {
+ if (SQL_HASZERONUMS($result_stats)) {
// No entry was found, so we add him!
SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_stats` (`pool_id` , `userid`, `cat_id`, `payment_id`, `subject`, `url` , `max_rec` , `timestamp_ordered`, `timestamp_sstart`) VALUES ('%s','%s','%s','%s','%s','%s','%s','%s' , UNIX_TIMESTAMP())",
array(bigintval($DATA['id']), bigintval($DATA['sender']), bigintval($DATA['cat_id']), bigintval($DATA['payment_id']), $DATA['subject'], $DATA['url'], $DATA['target_send'], bigintval($DATA['timestamp'])), __FILE__, __LINE__);
ORDER BY
`userid` ASC", __FILE__, __LINE__);
-if (SQL_NUMROWS($result_bonus) > 0) {
+if (!SQL_HASZERONUMS($result_bonus)) {
// We found some mail orders...
while ($content = SQL_FETCHARRAY($result_bonus)) {
// Add points
`userid` ASC",
array($day, $month, $value), __FILE__, __LINE__);
-if (SQL_NUMROWS($result_birthday) > 0) {
+if (!SQL_HASZERONUMS($result_birthday)) {
// Start sending out birthday mails
while ($content = SQL_FETCHARRAY($result_birthday)) {
// Calculate own timestamp for birthday and today
`userid` ASC", __FILE__, __LINE__);
//* DEBUG: */ debugOutput(basename(__FILE__) . ':payout=0;daily|numRows=' . SQL_NUMROWS($result_daily));
-if (SQL_NUMROWS($result_daily) > 0) {
+if (!SQL_HASZERONUMS($result_daily)) {
// Init SQLs
initSqls();
array(bigintval($content['userid'])), __FILE__, __LINE__);
//* DEBUG: */ debugOutput(basename(__FILE__) . ':payout=0;points|numRows=' . SQL_NUMROWS($result_points));
- if (SQL_NUMROWS($result_points) > 0) {
+ if (!SQL_HASZERONUMS($result_points)) {
// Ok transfer points
while ($content2 = SQL_FETCHARRAY($result_points)) {
// Merge both arrays
}
// Loads an email template and compiles it
-function loadEmailTemplate ($template, $content = array(), $userid = '0') {
+function loadEmailTemplate ($template, $content = array(), $userid = '0', $loadUserData = true) {
global $DATA;
// Make sure all template names are lowercase!
// Merge data if valid
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "content()=".count($content)." - PRE<br />");
- if (isUserDataValid()) {
+ if ((isUserDataValid()) && ($loadUserData === true)) {
$content = merge_array($content, getUserDataArray());
} // END - if
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "content()=".count($content)." - AFTER<br />");
return $GLOBALS[__FUNCTION__];
}
+// "Getter" for least_cats
+function getLeastCats () {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('least_cats');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// "Getter" for pass_len
+function getPassLen () {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('pass_len');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// "Getter" for admin_menu
+function getAdminMenu () {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('admin_menu');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// Checks wether proxy configuration is used
function isProxyUsed () {
// Do we have cache?
`points_ref` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`least_cats` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5,
`check_double_email` ENUM('Y','N') NOT NULL DEFAULT 'Y',
- `check_double_pass` ENUM('Y','N') NOT NULL DEFAULT 'N',
`admin_notify` ENUM('Y','N') NOT NULL DEFAULT 'Y',
`url_tlock` BIGINT(20) UNSIGNED NOT NULL DEFAULT '86400',
`max_tlength` BIGINT(20) UNSIGNED NOT NULL DEFAULT '1000',
$moduleState = 'failed';
// Is the maintenance mode active or goes all well?
-if ((isExtensionActive('maintenance')) && (getConfig('maintenance') == 'Y') && (!isAdmin()) && (getModule() != 'admin')) {
+if ((isExtensionActive('maintenance')) && (isMaintenanceEnabled()) && (!isAdmin()) && (getModule() != 'admin')) {
// Maintain mode is active and you are no admin
addFatalMessage(__FILE__, __LINE__, '{--MAILER_DOWN_FOR_MAINTENANCE--}');
} elseif ((SQL_IS_LINK_UP()) && (!ifFatalErrorsDetected())) {
<td align="center">$content[ip_timeout]</td>
</tr>
<tr>
- <td align="right" width="280">{--ADMIN_CONFIG_REJECT_DOUBLE_EMAIL--}:</td>
+ <td align="right" width="280">{--ADMIN_CONFIG_REJECT_DOUBLE_EMAIL--}</td>
<td align="center">$content[check_double_email]</td>
</tr>
<tr>
- <td class="bottom" align="right" width="280">{--ADMIN_CONFIG_REJECT_DOUBLE_PASS--}:</td>
- <td class="bottom" align="center">$content[check_double_pass]</td>
+ <td class="bottom" align="right" width="280">{--ADMIN_CONFIG_REGISTER_GENERATE_PASSWORD_EMPTY--}</td>
+ <td class="bottom" align="center">$content[register_generate_password_empty]</td>
</tr>
<tr>
<td class="table_footer" colspan="2" align="center">
<table border="0" cellspacing="0" cellpadding="0" width="440" class="table dashed">
<tr>
<td width="60%" align="right" height="40" class="register_left">
- <strong>{--MAX_PER_DAY--}:</strong>
+ {--MAX_PER_DAY--}:
</td>
<td width="40%" class="register_right">
<select name="max_mails" size="1" class="form_select">
<form accept-charset="utf-8" action="{%url=modules.php?module=index&what=register%}" method="post" name="register">
<table border="0" cellspacing="0" cellpadding="0" width="640" class="table dashed">
<tr>
- <td colspan="2" class="table_header bottom" height="70">
+ <td colspan="2" class="table_header bottom">
$content[header_content]
</td>
</tr>
</td>
</tr>
<tr>
- <td colspan="2" class="bottom">$content[category_selection]</td>
+ <td colspan="2" class="bottom">
+ $content[category_selection]
+ </td>
</tr>
<tr>
<td colspan="2" class="table_header bottom">
{--REGISTER_MISC--}:
</td>
</tr>
+ <tr>
+ <td colspan="2" align="center">
+ <div class="notice tiny">{--GUEST_EMPTY_PASSWORD_HINT--}</div>
+ </td>
+ </tr>
<tr>
<td align="right" class="register_left">
{--PASS_1--}, {--PASS_2--}:
</td>
</tr>
<tr>
- <td colspan="2" align="center">$content[max_receive_list]</td>
+ <td colspan="2" align="center">
+ $content[max_receive_list]
+ </td>
</tr>
$content[refid_content]
<tr>
<td colspan="2" class="table_header bottom top">
- <div>{--TERMS_OF_USAGE--}:</div>
- <div class="notice">{--YOU_FINALIZE--}</div>
+ {--TERMS_OF_USAGE--}:
</td>
</tr>
<tr>
- <td class="bottom register_left" align="right">
- {--AGREE_TO_THIS--}:
- </td>
- <td class="bottom register_right">
- <input type="radio" class="form_field" name="agree" class="form_field" value="Y" /> {--YES--}<br />
- <input type="radio" class="form_field" name="agree" class="form_field" value="N" checked="checked" /> {--NO--}
+ <td colspan="2" class="bottom">
+ <table border="0" cellspacing="0" cellpadding="0" width="640" class="table">
+ <tr>
+ <td width="50%" align="right">
+ {--AGREE_TO_THIS--}
+ </td>
+ <td width="50%">
+ <input type="radio" class="form_field" name="agree" class="form_field" value="Y" /> {--YES--}<br />
+ <input type="radio" class="form_field" name="agree" class="form_field" value="N" checked="checked" /> {--NO--}
+ </td>
+ </tr>
+ </table>
</td>
</tr>
<tr>
.register_left {
+ width: 240px;
text-align: right;
- margin-right: 2px;
+ padding: 3px;
color: #000000;
- font-weight: bold;
font-size: 14px;
padding-left: 5px;
}
.register_right {
- padding-right: 5px;
}
.register_left {
+ width: 240px;
text-align: right;
- margin-right: 2px;
- color: #0000AA;
- font-weight: bold;
+ padding: 3px;
+ color: #000000;
font-size: 14px;
}
.register_left {
+ width: 240px;
text-align: right;
- margin-right: 2px;
+ padding: 3px;
color: #880000;
- font-weight: bold;
font-size: 14px;
- padding-left: 5px;
}
.register_right {
.register_left {
- text-align : right;
- align : right;
- margin-right : 2px;
- color : #0000AA;
- font-weight : bold;
+ width: 240px;
+ text-align: right;
+ align: right;
+ padding: 3px;
+ color: #0000AA;
}
.register_right {
}
.register_left {
- text-align : right;
- align : right;
- margin-right : 2px;
- color : #FFFFFF;
- font-weight : bold;
- font-size : 14px;
- padding-left : 5px;
+ width: 240px;
+ text-align: right;
+ align: right;
+ padding: 3px;
+ color: #FFFFFF;
+ font-size: 14px;
}
.register_right {
- padding-right : 5px;
}
.register_header {
}
.register_left {
- text-align : right;
- align : right;
- margin-right : 2px;
- color : #000000;
- font-weight : bold;
- font-size : 14px;
- padding-left : 5px;
+ width: 240px;
+ text-align: right;
+ align: right;
+ padding: 3px;
+ color: #000000;
+ font-size: 14px;
}
.register_right {
- padding-right : 5px;
-}
-
-.register_header {
- text-align : center;
- align : center;
- background-color : #EEEEFF;
- color : #000000;
- font-weight : bold;
- border-top : 1px solid #000000;
- border-bottom : 1px solid #000000;
- height : 25px;
-}
-
-A:hover.register_term {
- background-color : #EEEEFF;
- border-top : 1px solid #000000;
- border-bottom : 1px solid #000000;
-}
-.register_submit {
- border-style : outset;
-}
-
-.register_reset {
- border-style : groove;
- border : solid 1px #000000;
- color : #000000;
-}
-.register_submit {
- color : #000000;
- border-color : #000000;
-}
-
-.register_select {
- border : solid 1px;
- border-color : #000000;
- background-color : #EEEEFF;
-}
-
-.register_failed {
- color : #000000;
-}
-
-.register_snote {
- font-size : 12px;
-}
-
-.register_normal {
- border-style : solid;
- border : solid 1px;
- border-color : #000000;
- padding-right : 5px;
-}
-
-.register_main {
- background-color : #FFFFFF;
- width : 540px;
-}
-
-.register_done2 {
- height : 40px;
- color : #000000;
- background-color : #FFFFFF;
- width : 500px;
-}
-
-.register_title {
- background-color : #EEEEFF;
- text-align : center;
- align : center;
- font-size : 18px;
- padding-left : 5px;
- padding-right : 5px;
-}
-
-.register_seperator {
- height : 7px;
- font-size : 1px;
-}
-
-.register_left {
- text-align : right;
- align : right;
- margin-right : 2px;
- color : #000000;
- font-weight : bold;
- font-size : 14px;
- padding-left : 5px;
-}
-
-.register_right {
- padding-right : 5px;
}
.register_header {
array(bigintval(getRequestParameter('banner'))), __FILE__, __LINE__);
// Do we have the banner?
- if (SQL_NUMROWS($result) == 1) {
+ if (SQL_NUMROWS($result) == 1) {
// Load the URL
$data = SQL_FETCHARRAY($result);