Functions imported, some dev-scripts added
[mailer.git] / inc / modules / admin / what-usage.php
index fa5f7747a01e1fbf60ef2a0ffc6ffcfd51fd1167..09da0a61ee5b991fc1c2a9ca447fe2d6f92f20ea 100644 (file)
@@ -79,10 +79,10 @@ if (!empty($_GET['image'])) {
        );
 }
 
-if ((!empty($FQFN)) && (FILE_READABLE($FQFN) {
+if ((!empty($FQFN)) && (FILE_READABLE($FQFN))) {
        // @TODO This code is double, see LOAD_TEMPLATE and LOAD_EMAIL_TEMPLATE in functions.php
        $tmpl_file = READ_FILE($FQFN);
-       $tmpl_file = addslashes($tmpl_file);
+       $tmpl_file = SQL_ESCAPE($tmpl_file);
        $tmpl_file = "\$content=\"".$tmpl_file."\";";
        eval($tmpl_file);
        // Until here...