]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/overview-inc.php
Code style changed, ext-user continued:
[mailer.git] / inc / modules / admin / overview-inc.php
index 1f5127967b5f13c88764d189f450ebdd1af67d61..19cb263f5b3c25970ecc3a3c33dd757971ec67f7 100644 (file)
@@ -48,10 +48,10 @@ function outputStandardOverview (&$result_tasks) {
 
        // We currently don't want to install an extension so let's find out if we need...
        setExtensionMode('test');
-       $jobsDone = true;
+       $jobsDone = TRUE;
 
        // Open the extension directory
-       $extensionList = getArrayFromDirectory('inc/extensions/', 'ext-', false, false);
+       $extensionList = getArrayFromDirectory('inc/extensions/', 'ext-', FALSE, FALSE);
        foreach ($extensionList as $file) {
                // Only file name is required... :(
                $file = basename($file);
@@ -62,16 +62,16 @@ function outputStandardOverview (&$result_tasks) {
                        $ext_name = strtolower(substr($file, 4, -4)); // Keep always extension names on lower case!!!
 
                        // Init variables
-                       $result = false;
+                       $result = FALSE;
 
                        // Check if extension is installed or not
                        $extInstalled = (isExtensionInstalled($ext_name) && (isExtensionActive($ext_name)));
 
                        // Is the extension not yet installed?
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ',extInstalled=' . intval($extInstalled));
-                       if ($extInstalled === false) {
+                       if ($extInstalled === FALSE) {
                                // We maybe want to install an extension so let's test-drive it...
-                               if (loadExtension($ext_name, 'test', '0.0.0', true)) {
+                               if (loadExtension($ext_name, 'test', '0.0.0', TRUE)) {
                                        // Create a task for newly installed extension (we ignore the task id here)
                                        createNewExtensionTask($ext_name);
                                } // END - if
@@ -123,7 +123,7 @@ ORDER BY
 
        if (!SQL_HASZERONUMS($result_tasks)) {
                // New jobs found
-               $jobsDone = false;
+               $jobsDone = FALSE;
        } // END - if
 
        // Free the result
@@ -200,7 +200,7 @@ LIMIT 1",
                                $taskData['text'] = decodeEntities($taskData['text']);
 
                                // Compile and insert text from task into table template
-                               $taskData['text'] = loadTemplate('admin_extensions_text', true, $taskData['text']);
+                               $taskData['text'] = loadTemplate('admin_extensions_text', TRUE, $taskData['text']);
 
                                // Initialize variables (no title for SQL commands by default)
                                $ext_name = ''; $ext_ver = '';
@@ -214,12 +214,12 @@ LIMIT 1",
                                        // Update task or extension task?
                                        if (($taskData['task_type'] == 'EXTENSION') && (!isExtensionInstalled($ext_name))) {
                                                // Load SQL commands for registering in dry-run
-                                               registerExtension($ext_name, $taskId, true);
+                                               registerExtension($ext_name, $taskId, TRUE);
 
                                                // Is this non-productive?
-                                               if (isExtensionProductive() === false) {
+                                               if (isExtensionProductive() === FALSE) {
                                                        // Issue warning
-                                                       $taskData['text'] = displayMessage('{%message,ADMIN_EXTENSION_IS_NON_PRODUCTIVE=' . $ext_name . '%}', true) . $taskData['text'];
+                                                       $taskData['text'] = displayMessage('{%message,ADMIN_EXTENSION_IS_NON_PRODUCTIVE=' . $ext_name . '%}', TRUE) . $taskData['text'];
                                                } // END - if
 
                                                // Set current extension name
@@ -239,7 +239,7 @@ LIMIT 1",
                                                $ext_ver = substr($ext_ver, 0, strpos($ext_ver, ':'));
 
                                                // Load SQLs from file
-                                               updateExtension($ext_name, $ext_ver, true);
+                                               updateExtension($ext_name, $ext_ver, TRUE);
 
                                                // Set current extension name
                                                setCurrentExtensionName($ext_name);
@@ -261,7 +261,7 @@ LIMIT 1",
                                        } // END - if
                                } elseif ((!empty($ext_name)) && (!empty($ext_ver))) {
                                        // Run SQL commands in dry mode but only return the notes
-                                       updateExtension($ext_name, $ext_ver, true);
+                                       updateExtension($ext_name, $ext_ver, TRUE);
 
                                        // Set current extension name
                                        setCurrentExtensionName($ext_name);
@@ -283,7 +283,7 @@ LIMIT 1",
                                );
 
                                // Load template
-                               $OUT .= loadTemplate('admin_overview_row', true, $content);
+                               $OUT .= loadTemplate('admin_overview_row', TRUE, $content);
 
                                // Which task do we actually have here?
                                // @TODO Rewrite this to something with include files and/or filter
@@ -292,7 +292,7 @@ LIMIT 1",
                                                $ext_name = substr($taskData['subject'], 1, strpos($taskData['subject'], ':') - 1);
                                                if (!isExtensionInstalled($ext_name)) {
                                                        // New (not yet installed) extension found
-                                                       $OUT .= loadTemplate('admin_extension_reg_form', true, array(
+                                                       $OUT .= loadTemplate('admin_extension_reg_form', TRUE, array(
                                                                'id'       => bigintval($taskId),
                                                                'ext_name' => $ext_name
                                                        ));
@@ -345,7 +345,7 @@ LIMIT 1",
                                                                );
 
                                                                // Load template
-                                                               $OUT .= loadTemplate('admin_payout_overview_form', true, $content);
+                                                               $OUT .= loadTemplate('admin_payout_overview_form', TRUE, $content);
                                                        } else {
                                                                // Problem obtaining payout id
                                                                $OUT .= '<div class="notice medium">{--ADMIN_PAYOUT_OBTAIN_ID_FAILED--}</div>';
@@ -370,7 +370,7 @@ LIMIT 1",
                                                                        'pid' => $pid,
                                                                        'tid' => $taskData['id'],
                                                                );
-                                                               $OUT .= loadTemplate('admin_wernis_overview_form', true, $content);
+                                                               $OUT .= loadTemplate('admin_wernis_overview_form', TRUE, $content);
                                                        } else {
                                                                // Problem obtaining wernis id
                                                                $OUT .= '<div class="notice medium">{--WERNIS_OBTAIN_ID_FAILED--}</div>';
@@ -382,11 +382,11 @@ LIMIT 1",
                                                break;
 
                                        case 'HOLIDAY_REQUEST': // Holiday requests
-                                               $OUT .= loadTemplate('admin_task_holiday', true, $taskData['userid']);
+                                               $OUT .= loadTemplate('admin_task_holiday', TRUE, $taskData['userid']);
                                                break;
 
                                        case 'MEMBER_ORDER': // Member mail orders
-                                               $OUT .= loadTemplate('admin_task_order', true, $taskId);
+                                               $OUT .= loadTemplate('admin_task_order', TRUE, $taskId);
                                                break;
 
                                        default: // Unknown task type
@@ -404,7 +404,7 @@ LIMIT 1",
                } // END - foreach
 
                // Load final template
-               loadTemplate('admin_overview_list', false, $OUT);
+               loadTemplate('admin_overview_list', FALSE, $OUT);
        } else {
                if ((isset($postData['sel'])) && ((count($postData['sel']) > 0) || ($postData['sel'][0] == 1))) {
                        // Only unassign / delete tasks when there are selected tasks posted
@@ -422,7 +422,7 @@ LIMIT 1",
                                } // END - foreach
                        } else {
                                // Unknown action
-                               reportBug(__FILE__, __LINE__, sprintf("Unknown task action performed. data=<pre>%s</pre>", print_r($postData, true)));
+                               reportBug(__FILE__, __LINE__, sprintf("Unknown task action performed. data=<pre>%s</pre>", print_r($postData, TRUE)));
                        }
 
                        // Update query
@@ -458,10 +458,10 @@ LIMIT 1",
                        // Is there extension task?
                        if (isExtensionTask($content)) {
                                // Load extension row template
-                               $OUT .= loadTemplate('admin_overview_list_ext_rows', true, $content);
+                               $OUT .= loadTemplate('admin_overview_list_ext_rows', TRUE, $content);
                        } else {
                                // Load default row template
-                               $OUT .= loadTemplate('admin_overview_list_rows', true, $content);
+                               $OUT .= loadTemplate('admin_overview_list_rows', TRUE, $content);
                        }
                } // END - while
 
@@ -469,7 +469,7 @@ LIMIT 1",
                SQL_FREERESULT($result_tasks);
 
                // Load footer template
-               loadTemplate('admin_overview_table', false, $OUT);
+               loadTemplate('admin_overview_table', FALSE, $OUT);
        }
 }