| @@ 1007-1015 (lines=9) @@ | ||
| 1004 | } |
|
| 1005 | } |
|
| 1006 | // Don't remove stat collection unless we unchecked the box for real, not from the loop. |
|
| 1007 | elseif (empty($_POST['stats']) && empty($upcontext['allow_sm_stats'])) |
|
| 1008 | $smcFunc['db_query']('', ' |
|
| 1009 | DELETE FROM {db_prefix}settings |
|
| 1010 | WHERE variable = {string:enable_sm_stats}', |
|
| 1011 | array( |
|
| 1012 | 'enable_sm_stats' => 'enable_sm_stats', |
|
| 1013 | 'db_error_skip' => true, |
|
| 1014 | ) |
|
| 1015 | ); |
|
| 1016 | ||
| 1017 | // Deleting old karma stuff? |
|
| 1018 | if (!empty($_POST['delete_karma'])) |
|
| @@ 1311-1319 (lines=9) @@ | ||
| 1308 | } |
|
| 1309 | } |
|
| 1310 | // Don't remove stat collection unless we unchecked the box for real, not from the loop. |
|
| 1311 | elseif (empty($_POST['stats']) && empty($upcontext['allow_sm_stats'])) |
|
| 1312 | $smcFunc['db_query']('', ' |
|
| 1313 | DELETE FROM {db_prefix}settings |
|
| 1314 | WHERE variable = {string:enable_sm_stats}', |
|
| 1315 | array( |
|
| 1316 | 'enable_sm_stats' => 'enable_sm_stats', |
|
| 1317 | 'db_error_skip' => true, |
|
| 1318 | ) |
|
| 1319 | ); |
|
| 1320 | ||
| 1321 | // Are we enabling SSL? |
|
| 1322 | if (!empty($_POST['force_ssl'])) |
|