win32 to unix line delimiters changed
[mailer.git] / 0.2.1 / inc / modules / admin / what-list_autopurge.php
index 637ec35bf670f6c1146311b84303539179887a0a..dbd63e5dee9ef5fb93acf4a4a29a5639aa56bf2a 100644 (file)
@@ -1,96 +1,96 @@
-<?php\r
-/************************************************************************\r
- * MXChange v0.2.1                                    Start: 06/26/2004 *\r
- * ================                             Last change: 06/26/2004 *\r
- *                                                                      *\r
- * -------------------------------------------------------------------- *\r
- * File              : what-list_autopurge.php                          *\r
- * -------------------------------------------------------------------- *\r
- * Short description : Find inactive accounts and just list them        *\r
- * -------------------------------------------------------------------- *\r
- * Kurzbeschreibung  : Inaktive Accounts finden und dann auflisten      *\r
- * -------------------------------------------------------------------- *\r
- *                                                                      *\r
- * -------------------------------------------------------------------- *\r
- * Copyright (c) 2003 - 2008 by Roland Haeder                           *\r
- * For more information visit: http://www.mxchange.org                  *\r
- *                                                                      *\r
- * This program is free software; you can redistribute it and/or modify *\r
- * it under the terms of the GNU General Public License as published by *\r
- * the Free Software Foundation; either version 2 of the License, or    *\r
- * (at your option) any later version.                                  *\r
- *                                                                      *\r
- * This program is distributed in the hope that it will be useful,      *\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of       *\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *\r
- * GNU General Public License for more details.                         *\r
- *                                                                      *\r
- * You should have received a copy of the GNU General Public License    *\r
- * along with this program; if not, write to the Free Software          *\r
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *\r
- * MA  02110-1301  USA                                                  *\r
- ************************************************************************/\r
-\r
-// Some security stuff...\r
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))\r
-{\r
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";\r
-       require($INC);\r
-}\r
-// Add description as navigation point\r
-ADD_DESCR("admin", basename(__FILE__));\r
-\r
-// Ok, let's have a look...\r
-$since = bigintval(time() - $CONFIG['ap_in_since']);\r
-$EXCLUDE_LIST = " AND d.userid != c.def_refid";\r
-\r
-// Check for more extensions\r
-if (EXT_IS_ACTIVE("beg"))     $EXCLUDE_LIST .= " AND d.userid != c.beg_uid";\r
-if (EXT_IS_ACTIVE("bonus"))   $EXCLUDE_LIST .= " AND d.userid != c.bonus_uid";\r
-if (EXT_IS_ACTIVE("doubler")) $EXCLUDE_LIST .= " AND d.userid != c.doubler_uid";\r
-\r
-// Check for all accounts\r
-$result = SQL_QUERY_ESC("SELECT DISTINCT d.userid, d.sex, d.surname, d.family, d.email, d.joined, d.last_online, d.ap_notified\r
-FROM "._MYSQL_PREFIX."_user_data AS d, "._MYSQL_PREFIX."_config AS c\r
-WHERE d.status='CONFIRMED' AND d.joined < %s AND d.last_online < %s AND d.ap_notified < %s\r
-".$EXCLUDE_LIST."\r
-ORDER BY d.userid", array($since, $since, $since), __FILE__, __LINE__);\r
-\r
-if (SQL_NUMROWS($result) > 0)\r
-{\r
-       // Ok, we have found some inactive accounts\r
-       $SW = 2; $OUT = "";\r
-       while(list($uid, $sex, $sname, $fname, $email, $joined, $last, $notified) = SQL_FETCHROW($result))\r
-       {\r
-               // Prepare data for the row template\r
-               $content = array(\r
-                       'sw'       => $SW,\r
-                       'uid'      => ADMIN_USER_PROFILE_LINK($uid),\r
-                       'sex'      => TRANSLATE_SEX($sex),\r
-                       'sname'    => $sname,\r
-                       'fname'    => $fname,\r
-                       'email'    => "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".$email."</A>",\r
-                       'joined'   => MAKE_DATETIME($joined, "2"),\r
-                       'last'     => MAKE_DATETIME($last, "2"),\r
-                       'notified' => MAKE_DATETIME($notified, "2"),\r
-               );\r
-\r
-               // Load row template\r
-               $OUT .= LOAD_TEMPLATE("admin_list_autopurge_row", true, $content);\r
-               $SW = 3 - $SW;\r
-       }\r
-\r
-       // Free memory\r
-       SQL_FREERESULT($result);\r
-       define('__AUTOPURGE_ROWS', $OUT);\r
-\r
-       // Load main template\r
-       LOAD_TEMPLATE("admin_list_autopurge");\r
-}\r
- else\r
-{\r
-       // All members are active or you don't have any registered\r
-       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_AUTOPURGE_ALL_ACTIVE);\r
-}\r
-//\r
-?>\r
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 06/26/2004 *
+ * ================                             Last change: 06/26/2004 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-list_autopurge.php                          *
+ * -------------------------------------------------------------------- *
+ * Short description : Find inactive accounts and just list them        *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Inaktive Accounts finden und dann auflisten      *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       require($INC);
+}
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+// Ok, let's have a look...
+$since = bigintval(time() - $CONFIG['ap_in_since']);
+$EXCLUDE_LIST = " AND d.userid != c.def_refid";
+
+// Check for more extensions
+if (EXT_IS_ACTIVE("beg"))     $EXCLUDE_LIST .= " AND d.userid != c.beg_uid";
+if (EXT_IS_ACTIVE("bonus"))   $EXCLUDE_LIST .= " AND d.userid != c.bonus_uid";
+if (EXT_IS_ACTIVE("doubler")) $EXCLUDE_LIST .= " AND d.userid != c.doubler_uid";
+
+// Check for all accounts
+$result = SQL_QUERY_ESC("SELECT DISTINCT d.userid, d.sex, d.surname, d.family, d.email, d.joined, d.last_online, d.ap_notified
+FROM "._MYSQL_PREFIX."_user_data AS d, "._MYSQL_PREFIX."_config AS c
+WHERE d.status='CONFIRMED' AND d.joined < %s AND d.last_online < %s AND d.ap_notified < %s
+".$EXCLUDE_LIST."
+ORDER BY d.userid", array($since, $since, $since), __FILE__, __LINE__);
+
+if (SQL_NUMROWS($result) > 0)
+{
+       // Ok, we have found some inactive accounts
+       $SW = 2; $OUT = "";
+       while(list($uid, $sex, $sname, $fname, $email, $joined, $last, $notified) = SQL_FETCHROW($result))
+       {
+               // Prepare data for the row template
+               $content = array(
+                       'sw'       => $SW,
+                       'uid'      => ADMIN_USER_PROFILE_LINK($uid),
+                       'sex'      => TRANSLATE_SEX($sex),
+                       'sname'    => $sname,
+                       'fname'    => $fname,
+                       'email'    => "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".$email."</A>",
+                       'joined'   => MAKE_DATETIME($joined, "2"),
+                       'last'     => MAKE_DATETIME($last, "2"),
+                       'notified' => MAKE_DATETIME($notified, "2"),
+               );
+
+               // Load row template
+               $OUT .= LOAD_TEMPLATE("admin_list_autopurge_row", true, $content);
+               $SW = 3 - $SW;
+       }
+
+       // Free memory
+       SQL_FREERESULT($result);
+       define('__AUTOPURGE_ROWS', $OUT);
+
+       // Load main template
+       LOAD_TEMPLATE("admin_list_autopurge");
+}
+ else
+{
+       // All members are active or you don't have any registered
+       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_AUTOPURGE_ALL_ACTIVE);
+}
+//
+?>