A lot eval() commands rewritten to constant() function
[mailer.git] / inc / modules / guest / what-sponsor_login.php
index cf6f8bd7fd63e9521fde8b0f5d7a60a7087a043c..d224bc3672420452e58905266fdc58b0f7d08a14 100644 (file)
@@ -281,8 +281,7 @@ WHERE id='%s' AND password='%s' LIMIT 1",
                 else
                {
                        // Status is not fine
-                       $eval = "\$content = SPONSOR_LOGIN_FAILED_".strtoupper($status).";";
-                       eval($eval);
+                       $content = constant('SPONSOR_LOGIN_FAILED_'.strtoupper($status).'');
                        LOAD_TEMPLATE("admin_settings_saved", false, $content);
                        OUTPUT_HTML("<br />");