Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Require all denied
2 changes: 1 addition & 1 deletion app/forms/FormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Nette\Application\UI\Form;


class FormFactory
final class FormFactory
{
use Nette\SmartObject;

Expand Down
2 changes: 1 addition & 1 deletion app/forms/SignInFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Nette\Security\User;


class SignInFormFactory
final class SignInFormFactory
{
use Nette\SmartObject;

Expand Down
2 changes: 1 addition & 1 deletion app/forms/SignUpFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Nette\Application\UI\Form;


class SignUpFormFactory
final class SignUpFormFactory
{
use Nette\SmartObject;

Expand Down
3 changes: 2 additions & 1 deletion app/model/UserManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Users management.
*/
class UserManager implements Nette\Security\IAuthenticator
final class UserManager implements Nette\Security\IAuthenticator
{
use Nette\SmartObject;

Expand Down Expand Up @@ -74,6 +74,7 @@ public function authenticate(array $credentials): Nette\Security\IIdentity
*/
public function add(string $username, string $email, string $password): void
{
Nette\Utils\Validators::assert($email, 'email');
try {
$this->database->table(self::TABLE_NAME)->insert([
self::COLUMN_NAME => $username,
Expand Down
2 changes: 1 addition & 1 deletion app/presenters/Error4xxPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Nette;


class Error4xxPresenter extends BasePresenter
final class Error4xxPresenter extends BasePresenter
{
public function startup(): void
{
Expand Down
2 changes: 1 addition & 1 deletion app/presenters/ErrorPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Tracy\ILogger;


class ErrorPresenter implements Nette\Application\IPresenter
final class ErrorPresenter implements Nette\Application\IPresenter
{
use Nette\SmartObject;

Expand Down
2 changes: 1 addition & 1 deletion app/presenters/HomepagePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace App\Presenters;


class HomepagePresenter extends BasePresenter
final class HomepagePresenter extends BasePresenter
{
public function renderDefault(): void
{
Expand Down
2 changes: 1 addition & 1 deletion app/presenters/SignPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Nette\Application\UI\Form;


class SignPresenter extends BasePresenter
final class SignPresenter extends BasePresenter
{
/** @persistent */
public $backlink = '';
Expand Down
2 changes: 1 addition & 1 deletion app/presenters/templates/@layout.latte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

{block scripts}
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://nette.github.io/resources/js/netteForms.min.js"></script>
<script src="https://nette.github.io/resources/js/3/netteForms.min.js"></script>
<script src="{$basePath}/js/main.js"></script>
{/block}
</body>
Expand Down
2 changes: 1 addition & 1 deletion app/router/RouterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Nette\Application\Routers\RouteList;


class RouterFactory
final class RouterFactory
{
use Nette\StaticClass;

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"nette/security": "^3.0",
"nette/utils": "^3.0",
"latte/latte": "^3.0",
"tracy/tracy": "^2.4",
"tracy/tracy": "^3.0",
"dg/adminer-custom": "^1.8"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ To use it, browse to the subdirectory `/adminer` in your project root (i.e. `htt
Notice: Composer PHP version
----------------------------

This project forces PHP 5.6 (eventually 7.1) as your PHP version for Composer packages. If you have newer
This project forces PHP 5.6 (eventually 7.1) as your PHP version for Composer packages. If you have newer
version on production server you should change it in `composer.json`:

```json
Expand Down
5 changes: 3 additions & 2 deletions www/.htaccess
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Apache configuration file (see httpd.apache.org/docs/current/mod/quickreference.html)
# Apache configuration file (see https://httpd.apache.org/docs/current/mod/quickreference.html)
Require all granted

# disable directory listing
<IfModule mod_autoindex.c>
Expand All @@ -20,7 +21,7 @@
# front controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz|map)$ index.php [L]
RewriteRule !\.(pdf|js|ico|gif|jpg|jpeg|png|webp|svg|css|rar|zip|7z|tar\.gz|map|eot|ttf|otf|woff|woff2)$ index.php [L]
</IfModule>

# enable gzip compression
Expand Down
2 changes: 1 addition & 1 deletion www/checker/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
$tests[] = [
'title' => 'ICONV extension',
'required' => true,
'passed' => extension_loaded('iconv') && (ICONV_IMPL !== 'unknown') && @iconv('UTF-16', 'UTF-8//IGNORE', iconv('UTF-8', 'UTF-16//IGNORE', 'test')) === 'test',
'passed' => extension_loaded('iconv') && @iconv('UTF-16', 'UTF-8//IGNORE', iconv('UTF-8', 'UTF-16//IGNORE', 'test')) === 'test',
'message' => 'Enabled and works properly',
'errorMessage' => 'Disabled or does not work properly',
'description' => 'ICONV extension is required and must work properly.',
Expand Down