define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "526");
+define('CURR_SVN_REVISION', "527");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
}
// Version number
-$EXT_VERSION = "0.3.4";
+$EXT_VERSION = "0.3.5";
// Version history array (add more with , "0.1" and so on)
-$EXT_VER_HISTORY = array("0.0", "0.1", "0.1.1", "0.1.2", "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");
+$EXT_VER_HISTORY = array("0.0", "0.1", "0.1.1", "0.1.2", "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");
switch ($EXT_LOAD_MODE)
{
case "remove": // Do stuff when removing extension
// SQL commands to run
- $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE what='config_user' OR what='user_contct' LIMIT 2";
+ $SQLs[] = "DELETE LOW_PRIORITY FROM `"._MYSQL_PREFIX."_admin_menu` WHERE `what` IN('config_user','user_contct','list_user_del') LIMIT 3";
+ $SQLs[] = "DROP TABLE IF EXISTS `"._MYSQL_PREFIX."_user_del`";
break;
case "activate": // Do stuff when admin activates this extension
switch ($EXT_VER)
{
case "0.1": // SQL queries for v0.1
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD user_limit INT(7) NOT NULL DEFAULT '20'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `user_limit` INT(7) NOT NULL DEFAULT 20";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Seitenweises Anzeigen der User-Liste ist nun möglich.";
$UPDATE_NOTES = "CSS-Datei kann per Admin-Bereich ein- und ausgeschaltet werden.";
case "0.1.2": // SQL queries for v0.1.2
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD mails_confirmed BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD `mails_confirmed` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Dem Mitglied wird nun angezeigt, wie viele Mails er bestätigt hat. Alle vor dieser Version best. Mails werden leider nicht mehr berücksichtigt! Bitte teilen Sie dies Ihren Mitgliedern mit.";
break;
case "0.1.4": // SQL queries for v0.1.4
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD emails_received BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD `emails_received` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Anzahl empfangener Mails wird angezeigt. <BIG>Diese Anzeige kann fehlerhaft sein, wenn Sie bereits Mitglieder in Ihrem {!MT_WORD!} haben sollen!</BIG>";
break;
case "0.2.1": // SQL queries for v0.2.1
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD user_alpha TINYINT(3) UNSIGNED NOT NULL DEFAULT '10'";
- $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_user','Mitgliederliste','Anzahl Mitglieder pro Seite, Anzahl Buchstaben pro Zeile usw.', 8)";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `user_alpha` TINYINT(3) UNSIGNED NOT NULL DEFAULT 10";
+ $SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_user','Mitgliederliste','Anzahl Mitglieder pro Seite, Anzahl Buchstaben pro Zeile usw.', 8)";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "User-Liste ist konfigurierbar: Anzahl Mitglieder pro Seite und Anzahl Buchstaben pro Zeile; Template-Fehler beseitigt.";
break;
case "0.2.2": // SQL queries for v0.2.2
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE gender gender ENUM('M','F','C') NOT NULL DEFAULT 'M'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` CHANGE `gender` `gender` ENUM('M','F','C') NOT NULL DEFAULT 'M'";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Anrede "Firma" hinzugefügt.";
break;
case "0.2.9": // SQL queries for v0.2.9
- $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','user_contct','Mitglied kontaktieren','Kontaktieren Sie hier Ihre Mitglieder ganz direkt über ein Webformular. Sie brauchen somit kein EMail-Programm mehr starten!', 8)";
+ $SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','user_contct','Mitglied kontaktieren','Kontaktieren Sie hier Ihre Mitglieder ganz direkt über ein Webformular. Sie brauchen somit kein EMail-Programm mehr starten!', 8)";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Admin-Kontaktformular hinzugefügt.";
break;
case "0.3.1": // SQL queries for v0.3.1
- $SQLs[] = "UPDATE "._MYSQL_PREFIX."_admin_menu SET title = 'Mitglieder-Management' WHERE action = 'user' AND (what='' OR what IS NULL) LIMIT 1";
+ $SQLs[] = "UPDATE `"._MYSQL_PREFIX."_admin_menu` SET `title` = 'Mitglieder-Management' WHERE `action`='user' AND (`what`='' OR `what` IS NULL) LIMIT 1";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Verwaltung auf Management umgestellt";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Mitglieder werden per Zufall als Referal-ID ausgewählt, die eine Mindestanzahl an bestätigten Mails haben, wenn die Ref-Id 0 ist.";
break;
+
+ case "0.3.5": // SQL queries for v0.3.5
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD `lock_reason` TINYTEXT";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD `lock_timestamp` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `user_delete_purge` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".($_CONFIG['one_day'] * 30)."";
+ $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','list_user_del','Löschungen auflisten','Listet die Löschungen von Usern auf.', 9)";
+ $SQLs[] = "DROP TABLE IF EXISTS `"._MYSQL_PREFIX."_user_del`";
+ $SQLs[] = "CREATE TABLE `"._MYSQL_PREFIX."_user_del` (
+`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`email` VARCHAR(255) NOT NULL DEFAULT '',
+`surname` VARCHAR(255) NOT NULL DEFAULT '',
+`family` VARCHAR(255) NOT NULL DEFAULT '',
+`joined` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`last_online` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`del_timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
+`del_reason` TINYTEXT,
+INDEX (`userid`),
+PRIMARY KEY(`id`)
+) TYPE=MyISAM COMMENT='List of deleted users'";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Der Sperrgrund wird nun mit abgespeichert und beim Löschen des Users mit ausgesendet.";
+ break;
}
break;
define('ADMIN_RAND_REFID_ENABLED', "Mitglieder per Zufall wählen");
define('ADMIN_RAND_REFID_DISABLED', "Referal-Id 0 verwenden");
define('ADMIN_RANDOM_MIN_CONFIRMED', "Wie viele bestätigte Mails muss ein Mitglied mindestens haben, um per Zufall ausgewählt zu werden?");
-define('EMAILS_RECEIVED', "Emails bereits empfangen");
+define('EMAILS_RECEIVED', "Emails empfangen");
define('MAILS_CONFIRMED', "Emails bestätigt");
+define('RAND_CONFIRMED', "Bestätigt f. Zufalls-Ref");
+define('LOCK_REASON', "Sperrgrund");
+define('LOCK_TIMESTAMP', "Sperrzeitpunkt");
define('MEMBER_MAIL_BONUS_CONFIRMED_ON', "Sie haben diese Bonusmail <span class=\"data\">%s</span> bestätigt.");
define('MEMBER_MAIL_NORMAL_CONFIRMED_ON', "Sie haben diese Klickmail <span class=\"data\">%s</span> bestätigt.");
} else {
// Opps, missing form here
define('__USER_VALUE', "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".$sname." ".$fname."</A>");
- define('__UID_VALUE', $_GET['u_id']);
+ define('__UID' , bigintval($_GET['u_id']));
LOAD_TEMPLATE("admin_add_points");
}
} else {
define('__EMAIL_VALUE', "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".$email."</A>");
define('__EMAIL_LIST' , $OUT);
define('__NUMS_VALUE' , $nums);
- define('__UID_VALUE' , $_GET['u_id']);
+ define('__UID' , bigintval($_GET['u_id']));
// Load final template
LOAD_TEMPLATE("admin_list_links");
if (GET_EXT_VERSION("user") >= "0.3.4") {
// Add it...
$MORE .= ", rand_confirmed";
+
+ // Add lock reason?
+ if (GET_EXT_VERSION("user") >= "0.3.5") {
+ // Add them...
+ $MORE .= ", lock_reason, UNIX_TIMESTAMP(`lock_timestamp`) AS lock_timestamp";
+ } // END - if
} // END - if
// Init unset data (bad that we change $_GET here!)
$DATA['last_profile_sent'] = MAKE_DATETIME($DATA['last_profile_sent'], "0");
$DATA['total'] = TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "points"));
$DATA['locked'] = TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "locked_points"));
+ $DATA['lock_timestamp'] = MAKE_DATETIME($DATA['lock_timestamp'], "2");
// Nickname inclusion?
if (EXT_IS_ACTIVE("nickname")) {
}
} // END - if
- $SQL = "SELECT userid, gender, surname, family, email, REMOTE_ADDR, refid, status, emails_sent, mails_confirmed, emails_received".$MORE." FROM "._MYSQL_PREFIX."_user_data".$whereStatement." ORDER BY ".$_GET['sortby'];
+ // Prepare SQL and run it
+ $SQL = "SELECT userid, gender, surname, family, email, REMOTE_ADDR, refid, status, emails_sent, mails_confirmed, emails_received".$MORE." FROM "._MYSQL_PREFIX."_user_data".$whereStatement." ORDER BY ".SQL_ESCAPE($_GET['sortby']);
$result_master = SQL_QUERY($SQL, __FILE__, __LINE__);
// Calculate page count (0.5 fixes a bug with page count)
define('__NICKNAME_TH', "");
}
+ // Load all users
$SW = 2; $OUT = "";
- while (list($uid, $gender, $sname, $fname, $email, $IP, $ref, $status, $emails_sent, $mails_confirmed, $emails_received, $nick) = SQL_FETCHROW($result)) {
- if ($ref > 0) $ref = ADMIN_USER_PROFILE_LINK($ref);
- $LINKS = GET_TOTAL_DATA($uid, "user_links", "id", "userid", true);
- $SENT = $emails_sent;
- if ($emails_sent > 0) $SENT = $BASE."&what=email_details&u_id=".$uid."\">".TRANSLATE_COMMA($emails_sent)."</A>]";
- if ($LINKS > 0) $LINKS = $BASE."&what=list_links&u_id=".$uid."\">".TRANSLATE_COMMA($LINKS)."</A>]";
+ while ($content = SQL_FETCHARRAY($result)) {
+ // Set refid link
+ if ($content['refid'] > 0) $content['refid'] = ADMIN_USER_PROFILE_LINK($content['refid']);
+
+ // Get number of unconfirmed mails
+ $LINKS = GET_TOTAL_DATA($content['userid'], "user_links", "id", "userid", true);
+ if ($LINKS > 0) $LINKS = $BASE."&what=list_links&u_id=".$content['userid']."\">".TRANSLATE_COMMA($LINKS)."</A>]";
+
+ // Set link to sent mails if present
+ if ($content['emails_sent'] > 0) $content['emails_sent'] = $BASE."&what=email_details&u_id=".$content['userid']."\">".TRANSLATE_COMMA($content['emails_sent'])."</A>]";
// Add nickname
- if (empty($nick) || $nick == $uid) $nick = "---";
+ if (empty($content['nickname']) || $content['nickname'] == $content['userid']) $content['nickname'] = "---";
// Calculate total points
- $pointsTotal = GET_TOTAL_DATA($uid, "user_points", "points") - GET_TOTAL_DATA($uid, "user_data", "used_points");
+ $pointsTotal = GET_TOTAL_DATA($content['userid'], "user_points", "points") - GET_TOTAL_DATA($content['userid'], "user_data", "used_points");
// Clickrate
$clickRate = 0;
- if ($emails_received > 0) {
- $clickRate = $mails_confirmed / $emails_received * 100;
+ if ($content['emails_received'] > 0) {
+ $clickRate = $content['mails_confirmed'] / $content['emails_received'] * 100;
} // END - if
// Transfer data to array
- $content = array(
- 'sw' => $SW,
- 'uid' => ADMIN_USER_PROFILE_LINK($uid),
- 'gender' => TRANSLATE_GENDER($gender),
- 'sname' => $sname,
- 'fname' => $fname,
- 'email' => "[<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".$email."</A>]",
- 'addr' => $IP,
- 'ref' => $ref,
- 'status' => TRANSLATE_STATUS($status),
- 'links' => $LINKS,
- 'nick' => $nick,
- 'alinks' => MEMBER_ACTION_LINKS($uid, $status),
- 'points' => TRANSLATE_COMMA($pointsTotal),
- 'sent' => $SENT,
- 'rate' => TRANSLATE_COMMA($clickRate),
- 'locked' => TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "locked_points"))
- );
+ $content['sw'] = $SW;
+ $content['uid'] = ADMIN_USER_PROFILE_LINK($content['userid']);
+ $content['gender'] = TRANSLATE_GENDER($content['gender']);
+ $content['email'] = "[<A href=\"".CREATE_EMAIL_LINK($content['email'], "user_data")."\">".$content['email']."</A>]";
+ $content['addr'] = $content['REMOTE_ADDR'];
+ $content['status'] = TRANSLATE_STATUS($content['status']);
+ $content['links'] = $LINKS;
+ $content['alinks'] = MEMBER_ACTION_LINKS($content['userid'], $content['status']);
+ $content['points'] = TRANSLATE_COMMA($pointsTotal);
+ $content['rate'] = TRANSLATE_COMMA($clickRate);
+ $content['locked'] = TRANSLATE_COMMA(GET_TOTAL_DATA($content['userid'], "user_points", "locked_points"));
+ $content['lock_timestamp'] = MAKE_DATETIME($content['lock_timestamp'], "2");
// Load row template and switch colors
$OUT .= LOAD_TEMPLATE("admin_list_user_row", true, $content);
// Add description as navigation point
ADD_DESCR("admin", __FILE__);
-if (!empty($_GET['u_id']))
-{
+// Is a userid set?
+if (!empty($_GET['u_id'])) {
+ // Load user's data
$result_user = SQL_QUERY_ESC("SELECT status, gender, surname, family, email FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
$ACT = false;
- if (SQL_NUMROWS($result_user) == 1)
- {
+ if (SQL_NUMROWS($result_user) == 1) {
// User found
list($status, $gender, $sname, $fname, $email) = SQL_FETCHROW($result_user);
+
+ // Free result
SQL_FREERESULT($result_user);
- if (empty($_GET['u_id']))
- {
- // Output selection form with all confirmed user accounts listed
- ADD_MEMBER_SELECTION_BOX();
- } elseif (!empty($_POST['lock'])) {
+
+ // Is a lock reason set?
+ if ((!empty($_POST['lock'])) && ($status != "LOCKED")) {
// Ok, lock the account!
- $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET status='LOCKED' WHERE userid=%s LIMIT 1",
- array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
- if (SQL_AFFECTEDROWS() == 1)
- {
+ if (GET_EXT_VERSION("user") >= "0.3.5") {
+ // Lock with reason
+ $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET status='LOCKED',lock_reason='%s',lock_timestamp=NOW() WHERE userid=%s LIMIT 1",
+ array($_POST['reason'], bigintval($_GET['u_id'])), __FILE__, __LINE__);
+ } else {
+ // Lock with no lock reason saved
+ $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET status='LOCKED' WHERE userid=%s LIMIT 1",
+ array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
+ }
+
+ // Entry updated?
+ if (SQL_AFFECTEDROWS() == 1) {
// Send an email to the user! In later version you can optionally switch this feature off
$msg = LOAD_EMAIL_TEMPLATE("lock-user", array('text' => $_POST['reason']), bigintval($_GET['u_id']));
// Send away...
SEND_EMAIL(bigintval($_GET['u_id']), ADMIN_LOCKED_SUBJ, $msg);
- }
+ } // END - if
// Prepare message
$MSG = USER_ACCOUNT_LOCKED_1.$_GET['u_id'].USER_ACCOUNT_LOCKED_2;
$ACT = true;
- } elseif (!empty($_POST['unlock'])) {
+ } elseif ((!empty($_POST['unlock'])) && ($status == "LOCKED")) {
// Ok, unlock the account!
- $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET status='CONFIRMED' WHERE userid=%s LIMIT 1",
- array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
- if (SQL_AFFECTEDROWS() == 1)
- {
+ if (GET_EXT_VERSION("user") >= "0.3.5") {
+ // Reset lock reason as well
+ $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET status='CONFIRMED',lock_reason='',lock_timestamp='0000-00-00 00:00' WHERE userid=%s LIMIT 1",
+ array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
+ } else {
+ // No lock reason to reset
+ $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET status='CONFIRMED' WHERE userid=%s LIMIT 1",
+ array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
+ }
+
+ // Entry updated?
+ if (SQL_AFFECTEDROWS() == 1) {
// Send an email to the user! In later version you can optionally switch this feature off
$msg = LOAD_EMAIL_TEMPLATE("unlock-user", array('text' => $_POST['reason']), bigintval($_GET['u_id']));
// Send away...
SEND_EMAIL(bigintval($_GET['u_id']), ADMIN_UNLOCKED_SUBJ, $msg);
- if (EXT_IS_ACTIVE("rallye"))
- {
+ if (EXT_IS_ACTIVE("rallye")) {
RALLYE_AUTOADD_USER($_GET['u_id']);
- }
- }
+ } // END - if
+ } // END - if
// Prepare message
$MSG = USER_ACCOUNT_UNLOCKED_1.$_GET['u_id'].USER_ACCOUNT_UNLOCKED_2;
$ACT = true;
- }
- elseif (isset($_POST['del']))
- {
+ } elseif (isset($_POST['del'])) {
// Delete the account
$ACT = true;
require_once(PATH."inc/modules/admin/what-del_user.php");
- }
- elseif (!empty($_POST['no']))
- {
+ } elseif (!empty($_POST['no'])) {
// Do not lock him...
- $URL = URL."/modules.php?module=admin&what=list_user&u_id=".$_GET['u_id'];
- }
- else
- {
+ $URL = URL."/modules.php?module=admin&what=list_user&u_id=".bigintval($_GET['u_id']);
+ } else {
$result = SQL_QUERY_ESC("SELECT email, surname, family FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
- array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
- if (SQL_NUMROWS($result) == 1)
- {
+ array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
+
+ // Entry found?
+ if (SQL_NUMROWS($result) == 1) {
// Load data
list ($email, $sname, $fname) = SQL_FETCHROW($result);
+
+ // Free result
SQL_FREERESULT($result);
// Transfer data to constants for the template
define('__EMAIL', CREATE_EMAIL_LINK($email, "user_data"));
define('__SNAME', $sname);
define('__FNAME', $fname);
- define('__UID' , $_GET['u_id']);
-
- // Transfer data to constants for the template
- define('__UID_VALUE', $_GET['u_id']);
+ define('__UID' , bigintval($_GET['u_id']));
// Realy want to lock?
switch ($status)
{
case "CONFIRMED": // Yes, lock him down... ;-)
define('__OK_VALUE' , "lock");
- define('__HEADER_VALUE', ADMIN_HEADER_LOCK_ACCOUNT_1.__UID_VALUE.ADMIN_HEADER_LOCK_ACCOUNT_2);
- define('__TEXT_VALUE' , ADMIN_TEXT_LOCK_ACCOUNT_1.__UID_VALUE.ADMIN_TEXT_LOCK_ACCOUNT_2);
+ define('__HEADER_VALUE', ADMIN_HEADER_LOCK_ACCOUNT_1.__UID.ADMIN_HEADER_LOCK_ACCOUNT_2);
+ define('__TEXT_VALUE' , ADMIN_TEXT_LOCK_ACCOUNT_1.__UID.ADMIN_TEXT_LOCK_ACCOUNT_2);
break;
case "LOCKED": // Unlock the user
define('__OK_VALUE' , "unlock");
- define('__HEADER_VALUE', ADMIN_HEADER_UNLOCK_ACCOUNT_1.__UID_VALUE.ADMIN_HEADER_UNLOCK_ACCOUNT_2);
- define('__TEXT_VALUE' , ADMIN_TEXT_UNLOCK_ACCOUNT_1.__UID_VALUE.ADMIN_TEXT_UNLOCK_ACCOUNT_2);
+ define('__HEADER_VALUE', ADMIN_HEADER_UNLOCK_ACCOUNT_1.__UID.ADMIN_HEADER_UNLOCK_ACCOUNT_2);
+ define('__TEXT_VALUE' , ADMIN_TEXT_UNLOCK_ACCOUNT_1.__UID.ADMIN_TEXT_UNLOCK_ACCOUNT_2);
break;
case "UNCONFIRMED": // Unconfirmed accounts cannot be unlocked!
define('__OK_VALUE' , "del");
- define('__HEADER_VALUE', ADMIN_HEADER_DEL_ACCOUNT_1.__UID_VALUE.ADMIN_HEADER_DEL_ACCOUNT_2);
- define('__TEXT_VALUE' , ADMIN_TEXT_DEL_ACCOUNT_1.__UID_VALUE.ADMIN_TEXT_DEL_ACCOUNT_2);
+ define('__HEADER_VALUE', ADMIN_HEADER_DEL_ACCOUNT_1.__UID.ADMIN_HEADER_DEL_ACCOUNT_2);
+ define('__TEXT_VALUE' , ADMIN_TEXT_DEL_ACCOUNT_1.__UID.ADMIN_TEXT_DEL_ACCOUNT_2);
break;
}
// Output form
LOAD_TEMPLATE("admin_lock_user");
- }
- else
- {
+ } else {
// Account does not exists!
OUTPUT_HTML("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
}
}
- if (!empty($URL))
- {
+
+ // Is an URL set?
+ if (!empty($URL)) {
// Reload and die...
LOAD_URL($URL);
- }
- elseif ($ACT)
- {
+ } elseif ($ACT) {
// An action was performed...
- if (!empty($MSG))
- {
+ if (!empty($MSG)) {
LOAD_TEMPLATE("admin_settings_saved", false, "<STRONG class=\"admin_green\">".$MSG."</STRONG>");
- }
- else
- {
+ } else {
LOAD_TEMPLATE("admin_settings_saved", false, "<STRONG class=\"admin_green\">".ADMIN_USER_UPDATED."</STRONG>");
}
}
- }
- else
- {
+ } else {
// Account does not exists!
OUTPUT_HTML("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
}
{
// Opps, missing form here
define('__USER_VALUE', "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".$sname." ".$fname."</A>");
- define('__UID_VALUE', $_GET['u_id']);
+ define('__UID', bigintval($_GET['u_id']));
LOAD_TEMPLATE("admin_sub_points");
}
}
SQL_FREERESULT($result);
}
-if ((isset($_POST['ok'])) && (!$FAILED))
-{
- // Save the registration
+if ((isset($_POST['ok'])) && (!$FAILED)) {
+ // Prepapre month and day of birth
if (strlen($_POST['day']) == 1) $_POST['day'] = "0".$_POST['day'];
if (strlen($_POST['month']) == 1) $_POST['month'] = "0".$_POST['month'];
- // Get total users
- $totalUsers = GET_TOTAL_DATA("CONFIRMED", "user_data", "userid", "status", true);
+ // Get total ...
+ // ... confirmed, ...
+ $confirmedUsers = GET_TOTAL_DATA("CONFIRMED", "user_data", "userid", "status", true);
+ // ... unconfirmed ...
+ $unconfirmedUsers = GET_TOTAL_DATA("UNCONFIRMED", "user_data", "userid", "status", true);
+ // ... and locked users!
+ $lockedUsers = GET_TOTAL_DATA("LOCKED", "user_data", "userid", "status", true);
- // Hash = MM-DD-YYYY:IP:USER_AGENT:TIMEMARK
- $hash = generateHash(sha1($totalUsers.":".$_POST['month']."-".$_POST['day']."-".$_POST['year'].":".getenv('SERVER_NAME').":".GET_REMOTE_ADDR().":".GET_USER_AGENT()."-".time())."/".RAND_NUMBER);
+ // Generate hash which will be inserted into confirmation mail
+ $hash = generateHash(sha1($confirmedUsers.":".$unconfirmedUsers.":".$lockedUsers.":".$_POST['month']."-".$_POST['day']."-".$_POST['year'].":".getenv('SERVER_NAME').":".GET_REMOTE_ADDR().":".GET_USER_AGENT()."/".SITE_KEY."/".DATE_KEY."/".RAND_NUMBER));
// Add design when extension sql_patches is v0.2.7 or greater
$ADD1 = ""; $ADD2 = "";
// Calculate sum (default) or count records of given criteria
function GET_TOTAL_DATA ($search, $tableName, $lookFor, $whereStatement="userid", $onlyRows=false, $add="") {
$ret = 0;
+ //* DEBUG: */ echo $search."/".$tableName."/".$lookFor."/".$whereStatement."/".$add."<br />\n";
if (($onlyRows) || ($lookFor == "userid")) {
// Count rows
+ //* DEBUG: */ echo "COUNT!<br />\n";
$result = SQL_QUERY_ESC("SELECT COUNT(`%s`) FROM `"._MYSQL_PREFIX."_%s` WHERE `%s`='%s'".$add,
array($lookFor, $tableName, $whereStatement, $search), __FILE__, __LINE__);
} else {
// Add all rows
+ //* DEBUG: */ echo "SUM!<br />\n";
$result = SQL_QUERY_ESC("SELECT SUM(`%s`) FROM `"._MYSQL_PREFIX."_%s` WHERE `%s`='%s'".$add,
array($lookFor, $tableName, $whereStatement, $search), __FILE__, __LINE__);
}
// Fix empty values
if ((empty($ret)) && ($lookFor != "counter") && ($lookFor != "id") && ($lookFor != "userid")) {
+ // Float number
$ret = "0.00000";
- } // END - if
+ } elseif ("".$ret."" == "") {
+ // Fix empty result
+ $ret = "0";
+ }
// Return value
return $ret;
-
-<FORM
- action="{!URL!}/modules.php?module=admin&what=add_points&u_id={!__UID_VALUE!}"
- method="POST" style="margin-bottom: 0px">
+<FORM action="{!URL!}/modules.php?module=admin&what=add_points&u_id={!__UID!}" method="POST" style="margin-bottom: 0px">
<TABLE border="0" cellspacing="0" cellpadding="0" width="500"
align="center" class="admin_table dashed">
<TR>
</div>
<div class="admin_title top2" style="padding-top:3px;padding-bottom:3px">
- <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<input type="submit" class="admin_submit" name="add" value="{--ADMIN_SURFBAR_ADD_URL--}" />
</div>
</div>
<TD colspan="3" class="bottom2 seperator" height="5"> </TD>
</TR>
<TR>
- <TD colspan="3" class="admin_footer"><INPUT
- type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> <INPUT
- type="submit" name="ok" class="admin_submit"
- value="{--SAVE_SETTINGS--}" /></TD>
+ <TD colspan="3" class="admin_footer">
+ <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
+ <INPUT type="submit" class="admin_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ </TD>
</TR>
</TABLE>
</FORM>
\ No newline at end of file
</TR>
<TR>
<TD colspan="3" class="admin_footer">
- <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<INPUT type="submit" name="ok" class="admin_submit" value="{--SAVE_SETTINGS--}" />
</TD>
</TR>
<TR><TD colspan="2" class="bottom2 seperator" height="5"> </TD></TR>
<TR>
<TD colspan="2" class="admin_footer">
- <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<INPUT type="submit" name="ok" class="admin_submit" value="{--SAVE_SETTINGS--}" />
</TD>
</TR>
<tr><td colspan="2" class="bottom2 seperator" height="5"> </td></tr>
<tr>
<td colspan="2" class="admin_footer">
- <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<input type="submit" name="ok" class="admin_submit" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
<tr><td colspan="2" class="bottom2 seperator" height="5"> </td></tr>
<tr>
<td colspan="2" class="admin_footer">
- <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<input type="submit" name="ok" class="admin_submit" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
<tr><td height="3" colspan="2" class="seperator bottom2"> </td></tr>
<tr>
<td colspan="2" class="admin_footer">
- <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<input type="submit" name="ok" class="admin_submit" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
<tr><td colspan="2" class="bottom2 seperator" height="5"> </td></tr>
<tr>
<td colspan="2" class="admin_footer">
- <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<input type="submit" name="ok" class="admin_submit" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</TR>
<TR>
<TD class="admin_footer">
- <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<INPUT type="submit" name="ok" class="admin_submit" value="{--CONTACT_USER--}" />
</TD>
</TR>
{!__CAT_ROWS!}
<TR>
<TD align="center" colspan="3" class="admin_footer">
- <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<INPUT type="submit" name="ok" class="admin_submit" value="{--CHANGE_CATS--}" />
</TD>
</TR>
<TABLE border="0" cellspacing="0" cellpadding="0" width="500" align="center" class="admin_table dashed">
<TR>
- <TD colspan="4" align="center" class="admin_header bottom2"
- height="40"><STRONG><A
- href="{!URL!}/modules.php?module=admin&what=list_user&u_id={!__UID_VALUE!}">{!__SNAME_VALUE!}
- {!__FNAME_VALUE!}</A></STRONG> ({!__EMAIL_VALUE!}):</TD>
+ <TD colspan="4" align="center" class="admin_header bottom2" height="40">
+ <STRONG><A href="{!URL!}/modules.php?module=admin&what=list_user&u_id={!__UID!}">{!__SNAME_VALUE!} {!__FNAME_VALUE!}</A></STRONG> ({!__EMAIL_VALUE!}):
+ </TD>
</TR>
{!__EMAIL_LIST!}
<TR>
<TD colspan="4" height="40" class="admin_header" align="center">
- {--MEMBER_TOTAL_LINKS_1--}{!__NUMS_VALUE!}{--MEMBER_TOTAL_LINKS_2--}<BR />
- <A
- href="{!URL!}/modules.php?module=admin&what=list_links&u_id={!__UID_VALUE!}&del=all"
- onclick="return confirm('{--ADMIN_REALLY_DELETE_ALL_MAILS--}')">{--ADMIN_DEL_UNCONFIRMED_LINKS--}</A>
+ {--MEMBER_TOTAL_LINKS_1--}{!__NUMS_VALUE!}{--MEMBER_TOTAL_LINKS_2--}<BR />
+ <A href="{!URL!}/modules.php?module=admin&what=list_links&u_id={!__UID!}&del=all" onclick="return confirm('{--ADMIN_REALLY_DELETE_ALL_MAILS--}')">{--ADMIN_DEL_UNCONFIRMED_LINKS--}</A>
</TD>
</TR>
-</TABLE>
\ No newline at end of file
+</TABLE>
<TD width="5" class="switch_sw$content[sw] seperator bottom2"> </TD>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">$content[uid]</TD>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">$content[gender]</TD>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]">$content[sname]</TD>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]">$content[fname]</TD>
- <TD align="center" class="bottom2 switch_sw$content[sw]">$content[nick]</TD>
+ <TD align="center" class="bottom2 right2 switch_sw$content[sw]">$content[surname]</TD>
+ <TD align="center" class="bottom2 right2 switch_sw$content[sw]">$content[family]</TD>
+ <TD align="center" class="bottom2 switch_sw$content[sw]">$content[nickname]</TD>
</TR>
<TR>
<TD width="5" class="switch_sw$content[sw] seperator"> </TD>
<TD class="switch_sw$content[sw] seperator bottom2" width="5"> </TD>
<TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[email]</TD>
<TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[addr]</TD>
- <TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[ref]</TD>
+ <TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[refid]</TD>
<TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[status]</TD>
<TD align="center" class="switch_sw$content[sw] bottom2">$content[links]</TD>
</TR>
<TR>
<TD class="switch_sw$content[sw] seperator bottom2" width="5"> </TD>
<TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[points] {!POINTS!}</TD>
- <TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[sent]</TD>
+ <TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[emails_sent]</TD>
<TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[rate]%</TD>
<TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[locked] {!POINTS!}</TD>
<TD align="center" class="switch_sw$content[sw] bottom2">---</TD>
</TR>
+<TR>
+ <TD width="5" class="switch_sw$content[sw] seperator"> </TD>
+ <TD align="center" class="right2 switch_sw$content[sw]"><STRONG>{--LOCK_REASON--}:</STRONG></TD>
+ <TD align="center" class="right2 switch_sw$content[sw]"><STRONG>{--LOCK_TIMESTAMP--}:</STRONG></TD>
+ <TD align="center" class="right2 switch_sw$content[sw]"><STRONG>{--__UNUSED--}:</STRONG></TD>
+ <TD align="center" class="right2 switch_sw$content[sw]"><STRONG>{--__UNUSED--}:</STRONG></TD>
+ <TD align="center" class="switch_sw$content[sw]"><STRONG>{--__UNUSED--}:</STRONG></TD>
+</TR>
+<TR>
+ <TD class="switch_sw$content[sw] seperator bottom2" width="5"> </TD>
+ <TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[lock_reason]</TD>
+ <TD align="center" class="right2 switch_sw$content[sw] bottom2">$content[lock_timestamp]</TD>
+ <TD align="center" class="right2 switch_sw$content[sw] bottom2">---</TD>
+ <TD align="center" class="right2 switch_sw$content[sw] bottom2">---</TD>
+ <TD align="center" class="switch_sw$content[sw] bottom2">---</TD>
+</TR>
<TR>
<TD height="22" colspan="6" class="admin_title">$content[alinks]</TD>
</TR>
<TR><TD height="5" class="seperator bottom2"> </TD></TR>
<TR>
<TD class="admin_footer">
- <INPUT type="submit" name="no" class="admin_no" value="{--NO--}" /> *
+ <INPUT type="submit" name="no" class="admin_no" value="{--NO--}" />
<INPUT type="submit" name="ok" class="admin_yes" value="{--YES--}" />
</TD>
</TR>
$content
<tr>
<td class="admin_footer" colspan="5">
- <input type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}" /> *
+ <input type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}" />
<input type="submit" name="do_lock" class="admin_lock" value="{--ADMIN_SURFBAR_LOCK_URL_NOW--}" />
</td>
</tr>
<FORM
- action="{!URL!}/modules.php?module=admin&what=lock_user&u_id={!__UID_VALUE!}"
+ action="{!URL!}/modules.php?module=admin&what=lock_user&u_id={!__UID!}"
method="POST">
<TABLE border="0" cellspacing="0" cellpadding="0" width="500"
align="center" class="admin_table dashed">
</TR>
<TR>
<TD align="center" colspan="2">
- <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<INPUT type="submit" class="admin_submit submit" name="ok" value="{--ADMIN_REG_SUBMIT--}" />
</TD>
</TR>
</TR>
<TR>
<TD class="admin_footer" colspan="2">
- <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<INPUT type="submit" name="send_link" class="admin_submit" value="{--ADMIN_RESET_PASS_SUBMIT--}" />
</TD>
</TR>
<TD class="admin_footer" colspan="2">
<INPUT type="hidden" name="hash" value="$content[hash]" />
<INPUT type="hidden" name="login" value="$content[login]" />
- <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<INPUT type="submit" name="reset_pass" class="admin_submit" value="{--ADMIN_RESET_PASSWORD_SUBMIT--}" />
</TD>
</TR>
</TR>
<TR>
<TD class="admin_footer" colspan="2">
- <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<INPUT type="submit" name="send_link" class="admin_submit" value="{--ADMIN_SEND_RESET_LINK_SUBMIT--}" />
</TD>
</TR>
<tr><td colspan="2" class="seperator bottom2" height="10"> </td></tr>
<tr>
<td colspan="2" align="center" class="admin_footer">
- <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<input type="submit" name="sent" class="admin_submit" value="{--ADMIN_SEND_MAIL--}" />
</td>
</tr>
-<FORM
- action="{!URL!}/modules.php?module=admin&what=sub_points&u_id={!__UID_VALUE!}"
- method="POST">
+<FORM action="{!URL!}/modules.php?module=admin&what=sub_points&u_id={!__UID!}" method="POST">
<TABLE border="0" cellspacing="0" cellpadding="0" width="500"
align="center" class="admin_table dashed">
<TR>
$content
<tr>
<td class="admin_footer" colspan="4">
- <input type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}" /> *
+ <input type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}" />
<input type="submit" name="do_undelete" class="admin_lock" value="{--ADMIN_SURFBAR_UNDELETE_URL_NOW--}" />
</td>
</tr>
-<TABLE border="0" cellspacing="0" cellpadding="0" width="99%"
- align="center" class="admin_table dashed">
- <TR>
- <TD colspan="5" class="admin_title" align="center"
- style="height: 30px"><STRONG class="admin_green big">{--_UID--}
- $content</STRONG></TD>
- </TR>
- <TR>
- <TD align="center" width="20%" class="top right">{--GENDER--}:<BR />
- <STRONG>$DATA[gender]</STRONG></TD>
- <TD align="center" width="20%" class="top right">{--SURNAME--}:<BR />
- <STRONG>$DATA[surname]</STRONG></TD>
- <TD align="center" width="20%" class="top right">{--FAMILY_NAME--}:<BR />
- <STRONG>$DATA[family]</STRONG></TD>
- <TD align="center" width="20%" class="top right">{--STREET_NR--}:<BR />
- <STRONG>$DATA[street_nr]</STRONG></TD>
- <TD align="center" width="20%" class="top">{--BIRTHDAY2--}:<BR />
- <STRONG>{!_BIRTHDAY!}</STRONG></TD>
- </TR>
- <TR>
- <TD align="center" class="top right">{--COUNTRY--}:<BR />
- <STRONG>$DATA[country]</STRONG></TD>
- <TD align="center" class="top right">{--ZIP--}:<BR />
- <STRONG>$DATA[zip]</STRONG></TD>
- <TD align="center" class="top right">{--CITY--}:<BR />
- <STRONG>$DATA[city]</STRONG></TD>
- <TD align="center" class="top right">{--ADDY--}:<BR />
- <STRONG><A href="$DATA[email_link]">$DATA[email]</A></TD>
- <TD align="center" class="top">{--ACCOUNT_STATUS--}:<BR />
- <STRONG>$DATA[status]</STRONG></TD>
- </TR>
- <TR>
- <TD align="center" class="top right">{--RECEIVE_MAILS--}:<BR />
- <STRONG>$DATA[receive_mails]</STRONG></TD>
- <TD align="center" class="top right">{--MAX_PER_DAY--}:<BR />
- <STRONG>$DATA[max_mails]</TD>
- <TD align="center" class="top right">{--REF_UID--}:<BR />
- <STRONG>$DATA[refid]</STRONG></TD>
- <TD align="center" class="top right">{--REF_CLICKS--}:<BR />
- <STRONG>$DATA[ref_clicks]</STRONG></TD>
- <TD align="center" class="top">{--TOTAL_LOGINS--}:<BR />
- <STRONG>$DATA[total_logins]</STRONG></TD>
- </TR>
- <TR>
- <TD align="center" class="top right">{--REMOTE_IP--}:<BR />
- <STRONG>$DATA[REMOTE_ADDR]</STRONG></TD>
- <TD align="center" class="top right">{--ADMIN_LAST_ONLINE--}:<BR />
- <STRONG>$DATA[last_online]</STRONG></TD>
- <TD align="center" class="top right">{--ADMIN_LAST_MODULE--}:<BR />
- <STRONG>$DATA[last_module]</STRONG></TD>
- <TD align="center" class="top right">{--HAS_JOINED--}:<BR />
- <STRONG>$DATA[joined]</STRONG></TD>
- <TD align="center" class="top">{--MAILS_SENT--}:<BR />
- <STRONG>$DATA[emails_sent]</STRONG></TD>
- </TR>
- <TR>
- <TD align="center" class="top right">{--USED_POINTS--}:<BR />
- <STRONG>$DATA[used_points]</STRONG></TD>
- <TD align="center" class="top right">{--TOTAL_POINTS--}:<BR />
- <STRONG>$DATA[total]</STRONG></TD>
- <TD align="center" class="top right">{--TOTAL_REFERRALS--}:<BR />
- <STRONG>{!_REFS!}</STRONG></TD>
- <TD align="center" class="top right">{--TOTAL_CATS--}:<BR />
- <STRONG>{!_CATS!}</STRONG></TD>
- <TD align="center" class="top">{--UNCONFIRMED_LINKS--}:<BR />
- <STRONG>{!_LINKS!}</STRONG></TD>
- </TR>
- <TR>
- <TD align="center" class="top right">{--LOCKED_POINTS--}:<BR />
- <STRONG>$DATA[locked]</STRONG></TD>
- <TD align="center" class="top right">{--LAST_UPDATE--}:<BR />
- <STRONG>$DATA[last_update]</STRONG></TD>
- <TD align="center" class="top right">{--LAST_PROFILE_SENT--}:<BR />
- <STRONG>$DATA[last_profile_sent]</STRONG></TD>
- <TD align="center" class="top right">{--USER_REF_PAYOUT--}:<BR />
- <STRONG>$DATA[ref_payout]</STRONG></TD>
- <TD align="center" class="top">{--USER_NICKNAME--}:<BR />
- <STRONG>$DATA[nickname]</STRONG></TD>
- </TR>
- <TR>
- <TD align="center" class="top right">{--CLICK_RATE--}:<BR />
- <STRONG>$DATA[click_rate]%</STRONG></TD>
- <TD align="center" class="top right">{--EMAILS_RECEIVED--}:<BR />
- <STRONG>$DATA[emails_received]</STRONG></TD>
- <TD align="center" class="top right">{--MAILS_CONFIRMED--}:<BR />
- <STRONG>$DATA[mails_confirmed]</STRONG></TD>
- <TD align="center" class="top right">{--RAND_CONFIRMED--}:<BR />
- <STRONG>$DATA[rand_confirmed]</STRONG></TD>
- <TD align="center" class="top">{--__UNUSED--}:<BR />
- <STRONG>---</STRONG></TD>
- </TR>
- <TR>
- <TD align="center" class="admin_footer top" colspan="5">
- <STRONG>{--ADMIN_MEMBER_FUNCTIONS--}:</STRONG><BR />
- {!_ADMIN_LINKS!}</TD>
- </TR>
-</TABLE>
\ No newline at end of file
+<table border="0" cellspacing="0" cellpadding="0" width="99%" align="center" class="admin_table dashed">
+ <tr>
+ <td colspan="5" class="admin_title" align="center"
+ style="height: 30px"><strong class="admin_green big">{--_UID--}
+ $content</strong></td>
+ </tr>
+ <tr>
+ <td align="center" width="20%" class="top right">{--GENDER--}:<br />
+ <strong>$DATA[gender]</strong></td>
+ <td align="center" width="20%" class="top right">{--SURNAME--}:<br />
+ <strong>$DATA[surname]</strong></td>
+ <td align="center" width="20%" class="top right">{--FAMILY_NAME--}:<br />
+ <strong>$DATA[family]</strong></td>
+ <td align="center" width="20%" class="top right">{--STREET_NR--}:<br />
+ <strong>$DATA[street_nr]</strong></td>
+ <td align="center" width="20%" class="top">{--BIRTHDAY2--}:<br />
+ <strong>{!_BIRTHDAY!}</strong></td>
+ </tr>
+ <tr>
+ <td align="center" class="top right">{--COUNTRY--}:<br />
+ <strong>$DATA[country]</strong></td>
+ <td align="center" class="top right">{--ZIP--}:<br />
+ <strong>$DATA[zip]</strong></td>
+ <td align="center" class="top right">{--CITY--}:<br />
+ <strong>$DATA[city]</strong></td>
+ <td align="center" class="top right">{--ADDY--}:<br />
+ <strong><a href="$DATA[email_link]">$DATA[email]</a></td>
+ <td align="center" class="top">{--ACCOUNT_STATUS--}:<br />
+ <strong>$DATA[status]</strong></td>
+ </tr>
+ <tr>
+ <td align="center" class="top right">{--RECEIVE_MAILS--}:<br />
+ <strong>$DATA[receive_mails]</strong></td>
+ <td align="center" class="top right">{--MAX_PER_DAY--}:<br />
+ <strong>$DATA[max_mails]</td>
+ <td align="center" class="top right">{--REF_UID--}:<br />
+ <strong>$DATA[refid]</strong></td>
+ <td align="center" class="top right">{--REF_CLICKS--}:<br />
+ <strong>$DATA[ref_clicks]</strong></td>
+ <td align="center" class="top">{--TOTAL_LOGINS--}:<br />
+ <strong>$DATA[total_logins]</strong></td>
+ </tr>
+ <tr>
+ <td align="center" class="top right">{--REMOTE_IP--}:<br />
+ <strong>$DATA[REMOTE_ADDR]</strong></td>
+ <td align="center" class="top right">{--ADMIN_LAST_ONLINE--}:<br />
+ <strong>$DATA[last_online]</strong></td>
+ <td align="center" class="top right">{--ADMIN_LAST_MODULE--}:<br />
+ <strong>$DATA[last_module]</strong></td>
+ <td align="center" class="top right">{--HAS_JOINED--}:<br />
+ <strong>$DATA[joined]</strong></td>
+ <td align="center" class="top">{--MAILS_SENT--}:<br />
+ <strong>$DATA[emails_sent]</strong></td>
+ </tr>
+ <tr>
+ <td align="center" class="top right">{--USED_POINTS--}:<br />
+ <strong>$DATA[used_points]</strong></td>
+ <td align="center" class="top right">{--TOTAL_POINTS--}:<br />
+ <strong>$DATA[total]</strong></td>
+ <td align="center" class="top right">{--TOTAL_REFERRALS--}:<br />
+ <strong>{!_REFS!}</strong></td>
+ <td align="center" class="top right">{--TOTAL_CATS--}:<br />
+ <strong>{!_CATS!}</strong></td>
+ <td align="center" class="top">{--UNCONFIRMED_LINKS--}:<br />
+ <strong>{!_LINKS!}</strong></td>
+ </tr>
+ <tr>
+ <td align="center" class="top right">{--LOCKED_POINTS--}:<br />
+ <strong>$DATA[locked]</strong></td>
+ <td align="center" class="top right">{--LAST_UPDATE--}:<br />
+ <strong>$DATA[last_update]</strong></td>
+ <td align="center" class="top right">{--LAST_PROFILE_SENT--}:<br />
+ <strong>$DATA[last_profile_sent]</strong></td>
+ <td align="center" class="top right">{--USER_REF_PAYOUT--}:<br />
+ <strong>$DATA[ref_payout]</strong></td>
+ <td align="center" class="top">{--USER_NICKNAME--}:<br />
+ <strong>$DATA[nickname]</strong></td>
+ </tr>
+ <tr>
+ <td align="center" class="top right">{--CLICK_RATE--}:<br />
+ <strong>$DATA[click_rate]%</strong></td>
+ <td align="center" class="top right">{--EMAILS_RECEIVED--}:<br />
+ <strong>$DATA[emails_received]</strong></td>
+ <td align="center" class="top right">{--MAILS_CONFIRMED--}:<br />
+ <strong>$DATA[mails_confirmed]</strong></td>
+ <td align="center" class="top right">{--RAND_CONFIRMED--}:<br />
+ <strong>$DATA[rand_confirmed]</strong></td>
+ <td align="center" class="top">{--__UNUSED--}:<br />
+ <strong>---</strong></td>
+ </tr>
+ <tr>
+ <td align="center" class="top right">{--LOCK_REASON--}:<br />
+ <strong>$DATA[lock_reason]</strong></td>
+ <td align="center" class="top right">{--LOCK_TIMESTAMP--}:<br />
+ <strong>$DATA[lock_timestamp]</strong></td>
+ <td align="center" class="top right">{--__UNUSED--}:<br />
+ <strong>---</strong></td>
+ <td align="center" class="top right">{--__UNUSED--}:<br />
+ <strong>---</strong></td>
+ <td align="center" class="top">{--__UNUSED--}:<br />
+ <strong>---</strong></td>
+ </tr>
+ <tr>
+ <td align="center" class="admin_footer top" colspan="5">
+ <strong>{--ADMIN_MEMBER_FUNCTIONS--}:</strong><br />
+ {!_ADMIN_LINKS!}
+ </td>
+ </tr>
+</table>
<TR>
<TD class="admin_footer" colspan="2">
<INPUT type="hidden" name="hash" value="$content" />
- <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<INPUT type="submit" name="validate_hash" class="admin_submit" value="{--ADMIN_VALIDATE_HASH_SUBMIT--}" />
</TD>
</TR>
</TR>
<TR>
<TD colspan="3" align="center" class="member_footer">
- <INPUT type="reset" class="member_reset" value="{--CLEAR_FORM--}" /> *
+ <INPUT type="reset" class="member_reset" value="{--CLEAR_FORM--}" />
<INPUT type="submit" name="stop" class="member_submit" value="{--HOLIDAY_STOP--}" />
</TD>
</TR>
Ihr $username
</PRE></DIV>
<HR noshade width="400">
- <INPUT type="reset" class="member_reset" value="Nochmal eingeben"><BIG> *</BIG>
+ <INPUT type="reset" class="member_reset" value="Nochmal eingeben"><BIG></BIG>
<INPUT type="submit" class="member_submit" name="ok"
value="Abschicken"></TD>
</TR>
</div>
<div class="member_title2 top2" style="padding-top:5px;padding-bottom:5px">
- <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" />
<input type="submit" class="member_submit" name="ok" value="{--MEMBER_SURFBAR_ADD_URL--}" />
</div>
</div>
</div>
<div class="member_title2 top2" style="padding-top:5px;padding-bottom:5px">
- <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" />
<input type="submit" class="member_submit" name="ok" value="{--MEMBER_SURFBAR_ADD_URL--}" />
</div>
</div>
</TR>
<TR>
<TD colspan="4" align="center" class="member_footer"><INPUT
- type="reset" class="member_reset" value="{--CLEAR_FORM--}"{!__TRANSFER_TO_DISABLED!}> *
+ type="reset" class="member_reset" value="{--CLEAR_FORM--}"{!__TRANSFER_TO_DISABLED!}>
<INPUT type="submit" name="ok" class="member_submit"
value="{--TRANSFER_ADD_NEW--}"{!__TRANSFER_TO_DISABLED!}></TD>
</TR>
</tr>
<tr>
<td colspan="3" align="center" class="member_footer">
- <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" />
<input type="submit" name="ok" class="member_submit" value="{--WERNIS_SEND_NOW--}" />
</td>
</tr>
</tr>
<tr>
<td colspan="3" align="center" class="member_footer">
- <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" />
<input type="submit" name="ok" class="member_submit" value="{--WERNIS_MEMBER_PAYOUT_SUBMIT--}" />
</td>
</tr>
</tr>
<tr>
<td colspan="3" align="center" class="member_footer">
- <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" />
<input type="submit" name="ok" class="member_submit" value="{--WERNIS_MEMBER_WITHDRAW_SUBMIT--}" />
</td>
</tr>