Commit Graph

57 Commits

Author SHA1 Message Date
Catalin Novgorodschi 312daa8fec Stull not fix alliance pos
Still not fix #131
2026-04-02 11:01:09 +03:00
Catalin Novgorodschi 67faff13ef Revert "test"
This reverts commit e4850eb188.
2026-02-12 09:07:12 +02:00
Catalin Novgorodschi e4850eb188 test 2026-02-12 08:58:10 +02:00
221V 4aa4ef0480 tr - rm doubling 2024-12-11 19:21:33 +02:00
Catalin Novgorodschi a6eb4dd624 Update assignpos.tpl 2024-10-31 14:35:01 +02:00
Shadow 4c68d8dd39 Update to version 8.3.5
Many Fixes
2022-02-18 13:56:17 +02:00
Vladyslav 56c729a211 Fix the display of long words in the alliance
Now the long words in the alliance description are not hidden but are transferred to a new line
2018-06-17 15:13:34 +03:00
Shadow 5bc1633182 Block folder accces
+404 error
2018-06-13 11:17:18 +03:00
iopietro 79eb6a73d6 General fixes
+Removed almost all "BANNED" controls to template and .php UI files. The
control will be done only once and in the Session class
2018-06-11 02:22:22 +02:00
iopietro 693d29c0f8 General fixes
+Fixed a bug that permitted to invite players already in an alliance
+Fixed a bug that didn't delete the alliance permissions when the
alliance was dispanded/dispersed or the user left the alliance by
destroying his embassy
+Added a new error which shows up when trying to invite someone already
in an alliance
2018-06-01 17:14:24 +02:00
iopietro e0166b1242 General fixes
+Fixed a bug that permitted to edit alliance leader's permissions
2018-05-30 20:25:29 +02:00
iopietro d171ac02cc General fixes
+Fixed a bug that permitted to create threads and post in closed forums
(only who have the permission to manage the forum can do that)
+Fixed a bug that permitted to write posts to closed threads
+Fixed a bug that permitted to view not shared forums under certain
circumnstances
2018-05-30 20:10:59 +02:00
iopietro 36b790d08a General fixes
+Fixed a bug that permitted to attack occupied oasis (even through the
farmlist) even if the oasis' owner was banned
+Rewritten some code in Units.php, for a better errors handling
+Fixed some errors that could have showed sometimes
+Fixed a bug that didn't permit to send an attack under certain
circumstances
+Villages/oasis with X = 0 or Y = 0 as a coordinates, can now be raided
+You are now be able to send resources with the merchants, at villages
with X = 0 or Y = 0 as a coordinates
2018-05-29 18:57:14 +02:00
iopietro 12ba3ec154 General fixes
+Fixed a bug that didn't permit to edit your posts in a thread
2018-05-22 18:24:06 +02:00
iopietro 628894f478 General fixes
+WWs aren't affected anymore by stronger building artifacts
+Walls damaging/destruction (wall bonus reduction) during a battle, is
now counted
+Added a button for normal acess users, for editing/sticking, etc. their
own topics (instead of directly display the topic "admin menu")
+Fixed some possible warnings
2018-05-21 16:45:54 +02:00
iopietro 3a14da51e0 Alliance forum fixes part 5
+Confederation and shared forums are now visible to the confederation
alliances or selected alliances/users
+Sticked topics are now displayed first
+Fixed a bug that permitted to add confederated alliances/users to
shared forums
+Minor bug fixing
2018-05-20 21:45:14 +02:00
iopietro 807b684e29 General alliances fixes
+Fixed some conditions for MHs
2018-05-20 17:08:42 +02:00
iopietro 34c8000e44 Alliance forum fixes part 4
+Public forums can now be created by MH only
+Public forums can only be edited by MH only (every MH)
+Fixed BBCode in forum posts
+Removed 8 unused columns from the database
+Removed about 150 lines of unused code in forum.tpl
+Minor improvements and bug fixing
2018-05-20 16:50:26 +02:00
Vladyslav cbcc9b5262 Change other date formats to one view 2018-05-20 02:33:25 +03:00
iopietro 68f9282dc7 Changed all dates format 2018-05-20 00:30:37 +02:00
iopietro 4f98e14c29 Alliance forum fixes part 2
+Added the "Forum" link to the game menu (above Game Rules), player
without an alliance, will be able to access to public forums only
+All players can now open public forums (even without an alliance), post
to them, edit and delete them
+Added the possility to add alliances and players to the "Who can view
this forum" list, the graphic was present but there wasn't the database
and code support (conditions aren't coded yet)
+General fixes

NOTE: To play this version without reinstalling the server, you have to
run this simple query:

ALTER TABLE s1_forum_cat ADD (`display_to_alliances` text,
`display_to_users` text)
2018-05-19 22:04:51 +02:00
iopietro 5ecf035cb3 Alliance fixes part 2
+Public forums are now displayed for every player on the server
+Fixed some security bugs that permitted to create thread and posts to
private forums
+Fixed some general bugs
2018-05-19 00:01:50 +02:00
iopietro e5d823cda0 Alliance forum fixes part 1
Fixed the majority of security issues:

+Fixed a bug that permitted to edit, delete and create a forum in any
alliance, without any permissions
+Fixed a bug that permitted to edit, create and delete any kind of
thread, with any kind of permission
+Fixed a bug that permitted to edit, modify and delete every kind of
post, without any kind of permission
+Fixed a bug that din't permit to create posts and threads
+Fixed a bug that permitted to create forum and threads with empty
name/topic
+Fixed a bug that permitted to move a thread to an invalid forum
+Fixed a bug that permitted to create an invalid type of forum
+Fixed a bug that didn't permit to move forums, to the top and the
bottom of their forum type (in reality, it wasn't even coded)
+Added a sorting column for supporting the "move to top/bottom"
functionality
+Minor improvements and bug fixing/code indentation/removal of redundant
code

NOTE: For playing this version, you HAVE to add a new column to the table "s1_forum_cat", you can simply do that by running this query (where "s1_" is the prefix of your server): ALTER TABLE s1_forum_cat ADD `sorting` int(11) NOT NULL AFTER `id`
2018-05-18 00:28:48 +02:00
phaze1G 77e3cd68b0 Buttons replace part 2 (#536)
* Update assignpos.tpl

* Update changename.tpl

* Update kick.tpl

* Update kick.tpl

* Update linkforum.tpl

* Update search.tpl

* Update 18_create.tpl

* Update invite.tpl

* Update option.tpl

* Update newdorf.tpl

* buttons replace part 2

* Update addABTroops.tpl

* Update addTroops.tpl

* Update graphic.tpl

* Update all.tpl

* Update archive.tpl

* Update forum_3.tpl

* Update read.tpl

* Update ranksearch.tpl

* Update delete.tpl

* Update inbox.tpl

* Update 19.tpl
2018-04-29 13:03:59 +02:00
phaze1G 2c1c2fb2d9 Buttons replace (#535)
* Updating buttons

* Update assignpos.tpl

* Update changename.tpl

* Update kick.tpl

* Update kick.tpl

* Update linkforum.tpl

* Update search.tpl

* Update 18_create.tpl

* Update invite.tpl

* Update option.tpl

* Update newdorf.tpl
2018-04-28 13:20:18 +02:00
iopietro 996f011666 Fixed some report bugs
+Added the report type 23, which indicates a defence during festive days
+Festive reports in the alliance no longer duplicates
+Festive reports in the village view no longer duplicates
+Fixed a bug that didn't permit to read an allied report

General:
-Removed the possibility to view an inexistent village
+Some minor improovements
2018-04-21 17:28:20 +02:00
Pietro 65f7ad1721 Delete attack-defender.tpl
Not used anymore
2018-04-21 13:32:14 +02:00
iopietro f7f164ea2b General fixes
+Fixed some errors in Automation.php
+Some clean up in the alliance templates directory
2018-04-21 13:30:18 +02:00
iopietro 2d573a915c Fixed a bug in the alliance
+Usernames and alliances of attacked players are now shown in the
"attacker" and "defender" filter while peace is active
+Some clean-up
2018-04-16 00:02:13 +02:00
iopietro 8dd8fc2364 Fixed a bug in the alliance
+Username are now shown correctly on attack topics while peace is active
2018-04-15 23:34:45 +02:00
Pietro Fallanca 274d89bfa1 Fixed a lot of bugs/security issues in the alliance
+You can no longer kick people of other alliances
+You can no longer change the forum link with no permissions
+You can no longer make more than 3 total confederation and 3 total NAP
+You can no longer send a diplomacy pact to an alliance with already one
pact or one pending pact
+You can no longer handle diplomacy without permissions
+Fixed security bugs related to invites (sending, deleting etc.)
+You can no longer access to any alliance submenus without permissions
(kick menu, diplomacy menu, etc.)
+Errors are now shown correctly and better handling of them
+New forum link and alliance description are shown correctly after
editing them
+You can no longer access to other alliances informations without being
in it (attack reports, news, etc)
+Corrected some alliance news
+Added some language constants to en.php
+Fixed and changed some database.php functions alliance related
2018-04-15 16:11:43 +02:00
iopietro 9e44c1cd6d Some replacements
+Replaced all $GLOBALS['link'] with $database->dblink
-Removed Templates/links.tpl from build.php (it's already in
Templates/menu.tpl)
2018-04-08 19:55:28 +02:00
Pietro 23a6957a7f Fixed a little error
Generated when "fid2" was empty.
2018-04-01 18:11:02 +02:00
Martin Ambrus 1f1b876651 fix: any alliance owner can edit any alliance forum data
#410
2017-12-26 17:01:21 +01:00
Martin Ambrus ce6f4ed3a9 fix: all players can see forum edit links
#410
2017-12-04 20:53:03 +01:00
Martin Ambrus 8d8c96014b refactor: multiple calls to getVSumField() replaced by a single one
#313
2017-11-25 20:29:12 +01:00
Martin Ambrus ec8752ac27 fix: fid2 missing from URL after forum post edited
Closes #355
2017-11-22 12:46:46 +01:00
Martin Ambrus 24789507a7 refactor: getProfileVillages() takes multiple IDs
#313
2017-11-19 15:57:52 +01:00
Martin Ambrus d17d1f9b32 refactor: last round of database values caching
#313
2017-11-17 19:40:34 +01:00
Martin Ambrus 06161dd5f9 fix: undefined variables 2017-11-15 15:39:15 +01:00
Martin Ambrus 86c9a161d3 fix: hide alliance forum link when defaulting to 0
Relates to #249
Comment URL:
https://github.com/Shadowss/TravianZ/issues/249#issuecomment-341975998
2017-11-05 15:21:45 +01:00
Martin Ambrus a822504706 fix: counting queries optimization
Closes #300
2017-11-04 15:41:35 +01:00
Martin Ambrus c9038e20b8 refactor: alliance and Embassy mechanics refactoring, stage 2 of 3
Everything is now prepared for the last stage, where the code to handle
Embassy destruction during a battle will be added and tested :)

A few Embassy-demolition-related issues have been ironed-out in this
commit as well.
2017-11-01 00:16:52 +01:00
Martin Ambrus 5d91de0e14 feat: new Embassy logic for demolitions and alliance quitting 2017-10-29 23:06:25 +01:00
Martin Ambrus 30d3b9c4fa refactor: OOP code movements started :) 2017-10-25 13:38:38 +02:00
Martin Ambrus a163206782 feat: forum post notifications into mailbox 2017-10-22 19:16:43 +02:00
Martin Ambrus 7270a69a63 fix: all location headers need to have exit after them! 2017-10-22 13:00:54 +02:00
Martin Ambrus 40eacecea6 fix: self-kicking from alliance disallowed 2017-10-22 00:31:25 +02:00
Martin Ambrus 6f3973748c fix: more manual typecastings 2017-10-18 00:59:49 +02:00
evader1337 2d26af7c46 Trying to fix this monstrosity #2 2016-09-13 18:54:25 +02:00