]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_email.php
Even more rewritten
[mailer.git] / inc / modules / admin / what-config_email.php
index 33caf31026b7dce6f4683a141c9a7bf8ebcdfb8e..41dd5d180592447d4be21e2a224d5c5e3b87ee65 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Aendern aller Email-Einstellungen                *
  * -------------------------------------------------------------------- *
- * $Revision:: 856                                                    $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009)             $ *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author:: stelzi                                                   $ *
+ * $Author::                                                          $ *
  * Needs to be in all Files and every File needs "svn propset           *
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
 
 // 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__);
 
 // Remove empty array index
 if (!REQUEST_ISSET_POST(('max'))) REQUEST_UNSET_POST(('add_max'));
@@ -66,10 +66,10 @@ if (REQUEST_ISSET_POST(('add_max'))) {
        SQL_FREERESULT($result);
 
        // Display message
-       LOAD_TEMPLATE("admin_settings_saved", false, $content);
-} elseif ((IS_FORM_SENT()) && (REQUEST_ISSET_GET(('do')))) {
+       LOAD_TEMPLATE('admin_settings_saved', false, $content);
+} elseif ((IS_FORM_SENT()) && (REQUEST_ISSET_GET('do'))) {
        // Change or delete entries...
-       $TEXT = "";
+       $TEXT = '';
        foreach (REQUEST_POST('id') as $id => $value) {
                // Secure ID
                $id = bigintval($id);
@@ -96,11 +96,11 @@ if (REQUEST_ISSET_POST(('add_max'))) {
 
        if (isset($TEXT)) {
                // Display message
-               LOAD_TEMPLATE("admin_settings_saved", false, $TEXT);
+               LOAD_TEMPLATE('admin_settings_saved', false, $TEXT);
        }
 } elseif ((REQUEST_ISSET_POST('del')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
        // Delete entries
-       $OUT = ""; $SW = 2;
+       $OUT = ''; $SW = 2;
        foreach (REQUEST_POST('sel') as $id => $value)
        {
                // Load data
@@ -127,7 +127,7 @@ if (REQUEST_ISSET_POST(('add_max'))) {
        LOAD_TEMPLATE("admin_config_email_del");
 } elseif ((REQUEST_ISSET_POST('edit')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
        // Edit entries
-       $OUT = ""; $SW = 2;
+       $OUT = ''; $SW = 2;
        foreach (REQUEST_POST('sel') as $id => $value) {
                // Load data
                $result = SQL_QUERY_ESC("SELECT value, comment FROM `{!_MYSQL_PREFIX!}_max_receive` WHERE id=%s LIMIT 1",
@@ -156,7 +156,7 @@ if (REQUEST_ISSET_POST(('add_max'))) {
                __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // List already existing entries for editing
-               $OUT = ""; $SW = 2;
+               $OUT = ''; $SW = 2;
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare data for the row template
                        $content['sw'] = $SW;