]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_links.php
New function isDirectory() introduced, fixed GET_DIR_AS_ARRAY() (replaces scandir())
[mailer.git] / inc / modules / admin / what-list_links.php
index cae5fb68853f18b195200128316142642950bd94..3fe8031108deaa70e04820e6bc83407baa79d947 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Unbestaetigte Mails eines Mitgliedes auflisten   *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision:: 856                                                    $ *
+ * $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                  *
@@ -36,14 +41,14 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 } elseif (!EXT_IS_ACTIVE("mailid")) {
-       addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "mailid");
+       addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "mailid");
        return;
 }
 
 // Add description as navigation point
 ADD_DESCR("admin", __FILE__);
 
-if (!REQUEST_ISSET_GET(('del'))) REQUEST_SET_GET('del', "");
+if (!REQUEST_ISSET_GET('del')) REQUEST_SET_GET('del', "");
 
 if (REQUEST_ISSET_GET(('uid'))) {
        // Check if the user already exists
@@ -84,13 +89,16 @@ if (REQUEST_ISSET_GET(('uid'))) {
                                // Display message
                                LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_LINKS_DELETED'));
                        } else {
+                               // Init variables
+                               $OUT = ""; $SW = 2;
+
                                // List all unconfirmed mails
-                               $SW = 2; $OUT = "";
+                               // @TODO Find a way to rewrite this. See some lines above for different queries
                                while (list($id, $id2, $type) = SQL_FETCHROW($result)) {
                                        // Initializes some variables
                                        $cat = "";
                                        $DATA = "";
-                                       $PROBLEM = GENERAL_MAIL_PROBLEM;
+                                       $PROBLEM = getMessage('GENERAL_MAIL_PROBLEM');
                                        $result_data = false; // Closes Bug #58
 
                                        // Load data from stats table...