]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-extensions.php
A lot texts rewritten and exclamation signs removed
[mailer.git] / inc / modules / admin / what-extensions.php
index 2f0b03a87049db40d1980f37a2aecb08701f02af..33e4de8f72a1a7f3192f619ebd06ed1bd2961c81 100644 (file)
@@ -57,7 +57,7 @@ if (isPostRequestElementSet('sel')) {
 if (isGetRequestElementSet('reg_ext')) {
        // We are about to register a new extension
        $do = 'register'; $ext_id = bigintval(getRequestElement('reg_ext'));
-       // The ID comes from task management and it is - of course - *not* the extension's name!
+       // The id comes from task management and it is - of course - *not* the extension's name!
 } elseif ((isPostRequestElementSet('change')) && ($SEL > 0) && (!isDemoModeActive())) {
        // De-/activate extensions
        foreach (postRequestElement('sel') as $ext_id => $active) {
@@ -66,10 +66,10 @@ if (isGetRequestElementSet('reg_ext')) {
                        // Keep this extension active!
                } else {
                        // De/activate extension
-                       $ACT = 'N'; getExtensionMode('deactivate');
+                       $ACT = 'N'; setExtensionMode('deactivate');
                        if ($active != 'Y') { $ACT = 'Y'; setExtensionMode('activate'); }
                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET `ext_active`='".$ACT."' WHERE `id`=%s AND `ext_active`='%s' LIMIT 1",
-                       array(bigintval($ext_id), $active), __FILE__, __LINE__);
+                               array(bigintval($ext_id), $active), __FILE__, __LINE__);
 
                        // Run embeded SQL commands
                        doExtensionSqls($ext_id, getExtensionMode());
@@ -81,13 +81,13 @@ if (isGetRequestElementSet('reg_ext')) {
                // Change entries
                $cache_update = 0;
                foreach (postRequestElement('sel') as $ext_id => $sel) {
-                       // Secure ID
+                       // Secure id
                        $ext_id = bigintval($ext_id);
 
                        // Change this extension?
                        if ($sel == 1) {
                                // Load mode is modify
-                               getExtensionMode('modify');
+                               setExtensionMode('modify');
 
                                // Get entry for 'active'
                                $active = postRequestElement('active', $ext_id);
@@ -217,7 +217,7 @@ if (isGetRequestElementSet('reg_ext')) {
        // Remove extensions from DB (you have to delete all files manually!)
        $cache_update = 0;
        foreach (postRequestElement('sel') as $ext_id => $active) {
-               // Secure ID number
+               // Secure id number
                $ext_id = bigintval($ext_id);
 
                // Is this extension selected and id valid?
@@ -304,9 +304,9 @@ ORDER BY `ext_name` ASC", __FILE__, __LINE__);
                // Free result
                SQL_FREERESULT($result);
 
-               // Is the ID number valid and the task was found?
+               // Is the id number valid and the task was found?
                if (($ext_id > 0) && ($task_found == 1)) {
-                       // ID is valid so begin with registration, we first want to it's real name from task management (subject column)
+                       // id is valid so begin with registration, we first want to it's real name from task management (subject column)
                        $result = SQL_QUERY_ESC("SELECT `subject` FROM `{?_MYSQL_PREFIX?}_task_system` WHERE `id`=%s LIMIT 1",
                                array(bigintval($ext_id)), __FILE__, __LINE__);
                        list($subj) = SQL_FETCHROW($result);
@@ -370,11 +370,11 @@ ORDER BY `ext_name` ASC", __FILE__, __LINE__);
                                // Extension was not found in task management
                                loadTemplate('admin_settings_saved', false, getMessage('ADMIN_REG_FAILED_ID_404'));
                        }
-               } elseif ($task_found == '0') {
+               } elseif ($task_found == 0) {
                        // No longer assigned or old task
                        loadTemplate('admin_settings_saved', false, getMessage('ADMIN_REG_FAILED_ASSIGED'));
                } else {
-                       // ID is invalid
+                       // id is invalid
                        loadTemplate('admin_settings_saved', false, getMessage('ADMIN_REG_FAILED_INVALID'));
                }
                break;