mirror of
https://github.com/slawkens/myaac.git
synced 2025-07-06 11:40:15 +02:00
Merge branch 'main' into feature/2fa
This commit is contained in:
commit
ecc9bd4042
@ -1,5 +1,14 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.7.1 - 27.06.2025]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* Rename plugin:install:install to plugin:setup, also add alias to previous command (https://github.com/slawkens/myaac/commit/13d33822b59df349199e885a78a3d6beb0863d0b)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* Fix commands: setup + cache:clear (https://github.com/slawkens/myaac/commit/0da524fefe93b3028392e9014550eea3324d3a22, https://github.com/slawkens/myaac/commit/fe8281594e989f00280ba1adc734a9198c6b5cc1)
|
||||||
|
* Fix polls link in tibiacom template (https://github.com/slawkens/myaac/commit/d90fa323d7c77d81768df60feeb1c374b1650a0c)
|
||||||
|
|
||||||
## [1.7 - 22.06.2025]
|
## [1.7 - 22.06.2025]
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -1275,9 +1275,6 @@ function clearCache()
|
|||||||
deleteDirectory(CACHE . 'plugins', ['index.html'], true);
|
deleteDirectory(CACHE . 'plugins', ['index.html'], true);
|
||||||
deleteDirectory(CACHE, ['signatures', 'twig', 'plugins', 'index.html', 'persistent'], true);
|
deleteDirectory(CACHE, ['signatures', 'twig', 'plugins', 'index.html', 'persistent'], true);
|
||||||
|
|
||||||
// routes cache
|
|
||||||
clearRouteCache();
|
|
||||||
|
|
||||||
global $hooks;
|
global $hooks;
|
||||||
$hooks->trigger(HOOK_CACHE_CLEAR, ['cache' => Cache::getInstance()]);
|
$hooks->trigger(HOOK_CACHE_CLEAR, ['cache' => Cache::getInstance()]);
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* @link https://my-aac.org
|
* @link https://my-aac.org
|
||||||
*/
|
*/
|
||||||
defined('MYAAC') or die('Direct access not allowed!');
|
defined('MYAAC') or die('Direct access not allowed!');
|
||||||
$title = '404 Not Found';
|
$title = 'Not Found';
|
||||||
|
|
||||||
header('HTTP/1.0 404 Not Found');
|
header('HTTP/1.0 404 Not Found');
|
||||||
?>
|
?>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* @link https://my-aac.org
|
* @link https://my-aac.org
|
||||||
*/
|
*/
|
||||||
defined('MYAAC') or die('Direct access not allowed!');
|
defined('MYAAC') or die('Direct access not allowed!');
|
||||||
$title = '405 Method Not Allowed';
|
$title = 'Method Not Allowed';
|
||||||
|
|
||||||
header('HTTP/1.0 405 Method Not Allowed');
|
header('HTTP/1.0 405 Method Not Allowed');
|
||||||
?>
|
?>
|
||||||
|
@ -17,10 +17,7 @@ class CacheClearCommand extends Command
|
|||||||
|
|
||||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||||
{
|
{
|
||||||
global $hooks;
|
require SYSTEM . 'init.php';
|
||||||
$hooks = new Hooks();
|
|
||||||
$hooks->load();
|
|
||||||
$hooks->trigger(HOOK_INIT);
|
|
||||||
|
|
||||||
$io = new SymfonyStyle($input, $output);
|
$io = new SymfonyStyle($input, $output);
|
||||||
|
|
||||||
|
@ -12,9 +12,10 @@ class MailSendCommand extends Command
|
|||||||
{
|
{
|
||||||
protected function configure(): void
|
protected function configure(): void
|
||||||
{
|
{
|
||||||
$this->setName('mail:send')
|
$this->setName('email:send')
|
||||||
|
->setAliases(['mail:send'])
|
||||||
->setDescription('This command sends E-Mail to single user. Message can be provided as follows: ' . PHP_EOL
|
->setDescription('This command sends E-Mail to single user. Message can be provided as follows: ' . PHP_EOL
|
||||||
. ' echo "Hello World" | php sa email:send --subject="This is the subject" test@test.com')
|
. ' echo "Hello World" | php aac email:send --subject="This is the subject" test@test.com')
|
||||||
->addArgument('recipient', InputArgument::REQUIRED, 'Email, Account Name, Account id or Player Name')
|
->addArgument('recipient', InputArgument::REQUIRED, 'Email, Account Name, Account id or Player Name')
|
||||||
->addOption('subject', 's', InputOption::VALUE_REQUIRED, 'Subject');
|
->addOption('subject', 's', InputOption::VALUE_REQUIRED, 'Subject');
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,8 @@ class PluginInstallInstallCommand extends Command
|
|||||||
{
|
{
|
||||||
protected function configure(): void
|
protected function configure(): void
|
||||||
{
|
{
|
||||||
$this->setName('plugin:install:install')
|
$this->setName('plugin:setup')
|
||||||
|
->setAliases(['plugin:install:install'])
|
||||||
->setDescription('This command executes the "install" part of the plugin')
|
->setDescription('This command executes the "install" part of the plugin')
|
||||||
->addArgument('plugin', InputArgument::REQUIRED, 'Plugin name');
|
->addArgument('plugin', InputArgument::REQUIRED, 'Plugin name');
|
||||||
}
|
}
|
||||||
|
@ -781,15 +781,20 @@ class Plugins {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($plugin_json['install'])) {
|
$install = $plugin_json['install'] ?? '';
|
||||||
self::$error = "Plugin doesn't have install options defined. Skipping...";
|
if (self::getAutoLoadOption($plugin_json, 'install', true) && is_file(PLUGINS . $plugin_name . '/install.php')) {
|
||||||
|
$install = 'plugins/' . $plugin_name . '/install.php';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($install)) {
|
||||||
|
self::$error = "This plugin doesn't seem to have install script defined.";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
global $db;
|
global $db;
|
||||||
if (file_exists(BASE . $plugin_json['install'])) {
|
if (file_exists(BASE . $install)) {
|
||||||
$db->revalidateCache();
|
$db->revalidateCache();
|
||||||
require BASE . $plugin_json['install'];
|
require BASE . $install;
|
||||||
$db->revalidateCache();
|
$db->revalidateCache();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div id="CurrentPollBox" class="Themebox" style="background-image:url({{ template_path }}/images/themeboxes/current-poll/currentpollbox.gif);">
|
<div id="CurrentPollBox" class="Themebox" style="background-image:url({{ template_path }}/images/themeboxes/current-poll/currentpollbox.gif);">
|
||||||
<div id="CurrentPollText">{{ poll.question }}</div>
|
<div id="CurrentPollText">{{ poll.question }}</div>
|
||||||
<a class="ThemeboxButton" href="{{ getLink('polls') }}/{{ poll.id }}" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url({{ template_path }}/images/global/buttons/sbutton.gif);"><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/global/buttons/sbutton_over.gif);"></div><div class="ButtonText" style="background-image:url({{ template_path }}/images/global/buttons/_sbutton_votenow.gif);"></div>
|
<a class="ThemeboxButton" href="{{ getLink('polls') }}?ìd={{ poll.id }}" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url({{ template_path }}/images/global/buttons/sbutton.gif);"><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/global/buttons/sbutton_over.gif);"></div><div class="ButtonText" style="background-image:url({{ template_path }}/images/global/buttons/_sbutton_votenow.gif);"></div>
|
||||||
</a>
|
</a>
|
||||||
<div class="Bottom" style="background-image:url({{ template_path }}/images/general/box-bottom.gif);"></div>
|
<div class="Bottom" style="background-image:url({{ template_path }}/images/general/box-bottom.gif);"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -454,7 +454,7 @@ foreach($config['menu_categories'] as $id => $cat) {
|
|||||||
|
|
||||||
foreach($config['boxes'] as $box) {
|
foreach($config['boxes'] as $box) {
|
||||||
/** @var string $template_name */
|
/** @var string $template_name */
|
||||||
$file = TEMPLATES . $template_name . '/boxes/' . $box . '.php';
|
$file = __DIR__ . '/boxes/' . $box . '.php';
|
||||||
if(file_exists($file)) {
|
if(file_exists($file)) {
|
||||||
include($file); ?>
|
include($file); ?>
|
||||||
<?php
|
<?php
|
||||||
|
Loading…
x
Reference in New Issue
Block a user