]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-theme_check.php
Missing SVN properties set
[mailer.git] / inc / modules / admin / what-theme_check.php
index 4dd8d5b418a52b127cb747e4a5e0d5b53e27358c..42910fe9f970b2dec095d52e09fa4ad757774634 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 03/22/2004 *
- * ================                             Last change: 12/13/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 03/22/2004 *
+ * ===================                          Last change: 12/13/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-extentions.php                              *
@@ -46,13 +46,12 @@ addMenuDescription('admin', __FILE__);
 
 // Normally we want the overview of all registered theme_check
 $mode = 'overview';
-$SEL = 0;
 
 // Get response from our server
 $response = sendGetRequest('check-themes.php');
 
 // Are theme_check found?
-if (($response[count($response) - 1] == "[EOF]") && ($response[0] != "[EOF]")) {
+if (($response[count($response) - 1] == '[EOF]') && ($response[0] != '[EOF]')) {
        // Ok, mark found and create the array
        $themes = array(
                'fname'  => array(), // File names
@@ -69,7 +68,7 @@ if (($response[count($response) - 1] == "[EOF]") && ($response[0] != "[EOF]")) {
                $value = str_replace("\n", '', $value); $ver = '';
 
                // Leave loop when data is invalid or EOF?
-               if ((substr($value, 0, 6) == "theme-") && (substr($value, -4) == ".zip")) {
+               if ((substr($value, 0, 6) == 'theme-') && (substr($value, -4) == '.zip')) {
                        // Extract name and version
                        $name = substr($value, 6, -4);
                        $ver  = trim(substr($response[$idx + 3], 4));
@@ -117,14 +116,14 @@ if (($response[count($response) - 1] == "[EOF]") && ($response[0] != "[EOF]")) {
                array_pk_sort($themes, array('cver', 'fname'), 0, 1);
 
                // Extensions where found which are not downloaded and installed
-               $OUT = ''; $SW = 2; $totalSize = 0;
+               $OUT = ''; $SW = 2; $totalSize = '0';
                foreach ($themes['fname'] as $idx => $name) {
                        // Prepare data
                        $content = array(
                                'sw'      => $SW,
                                'index'   => ($idx + 1),
                                'name'    => $name,
-                               'created' => generateDateTime($themes['fctime'][$idx], '2'),
+                               'created' => generateDateTime($themes['fctime'][$idx], 2),
                                'size'    => translateComma(round($themes['fsize'][$idx] / 1.024) / 1000),
                                'version' => $themes['ver'][$idx],
                                'current' => $themes['cver'][$idx],