mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-12 07:44:29 +02:00
small adjustments
This commit is contained in:
parent
b574a29331
commit
23810345f6
2
.gitignore
vendored
2
.gitignore
vendored
@ -41,7 +41,7 @@ system/cache/*
|
|||||||
|
|
||||||
# php sessions
|
# php sessions
|
||||||
system/php_sessions/*
|
system/php_sessions/*
|
||||||
!system/php_sessions//index.html
|
!system/php_sessions/index.html
|
||||||
|
|
||||||
# logs
|
# logs
|
||||||
system/logs/*
|
system/logs/*
|
||||||
|
10
index.php
10
index.php
@ -346,12 +346,10 @@ if($load_it)
|
|||||||
)) . $content;
|
)) . $content;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$file = TEMPLATES . $template_name . '/pages/' . $page . '.php';
|
$file = TEMPLATES . "$template_name/pages/$page.php";
|
||||||
if(!@file_exists($file) || preg_match('/[^A-z0-9_\-]/', $page))
|
if(!@file_exists($file) || preg_match('/[^A-z0-9_\-]/', $page)) {
|
||||||
{
|
$file = SYSTEM . "pages/$page.php";
|
||||||
$file = SYSTEM . 'pages/' . $page . '.php';
|
if(!@file_exists($file) || preg_match('/[^A-z0-9_\-]/', $page)) {
|
||||||
if(!@file_exists($file) || preg_match('/[^A-z0-9_\-]/', $page))
|
|
||||||
{
|
|
||||||
$page = '404';
|
$page = '404';
|
||||||
$file = SYSTEM . 'pages/404.php';
|
$file = SYSTEM . 'pages/404.php';
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,6 @@ server {
|
|||||||
include snippets/fastcgi-php.conf;
|
include snippets/fastcgi-php.conf;
|
||||||
fastcgi_read_timeout 240;
|
fastcgi_read_timeout 240;
|
||||||
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
|
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
|
||||||
# for ubuntu 22.04+ it will be php8.1-fpm.-sock
|
# for ubuntu 22.04+ it will be php8.1-fpm.sock
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user