Maintenance.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * This file is part of the ForkBB <https://github.com/forkbb>.
  4. *
  5. * @copyright (c) Visman <mio.visman@yandex.ru, https://github.com/MioVisman>
  6. * @license The MIT License (MIT)
  7. */
  8. declare(strict_types=1);
  9. namespace ForkBB\Models\Pages;
  10. use ForkBB\Core\Container;
  11. use ForkBB\Models\Page;
  12. use function \ForkBB\__;
  13. class Maintenance extends Page
  14. {
  15. public function __construct(Container $container)
  16. {
  17. $container->Lang->load('common', $container->config->o_default_lang);
  18. parent::__construct($container);
  19. $this->httpStatus = 503;
  20. $this->nameTpl = 'maintenance';
  21. # $this->onlinePos = null; //????
  22. # $this->robots = 'noindex';
  23. $this->titles = 'Maintenance';
  24. # $this->fNavigation = null; //????
  25. $this->maintenanceMessage = $this->c->config->o_maintenance_message;
  26. $this->header('Retry-After', '3600');
  27. # $this->fIswev = ['i', $this->c->config->o_maintenance_message];
  28. }
  29. /**
  30. * Подготовка страницы к отображению
  31. */
  32. public function prepare(): void
  33. {
  34. }
  35. }