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

Commit a7e1b68

Browse files
committed
Added option to show map mapper
1 parent 10b5c0d commit a7e1b68

14 files changed

+30
-5
lines changed

inc/config.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
/* Database Config */
77

8-
$db_host = 'your_database_host'; // DB Hostame
9-
$db_port = 3306; // DB Port (Default: 3306)
10-
$db_username = 'your_database_username'; // DB Username
11-
$db_password = 'your_database_password'; // DB Password
12-
$db_database = 'your_database_name'; // DB Database
8+
$db_host = 'localhost'; // DB Hostame
9+
$db_port = '3306'; // DB Port (Default: 3306)
10+
$db_username = 'surfcen2_timer1'; // DB Username
11+
$db_password = 'surfcen2_timer1'; // DB Password
12+
$db_database = 'surfcen2_timer1'; // DB Database
1313

1414
/* End of Database Config */
1515

@@ -38,6 +38,7 @@
3838
$settings_player_profile_icon = TRUE; // TRUE or FALSE # FALSE will disable player profile icons
3939
$settings_map_link_icon = TRUE; // TRUE or FALSE # FALSE will disable link icon after map name
4040
$settings_map_image_preview = TRUE; // TRUE or FALSE # FALSE will disable map images preview
41+
$settings_map_mapper = TRUE; // TRUE or FALSE # FALSE will disable map mapper name
4142

4243

4344
/* End of Design Settings */

inc/functions.php

+9
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,12 @@ function MapPreviewImage($map_name): string
219219
return '';
220220
endif;
221221
}
222+
223+
function MapMapper($map_mapper): string
224+
{
225+
global $settings_map_mapper;
226+
if($settings_map_mapper === TRUE)
227+
return '<div class="text-center">'.MAPS_MAP_CREATED_BY.': <strong>'.$map_mapper.'</strong></div>';
228+
else
229+
return '';
230+
}

inc/languages/Czech.php

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
const MAPS_MAP_COMPLETIONS = 'Dokončení mapy';
7575
const MAPS_STAGE_COMPLETIONS = 'Dokončení etap';
7676
const MAPS_BONUSES_COMPLETIONS = 'Dokončení bonusů';
77+
const MAPS_MAP_CREATED_BY = 'Mapu vytvořil';
7778

7879
const PROFILE_PLAYER_PROFILE = 'Profil hráče';
7980
const PROFILE_TOP = 'TOP';

inc/languages/Danish.php

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
const MAPS_MAP_COMPLETIONS = 'Map Completions';
7575
const MAPS_STAGE_COMPLETIONS = 'Stage Completions';
7676
const MAPS_BONUSES_COMPLETIONS = 'Bonuses Completions';
77+
const MAPS_MAP_CREATED_BY = 'Kort lavet af';
7778

7879
const PROFILE_PLAYER_PROFILE = 'Spiller Profil';
7980
const PROFILE_TOP = 'TOP';

inc/languages/English.php

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
const MAPS_MAP_COMPLETIONS = 'Map Completions';
7575
const MAPS_STAGE_COMPLETIONS = 'Stage Completions';
7676
const MAPS_BONUSES_COMPLETIONS = 'Bonuses Completions';
77+
const MAPS_MAP_CREATED_BY = 'Map created by';
7778

7879
const PROFILE_PLAYER_PROFILE = 'Player Profile';
7980
const PROFILE_TOP = 'TOP';

inc/languages/French.php

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
const MAPS_MAP_COMPLETIONS = 'Nombre total de completions de maps';
7575
const MAPS_STAGE_COMPLETIONS = 'Nombre total de completions de niveaux';
7676
const MAPS_BONUSES_COMPLETIONS = 'Nombre total de completions de bonus';
77+
const MAPS_MAP_CREATED_BY = 'Carte créée par';
7778

7879
const PROFILE_PLAYER_PROFILE = 'Profile du joueur';
7980
const PROFILE_TOP = 'TOP';

inc/languages/German.php

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
const MAPS_MAP_COMPLETIONS = 'Karten Läufe';
7575
const MAPS_STAGE_COMPLETIONS = 'Stage Läufe';
7676
const MAPS_BONUSES_COMPLETIONS = 'Bonus Läufe';
77+
const MAPS_MAP_CREATED_BY = 'Karte erstellt von';
78+
7779
const PROFILE_PLAYER_PROFILE = 'Spielerprofil';
7880
const PROFILE_TOP = 'TOP';
7981
const PROFILE_USER_TOTAL_COMPLETION_PROGRESS = 'Fortschritt Spieler Läufe';

inc/languages/Korean.php

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
const MAPS_MAP_COMPLETIONS = '맵 완주 횟수';
7575
const MAPS_STAGE_COMPLETIONS = '스테이지 완주 횟수';
7676
const MAPS_BONUSES_COMPLETIONS = '보너스 완주 횟수';
77+
const MAPS_MAP_CREATED_BY = '만든 지도';
7778

7879
const PROFILE_PLAYER_PROFILE = '플레이어 프로필';
7980
const PROFILE_TOP = 'Top';

inc/languages/Portuguese.php

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
const MAPS_MAP_COMPLETIONS = 'Finalizações do Mapa';
7575
const MAPS_STAGE_COMPLETIONS = 'Finalizações da Etapa';
7676
const MAPS_BONUSES_COMPLETIONS = 'Finalizações do Bónus';
77+
const MAPS_MAP_CREATED_BY = 'Mapa criado por';
7778

7879
const PROFILE_PLAYER_PROFILE = 'Perfil do Jogador';
7980
const PROFILE_TOP = 'TOP';

inc/languages/Slovak.php

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
const MAPS_MAP_COMPLETIONS = 'Dokončenia mapy';
7575
const MAPS_STAGE_COMPLETIONS = 'Dokončenia etapy';
7676
const MAPS_BONUSES_COMPLETIONS = 'Dokončenia bonusu';
77+
const MAPS_MAP_CREATED_BY = 'Mapu vytvoril';
7778

7879
const PROFILE_PLAYER_PROFILE = 'Profil hráča';
7980
const PROFILE_TOP = 'TOP';

inc/languages/Spanish.php

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
const MAPS_MAP_COMPLETIONS = 'Finalizaciones de Mapa';
7575
const MAPS_STAGE_COMPLETIONS = 'Finalizaciones Stage';
7676
const MAPS_BONUSES_COMPLETIONS = 'Finalizaciones Bonus';
77+
const MAPS_MAP_CREATED_BY = 'Mapa creado por';
7778

7879
const PROFILE_PLAYER_PROFILE = 'Perfil del Jugador';
7980
const PROFILE_TOP = 'TOP';

inc/languages/Swedish.php

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
const MAPS_MAP_COMPLETIONS = 'Map Utförda';
7575
const MAPS_STAGE_COMPLETIONS = 'Stage Utförda';
7676
const MAPS_BONUSES_COMPLETIONS = 'Bonus Utförda';
77+
const MAPS_MAP_CREATED_BY = 'Karta skapad av';
78+
7779
const PROFILE_PLAYER_PROFILE = 'Spelare Profil';
7880
const PROFILE_TOP = 'TOP';
7981
const PROFILE_USER_TOTAL_COMPLETION_PROGRESS = 'Användarens totala slutförande';

inc/languages/Turkish.php

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
const MAPS_MAP_COMPLETIONS = 'Harita Rekorları';
7575
const MAPS_STAGE_COMPLETIONS = 'Stage Rekorları';
7676
const MAPS_BONUSES_COMPLETIONS = 'Bonus Rekorları';
77+
const MAPS_MAP_CREATED_BY = 'Oluşturan harita';
7778

7879
const PROFILE_PLAYER_PROFILE = 'Oyuncu Profili';
7980
const PROFILE_TOP = 'Sıralama';

inc/pages/dashboard_maps.php

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
$map_name = $row_map['mapname'];
3131
$map_tier = $row_map['tier'];
32+
$map_mapper = $row_map['mapper'];
3233
$map_dateadded = $row_map['date'];
3334
$map_maxvelocity = $row_map['maxvelocity'];
3435

@@ -423,6 +424,7 @@
423424
<?php if(isset($row_map['date'])): ?>
424425
<div class="my-4">
425426
<h3 class="text-center"><?php echo $mapname; ?></h3>
427+
<?php echo MapMapper($map_mapper); ?>
426428
<div class="row justify-content-md-center">
427429
<div class="col-12 col-md-auto text-center">
428430
<?php echo TABLE_TYPE; ?>: <b><?php echo $map_stages_info;?></b>

0 commit comments

Comments
 (0)