X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_autopurge.php;h=be29dfad9fabe69ffefbba69daa22548f6c9f676;hp=83de762679c8b0da0c296dc6a541071fe75ce744;hb=81bfbcd72e424060ea1223b49ad92fcfa150f361;hpb=4001187f22197f55e5a1f211fc8defcc180f7c32
diff --git a/inc/modules/admin/what-list_autopurge.php b/inc/modules/admin/what-list_autopurge.php
index 83de762679..be29dfad9f 100644
--- a/inc/modules/admin/what-list_autopurge.php
+++ b/inc/modules/admin/what-list_autopurge.php
@@ -10,7 +10,12 @@
* -------------------------------------------------------------------- *
* Kurzbeschreibung : Inaktive Accounts finden und dann auflisten *
* -------------------------------------------------------------------- *
- * *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * Needs to be in all Files and every File needs "svn propset *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2008 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
@@ -33,25 +38,25 @@
// Some security stuff...
if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
}
// Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
// Exclude default referal id if set
-$EXCLUDE_LIST = "";
+$EXCLUDE_LIST = '';
if (getConfig('def_refid') > 0) {
$EXCLUDE_LIST = " AND d.userid != ".getConfig('def_refid')."";
} // END - if
// Check for more extensions
// @TODO Rewrite those lines to filter
-if (EXT_IS_ACTIVE("beg")) $EXCLUDE_LIST .= " AND d.userid != ".getConfig('beg_uid')."";
-if (EXT_IS_ACTIVE("bonus")) $EXCLUDE_LIST .= " AND d.userid != ".getConfig('bonus_uid')."";
-if (EXT_IS_ACTIVE("doubler")) $EXCLUDE_LIST .= " AND d.userid != ".getConfig('doubler_uid')."";
-if (GET_EXT_VERSION("holiday") >= "0.1.3") $EXCLUDE_LIST .= " AND d.holiday_active='N'";
+if (EXT_IS_ACTIVE('beg')) $EXCLUDE_LIST .= " AND d.userid != ".getConfig('beg_uid')."";
+if (EXT_IS_ACTIVE('bonus')) $EXCLUDE_LIST .= " AND d.userid != ".getConfig('bonus_uid')."";
+if (EXT_IS_ACTIVE('doubler')) $EXCLUDE_LIST .= " AND d.userid != ".getConfig('doubler_uid')."";
+if (GET_EXT_VERSION('holiday') >= '0.1.3') $EXCLUDE_LIST .= " AND d.`holiday_active`='N'";
// Check for all accounts
$result = SQL_QUERY_ESC("SELECT DISTINCT d.userid, d.gender, d.surname, d.family, d.email, d.joined, d.last_online, d.ap_notified
@@ -67,20 +72,20 @@ ORDER BY d.userid",
if (SQL_NUMROWS($result) > 0) {
// Ok, we have found some inactive accounts
- $OUT = ""; $SW = 2;
+ $OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
// Prepare data for the row template
// @TODO Rewritings: sname->surname,fname->family in templates
$content = array(
'sw' => $SW,
- 'uid' => ADMIN_USER_PROFILE_LINK($content['userid']),
- 'gender' => TRANSLATE_GENDER($content['gender']),
+ 'uid' => generateUserProfileLink($content['userid']),
+ 'gender' => translateGender($content['gender']),
'sname' => $content['surname'],
'fname' => $content['family'],
- 'email' => "".$content['email']."",
- 'joined' => MAKE_DATETIME($content['joined'], "2"),
- 'last' => MAKE_DATETIME($content['last_online'], "2"),
- 'notified' => MAKE_DATETIME($content['ap_notified'], "2"),
+ 'email' => "".$content['email']."",
+ 'joined' => generateDateTime($content['joined'], '2'),
+ 'last' => generateDateTime($content['last_online'], '2'),
+ 'notified' => generateDateTime($content['ap_notified'], '2'),
);
// Load row template
@@ -97,7 +102,7 @@ if (SQL_NUMROWS($result) > 0) {
LOAD_TEMPLATE("admin_list_autopurge");
} else {
// All members are active or you don't have any registered
- LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_AUTOPURGE_ALL_ACTIVE'));
+ LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_AUTOPURGE_ALL_ACTIVE'));
}
//