| @@ 942-948 (lines=7) @@ | ||
| 939 | // Get the unique site ID. |
|
| 940 | preg_match('~SITE-ID:\s(\w{10})~', $return_data, $ID); |
|
| 941 | ||
| 942 | if (!empty($ID[1])) |
|
| 943 | $smcFunc['db_insert']('replace', |
|
| 944 | $db_prefix . 'settings', |
|
| 945 | array('variable' => 'string', 'value' => 'string'), |
|
| 946 | array('allow_sm_stats', $ID[1]), |
|
| 947 | array('variable') |
|
| 948 | ); |
|
| 949 | } |
|
| 950 | } |
|
| 951 | else |
|
| @@ 1261-1272 (lines=12) @@ | ||
| 1258 | if (!isset($modSettings['smfVersion']) || $modSettings['smfVersion'] < $file[1]) |
|
| 1259 | { |
|
| 1260 | $nextFile = parse_sql(dirname(__FILE__) . '/' . $file[0]); |
|
| 1261 | if ($nextFile) |
|
| 1262 | { |
|
| 1263 | // Only update the version of this if complete. |
|
| 1264 | $smcFunc['db_insert']('replace', |
|
| 1265 | $db_prefix . 'settings', |
|
| 1266 | array('variable' => 'string', 'value' => 'string'), |
|
| 1267 | array('smfVersion', $file[2]), |
|
| 1268 | array('variable') |
|
| 1269 | ); |
|
| 1270 | ||
| 1271 | $modSettings['smfVersion'] = $file[2]; |
|
| 1272 | } |
|
| 1273 | ||
| 1274 | // If this is XML we only do this stuff once. |
|
| 1275 | if (isset($_GET['xml'])) |
|