| @@ 951-957 (lines=7) @@ | ||
| 948 | // Get the unique site ID. |
|
| 949 | preg_match('~SITE-ID:\s(\w{10})~', $return_data, $ID); |
|
| 950 | ||
| 951 | if (!empty($ID[1])) |
|
| 952 | $smcFunc['db_insert']('replace', |
|
| 953 | $db_prefix . 'settings', |
|
| 954 | array('variable' => 'string', 'value' => 'string'), |
|
| 955 | array('allow_sm_stats', $ID[1]), |
|
| 956 | array('variable') |
|
| 957 | ); |
|
| 958 | } |
|
| 959 | } |
|
| 960 | else |
|
| @@ 1274-1285 (lines=12) @@ | ||
| 1271 | if (!isset($modSettings['smfVersion']) || $modSettings['smfVersion'] < $file[1]) |
|
| 1272 | { |
|
| 1273 | $nextFile = parse_sql(dirname(__FILE__) . '/' . $file[0]); |
|
| 1274 | if ($nextFile) |
|
| 1275 | { |
|
| 1276 | // Only update the version of this if complete. |
|
| 1277 | $smcFunc['db_insert']('replace', |
|
| 1278 | $db_prefix . 'settings', |
|
| 1279 | array('variable' => 'string', 'value' => 'string'), |
|
| 1280 | array('smfVersion', $file[2]), |
|
| 1281 | array('variable') |
|
| 1282 | ); |
|
| 1283 | ||
| 1284 | $modSettings['smfVersion'] = $file[2]; |
|
| 1285 | } |
|
| 1286 | ||
| 1287 | // If this is XML we only do this stuff once. |
|
| 1288 | if (isset($_GET['xml'])) |
|