-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fixed explanation info text in aauth config
- added `pm_cleanup_max_age`-config_var - added 2 files (`pm_deleted_sender` & `pm_deleted_receiver`) in pm table - changed `list_pms()` to catch only not deleted pm's - changed `delete_pm()` now it need a user_id to delete a pm (like `get_pm()`) - changed `delete_pm()` sender's can now detete pm's from outbox - changed `count_unread_pms()` it counts now only not deleted pm's. - added `cleanup_pms()` removes pms older than X defined by `pm_cleanup_max_age`-config_var
- Loading branch information
Showing
4 changed files
with
151 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fe89cdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just set the message to read if it is deleted without first being read? Stops you having to check for deleted messages in this method.
fe89cdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this is a good way too 👍
anything else is ok? 😄
fe89cdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For pm encryption you are referencing CodeIgniter 2. Any reason you're not using CI 3? I don't think 2 is supported anymore.
fe89cdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I referenced CI2 because Aauth is still working with it, but i think its the last version with CI2 Support.
My plans for v2.6.0:
I personally would use models for all database functions, to make it MVC-like 😄
EDIT: i would personally say v3.0.0 because we drop CI2
fe89cdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use CI migrations for the init stuff?
fe89cdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my Aauth Init Class is a adaption of CI's Migration Class, but its based on the aauth's target version, i tested the CI Migration Class before but i had some upgrade errors after skip 2 versions or more.
Here you can see my Aauth_init.php on my GitLab