]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-theme_check.php
Even more rewrites/fixes from EL branch (please report any broken part after you...
[mailer.git] / inc / modules / admin / what-theme_check.php
index 082e8fdc1835ae8d0f04cf87fee594764453c71a..153d93a3a468d14ebef659380640f33a251e51d6 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                              *
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -46,13 +47,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 +69,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));
@@ -89,7 +89,7 @@ if (($response[count($response) - 1] == "[EOF]") && ($response[0] != "[EOF]")) {
                                // Extract language strings from reponse
                                $langDummy = explode('[nl]', $response[$idx + 4]);
                                $languages = array();
-                               $themeInfo = getMessage('ADMIN_EXT_NO_INFO_FOUND');
+                               $themeInfo = getMessage('ADMIN_EXTENSION_NO_INFO_FOUND');
 
                                // Trim every data line
                                foreach ($langDummy as $k => $v) {