From ddd9e6fc5d1f7a09ef8ec621097acdb8e04b6a77 Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Sun, 19 Nov 2023 22:00:39 -0300 Subject: [PATCH 01/16] #change rules - team codding --- system/templates/rules.html.twig | 636 ++++++++++++++++++------------- system/templates/team.html.twig | 509 ++++++++++++++++++++++++- 2 files changed, 862 insertions(+), 283 deletions(-) diff --git a/system/templates/rules.html.twig b/system/templates/rules.html.twig index 0af86350e4..32f092b8a7 100644 --- a/system/templates/rules.html.twig +++ b/system/templates/rules.html.twig @@ -1,4 +1,26 @@
+
+ + + + + + + + +
+

+ + +
+
+
+ +
+
@@ -6,281 +28,355 @@ -
Tibia Rules
+
Rules
- - - - - - -
-
- - - - - - -
Tibia is an online role-playing game in which thousands of players from all over the - world meet everyday. In order to ensure that the game is fun for everyone, CipSoft - expects all players to behave in a reasonable and respectful manner.

- CipSoft reserves the right to stop destructive behaviour in the game, on the - official website or in any other part of CipSoft's services. Such behaviour - includes, but is not limited to, the following offences:

- - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1.Names
- - - - - - - - - - - - - - - - - - - -
a)Offensive Name
- Names that are insulting, racist, sexually - related, drug-related, harassing or generally - objectionable. -
b)Name Containing Forbidden Advertising
- Names that advertise brands, products or - services of third parties, content which is not - related to the game or trades for real money. -
c)Unsuitable Name
- Names that express religious or political views. -
d)Name Supporting Rule Violation
- Names that support, incite, announce or imply a - violation of the Tibia Rules. -
-
 
2.Statements
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
a)Offensive Statement
- Insulting, racist, sexually related, - drug-related, harassing or generally - objectionable statements. -
b)Spamming
- Excessively repeating identical or similar - statements or using badly formatted or - nonsensical text. -
c)Forbidden Advertising
- Advertising brands, products or services of - third parties, content which is not related to - the game or trades for real money. -
d)Off-Topic Public Statement
- Religious or political public statements or - other public statements which are not related to - the topic of the used channel or board. -
e)Violating Language Restriction
- Non-English statements in boards and channels - where the use of English is explicitly required. -
f)Disclosing Personal Data of Others
- Disclosing personal data of other people. -
g)Supporting Rule Violation
- Statements that support, incite, announce or - imply a violation of the Tibia Rules. -
-
 
3.Cheating
- - - - - - - - - - - -
a)Bug Abuse
- Exploiting obvious errors of the game or any - other part of CipSoft's services. -
b)Using Unofficial Software to Play
- Manipulating the official client program or - using additional software to play the game. -
-
 
4.CipSoft
- - - - - - - - - - - - - - - -
a)Pretending to be CipSoft
- Pretending to be a representative of CipSoft or - to have their legitimation or powers. -
b)Slandering or Agitating against - CipSoft
- Publishing clearly wrong information about or - calling a boycott against CipSoft or its - services. -
c)False Information to CipSoft
- Intentionally giving wrong or misleading - information to CipSoft in reports about rule - violations, complaints, bug reports or support - requests. -
-
 
5.Legal Issues
- - - - - - - - - - - - - - - -
a)Hacking
- Stealing other players' account or personal - data. -
b)Attacking CipSoft Service
- Attacking, disrupting or damaging the operation - of any CipSoft server, the game or any other - part of CipSoft's services. -
c)Violating Law or Regulations
- Violating any applicable law, the Tibia Service - Agreement or rights of third parties. -
-
 
-
-
- Violating or attempting to violate the Tibia Rules may lead to a temporary - suspension of characters and accounts. In severe cases the removal or modification - of character skills, attributes and belongings, as well as the permanent removal of - characters and accounts without any compensation may be considered. The sanction is - based on the seriousness of the rule violation and the previous record of the - player. It is determined at the sole discretion of CipSoft and can be imposed - without any previous warning.

- These rules may be changed at any time. All changes will be announced on the - official website. -
-
-
+
{{ config['lua']['serverName'] }} is an online role-playing game in which thousands of players from all over the world meet everyday. In order to ensure that the game is fun for everyone, {{ config['lua']['serverName'] }} expects all players to behave in a reasonable and respectful manner.

+ {{ config['lua']['serverName'] }} reserves the right to stop destructive behaviour in the game, on the official website or in any other part of {{ config['lua']['serverName'] }}'s services. Such behaviour includes, but is not limited to, the following offences:

+
+ + + + + + + + + + + + + + + +
1.Names
+ + + + +
a)Offensive Name
+ Names that are insulting, racist, sexually related, drug-related, harassing or generally objectionable. +
b)Name Containing Forbidden Advertising
+ Names that advertise brands, products or services of third parties, content which is not related to the game or trades for real money. +
c)Unsuitable Name
+ Names that express religious or political views. +
d)Name Supporting Rule Violation
+ Names that support, incite, announce or imply a violation of the {{ config['lua']['serverName'] }} Rules. +
 
2.Statements
+ + + + + + + +
a)Offensive Statement
+ Insulting, racist, sexually related, drug-related, harassing or generally objectionable statements. +
b)Spamming
+ Excessively repeating identical or similar statements or using badly formatted or nonsensical text. +
c)Forbidden Advertising
+ Advertising brands, products or services of third parties, content which is not related to the game or trades for real money. +
d)Off-Topic Public Statement
+ Religious or political public statements or other public statements which are not related to the topic of the used channel or board. +
e)Violating Language Restriction
+ Non-English statements in boards and channels where the use of English is explicitly required. +
f)Disclosing Personal Data of Others
+ Disclosing personal data of other people. +
g)Supporting Rule Violation
+ Statements that support, incite, announce or imply a violation of the {{ config['lua']['serverName'] }} Rules. +
 
3.Cheating
+ + +
a)Bug Abuse
+ Exploiting obvious errors of the game or any other part of {{ config['lua']['serverName'] }}'s services. +
b)Using Unofficial Software to Play
+ Manipulating the official client program or using additional software to play the game. +
 
4.{{ config['lua']['serverName'] }}
+ + + +
a)Pretending to be {{ config['lua']['serverName'] }}
+ Pretending to be a representative of {{ config['lua']['serverName'] }} or to have their legitimation or powers. +
b)Slandering or Agitating against {{ config['lua']['serverName'] }}
+ Publishing clearly wrong information about or calling a boycott against {{ config['lua']['serverName'] }} or its services. +
c)False Information to {{ config['lua']['serverName'] }}
+ Intentionally giving wrong or misleading information to {{ config['lua']['serverName'] }} in reports about rule violations, complaints, bug reports or support requests. +
 
5.Legal Issues
+ + + +
a)Hacking
+ Stealing other players' account or personal data. +
b)Attacking {{ config['lua']['serverName'] }} Service
+ Attacking, disrupting or damaging the operation of any {{ config['lua']['serverName'] }} server, the game or any other part of {{ config['lua']['serverName'] }}'s services. +
c)Violating Law or Regulations
+ Violating any applicable law, the {{ config['lua']['serverName'] }} Service Agreement or rights of third parties. +
 

+ Violating or attempting to violate the {{ config['lua']['serverName'] }} Rules may lead to a temporary suspension of characters and accounts. In severe cases the removal or modification of character skills, attributes and belongings, as well as the permanent removal of characters and accounts without any compensation may be considered. The sanction is based on the seriousness of the rule violation and the previous record of the player. It is determined at the sole discretion of {{ config['lua']['serverName'] }} and can be imposed without any previous warning.

+ These rules may be changed at any time. All changes will be announced on the official website. +
+
+
+ + + +
diff --git a/system/templates/team.html.twig b/system/templates/team.html.twig index 1da950910e..2f4f3272ef 100644 --- a/system/templates/team.html.twig +++ b/system/templates/team.html.twig @@ -3,14 +3,24 @@ - Our Team + Staff Team -

+
+ +{% set godMembersExist = false %} +{% for group in groupmember|reverse %} + {% if not godMembersExist %} + {% if group.members is not empty and group.group_name == 'god' %} + {% set godMembersExist = true %} + {% endif %} + {% endif %} +{% endfor %} +{% if godMembersExist %}
@@ -21,7 +31,7 @@ -
Support in game
+
Administrator
@@ -29,7 +39,7 @@
- +
+ + +
@@ -43,25 +53,169 @@ - {% if config.team_display_outfit %}{% endif %} - + {% if config.team_display_outfit %}{% endif %} + + + + + - {% for group in groupmember|reverse %} - {% if group.members is not empty %} - {% for member in group.members|reverse %} - {% set i = i + 1 %} - + {% for group in groupmember|reverse %} + {% if group.members is not empty and group.group_name == 'god' %} + {% for member in group.members|reverse %} + {% set i = i + 1 %} + {% if config.team_display_outfit %} - + {% endif %} + + - + + + + + {% endfor %} {% endif %} {% endfor %} + +
OutfitName#GroupNameStatusLast LoginWorldCountry
player outfitplayer outfitAdministrator {{ member.link|raw }}{{ group.group_name|capitalize }} + {% if member.status %} + Online + {% else %} + Offline + {% endif %} + + {% if member.last_login %} + {{ member.last_login }} +
+ {% else %} + Not connected yet + {% endif %} +
+ {% if member.world_name %} + {{ member.world_name }} + {% else %} + {{ config['lua']['serverName'] }} + {% endif %} + + {% if member.flag_image %} + {{ member.flag_image|raw }} + {% else %} + No Flag + {% endif %} +
+ + +
+ + + + + +

+{% endif %} + +{% set cmMembersExist = false %} +{% for group in groupmember|reverse %} + {% if not cmMembersExist %} + {% if group.members is not empty and group.group_name == 'community manager' %} + {% set cmMembersExist = true %} + {% endif %} + {% endif %} +{% endfor %} +{% if cmMembersExist %} + +
+
+
+ + + + + + +
Community Manager
+ + + + +
+
+ + + + - + @@ -153,7 +156,7 @@ - + {% if houseLevel %} {% endif %} @@ -201,29 +204,43 @@
+
+ + + +
+
+
+ + + + {% if config.team_display_outfit %}{% endif %} + + + + + + + + {% for group in groupmember|reverse %} + {% if group.members is not empty and group.group_name == 'community manager' %} + {% for member in group.members|reverse %} + {% set i = i + 1 %} + + {% if config.team_display_outfit %} + + {% endif %} + + + + + + + + + + {% endfor %} + {% endif %} + {% endfor %}
#GroupNameStatusLast LoginWorldCountry
player outfitCommunity Manager{{ member.link|raw }} + {% if member.status %} + Online + {% else %} + Offline + {% endif %} + + {% if member.last_login %} + {{ member.last_login }} +
+ {% else %} + Not connected yet + {% endif %} +
+ {% if member.world_name %} + {{ member.world_name }} + {% else %} + {{ config['lua']['serverName'] }} + {% endif %} + + {% if member.flag_image %} + {{ member.flag_image|raw }} + {% else %} + No Flag + {% endif %} +
@@ -75,3 +229,332 @@
+

+{% endif %} + +{% set gmMembersExist = false %} +{% for group in groupmember|reverse %} + {% if not gmMembersExist %} + {% if group.members is not empty and group.group_name == 'gamemaster' %} + {% set gmMembersExist = true %} + {% endif %} + {% endif %} +{% endfor %} +{% if gmMembersExist %} + +
+
+
+ + + + + + +
GameMaster
+ + + + +
+
+ + + + + + +
+
+ + + + + + +
+
+
+ + + + {% if config.team_display_outfit %}{% endif %} + + + + + + + + {% for group in groupmember|reverse %} + {% if group.members is not empty and group.group_name == 'gamemaster' %} + {% for member in group.members|reverse %} + {% set i = i + 1 %} + + {% if config.team_display_outfit %} + + {% endif %} + + + + + + + + + + {% endfor %} + {% endif %} + {% endfor %} + +
#GroupNameStatusLast LoginWorldCountry
player outfitGameMaster{{ member.link|raw }} + {% if member.status %} + Online + {% else %} + Offline + {% endif %} + + {% if member.last_login %} + {{ member.last_login }} +
+ {% else %} + Not connected yet + {% endif %} +
+ {% if member.world_name %} + {{ member.world_name }} + {% else %} + {{ config['lua']['serverName'] }} + {% endif %} + + {% if member.flag_image %} + {{ member.flag_image|raw }} + {% else %} + No Flag + {% endif %} +
+
+
+
+
+
+

+{% endif %} + +{% set seniorMembersExist = false %} +{% for group in groupmember|reverse %} + {% if not seniorMembersExist %} + {% if group.members is not empty and group.group_name == 'senior tutor' %} + {% set seniorMembersExist = true %} + {% endif %} + {% endif %} +{% endfor %} +{% if seniorMembersExist %} + +
+
+
+ + + + + + +
Senior Tutor
+ + + + +
+
+ + + + + + +
+
+ + + + + + +
+
+
+ + + + {% if config.team_display_outfit %}{% endif %} + + + + + + + + {% for group in groupmember|reverse %} + {% if group.members is not empty and group.group_name == 'senior tutor' %} + {% for member in group.members|reverse %} + {% set i = i + 1 %} + + {% if config.team_display_outfit %} + + {% endif %} + + + + + + + + + + {% endfor %} + {% endif %} + {% endfor %} + +
#GroupNameStatusLast LoginWorldCountry
player outfitSenior Tutor{{ member.link|raw }} + {% if member.status %} + Online + {% else %} + Offline + {% endif %} + + {% if member.last_login %} + {{ member.last_login }} +
+ {% else %} + Not connected yet + {% endif %} +
+ {% if member.world_name %} + {{ member.world_name }} + {% else %} + {{ config['lua']['serverName'] }} + {% endif %} + + {% if member.flag_image %} + {{ member.flag_image|raw }} + {% else %} + No Flag + {% endif %} +
+
+
+
+
+
+

+{% endif %} + +{% set tutorMembersExist = false %} +{% for group in groupmember|reverse %} + {% if not tutorMembersExist %} + {% if group.members is not empty and group.group_name == 'tutor' %} + {% set tutorMembersExist = true %} + {% endif %} + {% endif %} +{% endfor %} +{% if tutorMembersExist %} + +
+
+
+ + + + + + +
Tutor
+ + + + +
+
+ + + + + + +
+
+ + + + + + +
+
+
+ + + + {% if config.team_display_outfit %}{% endif %} + + + + + + + + {% for group in groupmember|reverse %} + {% if group.members is not empty and group.group_name == 'tutor' %} + {% for member in group.members|reverse %} + {% set i = i + 1 %} + + {% if config.team_display_outfit %} + + {% endif %} + + + + + + + + + + {% endfor %} + {% endif %} + {% endfor %} + +
#GroupNameStatusLast LoginWorldCountry
player outfitTutor{{ member.link|raw }} + {% if member.status %} + Online + {% else %} + Offline + {% endif %} + + {% if member.last_login %} + {{ member.last_login }} +
+ {% else %} + Not connected yet + {% endif %} +
+ {% if member.world_name %} + {{ member.world_name }} + {% else %} + {{ config['lua']['serverName'] }} + {% endif %} + + {% if member.flag_image %} + {{ member.flag_image|raw }} + {% else %} + No Flag + {% endif %} +
+
+
+
+
+
+

+{% endif %} \ No newline at end of file From efb49bb001e63f830f83237e14b2c24b235e32c0 Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Mon, 20 Nov 2023 00:01:54 -0300 Subject: [PATCH 02/16] #fix serverinfo informations --- system/pages/serverinfo.php | 18 +++--- system/templates/serverinfo.html.twig | 79 ++++++++++++++++----------- 2 files changed, 57 insertions(+), 40 deletions(-) diff --git a/system/pages/serverinfo.php b/system/pages/serverinfo.php index f83c7d784b..cded4e5fe2 100644 --- a/system/pages/serverinfo.php +++ b/system/pages/serverinfo.php @@ -56,22 +56,22 @@ if(isset($whiteSkullTime)) $whiteSkullTime = eval('return ' . $whiteSkullTime . ';'); -$redSkullLength = isset($config['lua']['redSkullLength']) ? $config['lua']['redSkullLength'] : NULL; +$redSkullLength = isset($config['lua']['redSkullDuration']) ? $config['lua']['redSkullDuration'] : NULL; if(!isset($redSkullLength) && isset($config['lua']['red_skull_duration'])) $redSkullLength = $config['lua']['red_skull_duration']; if(isset($redSkullLength)) $redSkullLength = eval('return ' . $redSkullLength . ';'); -$blackSkull = false; -$blackSkullLength = NULL; +$blackSkull = true; +$blackSkullLength = isset($config['lua']['blackSkullDuration']) ? $config['lua']['blackSkullDuration'] : NULL; if(isset($config['lua']['useBlackSkull']) && getBoolean($config['lua']['useBlackSkull'])) { - $blackSkullLength = $config['lua']['blackSkullLength']; + $blackSkullLength = $config['lua']['blackSkullDuration']; $blackSkull = true; } else if(isset($config['lua']['black_skull_duration'])) { - $blackSkullLength = eval('return ' . $config['lua']['blackSkullLength'] . ';'); + $blackSkullLength = eval('return ' . $config['lua']['blackSkullDuration'] . ';'); $blackSkull = true; } @@ -88,7 +88,7 @@ $twig->display('serverinfo.html.twig', array( 'server_save' => $explodeServerSave, 'experienceStages' => isset($config['lua']['experienceStages']) && getBoolean($config['lua']['experienceStages']) ? $config['lua']['experienceStages'] : null, - 'serverIp' => str_replace('/', '', str_replace('http://', '', $config['lua']['url'])), + 'serverIp' => str_replace('/', '', str_replace('http://', '', $config['lua']['ip'])), 'clientVersion' => $clientVersion, 'globalSaveHour' => isset($config['lua']['globalSaveEnabled']) && getBoolean($config['lua']['globalSaveEnabled']) ? $config['lua']['globalSaveHour'] : null, 'protectionLevel' => $config['lua']['protectionLevel'], @@ -106,9 +106,9 @@ 'redSkullLength' => $redSkullLength, 'blackSkull' => $blackSkull, 'blackSkullLength' => $blackSkullLength, - 'dailyFragsToRedSkull' => isset($config['lua']['dailyFragsToRedSkull']) ? $config['lua']['dailyFragsToRedSkull'] : (isset($config['lua']['kills_per_day_red_skull']) ? $config['lua']['kills_per_day_red_skull'] : null), - 'weeklyFragsToRedSkull' => isset($config['lua']['weeklyFragsToRedSkull']) ? $config['lua']['weeklyFragsToRedSkull'] : (isset($config['lua']['kills_per_week_red_skull']) ? $config['lua']['kills_per_week_red_skull'] : null), - 'monthlyFragsToRedSkull' => isset($config['lua']['monthlyFragsToRedSkull']) ? $config['lua']['monthlyFragsToRedSkull'] : (isset($config['lua']['kills_per_month_red_skull']) ? $config['lua']['kills_per_month_red_skull'] : null), + 'dailyFragsToRedSkull' => isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : (isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : null), + 'weeklyFragsToRedSkull' => isset($config['lua']['weekKillsToRedSkull']) ? $config['lua']['weekKillsToRedSkull'] : (isset($config['lua']['weekKillsToRedSkull']) ? $config['lua']['weekKillsToRedSkull'] : null), + 'monthlyFragsToRedSkull' => isset($config['lua']['monthKillsToRedSkull']) ? $config['lua']['monthKillsToRedSkull'] : (isset($config['lua']['monthKillsToRedSkull']) ? $config['lua']['monthKillsToRedSkull'] : null), 'dailyFragsToBlackSkull' => isset($config['lua']['dailyFragsToBlackSkull']) ? $config['lua']['dailyFragsToBlackSkull'] : (isset($config['lua']['kills_per_day_black_skull']) ? $config['lua']['kills_per_day_black_skull'] : null), 'weeklyFragsToBlackSkull' => isset($config['lua']['weeklyFragsToBlackSkull']) ? $config['lua']['weeklyFragsToBlackSkull'] : (isset($config['lua']['kills_per_week_black_skull']) ? $config['lua']['kills_per_week_black_skull'] : null), 'monthlyFragsToBlackSkull' => isset($config['lua']['monthlyFragsToBlackSkull']) ? $config['lua']['monthlyFragsToBlackSkull'] : (isset($config['lua']['kills_per_month_black_skull']) ? $config['lua']['kills_per_month_black_skull'] : null), diff --git a/system/templates/serverinfo.html.twig b/system/templates/serverinfo.html.twig index 401a23c8a9..e91eb82e26 100644 --- a/system/templates/serverinfo.html.twig +++ b/system/templates/serverinfo.html.twig @@ -1,23 +1,26 @@ +

{{ config.lua.serverName }}

@@ -94,7 +97,7 @@

IP: {{ serverIp }} (Port: {{ config.lua.loginPort }})
Client: {{ clientVersion }}
Online: 24/7
Uptime: {{ status.uptimeReadable }}
Global save: {{ server_save.0 }}:{{ server_save.1 }}
World type: {{ config.lua.worldType|upper }}
Protection level: {{ protectionLevel }}
Skills: x{{ rateSkill }}
Loot: x{{ rateLoot }}
Spawn: x{{ rateSpawn }}
Guilds: {{ config.guild_need_level }}
Need level to create Guild: {{ config.guild_need_level }}
Houses: {{ houseLevel }} level
- - + {% set whiteSkullTime = 7 * 60 %} + {# Converter para dias, horas, minutos e segundos #} + {% set days = whiteSkullTime // (24 * 60) %} + {% set hours = (whiteSkullTime % (24 * 60)) // 60 %} + {% set minutes = whiteSkullTime % 60 %} + {% set seconds = 0 %} + + + + {% if blackSkull %} - + {% endif %} - {% if killsToRedSkull is defined %} -
  • Kills to red skull: {{ config.lua.killsToRedSkull }}
  • - {% elseif config.lua.dailyFragsToRedSkull is defined or config.lua.kills_per_day_red_skull is defined %} -
  • + {% if dayKillsToRedSkull is defined %} +
  • Kills to red skull: {{ config.lua.dayKillsToRedSkull }}
  • + {% elseif config.lua.dayKillsToRedSkull is defined or config.lua.kills_per_day_red_skull is defined %} +

    Red skull

    - {% if blackSkull and config.lua.dailyFragsToBlackSkull is defined or config.lua.kills_per_day_black_skull is defined %} +

    Black skull

    - {% elseif config.lua.dailyFragsToBanishment is defined %} + {% if config.lua.dailyFragsToBanishment is defined %}

    Banishment

    {% endif %} - + {% endif %} {% if banishmentLength %}
  • Banishment length: {{ banishmentLength }} days
  • From b221d35a0e1f929bd30a2ed5156227ddc0584d23 Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Mon, 20 Nov 2023 01:05:19 -0300 Subject: [PATCH 03/16] #fix buttons hover --- templates/tibiacom/index.php | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/templates/tibiacom/index.php b/templates/tibiacom/index.php index 3f3dc23d8d..0bdeb46cd4 100644 --- a/templates/tibiacom/index.php +++ b/templates/tibiacom/index.php @@ -345,8 +345,8 @@ function MouseOutSubmenuItem(source) { style="background-image:url(/images/loginbox/loginbox-textfield-background.gif)">
    -
    +
    -
    + @@ -833,6 +833,31 @@ class="carousel-control-next-icon"
    + if (MediumButtonOverDownload) { + MediumButtonOverDownload.style.visibility = 'hidden'; + // Restante do código... + } + } + + + + Date: Mon, 20 Nov 2023 10:20:43 -0300 Subject: [PATCH 04/16] Update serverinfo.php --- system/pages/serverinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/serverinfo.php b/system/pages/serverinfo.php index cded4e5fe2..6dc8b9a9f4 100644 --- a/system/pages/serverinfo.php +++ b/system/pages/serverinfo.php @@ -88,7 +88,7 @@ $twig->display('serverinfo.html.twig', array( 'server_save' => $explodeServerSave, 'experienceStages' => isset($config['lua']['experienceStages']) && getBoolean($config['lua']['experienceStages']) ? $config['lua']['experienceStages'] : null, - 'serverIp' => str_replace('/', '', str_replace('http://', '', $config['lua']['ip'])), + 'serverIp' => str_replace(array('http://', 'https://'), '', $config['lua']['url']), 'clientVersion' => $clientVersion, 'globalSaveHour' => isset($config['lua']['globalSaveEnabled']) && getBoolean($config['lua']['globalSaveEnabled']) ? $config['lua']['globalSaveHour'] : null, 'protectionLevel' => $config['lua']['protectionLevel'], From f49f06c03d6fe364a8023efc2e032688e0ebd0de Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:00:39 -0300 Subject: [PATCH 05/16] Update system/pages/serverinfo.php Co-authored-by: Elson Costa --- system/pages/serverinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/serverinfo.php b/system/pages/serverinfo.php index 6dc8b9a9f4..ca4107393d 100644 --- a/system/pages/serverinfo.php +++ b/system/pages/serverinfo.php @@ -108,7 +108,7 @@ 'blackSkullLength' => $blackSkullLength, 'dailyFragsToRedSkull' => isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : (isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : null), 'weeklyFragsToRedSkull' => isset($config['lua']['weekKillsToRedSkull']) ? $config['lua']['weekKillsToRedSkull'] : (isset($config['lua']['weekKillsToRedSkull']) ? $config['lua']['weekKillsToRedSkull'] : null), - 'monthlyFragsToRedSkull' => isset($config['lua']['monthKillsToRedSkull']) ? $config['lua']['monthKillsToRedSkull'] : (isset($config['lua']['monthKillsToRedSkull']) ? $config['lua']['monthKillsToRedSkull'] : null), + 'monthlyFragsToRedSkull' => configLua('monthKillsToRedSkull') ?? null), 'dailyFragsToBlackSkull' => isset($config['lua']['dailyFragsToBlackSkull']) ? $config['lua']['dailyFragsToBlackSkull'] : (isset($config['lua']['kills_per_day_black_skull']) ? $config['lua']['kills_per_day_black_skull'] : null), 'weeklyFragsToBlackSkull' => isset($config['lua']['weeklyFragsToBlackSkull']) ? $config['lua']['weeklyFragsToBlackSkull'] : (isset($config['lua']['kills_per_week_black_skull']) ? $config['lua']['kills_per_week_black_skull'] : null), 'monthlyFragsToBlackSkull' => isset($config['lua']['monthlyFragsToBlackSkull']) ? $config['lua']['monthlyFragsToBlackSkull'] : (isset($config['lua']['kills_per_month_black_skull']) ? $config['lua']['kills_per_month_black_skull'] : null), From 97ed68294101e0223f808df3a821ff359d6863fa Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:00:50 -0300 Subject: [PATCH 06/16] Update system/pages/serverinfo.php Co-authored-by: Elson Costa --- system/pages/serverinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/serverinfo.php b/system/pages/serverinfo.php index ca4107393d..9a3e5d718c 100644 --- a/system/pages/serverinfo.php +++ b/system/pages/serverinfo.php @@ -107,7 +107,7 @@ 'blackSkull' => $blackSkull, 'blackSkullLength' => $blackSkullLength, 'dailyFragsToRedSkull' => isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : (isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : null), - 'weeklyFragsToRedSkull' => isset($config['lua']['weekKillsToRedSkull']) ? $config['lua']['weekKillsToRedSkull'] : (isset($config['lua']['weekKillsToRedSkull']) ? $config['lua']['weekKillsToRedSkull'] : null), + 'weeklyFragsToRedSkull' => configLua('weekKillsToRedSkull') ?? null), 'monthlyFragsToRedSkull' => configLua('monthKillsToRedSkull') ?? null), 'dailyFragsToBlackSkull' => isset($config['lua']['dailyFragsToBlackSkull']) ? $config['lua']['dailyFragsToBlackSkull'] : (isset($config['lua']['kills_per_day_black_skull']) ? $config['lua']['kills_per_day_black_skull'] : null), 'weeklyFragsToBlackSkull' => isset($config['lua']['weeklyFragsToBlackSkull']) ? $config['lua']['weeklyFragsToBlackSkull'] : (isset($config['lua']['kills_per_week_black_skull']) ? $config['lua']['kills_per_week_black_skull'] : null), From 646e8ba9d21940319b7e574880efdb7cb96adfda Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:01:00 -0300 Subject: [PATCH 07/16] Update system/pages/serverinfo.php Co-authored-by: Elson Costa --- system/pages/serverinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/serverinfo.php b/system/pages/serverinfo.php index 9a3e5d718c..7c1aa26130 100644 --- a/system/pages/serverinfo.php +++ b/system/pages/serverinfo.php @@ -106,7 +106,7 @@ 'redSkullLength' => $redSkullLength, 'blackSkull' => $blackSkull, 'blackSkullLength' => $blackSkullLength, - 'dailyFragsToRedSkull' => isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : (isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : null), + 'dailyFragsToRedSkull' => configLua('dayKillsToRedSkull') ?? null), 'weeklyFragsToRedSkull' => configLua('weekKillsToRedSkull') ?? null), 'monthlyFragsToRedSkull' => configLua('monthKillsToRedSkull') ?? null), 'dailyFragsToBlackSkull' => isset($config['lua']['dailyFragsToBlackSkull']) ? $config['lua']['dailyFragsToBlackSkull'] : (isset($config['lua']['kills_per_day_black_skull']) ? $config['lua']['kills_per_day_black_skull'] : null), From c5c2c49ac84e4259e24aa7ebc1a5e4c1d71aa0b6 Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:01:17 -0300 Subject: [PATCH 08/16] Update system/pages/serverinfo.php Co-authored-by: Elson Costa --- system/pages/serverinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/serverinfo.php b/system/pages/serverinfo.php index 7c1aa26130..3414b3598b 100644 --- a/system/pages/serverinfo.php +++ b/system/pages/serverinfo.php @@ -63,7 +63,7 @@ if(isset($redSkullLength)) $redSkullLength = eval('return ' . $redSkullLength . ';'); -$blackSkull = true; +$blackSkull = false; $blackSkullLength = isset($config['lua']['blackSkullDuration']) ? $config['lua']['blackSkullDuration'] : NULL; if(isset($config['lua']['useBlackSkull']) && getBoolean($config['lua']['useBlackSkull'])) { From 81446c331a3b17f536c82904386180f2a3affaa4 Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:01:29 -0300 Subject: [PATCH 09/16] Update system/pages/serverinfo.php Co-authored-by: Elson Costa --- system/pages/serverinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/serverinfo.php b/system/pages/serverinfo.php index 3414b3598b..e1aadc055c 100644 --- a/system/pages/serverinfo.php +++ b/system/pages/serverinfo.php @@ -56,7 +56,7 @@ if(isset($whiteSkullTime)) $whiteSkullTime = eval('return ' . $whiteSkullTime . ';'); -$redSkullLength = isset($config['lua']['redSkullDuration']) ? $config['lua']['redSkullDuration'] : NULL; +$redSkullLength = $configLua('redSkullDuration') ?? null; if(!isset($redSkullLength) && isset($config['lua']['red_skull_duration'])) $redSkullLength = $config['lua']['red_skull_duration']; From 8d5db0970b3cad8cec0a3017ef64ad30c974b030 Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Sun, 19 Nov 2023 22:00:39 -0300 Subject: [PATCH 10/16] #change rules - team codding --- system/templates/rules.html.twig | 636 ++++++++++++++++++------------- system/templates/team.html.twig | 509 ++++++++++++++++++++++++- 2 files changed, 862 insertions(+), 283 deletions(-) diff --git a/system/templates/rules.html.twig b/system/templates/rules.html.twig index 0af86350e4..32f092b8a7 100644 --- a/system/templates/rules.html.twig +++ b/system/templates/rules.html.twig @@ -1,4 +1,26 @@
    +
    +
    PZ Lock: {{ pzLocked / (60 * 1000) }} min
    White Skull Time: {{ whiteSkullTime }} min
    Red skull length: {{ redSkullLength / (24 * 60 * 60) }} days
    + Frag Duration: + {% if days > 0 %} {{ days }} days {% endif %} + {% if hours > 0 %} {{ hours }} hours {% endif %} + {% if minutes > 0 %} {{ minutes }} mins {% endif %} + {% if seconds > 0 %} {{ seconds }} segs {% endif %} +
    RedSkull Duration: {{ redSkullLength }} days
    Black skull length: {{ blackSkullLength / (24 * 60 * 60) }} days
    BlackSkull Duration: {{ blackSkullLength }} days
    + + + + + + + +
    +

    + + +
    +
    +
    + +
    +
    @@ -6,281 +28,355 @@ -
    Tibia Rules
    +
    Rules
    - - - - - - -
    -
    - - - - - - -
    Tibia is an online role-playing game in which thousands of players from all over the - world meet everyday. In order to ensure that the game is fun for everyone, CipSoft - expects all players to behave in a reasonable and respectful manner.

    - CipSoft reserves the right to stop destructive behaviour in the game, on the - official website or in any other part of CipSoft's services. Such behaviour - includes, but is not limited to, the following offences:

    - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    1.Names
    - - - - - - - - - - - - - - - - - - - -
    a)Offensive Name
    - Names that are insulting, racist, sexually - related, drug-related, harassing or generally - objectionable. -
    b)Name Containing Forbidden Advertising
    - Names that advertise brands, products or - services of third parties, content which is not - related to the game or trades for real money. -
    c)Unsuitable Name
    - Names that express religious or political views. -
    d)Name Supporting Rule Violation
    - Names that support, incite, announce or imply a - violation of the Tibia Rules. -
    -
     
    2.Statements
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    a)Offensive Statement
    - Insulting, racist, sexually related, - drug-related, harassing or generally - objectionable statements. -
    b)Spamming
    - Excessively repeating identical or similar - statements or using badly formatted or - nonsensical text. -
    c)Forbidden Advertising
    - Advertising brands, products or services of - third parties, content which is not related to - the game or trades for real money. -
    d)Off-Topic Public Statement
    - Religious or political public statements or - other public statements which are not related to - the topic of the used channel or board. -
    e)Violating Language Restriction
    - Non-English statements in boards and channels - where the use of English is explicitly required. -
    f)Disclosing Personal Data of Others
    - Disclosing personal data of other people. -
    g)Supporting Rule Violation
    - Statements that support, incite, announce or - imply a violation of the Tibia Rules. -
    -
     
    3.Cheating
    - - - - - - - - - - - -
    a)Bug Abuse
    - Exploiting obvious errors of the game or any - other part of CipSoft's services. -
    b)Using Unofficial Software to Play
    - Manipulating the official client program or - using additional software to play the game. -
    -
     
    4.CipSoft
    - - - - - - - - - - - - - - - -
    a)Pretending to be CipSoft
    - Pretending to be a representative of CipSoft or - to have their legitimation or powers. -
    b)Slandering or Agitating against - CipSoft
    - Publishing clearly wrong information about or - calling a boycott against CipSoft or its - services. -
    c)False Information to CipSoft
    - Intentionally giving wrong or misleading - information to CipSoft in reports about rule - violations, complaints, bug reports or support - requests. -
    -
     
    5.Legal Issues
    - - - - - - - - - - - - - - - -
    a)Hacking
    - Stealing other players' account or personal - data. -
    b)Attacking CipSoft Service
    - Attacking, disrupting or damaging the operation - of any CipSoft server, the game or any other - part of CipSoft's services. -
    c)Violating Law or Regulations
    - Violating any applicable law, the Tibia Service - Agreement or rights of third parties. -
    -
     
    -
    -
    - Violating or attempting to violate the Tibia Rules may lead to a temporary - suspension of characters and accounts. In severe cases the removal or modification - of character skills, attributes and belongings, as well as the permanent removal of - characters and accounts without any compensation may be considered. The sanction is - based on the seriousness of the rule violation and the previous record of the - player. It is determined at the sole discretion of CipSoft and can be imposed - without any previous warning.

    - These rules may be changed at any time. All changes will be announced on the - official website. -
    -
    -
    +
    {{ config['lua']['serverName'] }} is an online role-playing game in which thousands of players from all over the world meet everyday. In order to ensure that the game is fun for everyone, {{ config['lua']['serverName'] }} expects all players to behave in a reasonable and respectful manner.

    + {{ config['lua']['serverName'] }} reserves the right to stop destructive behaviour in the game, on the official website or in any other part of {{ config['lua']['serverName'] }}'s services. Such behaviour includes, but is not limited to, the following offences:

    +
    + + + + + + + + + + + + + + + +
    1.Names
    + + + + +
    a)Offensive Name
    + Names that are insulting, racist, sexually related, drug-related, harassing or generally objectionable. +
    b)Name Containing Forbidden Advertising
    + Names that advertise brands, products or services of third parties, content which is not related to the game or trades for real money. +
    c)Unsuitable Name
    + Names that express religious or political views. +
    d)Name Supporting Rule Violation
    + Names that support, incite, announce or imply a violation of the {{ config['lua']['serverName'] }} Rules. +
     
    2.Statements
    + + + + + + + +
    a)Offensive Statement
    + Insulting, racist, sexually related, drug-related, harassing or generally objectionable statements. +
    b)Spamming
    + Excessively repeating identical or similar statements or using badly formatted or nonsensical text. +
    c)Forbidden Advertising
    + Advertising brands, products or services of third parties, content which is not related to the game or trades for real money. +
    d)Off-Topic Public Statement
    + Religious or political public statements or other public statements which are not related to the topic of the used channel or board. +
    e)Violating Language Restriction
    + Non-English statements in boards and channels where the use of English is explicitly required. +
    f)Disclosing Personal Data of Others
    + Disclosing personal data of other people. +
    g)Supporting Rule Violation
    + Statements that support, incite, announce or imply a violation of the {{ config['lua']['serverName'] }} Rules. +
     
    3.Cheating
    + + +
    a)Bug Abuse
    + Exploiting obvious errors of the game or any other part of {{ config['lua']['serverName'] }}'s services. +
    b)Using Unofficial Software to Play
    + Manipulating the official client program or using additional software to play the game. +
     
    4.{{ config['lua']['serverName'] }}
    + + + +
    a)Pretending to be {{ config['lua']['serverName'] }}
    + Pretending to be a representative of {{ config['lua']['serverName'] }} or to have their legitimation or powers. +
    b)Slandering or Agitating against {{ config['lua']['serverName'] }}
    + Publishing clearly wrong information about or calling a boycott against {{ config['lua']['serverName'] }} or its services. +
    c)False Information to {{ config['lua']['serverName'] }}
    + Intentionally giving wrong or misleading information to {{ config['lua']['serverName'] }} in reports about rule violations, complaints, bug reports or support requests. +
     
    5.Legal Issues
    + + + +
    a)Hacking
    + Stealing other players' account or personal data. +
    b)Attacking {{ config['lua']['serverName'] }} Service
    + Attacking, disrupting or damaging the operation of any {{ config['lua']['serverName'] }} server, the game or any other part of {{ config['lua']['serverName'] }}'s services. +
    c)Violating Law or Regulations
    + Violating any applicable law, the {{ config['lua']['serverName'] }} Service Agreement or rights of third parties. +
     

    + Violating or attempting to violate the {{ config['lua']['serverName'] }} Rules may lead to a temporary suspension of characters and accounts. In severe cases the removal or modification of character skills, attributes and belongings, as well as the permanent removal of characters and accounts without any compensation may be considered. The sanction is based on the seriousness of the rule violation and the previous record of the player. It is determined at the sole discretion of {{ config['lua']['serverName'] }} and can be imposed without any previous warning.

    + These rules may be changed at any time. All changes will be announced on the official website. +
    +
    +
    + + + + diff --git a/system/templates/team.html.twig b/system/templates/team.html.twig index 1da950910e..2f4f3272ef 100644 --- a/system/templates/team.html.twig +++ b/system/templates/team.html.twig @@ -3,14 +3,24 @@ - Our Team + Staff Team -

    +
    + +{% set godMembersExist = false %} +{% for group in groupmember|reverse %} + {% if not godMembersExist %} + {% if group.members is not empty and group.group_name == 'god' %} + {% set godMembersExist = true %} + {% endif %} + {% endif %} +{% endfor %} +{% if godMembersExist %}
    @@ -21,7 +31,7 @@ -
    Support in game
    +
    Administrator
    @@ -29,7 +39,7 @@
    - +
    + + +
    @@ -43,25 +53,169 @@ - {% if config.team_display_outfit %}{% endif %} - + {% if config.team_display_outfit %}{% endif %} + + + + + - {% for group in groupmember|reverse %} - {% if group.members is not empty %} - {% for member in group.members|reverse %} - {% set i = i + 1 %} - + {% for group in groupmember|reverse %} + {% if group.members is not empty and group.group_name == 'god' %} + {% for member in group.members|reverse %} + {% set i = i + 1 %} + {% if config.team_display_outfit %} - + {% endif %} + + - + + + + + {% endfor %} {% endif %} {% endfor %} + +
    OutfitName#GroupNameStatusLast LoginWorldCountry
    player outfitplayer outfitAdministrator {{ member.link|raw }}{{ group.group_name|capitalize }} + {% if member.status %} + Online + {% else %} + Offline + {% endif %} + + {% if member.last_login %} + {{ member.last_login }} +
    + {% else %} + Not connected yet + {% endif %} +
    + {% if member.world_name %} + {{ member.world_name }} + {% else %} + {{ config['lua']['serverName'] }} + {% endif %} + + {% if member.flag_image %} + {{ member.flag_image|raw }} + {% else %} + No Flag + {% endif %} +
    + + +
    + + + + + +

    +{% endif %} + +{% set cmMembersExist = false %} +{% for group in groupmember|reverse %} + {% if not cmMembersExist %} + {% if group.members is not empty and group.group_name == 'community manager' %} + {% set cmMembersExist = true %} + {% endif %} + {% endif %} +{% endfor %} +{% if cmMembersExist %} + +
    +
    +
    + + + + + + +
    Community Manager
    + + + + +
    +
    + + + + - + @@ -153,7 +156,7 @@ - + {% if houseLevel %} {% endif %} @@ -201,29 +204,43 @@
    +
    + + + +
    +
    +
    + + + + {% if config.team_display_outfit %}{% endif %} + + + + + + + + {% for group in groupmember|reverse %} + {% if group.members is not empty and group.group_name == 'community manager' %} + {% for member in group.members|reverse %} + {% set i = i + 1 %} + + {% if config.team_display_outfit %} + + {% endif %} + + + + + + + + + + {% endfor %} + {% endif %} + {% endfor %}
    #GroupNameStatusLast LoginWorldCountry
    player outfitCommunity Manager{{ member.link|raw }} + {% if member.status %} + Online + {% else %} + Offline + {% endif %} + + {% if member.last_login %} + {{ member.last_login }} +
    + {% else %} + Not connected yet + {% endif %} +
    + {% if member.world_name %} + {{ member.world_name }} + {% else %} + {{ config['lua']['serverName'] }} + {% endif %} + + {% if member.flag_image %} + {{ member.flag_image|raw }} + {% else %} + No Flag + {% endif %} +
    @@ -75,3 +229,332 @@
    +

    +{% endif %} + +{% set gmMembersExist = false %} +{% for group in groupmember|reverse %} + {% if not gmMembersExist %} + {% if group.members is not empty and group.group_name == 'gamemaster' %} + {% set gmMembersExist = true %} + {% endif %} + {% endif %} +{% endfor %} +{% if gmMembersExist %} + +
    +
    +
    + + + + + + +
    GameMaster
    + + + + +
    +
    + + + + + + +
    +
    + + + + + + +
    +
    +
    + + + + {% if config.team_display_outfit %}{% endif %} + + + + + + + + {% for group in groupmember|reverse %} + {% if group.members is not empty and group.group_name == 'gamemaster' %} + {% for member in group.members|reverse %} + {% set i = i + 1 %} + + {% if config.team_display_outfit %} + + {% endif %} + + + + + + + + + + {% endfor %} + {% endif %} + {% endfor %} + +
    #GroupNameStatusLast LoginWorldCountry
    player outfitGameMaster{{ member.link|raw }} + {% if member.status %} + Online + {% else %} + Offline + {% endif %} + + {% if member.last_login %} + {{ member.last_login }} +
    + {% else %} + Not connected yet + {% endif %} +
    + {% if member.world_name %} + {{ member.world_name }} + {% else %} + {{ config['lua']['serverName'] }} + {% endif %} + + {% if member.flag_image %} + {{ member.flag_image|raw }} + {% else %} + No Flag + {% endif %} +
    +
    +
    +
    +
    +
    +

    +{% endif %} + +{% set seniorMembersExist = false %} +{% for group in groupmember|reverse %} + {% if not seniorMembersExist %} + {% if group.members is not empty and group.group_name == 'senior tutor' %} + {% set seniorMembersExist = true %} + {% endif %} + {% endif %} +{% endfor %} +{% if seniorMembersExist %} + +
    +
    +
    + + + + + + +
    Senior Tutor
    + + + + +
    +
    + + + + + + +
    +
    + + + + + + +
    +
    +
    + + + + {% if config.team_display_outfit %}{% endif %} + + + + + + + + {% for group in groupmember|reverse %} + {% if group.members is not empty and group.group_name == 'senior tutor' %} + {% for member in group.members|reverse %} + {% set i = i + 1 %} + + {% if config.team_display_outfit %} + + {% endif %} + + + + + + + + + + {% endfor %} + {% endif %} + {% endfor %} + +
    #GroupNameStatusLast LoginWorldCountry
    player outfitSenior Tutor{{ member.link|raw }} + {% if member.status %} + Online + {% else %} + Offline + {% endif %} + + {% if member.last_login %} + {{ member.last_login }} +
    + {% else %} + Not connected yet + {% endif %} +
    + {% if member.world_name %} + {{ member.world_name }} + {% else %} + {{ config['lua']['serverName'] }} + {% endif %} + + {% if member.flag_image %} + {{ member.flag_image|raw }} + {% else %} + No Flag + {% endif %} +
    +
    +
    +
    +
    +
    +

    +{% endif %} + +{% set tutorMembersExist = false %} +{% for group in groupmember|reverse %} + {% if not tutorMembersExist %} + {% if group.members is not empty and group.group_name == 'tutor' %} + {% set tutorMembersExist = true %} + {% endif %} + {% endif %} +{% endfor %} +{% if tutorMembersExist %} + +
    +
    +
    + + + + + + +
    Tutor
    + + + + +
    +
    + + + + + + +
    +
    + + + + + + +
    +
    +
    + + + + {% if config.team_display_outfit %}{% endif %} + + + + + + + + {% for group in groupmember|reverse %} + {% if group.members is not empty and group.group_name == 'tutor' %} + {% for member in group.members|reverse %} + {% set i = i + 1 %} + + {% if config.team_display_outfit %} + + {% endif %} + + + + + + + + + + {% endfor %} + {% endif %} + {% endfor %} + +
    #GroupNameStatusLast LoginWorldCountry
    player outfitTutor{{ member.link|raw }} + {% if member.status %} + Online + {% else %} + Offline + {% endif %} + + {% if member.last_login %} + {{ member.last_login }} +
    + {% else %} + Not connected yet + {% endif %} +
    + {% if member.world_name %} + {{ member.world_name }} + {% else %} + {{ config['lua']['serverName'] }} + {% endif %} + + {% if member.flag_image %} + {{ member.flag_image|raw }} + {% else %} + No Flag + {% endif %} +
    +
    +
    +
    +
    +
    +

    +{% endif %} \ No newline at end of file From a562f78f762f419800694b5a69ea829fd23841ba Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Mon, 20 Nov 2023 00:01:54 -0300 Subject: [PATCH 11/16] #fix serverinfo informations --- system/pages/serverinfo.php | 18 +++--- system/templates/serverinfo.html.twig | 79 ++++++++++++++++----------- 2 files changed, 57 insertions(+), 40 deletions(-) diff --git a/system/pages/serverinfo.php b/system/pages/serverinfo.php index f83c7d784b..cded4e5fe2 100644 --- a/system/pages/serverinfo.php +++ b/system/pages/serverinfo.php @@ -56,22 +56,22 @@ if(isset($whiteSkullTime)) $whiteSkullTime = eval('return ' . $whiteSkullTime . ';'); -$redSkullLength = isset($config['lua']['redSkullLength']) ? $config['lua']['redSkullLength'] : NULL; +$redSkullLength = isset($config['lua']['redSkullDuration']) ? $config['lua']['redSkullDuration'] : NULL; if(!isset($redSkullLength) && isset($config['lua']['red_skull_duration'])) $redSkullLength = $config['lua']['red_skull_duration']; if(isset($redSkullLength)) $redSkullLength = eval('return ' . $redSkullLength . ';'); -$blackSkull = false; -$blackSkullLength = NULL; +$blackSkull = true; +$blackSkullLength = isset($config['lua']['blackSkullDuration']) ? $config['lua']['blackSkullDuration'] : NULL; if(isset($config['lua']['useBlackSkull']) && getBoolean($config['lua']['useBlackSkull'])) { - $blackSkullLength = $config['lua']['blackSkullLength']; + $blackSkullLength = $config['lua']['blackSkullDuration']; $blackSkull = true; } else if(isset($config['lua']['black_skull_duration'])) { - $blackSkullLength = eval('return ' . $config['lua']['blackSkullLength'] . ';'); + $blackSkullLength = eval('return ' . $config['lua']['blackSkullDuration'] . ';'); $blackSkull = true; } @@ -88,7 +88,7 @@ $twig->display('serverinfo.html.twig', array( 'server_save' => $explodeServerSave, 'experienceStages' => isset($config['lua']['experienceStages']) && getBoolean($config['lua']['experienceStages']) ? $config['lua']['experienceStages'] : null, - 'serverIp' => str_replace('/', '', str_replace('http://', '', $config['lua']['url'])), + 'serverIp' => str_replace('/', '', str_replace('http://', '', $config['lua']['ip'])), 'clientVersion' => $clientVersion, 'globalSaveHour' => isset($config['lua']['globalSaveEnabled']) && getBoolean($config['lua']['globalSaveEnabled']) ? $config['lua']['globalSaveHour'] : null, 'protectionLevel' => $config['lua']['protectionLevel'], @@ -106,9 +106,9 @@ 'redSkullLength' => $redSkullLength, 'blackSkull' => $blackSkull, 'blackSkullLength' => $blackSkullLength, - 'dailyFragsToRedSkull' => isset($config['lua']['dailyFragsToRedSkull']) ? $config['lua']['dailyFragsToRedSkull'] : (isset($config['lua']['kills_per_day_red_skull']) ? $config['lua']['kills_per_day_red_skull'] : null), - 'weeklyFragsToRedSkull' => isset($config['lua']['weeklyFragsToRedSkull']) ? $config['lua']['weeklyFragsToRedSkull'] : (isset($config['lua']['kills_per_week_red_skull']) ? $config['lua']['kills_per_week_red_skull'] : null), - 'monthlyFragsToRedSkull' => isset($config['lua']['monthlyFragsToRedSkull']) ? $config['lua']['monthlyFragsToRedSkull'] : (isset($config['lua']['kills_per_month_red_skull']) ? $config['lua']['kills_per_month_red_skull'] : null), + 'dailyFragsToRedSkull' => isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : (isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : null), + 'weeklyFragsToRedSkull' => isset($config['lua']['weekKillsToRedSkull']) ? $config['lua']['weekKillsToRedSkull'] : (isset($config['lua']['weekKillsToRedSkull']) ? $config['lua']['weekKillsToRedSkull'] : null), + 'monthlyFragsToRedSkull' => isset($config['lua']['monthKillsToRedSkull']) ? $config['lua']['monthKillsToRedSkull'] : (isset($config['lua']['monthKillsToRedSkull']) ? $config['lua']['monthKillsToRedSkull'] : null), 'dailyFragsToBlackSkull' => isset($config['lua']['dailyFragsToBlackSkull']) ? $config['lua']['dailyFragsToBlackSkull'] : (isset($config['lua']['kills_per_day_black_skull']) ? $config['lua']['kills_per_day_black_skull'] : null), 'weeklyFragsToBlackSkull' => isset($config['lua']['weeklyFragsToBlackSkull']) ? $config['lua']['weeklyFragsToBlackSkull'] : (isset($config['lua']['kills_per_week_black_skull']) ? $config['lua']['kills_per_week_black_skull'] : null), 'monthlyFragsToBlackSkull' => isset($config['lua']['monthlyFragsToBlackSkull']) ? $config['lua']['monthlyFragsToBlackSkull'] : (isset($config['lua']['kills_per_month_black_skull']) ? $config['lua']['kills_per_month_black_skull'] : null), diff --git a/system/templates/serverinfo.html.twig b/system/templates/serverinfo.html.twig index 401a23c8a9..e91eb82e26 100644 --- a/system/templates/serverinfo.html.twig +++ b/system/templates/serverinfo.html.twig @@ -1,23 +1,26 @@ +

    {{ config.lua.serverName }}

    @@ -94,7 +97,7 @@

    IP: {{ serverIp }} (Port: {{ config.lua.loginPort }})
    Client: {{ clientVersion }}
    Online: 24/7
    Uptime: {{ status.uptimeReadable }}
    Global save: {{ server_save.0 }}:{{ server_save.1 }}
    World type: {{ config.lua.worldType|upper }}
    Protection level: {{ protectionLevel }}
    Skills: x{{ rateSkill }}
    Loot: x{{ rateLoot }}
    Spawn: x{{ rateSpawn }}
    Guilds: {{ config.guild_need_level }}
    Need level to create Guild: {{ config.guild_need_level }}
    Houses: {{ houseLevel }} level
    - - + {% set whiteSkullTime = 7 * 60 %} + {# Converter para dias, horas, minutos e segundos #} + {% set days = whiteSkullTime // (24 * 60) %} + {% set hours = (whiteSkullTime % (24 * 60)) // 60 %} + {% set minutes = whiteSkullTime % 60 %} + {% set seconds = 0 %} + + + + {% if blackSkull %} - + {% endif %} - {% if killsToRedSkull is defined %} -
  • Kills to red skull: {{ config.lua.killsToRedSkull }}
  • - {% elseif config.lua.dailyFragsToRedSkull is defined or config.lua.kills_per_day_red_skull is defined %} -
  • + {% if dayKillsToRedSkull is defined %} +
  • Kills to red skull: {{ config.lua.dayKillsToRedSkull }}
  • + {% elseif config.lua.dayKillsToRedSkull is defined or config.lua.kills_per_day_red_skull is defined %} +

    Red skull

    - {% if blackSkull and config.lua.dailyFragsToBlackSkull is defined or config.lua.kills_per_day_black_skull is defined %} +

    Black skull

    - {% elseif config.lua.dailyFragsToBanishment is defined %} + {% if config.lua.dailyFragsToBanishment is defined %}

    Banishment

    {% endif %} - + {% endif %} {% if banishmentLength %}
  • Banishment length: {{ banishmentLength }} days
  • From 0e088fc6863875e20c12f93607a7d32afda0afcd Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Mon, 20 Nov 2023 01:05:19 -0300 Subject: [PATCH 12/16] #fix buttons hover --- templates/tibiacom/index.php | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/templates/tibiacom/index.php b/templates/tibiacom/index.php index 71f3de46c3..69a5a67504 100644 --- a/templates/tibiacom/index.php +++ b/templates/tibiacom/index.php @@ -346,8 +346,8 @@ function MouseOutSubmenuItem(source) { style="background-image:url(/images/loginbox/loginbox-textfield-background.gif)">
    -
    +
    -
    + @@ -843,6 +843,31 @@ class="carousel-control-next-icon"
    + if (MediumButtonOverDownload) { + MediumButtonOverDownload.style.visibility = 'hidden'; + // Restante do código... + } + } + + + + Date: Mon, 20 Nov 2023 10:20:43 -0300 Subject: [PATCH 13/16] Fixes of review. --- system/pages/serverinfo.php | 24 ++++++++++++------------ system/templates/serverinfo.html.twig | 4 +--- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/system/pages/serverinfo.php b/system/pages/serverinfo.php index cded4e5fe2..6ffcb8cec3 100644 --- a/system/pages/serverinfo.php +++ b/system/pages/serverinfo.php @@ -56,22 +56,22 @@ if(isset($whiteSkullTime)) $whiteSkullTime = eval('return ' . $whiteSkullTime . ';'); -$redSkullLength = isset($config['lua']['redSkullDuration']) ? $config['lua']['redSkullDuration'] : NULL; +$redSkullLength = configLua('redSkullDuration') ?? null; if(!isset($redSkullLength) && isset($config['lua']['red_skull_duration'])) $redSkullLength = $config['lua']['red_skull_duration']; if(isset($redSkullLength)) $redSkullLength = eval('return ' . $redSkullLength . ';'); -$blackSkull = true; -$blackSkullLength = isset($config['lua']['blackSkullDuration']) ? $config['lua']['blackSkullDuration'] : NULL; +$blackSkull = false; +$blackSkullLength = configLua('blackSkullDuration') : null; if(isset($config['lua']['useBlackSkull']) && getBoolean($config['lua']['useBlackSkull'])) { - $blackSkullLength = $config['lua']['blackSkullDuration']; + $blackSkullLength = configLua('blackSkullDuration'); $blackSkull = true; } else if(isset($config['lua']['black_skull_duration'])) { - $blackSkullLength = eval('return ' . $config['lua']['blackSkullDuration'] . ';'); + $blackSkullLength = eval('return ' . configLua('blackSkullDuration') . ';'); $blackSkull = true; } @@ -88,7 +88,7 @@ $twig->display('serverinfo.html.twig', array( 'server_save' => $explodeServerSave, 'experienceStages' => isset($config['lua']['experienceStages']) && getBoolean($config['lua']['experienceStages']) ? $config['lua']['experienceStages'] : null, - 'serverIp' => str_replace('/', '', str_replace('http://', '', $config['lua']['ip'])), + 'serverIp' => str_replace(['http://', 'https://'], '', configLua('url'), 'clientVersion' => $clientVersion, 'globalSaveHour' => isset($config['lua']['globalSaveEnabled']) && getBoolean($config['lua']['globalSaveEnabled']) ? $config['lua']['globalSaveHour'] : null, 'protectionLevel' => $config['lua']['protectionLevel'], @@ -106,12 +106,12 @@ 'redSkullLength' => $redSkullLength, 'blackSkull' => $blackSkull, 'blackSkullLength' => $blackSkullLength, - 'dailyFragsToRedSkull' => isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : (isset($config['lua']['dayKillsToRedSkull']) ? $config['lua']['dayKillsToRedSkull'] : null), - 'weeklyFragsToRedSkull' => isset($config['lua']['weekKillsToRedSkull']) ? $config['lua']['weekKillsToRedSkull'] : (isset($config['lua']['weekKillsToRedSkull']) ? $config['lua']['weekKillsToRedSkull'] : null), - 'monthlyFragsToRedSkull' => isset($config['lua']['monthKillsToRedSkull']) ? $config['lua']['monthKillsToRedSkull'] : (isset($config['lua']['monthKillsToRedSkull']) ? $config['lua']['monthKillsToRedSkull'] : null), - 'dailyFragsToBlackSkull' => isset($config['lua']['dailyFragsToBlackSkull']) ? $config['lua']['dailyFragsToBlackSkull'] : (isset($config['lua']['kills_per_day_black_skull']) ? $config['lua']['kills_per_day_black_skull'] : null), - 'weeklyFragsToBlackSkull' => isset($config['lua']['weeklyFragsToBlackSkull']) ? $config['lua']['weeklyFragsToBlackSkull'] : (isset($config['lua']['kills_per_week_black_skull']) ? $config['lua']['kills_per_week_black_skull'] : null), - 'monthlyFragsToBlackSkull' => isset($config['lua']['monthlyFragsToBlackSkull']) ? $config['lua']['monthlyFragsToBlackSkull'] : (isset($config['lua']['kills_per_month_black_skull']) ? $config['lua']['kills_per_month_black_skull'] : null), + 'dailyFragsToRedSkull' => configLua('dayKillsToRedSkull') ?? null, + 'weeklyFragsToRedSkull' => configLua('weekKillsToRedSkull') ?? null, + 'monthlyFragsToRedSkull' => configLua('monthKillsToRedSkull') ?? null, + 'dailyFragsToBlackSkull' => configLua('dailyFragsToBlackSkull') ?? null, + 'weeklyFragsToBlackSkull' => configLua('weeklyFragsToBlackSkull') ?? null, + 'monthlyFragsToBlackSkull' => configLua('monthlyFragsToBlackSkull') ?? null, 'banishmentLength' => isset($config['lua']['banishment_length']) ? eval('return (' . $config['lua']['banishment_length'] . ') / (24 * 60 * 60);') : null, 'finalBanishmentLength' => isset($config['lua']['final_banishment_length']) ? eval('return (' . $config['lua']['final_banishment_length'] . ') / (24 * 60 * 60);') : null, 'ipBanishmentLength' => isset($config['lua']['ip_banishment_length']) ? eval('return (' . $config['lua']['ip_banishment_length'] . ') / (24 * 60 * 60);') : null, diff --git a/system/templates/serverinfo.html.twig b/system/templates/serverinfo.html.twig index e91eb82e26..c6122ad568 100644 --- a/system/templates/serverinfo.html.twig +++ b/system/templates/serverinfo.html.twig @@ -224,8 +224,7 @@
    {% endif %} {% if dayKillsToRedSkull is defined %} -
  • Kills to red skull: {{ config.lua.dayKillsToRedSkull }}
  • - {% elseif config.lua.dayKillsToRedSkull is defined or config.lua.kills_per_day_red_skull is defined %} +
  • Kills to red skull: {{ dayKillsToRedSkull }}
  • Red skull

    {% endif %} - {% endif %} {% if banishmentLength %}
  • Banishment length: {{ banishmentLength }} days
  • {% endif %} From c71573ab82b4bc7491f87ff7d3b871e8128755f2 Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Tue, 21 Nov 2023 15:55:07 -0300 Subject: [PATCH 14/16] #fix invite character from the same account --- system/templates/guilds.view.html.twig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/system/templates/guilds.view.html.twig b/system/templates/guilds.view.html.twig index 63dd296fe1..f7819ae10c 100644 --- a/system/templates/guilds.view.html.twig +++ b/system/templates/guilds.view.html.twig @@ -372,6 +372,18 @@ {% include('buttons.base.html.twig') %} + + {% endif %} {% if not isLeader %} - - {% endif %} {% if not isLeader %}
    PZ Lock: {{ pzLocked / (60 * 1000) }} min
    White Skull Time: {{ whiteSkullTime }} min
    Red skull length: {{ redSkullLength / (24 * 60 * 60) }} days
    + Frag Duration: + {% if days > 0 %} {{ days }} days {% endif %} + {% if hours > 0 %} {{ hours }} hours {% endif %} + {% if minutes > 0 %} {{ minutes }} mins {% endif %} + {% if seconds > 0 %} {{ seconds }} segs {% endif %} +
    RedSkull Duration: {{ redSkullLength }} days
    Black skull length: {{ blackSkullLength / (24 * 60 * 60) }} days
    BlackSkull Duration: {{ blackSkullLength }} days
    BlackSkull Duration: {{ blackSkullLength }} days
    +
    + {% set button_name = 'Accept Guild' %} + {% include('buttons.base.html.twig') %} +
    +
    +
    + {% set button_name = 'Leave Guild' %} + {% include('buttons.base.html.twig') %} +
    +
    From aa109d2a6bdf6f995877ae17fe99129dec876d6c Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Tue, 21 Nov 2023 16:38:22 -0300 Subject: [PATCH 15/16] Revert "#fix invite character from the same account" This reverts commit c71573ab82b4bc7491f87ff7d3b871e8128755f2. --- system/templates/guilds.view.html.twig | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/system/templates/guilds.view.html.twig b/system/templates/guilds.view.html.twig index f7819ae10c..63dd296fe1 100644 --- a/system/templates/guilds.view.html.twig +++ b/system/templates/guilds.view.html.twig @@ -372,18 +372,6 @@ {% include('buttons.base.html.twig') %} -
    - {% set button_name = 'Accept Guild' %} - {% include('buttons.base.html.twig') %} -
    -
    -
    - {% set button_name = 'Leave Guild' %} - {% include('buttons.base.html.twig') %} -
    -
    From bc4561bd97dc9bee896b55d2b5fa5d2261f2d993 Mon Sep 17 00:00:00 2001 From: Majesty <32709570+majestyotbr@users.noreply.github.com> Date: Thu, 23 Nov 2023 09:21:32 -0300 Subject: [PATCH 16/16] Update index.php --- templates/tibiacom/index.php | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/templates/tibiacom/index.php b/templates/tibiacom/index.php index 69a5a67504..71f3de46c3 100644 --- a/templates/tibiacom/index.php +++ b/templates/tibiacom/index.php @@ -346,8 +346,8 @@ function MouseOutSubmenuItem(source) { style="background-image:url(/images/loginbox/loginbox-textfield-background.gif)">
    -
    +
    -
    + @@ -843,31 +843,6 @@ class="carousel-control-next-icon"
    - if (MediumButtonOverDownload) { - MediumButtonOverDownload.style.visibility = 'hidden'; - // Restante do código... - } - } - - - -