diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb43f00 --- /dev/null +++ b/.gitignore @@ -0,0 +1,67 @@ +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# OSX +.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# keep specific directories +!uploads/images/.gitignore +!bin/cli/.gitignore + +# keep main directories +!css/.gitignore +!vendor/.gitignore + +# SublimeText +*.sublime-project +*.sublime-workspace + +# TheTempusProject Specific +.htaccess +composer.lock +app/config/* +!app/config/constants.php +app/install.json +app/config.default.json +uploads/images/* +.env +logs/* +.vscode/ +mail.log +vendor/canary/logs/* diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php new file mode 100644 index 0000000..4f6d829 --- /dev/null +++ b/.php-cs-fixer.php @@ -0,0 +1,127 @@ +exclude('somedir') + //->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php' + ->in(__DIR__) +; + +$config = new \PhpCsFixer\Config(); +return $config->setRules([ + '@PSR2' => true, + 'array_indentation' => true, + 'array_syntax' => ['syntax' => 'short'], + 'combine_consecutive_unsets' => true, + 'class_attributes_separation' => ['elements' => ['method' => 'one',]], + 'multiline_whitespace_before_semicolons' => false, + 'single_quote' => true, + 'strict_param' => false, + 'binary_operator_spaces' => [ + 'operators' => [ + // '=>' => 'align', + // '=' => 'align' + ] + ], + // 'blank_line_after_opening_tag' => true, + // 'blank_line_before_statement' => true, + 'braces' => [ + 'allow_single_line_closure' => true, + 'position_after_functions_and_oop_constructs' => 'same' + ], + // 'cast_spaces' => true, + // 'class_definition' => array('singleLine' => true), + 'concat_space' => ['spacing' => 'one'], + // 'declare_equal_normalize' => true, + // 'function_typehint_space' => true, + // 'single_line_comment_style' => ['comment_types' => ['hash']], + // 'include' => true, + // 'lowercase_cast' => true, + // 'native_function_casing' => true, + // 'new_with_braces' => true, + // 'no_blank_lines_after_class_opening' => true, + // 'no_blank_lines_after_phpdoc' => true, + // 'no_blank_lines_before_namespace' => true, + 'no_empty_comment' => true, + 'no_empty_phpdoc' => true, + // 'no_empty_statement' => true, + 'no_extra_blank_lines' => [ + 'tokens' => [ + // 'curly_brace_block', + // 'extra', + // 'parenthesis_brace_block', + // 'square_brace_block', + // 'throw', + // 'use', + ] + ], + 'no_leading_import_slash' => true, + 'no_leading_namespace_whitespace' => true, + 'no_mixed_echo_print' => ['use' => 'echo'], + 'no_multiline_whitespace_around_double_arrow' => true, + 'no_short_bool_cast' => true, + 'no_singleline_whitespace_before_semicolons' => true, + 'no_spaces_around_offset' => ['positions' => ['outside']], + 'no_trailing_comma_in_singleline' => ['elements' => ['arguments', 'array_destructuring', 'array', 'group_import']], + + 'spaces_inside_parentheses' => ['space' => 'single'], + // 'no_spaces_inside_parenthesis' => false, + 'control_structure_braces' => true, + + 'curly_braces_position' => [ + 'control_structures_opening_brace' => 'same_line', + 'functions_opening_brace' => 'same_line', + 'classes_opening_brace' => 'same_line', + ], + + + // need to add space after array declaration + // need to put each element on a line by itself when an array is multi line + + + + + + + + + + + 'no_unneeded_control_parentheses' => true, + 'no_unused_imports' => true, + 'no_whitespace_before_comma_in_array' => true, + 'no_whitespace_in_blank_line' => true, + 'normalize_index_brace' => true, + // 'object_operator_without_whitespace' => true, + // 'php_unit_fqcn_annotation' => true, + // 'phpdoc_align' => true, + // 'phpdoc_annotation_without_dot' => true, + // 'phpdoc_indent' => true, + // 'phpdoc_inline_tag' => true, + // 'phpdoc_no_access' => true, + // 'phpdoc_no_alias_tag' => true, + // 'phpdoc_no_empty_return' => true, + // 'phpdoc_no_package' => true, + // 'phpdoc_no_useless_inheritdoc' => true, + // 'phpdoc_return_self_reference' => true, + // 'phpdoc_scalar' => true, + // 'phpdoc_separation' => true, + // 'phpdoc_single_line_var_spacing' => true, + // 'phpdoc_summary' => true, + // 'phpdoc_to_comment' => true, + // 'phpdoc_trim' => true, + // 'phpdoc_types' => true, + 'phpdoc_var_without_name' => false, + 'increment_style' => ['style' => 'post'], + 'return_type_declaration' => true, + // 'self_accessor' => true, // risky + 'short_scalar_cast' => true, + 'single_class_element_per_statement' => true, + 'standardize_not_equals' => true, + 'ternary_operator_spaces' => true, + 'trailing_comma_in_multiline' => true, + 'trim_array_spaces' => false, + 'unary_operator_spaces' => true, + 'whitespace_after_comma_in_array' => true, + 'single_blank_line_at_eof' => true + ]) + ->setLineEnding("\n") +; \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..1227ff5 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,47 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at webmaster@thetempusproject.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..9ad8de4 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,135 @@ +# Contribution Guidelines for TheTempusProject +Contributing to TheTempusProject is completely voluntary and should follow all of the guidelines listed here in order to ensure the highest probability of acceptance. It is highly recommended to use a php linter to automate more of this process. The project is maintained on github and all contributions need to be submitted via pull request to their specific repository under the `dev` branch. In order to contribute, simply follow the instructions for [creating a pull request](#creating-a-pull-request) below. + +## Pull Request Requirements +- All revisions must follow TTP naming conventions (see [Naming Conventions](#naming-conventions) Section) +- Include a clear and concise explanation of the features or changes included in your revision listed by file. +- All code must follow [PSR 2](http://www.php-fig.org/psr/psr-2/) standards +- prefer the use of [] for arrays over array() +- All functions must be documented with the exception of controller methods (see [Documentation](#documentation) Section) +- Controller methods may be doc-blocked when necessary for clarity (see [Documentation](#documentation) Section) +- All new Classes must include a class level doc-block (see [Documentation](#documentation) Section) +- Any new dependencies will have a longer validation process and should be accompanied by the required information (see [Dependencies](#dependencies) Section) + +## Naming Conventions +- File names are to be lower case +- All class names must be upper case +- Any data being stored as a file must be saved in the app directory (with the exception of config which should be stored under config/) +- Controllers must have a constructor and destructor using the constructor and destructor methods found in resources/ +- Views must be named using lowerCamelCase + +## Dependencies +Whenever a dependency is updated or added, pull requests must include a section that answers the following questions. +- Why is this dependency required +- Could this be reasonably accomplished within the app by implementing new features in a later version? explain. +- What is the latest stable version that can be used +- What features are absolutely necessary for your feature or modification to work + +## Documentation +### Classes + +New classes must be prefaced with a doc-block following this style: +``` +/** + * app/controllers/admin/admin.php + * + * This is the admin controller. + * + * @version 3.0 + * @author Joey Kimsey + * @link https://TheTempusProject.com + * @license https://opensource.org/licenses/MIT [MIT LICENSE] + */ +``` + +From top to bottom: +- Filename on the second line +- A description for the file +- The TTP version this file was built for +`@version 1.0` +- The Authors name or alias and email +`@author first last ` +- A copy of the MIT license +`@license https://opensource.org/licenses/MIT [MIT LICENSE]` +- May include a link for more information +`@link http://link.com` + +### Functions +Functions must be prefaced with a doc-block following this style: +``` +/** + * Intended as a self-destruct session. If the specified session does not + * exist, it is created. If the specified session does exist, it will be + * destroyed and returned. + * + * @param string $name - Session name to be created or checked + * @param string $string - The string to be used if session needs to be + * created. (optional) + * + * @return bool|string - Returns bool if creating, and a string if the + * check is successful. + */ +``` + +From top to bottom: +- There must be a description of the functions intended usage on the second line +- All parameters should be documented like this +`@param [type] $name - description` +- Any function with a return statement must also be documented as such +`@return [type] - description` + +## Creating a Pull Request +This is a simple explanation of how to create a pull request for changes to TheTempusProject. You can find a detailed walk-through on how to [create a pull request](https://help.github.com/articles/creating-a-pull-request/) on github. + +1. First ensure you have followed all the contributing guidelines +2. Squash your merge into a single revision. This will make it easier to view the changes as a whole. +3. You can submit a pull request [here](https://github.com/TheTempusProject/TheTempusProject/compare) +4. Please submit all pull requests to the dev branch or they will be ignored. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +add spaces after everything + +avoid "return;" just make the previous line the return + +use [] + +do not use array() + +do not use (array) + +do not add useless variables + +if you are going to set something or check if its empty, just never set it to begin with, don't set it to null \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c32ae1d --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Joey Kimsey + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 58c252d..3515873 100644 --- a/README.md +++ b/README.md @@ -1,93 +1,374 @@ -# TheTempusProject +# The Tempus Project +need to make a vs battle for dnd. someone makes a truly broken character, we take the base character and hand it to two people and give them some time to figure out how they would break it -## Getting started +need to track points once a week -To make it easy for you to get started with GitLab, here's a list of recommended next steps. +a huge table tracks points day to day then we add and erase the old data, or move it to historical... -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! +## Rapid Prototyping Framework -## Add your files +### Developer(s): Joey Kimsey -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: +The aim of this project is to provide a simple and stable platform from which to easily add functionality. The goal being the ability to quickly build and test new projects with a lightweight ecosystem to help. -``` -cd existing_repo -git remote add origin https://170-187-142-254.ip.linodeusercontent.com/the-tempus-project/thetempusproject.git -git branch -M main -git push -uf origin main -``` +**Notice: This code is in _still_ not production ready. This framework is provided as is, use at your own risk.** +I am working very hard to ensure the system is safe and reliable enough for me to endorse its widespread use. Unfortunately, it still needs a lot of QA and improvements. -## Integrate with your tools +Currently I am in the process of testing all the systems in preparation for the first production ready release. The beta is still on-going. If you would like to participate or stay up to date with the latest, you can find more information at: https://TheTempusProject.com/beta -- [ ] [Set up project integrations](https://170-187-142-254.ip.linodeusercontent.com/the-tempus-project/thetempusproject/-/settings/integrations) +## Features -## Collaborate with your team - -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) - -## Test and Deploy - -Use the built-in continuous integration in GitLab. - -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) - -*** - -# Editing this README - -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template. - -## Suggestions for a good README - -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. - -## Name -Choose a self-explaining name for your project. - -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. - -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. - -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. +A User management system with groups, permissions, preferences, registration, and recovery. (All Controlled dynamically via our plugin interface) +A Plugin system that allows plug-and-play functionality for a huge number of features. +Compatibility with both Apache and NGINX. +Built with Bootstrap with a focus on mobile compatibility. +Incredibly easy to set-up, deploy, and develop with. ## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. +Preferred method for installation is using composer. -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. +### Manually -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. +### Docker -## Contributing -State if you are open to contributions and what your requirements are for accepting them. +### Composer -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. +1. Clone the directory to wherever you want to install the framework. +2. Open your terminal to the directory you previously cloned the repository. +3. Install using composer: +`php composer.phar install` +4. Open your browser and navigate to install.php (it will be in the root directory of your installation) +5. When prompted, complete the forms and complete the process. -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. +#### Apache -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. +#### NGINX -## License -For open source projects, say how it is licensed. +#### Docker-Compose + +If you have any trouble with the installation, you can check out our FAQ page on the wiki for answers to common issues. + +If you would like a full copy of the project with all of its included dependencies you can find it at https://github.com/TheTempusProject/TempusProjectFull +Please note this repository is only up to the latest _stable_ release. Please continue to use composer update to get the latest development releases. + +**Do not forget to remove install.php once you have finished installation!** + +#### Currently being developed + +- [ ] Adding documentation +- [ ] Unit tests + +#### Future updates + +- [ ] Expansion of PDO to allow different database types +- [ ] Update installer to account for updates. +- [ ] Implement uniformity in terms of error reporting, exceptions, logging. +- [ ] The templating system has gotten too large and needs to be split into its own repo + +TTP ToDo: + +need to integrate new plugins for some moved features + canary + comments + members + messages + Split inbox and outbox apart + split messages from usercp + redirects + +need to make sure all 'use ' statements are updated to new repo names + + namespace TempusDebugger; => namespace TheTempusProject\Canary; + namespace TheTempusProject\Houdini; => namespace TheTempusProject\houdini; + namespace TheTempusProject/TempusTool; => namespace TheTempusProject\Overwatch; +need a mechanism for handeling config/constants.php in each plugin + migrate all 'secondary' constants (constants not used in the default execution of the application) to plugin folders + +Perform final F & R for: +"tpc" + + + + need better handeling around blog filters like month and day + +split profile from usercp + + +need a way to secure the api +need a standard way to do apis +need a way to show parts conditionally like {@if} + need + if + else + elseif +need a way to show something conditionally if a plugin is enabled + like {@enabled:comments} + {comments} + {@enabled} + +https://css-tricks.com/drag-and-drop-file-uploading/ + +https://www.smashingmagazine.com/2018/01/drag-drop-file-uploader-vanilla-js/ + + + + + +need to merge both autoloaders into the same one under bin +need to be able to install multiple database tables for the same plugin + + +rename default.js and .css to main.js/css +fix where i moved those to the app/css and app/js folders + + + +make a new template repo/dependency +make a new Debug repo/dependency +Fix the plugin +fix the console logger + +add the ability to include js files +add the ability to include css files as needed + + chat should include a config for the refresh timer + + + + +and better error handeling for models and plugins +need to make a singular list function to remove or combine these: + listGroupsSimple + listPosts + + + + + + +i need to move everything moderator relateed to comments +i also need to make sure that moderators can actually moderate + + + + + +the get form html thing should work perfectly with the database array to create hella simple to generate forms for anything + + + + + + + + + +we are not doing anything with requiredPlugins + + +comments and blog are being manually added in the admin dashboard, this could be a problem when they are disabled + + + + + + + + + + + +removed from blog filter +commentCount + + + +need to address the error handler just failing to work + +and the exception handler picking up random errors + + +need to revisit all of the form checking and make sure it is apparent to the user when and how they mess something up. + + +many pages are missing descriptions, need to add them + + +https://jsonapi.org/format/ + + +need a way for the template system to: + switch between the meta-header content types for the sharing info + xlarge + large + etc + need better checking around title, meta-image, and descriptions + prevent accidently feeding bad images or text to these fields + need to manages js and css includes better, and incorperate it into templating system + + + + + + + + + + + + +the get timezone getdate gettime format functions all need to be migrated to app, stored as static vars and refactored +in core, am i using htaccess.html or nginx.html anywhere, if not, change them to .example +Routes -> getHost is using a terrible conditional for docker hosts, need to improve +Need to test all the filters for the editor stuff +need the ability for the autoloader to accept specific file name associations +needs a require_all +need to re-namespace all classes and functions +some classes need to be converted to non-static +some functions need to be converted to more static +run from the command line + +initiated // is in so many controllers, i def want this removed initialized +tempus_project.php + test running commands from cli +if we move install.php to the bin, it will be unaccessible to the web server?? + if its unaccessible except theough the index.php router, we don't need to delete it because its unaccessible again +can i use submodules? +errors should be able to be customized + if its in the app +should add more logging, esp for admin actions +need to add self::$pageDescription to many pages +man, messages is hot garbage, def needs a rework +need a mechanism to add listeners and events +ability to restore backups of perms prefs and configs +if your controller has no index method, you're just SOL + a blank page is called and no method is loaded +Warns should be for failed checks +add a check for having write access to the config folder and the uploads folder +and whatever is going to be needed to the plugin downloading + + some configs have been removed and need to be accounted for + Unused: + --------------------------- + Config::getValue('bugReports/sendEmail') + Config::getValue('bugReports/emailTemplate') + Config::getValue('feedback/sendEmail') + Config::getValue('feedback/emailTemplate') + Config::getValue('uploads/files') + Config::getValue('uploads/images') + Config::getValue('uploads/maxFileSize') + + +after all changes are pushed up and available, docker needs to be tested and updated + when using composer, the composer page is populated and correct + +the config step of install should be checking the db creds + + + +// need to make notes of other standards as i go to update the contributing document +// need to cross refrence the configs from core and ttp +// ensure the resources folder is current +// document, fix, and remove @TODO's where possible +Search for cuss words, they make you look stupid + fuck + shit + dam + damm + damn + god + ass + cunt + bitch + ffs + wtf + + + + +had to remove the tracking pixel that was to be used with the contacts form, this will need to be re- added in a future update +had to remove the rest controller, its currently just unused + +// this can be used for the tempus project +composer create-project laravel/laravel example-app + +# Release Checklist + +===================== +- [] Spell check every file. +- [] All documentation must be reviewed for accuracy. +- [] If a new year has passed, ensure the year has been updated where applicable. +- [] If default permissions, preferences, configs, base classes or models have been updated, update resources accordingly. +- [] + + + + + + + + + + + + + +namespace TempusDebugger; => namespace TheTempusProject\Canary; + + + + + + + + + + +need to make sure a template loader can be called and still use the default template file, IE always add these CSS or JS resources. + + + + +discord bot that shares updates on your party from the site +maybe a summary after each session +warning that time is coming up +changes made to anything +D&D news + + + + +is it possible to store a campaigns state on the blockchain? + + + + +keeping this as a repository for podcasts would get more people to check it out +same for youtube + +people love sharing their resources, so make it EASY to find podcasts, and youtube channels, and etsy stores, and give people a place to share it with their groups + +try and earn commisions from this and do featured XYZ every x days or weeks or whatever + +have different "kinds" of dice to portray on the dice roll page + +maybe spinners instead of conventional die + +maybe weird health potions for D4's + + + + + + + + + + +What is my goal here? + +I would like to play Dungeons and Dragons once a week with my friends. In an ideal world, I would DM this game and spend all week building tools for us to use that I then put on a website which sells memberships to other players so they can use the tools too. -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. diff --git a/app/classes/admin_controller.php b/app/classes/admin_controller.php new file mode 100644 index 0000000..7dbc312 --- /dev/null +++ b/app/classes/admin_controller.php @@ -0,0 +1,34 @@ + + * @link https://TheTempusProject.com + * @license https://opensource.org/licenses/MIT [MIT LICENSE] + */ +namespace TheTempusProject\Classes; + +use TheTempusProject\Houdini\Classes\Template; +use TheTempusProject\Houdini\Classes\Filters; +use TheTempusProject\Houdini\Classes\Issues; +use TheTempusProject\TheTempusProject as App; +use TheTempusProject\Hermes\Functions\Redirect; +use TheTempusProject\Bedrock\Functions\Session; + +class AdminController extends Controller { + public function __construct() { + parent::__construct(); + if ( !App::$isAdmin ) { + Session::flash( 'error', 'You do not have permission to view this page.' ); + return Redirect::home(); + } + Template::noFollow(); + Template::noIndex(); + Template::setTemplate( 'admin' ); + Filters::add( 'logMenu', '#