Checking new member registrations is now done with list_user (was: chk_regs) and...
authorRoland Häder <roland@mxchange.org>
Wed, 6 Jul 2011 05:50:06 +0000 (05:50 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 6 Jul 2011 05:50:06 +0000 (05:50 +0000)
DOCS/TODOs.txt
inc/extensions/ext-user.php
inc/language/de.php
inc/language/user_de.php
inc/libs/task_functions.php
inc/modules/admin/what-chk_regs.php
inc/template-functions.php
templates/de/html/admin/admin_list_chk_reg.tpl
templates/de/html/admin/admin_list_chk_reg_row.tpl

index 08135b567df9fab5b274a22822379232c7e51eaf..3f9934605595a3d527f9bd468f963f3756e22472 100644 (file)
 ./inc/revision-functions.php:169:// @TODO This function does also set and get in 'cache_array'
 ./inc/template-functions.php:1058:                     // @TODO Deprecate this thing
 ./inc/template-functions.php:1069:                     // @TODO Deprecate this thing
-./inc/template-functions.php:1156:     // @TODO This can be easily moved out after the merge from EL branch to this is complete
-./inc/template-functions.php:1189:             // @TODO Add a little more infos here
-./inc/template-functions.php:1500:// @TODO Lame description for this function
-./inc/template-functions.php:1522:                     // @TODO Move this in a filter
+./inc/template-functions.php:1162:     // @TODO This can be easily moved out after the merge from EL branch to this is complete
+./inc/template-functions.php:1195:             // @TODO Add a little more infos here
+./inc/template-functions.php:1506:// @TODO Lame description for this function
+./inc/template-functions.php:1528:                     // @TODO Move this in a filter
 ./inc/template-functions.php:189:       * @TODO On some pages this is buggy
 ./inc/template-functions.php:265:      // @TODO Remove this sanity-check if all is fine
 ./inc/template-functions.php:586:// @TODO $simple/$constants are deprecated
 ./inc/loader/load_cache-them.php:2:// @DEPRECATED
 ./inc/loader/load-extensions.php:2:// @DEPRECATED
 ./inc/modules/admin/admin-inc.php:439:// @DEPRECATED
+./inc/modules/admin/what-chk_regs.php:2:// @DEPRECATED
 ./inc/modules/admin/what-config_admins.php:2:// @DEPRECATED
 ./inc/modules/admin/what-config_email.php:2:// @DEPRECATED
 ./inc/reset/reset_100_bonus.php:2:// @DEPRECATED
 ./templates/de/html/admin/admin_config_payouts_edit_row.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_config_payouts_edit.tpl:1:<!--@DEPRECATED //-->
 ./templates/de/html/admin/admin_list_cats_404.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_list_chk_reg_row.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_list_chk_reg.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_reset_pass_done.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_send_reset_link.tpl:1:<!-- @DEPRECATED //-->
 ### ### template-warnings.log follows: ### ###
index 20529d418d0c5c236f439761f9a0654d50a07043..a66f87ce8cd9b71f5be3f6c43ee5b88092041297 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.4.0');
+setThisExtensionVersion('0.4.1');
 
 // Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.1.0', '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', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0'));
+setExtensionVersionHistory(array('0.0.0', '0.1.0', '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', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1'));
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
@@ -161,7 +161,6 @@ INDEX (`stats_type`)
                // Admin menu
                addAdminMenuSql('user',NULL,'Mitglieder-Management','Mitglieder freischalten, sperren, Accounts editieren, Neuanmeldungen verwalten, {OPEN_CONFIG}POINTS{CLOSE_CONFIG} gutschreiben und abziehen und und und...',3);
                addAdminMenuSql('user','del_user','Mitglied l&ouml;schen','L&ouml;schen Sie hier Mitglied, die gegen die AGBs mehrmals verstossen haben. Bitte seien Sie nett zu Ihren Mitgliedern und l&ouml;schen Sie nicht gleich.',1);
-               addAdminMenuSql('user','chk_regs','Anmeldungen pr&uuml;fen','Pr&uuml;fen Sie hier neue Anmeldungen zu Ihrem System. Hier k&ouml;nnen Sie im Falle einer Fehler-Mail den Mitglied gleich wieder l&ouml;schen!',2);
                addAdminMenuSql('user','lock_user','Mitglied sperren / entsperren','Sperren Sie Mitglied, die zu viele unbest&auml;tigte Mails haben oder gegen Ihre AGBs verstossen haben &uuml;ber diesen Men&uuml;punkt.',3);
                addAdminMenuSql('user','list_user','Mitglied auflisten','Listen Sie alle Mitglied oder eingeschr&auml;nkt nach Suchkritieren Ihre Userdatenbank auf. Sie k&ouml;nen per Klick auf die Usernummer sich Details zum Mitglied ansehen.',4);
                addAdminMenuSql('user','add_points','{OPEN_CONFIG}POINTS{CLOSE_CONFIG} gutschreiben','Buchen Sie einem Mitglied direkt {OPEN_CONFIG}POINTS{CLOSE_CONFIG} auf. Sie k&ouml;nnen dazu auch einen Kommentar mitsenden.',5);
@@ -442,6 +441,14 @@ PRIMARY KEY (`id`)
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Das Mitgliederguthaben musste repariert werden, da f&uuml;r Referal-Ebene 0, noch NULL geschrieben wurde.");
                                break;
+
+                       case '0.4.1': // SQL queries for v0.4.1
+                               // Add special fix include to fix filters
+                               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `what`='chk_regs' LIMIT 1");
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("&Uuml;berfl&uuml;ssiges Men&uuml; <strong>chk_regs</strong> entfernt, dies kann mit <strong>list_user</strong> &uuml;bernommen werden.");
+                               break;
                } // END - switch
                break;
 
index c59498b2b5cca2cd26d602dc7c9662239150f460..b3578e0a244a79fa192a3cce0934ea2c6e6641c9 100644 (file)
@@ -1111,6 +1111,7 @@ addMessages(array(
        'ADMIN_LIST_ALL_ACCOUNTS' => "Alle Mitglieder-Accounts auflisten",
        'ADMIN_LIST_STATUS_LOCKED_ACCOUNTS' => "Alle gesperrten Mitglieder-Accounts auflisten",
        'ADMIN_LIST_STATUS_CONFIRMED_ACCOUNTS' => "Alle best&auml;tigten Mitglieder-Accounts auflisten",
+       'ADMIN_LIST_STATUS_UNCONFIRMED_ACCOUNTS' => "Alle unbest&auml;tigten Mitglieder-Accounts auflisten",
        'ADMIN_LIST_MODE_CONFIRMED_ACCOUNTS' => "Alle best&auml;tigten Mitglieder-Accounts auflisten",
        'ADMIN_LIST_MODE_NOREFS_ACCOUNTS' => "Alle Mitglieder-Accounts ohne Referals auflisten",
 
index edd876dfa3e91171b0a8f37dac473d2de17b79a0..c7cdba8f882a11a38518bdc2ce42499e2830ec20 100644 (file)
@@ -62,6 +62,8 @@ addMessages(array(
        'ADMIN_USER_ACTION_LINK_UNLOCK_USER_TITLE' => "Mitglied entsperren",
        'ADMIN_USER_ACTION_LINK_ADD_POINTS_TITLE' => "Dem Mitglied {?POINTS?} aufbuchen",
        'ADMIN_USER_ACTION_LINK_SUB_POINTS_TITLE' => "Dem Mitglied {?POINTS?} abziehen",
+       'ADMIN_USER_ACTION_LINK_CONFIRM_ACCOUNT_TITLE' => "Das Mitgliederaccount best&auml;tigen",
+       'ADMIN_USER_ACTION_LINK_CONFIRM_ACCOUNT' => "Best&auml;tigen",
 ));
 
 // [EOF]
index e1daec9d31b1dc3c8edc95747e4d5e906a158a1a..b81f425a94f5b14836ea9316341f54f36e660832 100644 (file)
@@ -102,7 +102,7 @@ function outputAdvancedOverview (&$result_main) {
        $value = getTotalUnconfirmedUser();
 
        if ($value > 0) {
-               $content['unconfirmed_members'] = '<a href="{%url=modules.php?module=admin&amp;what=chk_regs%}">' . $value . '</a>';
+               $content['unconfirmed_members'] = '<a href="{%url=modules.php?module=admin&amp;what=list_user&amp;status=UNCONFIRMED%}">' . $value . '</a>';
        } // END - if
 
 
index 2237a908124a554ae91244a2bdcfecfb291ffb36..f551ef47b7591c74e7b59193e56a1fa6505a87ab 100644 (file)
@@ -1,87 +1,3 @@
 <?php
-/************************************************************************
- * Mailer v0.2.1-FINAL                                Start: 09/28/2003 *
- * ===================                          Last change: 03/24/2004 *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * File              : what-chk_regs.php                                *
- * -------------------------------------------------------------------- *
- * Short description : Check new registrations                          *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Neue Anmeldungen pruefen                         *
- * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 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')) || (!isAdmin())) {
-       die();
-} // END - if 
-
-// Add description as navigation point
-addYouAreHereLink('admin', basename(__FILE__));
-
-// Check for accounts
-$result = SQL_QUERY("SELECT
-       `userid`, `gender`, `surname`, `family`, `email`, `REMOTE_ADDR`, `refid`, `user_hash`
-FROM
-       `{?_MYSQL_PREFIX?}_user_data`
-WHERE
-       `status`='UNCONFIRMED'
-ORDER BY
-       `userid` ASC", __FILE__, __LINE__);
-
-if (!SQL_HASZERONUMS($result)) {
-       // We have some (new?) registrations!
-       $OUT = '';
-       while ($content = SQL_FETCHARRAY($result)) {
-               // Prepare array for the row template
-               $content = array(
-                       'gender'      => $content['gender'],
-                       'surname'     => $content['surname'],
-                       'family'      => $content['family'],
-                       'email'       => '<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . $content['email'] . '</a>',
-                       'remote_addr' => $content['REMOTE_ADDR'],
-                       'refid'       => $content['refid'],
-                       'user_hash'   => $content['user_hash'],
-                       'userid'      => $content['userid'],
-               );
-
-               // Load row template and switch color
-               $OUT .= loadTemplate('admin_list_chk_reg_row', true, $content);
-       } // END - while
-
-       // Load main template
-       loadTemplate('admin_list_chk_reg', false, $OUT);
-} else {
-       // No registrations left - or all has confirmed their email address... :-)
-       displayMessage('{--ADMIN_ALL_CONFIRMED_EMAIL--}');
-}
-
-// Free memory
-SQL_FREERESULT($result);
-
-// [EOF]
+// @DEPRECATED
 ?>
index f042d3e079db58a432b47f83075a823ca264541c..4cf55879756758e8146aad711a04519ce817c1e4 100644 (file)
@@ -1075,6 +1075,12 @@ function generateMemberAdminActionLinks ($userid) {
                $OUT .= '--}</a></span>|';
        } // END - foreach
 
+       // Add special link, in case of the account is unconfirmed
+       if ($status == 'UNCONFIRMED') {
+               // Add it
+               $OUT .= '<span class="admin_user_link"><a target="_blank" title="{--ADMIN_USER_ACTION_LINK_CONFIRM_ACCOUNT_TITLE--}" href="{%url=confirm.php?hash=' . getFetchedUserData('userid', $userid, 'user_hash') . '%}">{--ADMIN_USER_ACTION_LINK_CONFIRM_ACCOUNT--}</a></span>|';
+       } // END - if
+
        // Finish navigation link
        $OUT = substr($OUT, 0, -1) . ']';
 
index 39caff4632913006ec74308c889e1afa3f560181..11f5d85d80b1ca4d16cf4c19e14af24e5ec2a60f 100644 (file)
@@ -1,20 +1 @@
-<div align="center">
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
-       <tr>
-               <td class="table_header bottom" colspan="8" align="center">
-                       <strong>{--ADMIN_UNCONFIRMED_ACCOUNTS--}:</strong>
-               </td>
-       </tr>
-       <tr>
-               <td class="header_column right" align="center" width="20">{--_USERID--}</td>
-               <td class="header_column right" align="center">{--GENDER--}</td>
-               <td class="header_column right" align="center">{--SURNAME--}</td>
-               <td class="header_column right" align="center">{--FAMILY--}</td>
-               <td class="header_column right" align="center">{--EMAIL--}</td>
-               <td class="header_column right" align="center">{--REMOTE_IP--}</td>
-               <td class="header_column right" align="center" width="20">{--REFERAL_USERID--}</td>
-               <td class="header_column" align="center">{--ADMIN_CONFIRM_ACCOUNT--}</td>
-       </tr>
-       $content
-</table>
-</div>
+<!-- @DEPRECATED //-->
index 90a3c388b2d1623d21264d60e6e02ff006967b59..11f5d85d80b1ca4d16cf4c19e14af24e5ec2a60f 100644 (file)
@@ -1,13 +1 @@
-<tr>
-       <td align="center" class="{%template,ColorSwitch%} top right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
-       <td align="center" class="{%template,ColorSwitch%} top right">{%pipe,translateGender=$content[gender]%}</td>
-       <td align="center" class="{%template,ColorSwitch%} top right">$content[surname]</td>
-       <td align="center" class="{%template,ColorSwitch%} top right">$content[family]</td>
-       <td align="center" class="{%template,ColorSwitch%} top right">$content[email]</td>
-       <td align="center" class="{%template,ColorSwitch%} top right">$content[remote_addr]</td>
-       <td align="center" class="{%template,ColorSwitch%} top right">{%pipe,generateUserProfileLink=$content[refid]%}</td>
-       <td align="center" class="{%template,ColorSwitch%} top">
-               <a href="{%url=confirm.php?hash=$content[user_hash]%}"
-                target="_blank" title="{--ADMIN_CONFIRMATION_LINK_TITLE--}">{--ADMIN_CONFIRM_ACCOUNT--}</a>
-       </td>
-</tr>
+<!-- @DEPRECATED //-->