| @@ 1254-1262 (lines=9) @@ | ||
| 1251 | } |
|
| 1252 | } |
|
| 1253 | // Don't remove stat collection unless we unchecked the box for real, not from the loop. |
|
| 1254 | elseif (empty($_POST['stats']) && empty($upcontext['allow_sm_stats'])) |
|
| 1255 | $smcFunc['db_query']('', ' |
|
| 1256 | DELETE FROM {db_prefix}settings |
|
| 1257 | WHERE variable = {string:enable_sm_stats}', |
|
| 1258 | array( |
|
| 1259 | 'enable_sm_stats' => 'enable_sm_stats', |
|
| 1260 | 'db_error_skip' => true, |
|
| 1261 | ) |
|
| 1262 | ); |
|
| 1263 | ||
| 1264 | // Are we enabling SSL? |
|
| 1265 | if (!empty($_POST['force_ssl'])) |
|
| @@ 978-986 (lines=9) @@ | ||
| 975 | } |
|
| 976 | } |
|
| 977 | // Don't remove stat collection unless we unchecked the box for real, not from the loop. |
|
| 978 | elseif (empty($_POST['stats']) && empty($upcontext['allow_sm_stats'])) |
|
| 979 | $smcFunc['db_query']('', ' |
|
| 980 | DELETE FROM {db_prefix}settings |
|
| 981 | WHERE variable = {string:enable_sm_stats}', |
|
| 982 | array( |
|
| 983 | 'enable_sm_stats' => 'enable_sm_stats', |
|
| 984 | 'db_error_skip' => true, |
|
| 985 | ) |
|
| 986 | ); |
|
| 987 | ||
| 988 | // Deleting old karma stuff? |
|
| 989 | if (!empty($_POST['delete_karma'])) |
|