Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit 9781db6

Browse files
committed
Added option to show map mapper (exceptions for older st versions)
1 parent a7e1b68 commit 9781db6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

inc/database.php

+8
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@
4545
$config_player_flags = $exists_UsrTableCountryCodeAndContinentCodeCheck;
4646
} else $config_player_flags = FALSE;
4747

48+
if($settings_map_mapper){
49+
$sql_UsrTableCountryCodeAndContinentCodeCheck = "SHOW COLUMNS FROM `ck_maptier` LIKE 'mapper'";
50+
$result_UsrTableCountryCodeAndContinentCodeCheck = $db_conn_surftimer->query($sql_UsrTableCountryCodeAndContinentCodeCheck);
51+
$exists_UsrTableCountryCodeAndContinentCodeCheck = (bool)mysqli_num_rows($result_UsrTableCountryCodeAndContinentCodeCheck);
52+
$config_player_flags = $exists_UsrTableCountryCodeAndContinentCodeCheck;
53+
} else $settings_map_mapper = FALSE;
54+
55+
4856
$sql_select_timezone = "SELECT IF(@@session.time_zone = 'SYSTEM', @@system_time_zone, @@session.time_zone) as timezone;";
4957
$results_select_timezone = mysqli_query($db_conn_surftimer, $sql_select_timezone);
5058
$row_select_timezone = mysqli_fetch_assoc($results_select_timezone);

0 commit comments

Comments
 (0)