Shauren
b6e56e42ea
Core/Auth: Reverted part of fb43a92cc2 - session key is still needed after logging in to be able to switch realms
2013-02-08 01:03:56 +01:00
Shauren
fb43a92cc2
Core/Accounts: sessionkey field in account table is only a temporary storage to pass data from authserver to worldserver and should only be used as such. Clearing sessionkey from database after a successful login to prevent possible exploits.
2013-02-07 16:15:23 +01:00
click
75994b3dd3
Core: Clean up whitespace, and remove a silly warning in boss_lurker_below.cpp
2013-02-07 00:19:19 +01:00
Nay
0b3170c228
Core/Player: Fix a query that was wrongly deleting items
...
CHAR_DEL_ITEM_INSTANCE deletes by item guid but in Player::DeleteFromDB the guid being used was player's guid.
That means that if player with guid 100 was deleted, the item with guid 100 would also be deleted. This item could or could not belong to the player.
Closes #8883
Closes #9136
Thanks to @vlad852 for finding the issue
2013-02-06 13:17:21 +00:00
Aokromes
6d8a69d640
Merge pull request #9099 from Bezo/mutenew
...
Add Mute reason and mute by to the db so you can get this info from the ...
2013-02-04 06:55:26 -08:00
Spp
b980aff83e
Core: Implement Role based Access Control
...
- This system will give more control of actions an account can perform.
System defines:
- Permissions to perform some action
- Roles: a set of permissions that have some relation
- Groups: a set of roles that have some relation
Operations:
- Grant: Assign and allow
- Deny: Assign and do not allow
- Revoke: Remove
Precedence to know if something can be done: Grant, Deny. That means, if you are granted some action by a role but you have denied the permission, the action can not be done.
Some Rules:
- Groups can only have roles
- Roles can only have permissions
- An account can be assigned granted and denied roles. Permissions inherited from roles are granted if roles is granted and denied if roles is denied
- An account can be assigned granted and denied permissions
- An account can have multiple groups, roles and permissions
- An account can not have same role granted and denied at same time
- An acconnt can not have same permission granted and denied at same time
- Id 0 can not be used to define a group, role or permission
Added some permissions as a sample of use (Instant Logout, Skip Queue, Join BGs, Join DF) and some permissions as a workaround to commands till command system is modified to use RBAC
2013-02-04 09:04:33 +01:00
Shauren
fe1aa11e08
Core/Debugging: Made WheatyExceptionReport::_GetWindowsVersion code more readable and added check for Windows Server 2012
2013-02-03 15:04:12 +01:00
Regigicas
6d29a62b78
Update WheatyExceptionReport to print Windows 8
2013-02-03 14:08:29 +01:00
Spp
67d46ae1ae
Scripts/Commands: Show correct guild Rank when using .pinfo command
...
(Corrections to 1b551cc1 )
2013-01-31 09:18:42 +01:00
Bezo
760d62e934
Add Mute reason and mute by to the db so you can get this info from the db with the pinfo command when player get muted.
...
old LOGIN_UPD_MUTE_TIME change to LOGIN_UPD_MUTE_TIME_LOGIN due the use of it when character login to world.
2013-01-30 13:09:41 +02:00
Spp
8cd408ae6c
Core/Misc: Some changes to minimize differences with 4.3.4 branch
2013-01-30 10:34:18 +01:00
Spp
2c32393a39
Core/Misc: Always state what columns are affected by MySQL statements
2013-01-30 08:42:01 +01:00
Spp
fa5dd4bd4e
Core/Misc: Remove some calls to const_cast
2013-01-30 08:39:06 +01:00
Shauren
6e80357f8e
Core/Authserver: Added possibility to allow realm connections both from "world" and local networks.
2013-01-27 17:33:01 +01:00
Nay
1b551cc157
Scripts/Commands: Add guild info to .pinfo
...
Original patch by @secharles, modified
Closes #8946
2013-01-26 21:33:13 +00:00
Machiavelli
61495d18a3
Core/Log: Fix crash due to uninitialized variable
2013-01-25 21:40:21 +01:00
thomas33
c36aa6e7af
fix typo
2013-01-25 12:25:06 +01:00
Spp
0d3cc3ae3a
Core/Log: Fix console colors (missing change from 53a3373)
...
Closes #9051
2013-01-24 21:52:29 +01:00
Spp
53a3373a98
Core/Logging: Fix all possible crashes when using bad Appender config settings
2013-01-24 16:57:35 +01:00
springfieldking
389a4899f4
Update src/server/shared/Logging/Log.cpp
...
Fix crash when the last iter plus and change value
2013-01-24 22:26:11 +08:00
Spp
23b6a6a7cd
Core/Log: Rotate logs when maximum size is exceeded, backup name will be "filename".datetime
...
- This is an addition to 39c2d89
2013-01-24 12:44:58 +01:00
Mislav Blažević
3034db9296
Core/DBLayer: Fixed required version definitions
2013-01-24 11:05:36 +01:00
Machiavelli
fd967ba4c6
Tools/mmaps_generator: Multithreading optimisations. Should save some time generating mmaps.
2013-01-24 01:20:25 +01:00
Machiavelli
0f8a8a3270
Merge branch 'HEAD' of git@github.com:TrinityCore/TrinityCore.git
2013-01-24 01:13:21 +01:00
Machiavelli
1c0239ea98
Core/DBLayer: Drop support for MySQL versions <5.1
...
Both server and client libraries must be up to date in order to run TC.
2013-01-23 22:56:56 +01:00
Machiavelli
39c2d892f3
Core/Log: Allow configuring a maximum file size for a log file. If the file size is about to be exceeded, the core will create a new file titled <oldname>_.log and start outputting there.
2013-01-23 17:48:17 +01:00
Shauren
259a29c093
Tools/Extractors: Mmap extractors no longer depend on shared and MySQL libraries
2013-01-22 18:40:32 +01:00
Vincent_Michael
c6ef4b1047
Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
2013-01-19 01:03:31 +01:00
Shocker
7d28c10bd0
Core/Misc: Delete spell from character_spell table too when encountering an invalid spell
2013-01-18 03:22:58 +02:00
Vincent_Michael
224b4480a7
Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
2013-01-16 23:43:07 +01:00
Spp
526bdc0764
Core/Logging: Add config option to enable/disable asyncronous logging (disabled by default)
2013-01-16 09:52:49 +01:00
Spp
be3826825e
Core/Logging: Use correct realmId when logging to DB
2013-01-16 08:59:56 +01:00
Nay
e6a07076c3
Merge remote-tracking branch 'origin/master' into mmaps
...
Conflicts:
src/server/game/Entities/Unit/Unit.cpp
src/server/game/Movement/MotionMaster.cpp
src/server/game/Movement/MovementGenerators/FleeingMovementGenerator.cpp
src/server/game/Movement/MovementGenerators/HomeMovementGenerator.cpp
src/server/game/Movement/MovementGenerators/PointMovementGenerator.cpp
src/server/game/Movement/MovementGenerators/RandomMovementGenerator.cpp
src/server/game/Movement/MovementGenerators/TargetedMovementGenerator.cpp
src/server/game/Movement/Spline/MoveSplineInit.cpp
2013-01-14 13:58:34 +00:00
Spp
802657250c
Core/Misc: Apply codestyle to multiple files
2013-01-14 09:50:59 +01:00
Vincent_Michael
24e0eb1812
Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
...
Conflicts:
src/server/game/Movement/Spline/MoveSplineInit.cpp
2013-01-05 16:55:17 +01:00
Nay
e5945402ad
Core/Misc: Use ASSERT (custom, better macro) instead of the C macro assert()
2013-01-04 20:59:24 +00:00
Vincent_Michael
5bbf7829b2
Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
2013-01-02 17:42:22 +01:00
Spp
601fcc5612
Core/Misc: Removed odd code from CreatureAIImpl.h, it does not belong here
...
- Also some minor corrections from previous commit
2013-01-02 14:20:20 +01:00
Vincent_Michael
b873156c3c
Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
...
Conflicts:
src/server/game/Movement/Spline/MoveSplineInit.h
2013-01-02 14:12:48 +01:00
Vincent_Michael
05efdaf393
Core: Fix non pch build
2013-01-02 13:58:36 +01:00
Spp
ebd14b4f01
Core/Mysql: Multiple changes
...
- added support for setting NULL column values to MySQL wrapper in core
- replaced nonstandard strdup function and manual memory management with std::string
- fixed bug in MySQLPreparedStatement::getQueryString method, it failed when string parameter contained embedded '?' symbols
- fixed memory leak in MySQLPreparedStatement::setString method
2013-01-02 12:22:50 +01:00
Spp
5280a77fe1
Core/Misc: Some minor changes here and there
2013-01-02 11:00:16 +01:00
Spp
2292025bf9
Core/Misc: Replaced some macro definitions with inline functions
2013-01-02 09:07:52 +01:00
Vincent_Michael
62adbdab99
Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps
...
Conflicts:
src/server/game/Movement/MovementGenerators/HomeMovementGenerator.cpp
2013-01-01 23:12:21 +01:00
Vincent_Michael
7fea285aea
Core/Command: Add command for near creature finding
2013-01-01 18:16:32 +01:00
Vincent_Michael
11e1227784
Update more copyright note for 2013. (alcohol sucks)
2013-01-01 12:57:23 +01:00
Vincent_Michael
cc65aba789
Update copyright note for 2013.
...
Happy new year.
2013-01-01 00:41:01 +01:00
Shauren
f1170ba0fb
Core: Fixed some level 4 warnings (msvc)
2012-12-31 20:43:14 +01:00
Nay
79b1895223
Merge remote-tracking branch 'origin/master' into mmaps
2012-12-23 16:02:26 +00:00
Vincent_Michael
63ea4b1056
Core: Fix some codestyle in 957571e18c
2012-12-21 22:22:36 +01:00