[geeklog-cvs] geeklog: Revert sectest.php to the state it was in 1.6.1

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Feb 28 12:26:35 EST 2010


changeset 7762:49d9b52da7ad
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/49d9b52da7ad
user: Dirk Haun <dirk at haun-online.de>
date: Sun Feb 28 16:29:20 2010 +0100
description:
Revert sectest.php to the state it was in 1.6.1

diffstat:

 public_html/admin/sectest.php |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 8404556043da -r 49d9b52da7ad public_html/admin/sectest.php
--- a/public_html/admin/sectest.php	Sun Feb 28 16:14:26 2010 +0100
+++ b/public_html/admin/sectest.php	Sun Feb 28 16:29:20 2010 +0100
@@ -334,7 +334,7 @@
 
     // Note: We're not testing the 'sql' and 'language' directories.
 
-    if (($_CONF['allow_mysqldump'] == 1) && ($_DB_dbms == 'mysql') || $_DB_dbms=='pgsql') {
+    if (($_CONF['allow_mysqldump'] == 1) && ($_DB_dbms == 'mysql')) {
         if (makeTempfile($_CONF['backup_path'] . 'test.txt')) {
             $display .= doTest($url, 'backups/test.txt',
                                'backups ' . $LANG_SECTEST['directory']);
@@ -376,12 +376,11 @@
     $display .= '<p class="warningsmall"><strong>'
              . $LANG_SECTEST['please_fix'] . '</strong></p>';
 
-    DB_query("UPDATE {$_TABLES['vars']} SET name='security_check', value ='0'");
+    DB_save($_TABLES['vars'], 'name,value', "'security_check','0'");
 } else {
     $display .= '<p>' . $LANG_SECTEST['please_note'] . '</p>';
 
-    DB_query("UPDATE {$_TABLES['vars']} SET name='security_check', value ='1'");
-
+    DB_save($_TABLES['vars'], 'name,value', "'security_check','1'");
 }
 
 $ml = COM_createLink('geeklog-announce',



More information about the geeklog-cvs mailing list