From 1b48afeb30d9486945ea2ca8c1881c044947add5 Mon Sep 17 00:00:00 2001 From: David M Date: Mon, 3 Jul 2006 00:53:54 +0000 Subject: [PATCH] - Database: eh? meh. - CAPTCHA: A little easier to see which options map to which controls git-svn-id: file:///svn/phpbb/trunk@6141 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/adm/style/acp_captcha.html | 35 ++++++++++++++++++++++------- phpBB/includes/acp/acp_database.php | 14 ++++++------ 2 files changed, 34 insertions(+), 15 deletions(-) diff --git a/phpBB/adm/style/acp_captcha.html b/phpBB/adm/style/acp_captcha.html index 3a446c5a12..90d0dc27f8 100644 --- a/phpBB/adm/style/acp_captcha.html +++ b/phpBB/adm/style/acp_captcha.html @@ -19,9 +19,10 @@
checked="checked" /> {L_ENABLED}    checked="checked" /> {L_DISABLED}
+
- {L_CAPTCHA_OPTIONS} + {L_CAPTCHA_OVERLAP}

{U_POLICY_OVERLAP}
@@ -36,8 +37,11 @@
checked="checked" /> {L_YES}   checked="checked" /> {L_NO}
-
+
+ +
+ {L_CAPTCHA_ENTROPY}

{U_POLICY_ENTROPY}
checked="checked" /> {L_YES}   checked="checked" /> {L_NO}
@@ -51,8 +55,11 @@
checked="checked" /> {L_YES}   checked="checked" /> {L_NO}
-
+
+ +
+ {L_CAPTCHA_SHAPE}

{U_POLICY_SHAPE}
checked="checked" /> {L_YES}   checked="checked" /> {L_NO}
@@ -66,30 +73,42 @@
checked="checked" /> {L_YES}   checked="checked" /> {L_NO}
-
+
+ +
+ {L_CAPTCHA_3DBITMAP}

{U_POLICY_3DBITMAP}
checked="checked" /> {L_YES}   checked="checked" /> {L_NO}
-
+
+ +
+ {L_CAPTCHA_CELLS}

{U_POLICY_CELLS}
checked="checked" /> {L_YES}   checked="checked" /> {L_NO}
-
+
+ +
+ {L_CAPTCHA_STENCIL}

{U_POLICY_STENCIL}
checked="checked" /> {L_YES}   checked="checked" /> {L_NO}
-
+
+ +
+ {L_CAPTCHA_COMPOSITE}

{U_POLICY_COMPOSITE}
checked="checked" /> {L_YES}   checked="checked" /> {L_NO}
-
+ diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php index 1429719df2..2ad28cc9fa 100644 --- a/phpBB/includes/acp/acp_database.php +++ b/phpBB/includes/acp/acp_database.php @@ -362,9 +362,9 @@ class acp_database case 'sqlite': // This is *not* my fault. The PHP guys forgot a call to finalize when they wrote this function. This forces all the tables to stay locked... - // They finally fixed it in 5.3 but 5.2 still have this so instead, we go and grab the column types by smashing open the sqlite_master table + // They finally fixed it in 5.1.3 but 5.1.2 and under still have this so instead, we go and grab the column types by smashing open the sqlite_master table // and grope around for things that remind us of datatypes... - if (version_compare(phpversion(), '5.3', '>=')) + if (version_compare(phpversion(), '5.1.3', '>=')) { $col_types = sqlite_fetch_column_types($table_name, $db->db_connect_id); } @@ -455,7 +455,7 @@ class acp_database // Grab all of the data from current table. $sql = "SELECT * - FROM {$table_name}"; + FROM $table_name"; $result = $db->sql_query($sql); $i_num_fields = pg_num_fields($result); @@ -576,7 +576,7 @@ class acp_database // Grab all of the data from current table. $sql = "SELECT * - FROM {$table_name}"; + FROM $table_name"; $result = $db->sql_query($sql); $retrieved_data = odbc_num_rows($result); @@ -687,7 +687,7 @@ class acp_database // Grab all of the data from current table. $sql = "SELECT * - FROM {$table_name}"; + FROM $table_name"; $result = $db->sql_query($sql); $retrieved_data = mssql_num_rows($result); @@ -798,7 +798,7 @@ class acp_database // Grab all of the data from current table. $sql = "SELECT * - FROM {$table_name}"; + FROM $table_name"; $result = $db->sql_query($sql); $i_num_fields = ibase_num_fields($result); @@ -883,7 +883,7 @@ class acp_database // Grab all of the data from current table. $sql = "SELECT * - FROM {$table_name}"; + FROM $table_name"; $result = $db->sql_query($sql); $i_num_fields = ocinumcols($result);