noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 05/162: html_page_start : protect query, impr


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 05/162: html_page_start : protect query, improve code
Date: Sat, 11 Jul 2020 13:23:17 -0400 (EDT)

sparkyx pushed a commit to annotated tag E-4
in repository noalyss.

commit 280fe5616de892226401af170ec2a286b8771d01
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Sun Apr 22 11:00:00 2018 +0200

    html_page_start : protect query, improve code
---
 include/lib/ac_common.php | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index 6a910e4..9ace668 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -270,9 +270,11 @@ function html_page_start($p_theme="", $p_script="", 
$p_script2="")
     if ($p_theme != "")
     {
        $Res = $cn->exec_sql("select the_filestyle from theme
-                           where the_name='" . $p_theme . "'");
+                           where the_name=$1" ,[$p_theme]);
        if (Database::num_row($Res) == 0)
-           $style = "style-classic.css";
+        {
+           $style = "style-classic7.css";
+        }
        else
        {
            $s = Database::fetch_array($Res, 0);
@@ -281,7 +283,7 @@ function html_page_start($p_theme="", $p_script="", 
$p_script2="")
     }
     else
     {
-       $style = "style-classic.css";
+       $style = "style-classic7.css";
     } // end if
        $title="NOALYSS";
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]