]> git.mxchange.org Git - mailer.git/commitdiff
Parse error in optimize extension fixed
authorRoland Häder <roland@mxchange.org>
Sun, 31 Aug 2008 16:14:05 +0000 (16:14 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 31 Aug 2008 16:14:05 +0000 (16:14 +0000)
inc/language/optimize_de.php
inc/modules/admin/what-optimize.php
inc/modules/admin/what-send_newsletter.php

index 86946fafed4ffe81050a1b5239fdddf1e1870cd1..4f2f778eb7867606d79e7cf40b9038298c5af952 100644 (file)
@@ -45,6 +45,7 @@ define('OPTIMIZE_OPTIMIZED', "Optimiert");
 define('OPTIMIZE_TOTAL_SIZE', "Gesamtgr&ouml;sse");
 define('OPTIMIZE_GAIN_SIZE', "Eingespart");
 define('OPTIMIZE_STATUS_OK', "Nein");
+define('OPTIMIZE_STATUS_UNSUPPORTED', "Nicht m&ouml;glich");
 define('OPTIMIZE_STATUS_OPTIMIZED', "Optimiert!");
 define('OPTIMIZE_DB_TOTAL_TABLES', "Gesamtzahl angelegter Tabellen");
 define('OPTIMIZE_DB_TOTAL_SIZE', "Gesamtgr&ouml;&szlig;e der Datenbank");
index be5a6e3b4de31634401a3f96e39a8406dd2bc9f8..2c88f2a89a00d3c8be152da481d30c045500d8d7 100644 (file)
@@ -51,15 +51,17 @@ foreach ($DATA['tables'] as $row_array)
        if (empty($row_array[1])) $row_array[1] = "NONE";
        $eval = "\$REP = OPTIMIZE_STATUS_".strtoupper($row_array[1]).";";
        eval($eval); $B1 = ""; $B2 = "";
+       $OPT = OPTIMIZE_STATUS_UNSUPPORTED;
        if ($row_array[4] > 0)
        {
                $OPT = OPTIMIZE_STATUS_OPTIMIZED;
                $B1 = "<STRONG>"; $B2 = "<STRONG>";
                $gain_tabs++;
        }
-        else
+        elseif (count(explode(" ", $row_array[2])) == 0)
        {
                $eval = "\$OPT = OPTIMIZE_STATUS_".strtoupper($row_array[2]).";";
+               die($eval);
                eval($eval);
        }
 
index 9a4377833fc953976f36a94e5fdb466153539182..6354125f5f618b37ace42f056fa57a0f90cfdded 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
-{
+if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
+
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));