23e8b18ba3
* Implemented rudimentary multi-user support * Delete src.zip * Improve the update user function And added a new function to the auth module to invalidate a session * Update AntAuth.php * Rename the configs, a bit more auth stuff * Fix test and JS regex * Turn the admin landing page into a twig template * plugin/admin/ -> admin/ * Refactored templating for plugins Plus. I finally converted the remaining options in the admin plugin to twig templates. No extra styling, but it'll be easier now * Fix PHPStan warnings * Basic "first time" user setup * Improved styling * Started implementing user management * Completed user management in the admin panel * Renamed templates, added support for sub-dirs * Limit and validate allowed chars for usernames * Finished the basics of the profile plugin * Styling for the bootstrap theme * Some more final touches * Added an example to show author * Tweak to the readme
14 lines
673 B
PHP
14 lines
673 B
PHP
<?php
|
|
const AntDir = __DIR__;
|
|
const AntCachePath = __DIR__ . DIRECTORY_SEPARATOR . 'Cache';
|
|
const antConfigFile = __DIR__ . DIRECTORY_SEPARATOR . 'Config' . DIRECTORY_SEPARATOR . 'Config.yaml';
|
|
const antPagesList = __DIR__ . DIRECTORY_SEPARATOR . 'Config' . DIRECTORY_SEPARATOR . 'Pages.yaml';
|
|
const antUsersList = __DIR__ . DIRECTORY_SEPARATOR . 'Config' . DIRECTORY_SEPARATOR . 'Users.yaml';
|
|
const antContentPath = __DIR__ . DIRECTORY_SEPARATOR . 'Content';
|
|
const antThemePath = __DIR__ . DIRECTORY_SEPARATOR . 'Themes';
|
|
const antPluginPath = __DIR__ . DIRECTORY_SEPARATOR . 'Plugins';
|
|
|
|
if (in_array('xxh128', hash_algos())) {
|
|
define('HAS_XXH128', true);
|
|
}
|