mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-10 23:04:30 +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
|
||||
system/php_sessions/*
|
||||
!system/php_sessions//index.html
|
||||
!system/php_sessions/index.html
|
||||
|
||||
# logs
|
||||
system/logs/*
|
||||
|
10
index.php
10
index.php
@ -346,12 +346,10 @@ if($load_it)
|
||||
)) . $content;
|
||||
}
|
||||
} else {
|
||||
$file = TEMPLATES . $template_name . '/pages/' . $page . '.php';
|
||||
if(!@file_exists($file) || preg_match('/[^A-z0-9_\-]/', $page))
|
||||
{
|
||||
$file = SYSTEM . 'pages/' . $page . '.php';
|
||||
if(!@file_exists($file) || preg_match('/[^A-z0-9_\-]/', $page))
|
||||
{
|
||||
$file = TEMPLATES . "$template_name/pages/$page.php";
|
||||
if(!@file_exists($file) || preg_match('/[^A-z0-9_\-]/', $page)) {
|
||||
$file = SYSTEM . "pages/$page.php";
|
||||
if(!@file_exists($file) || preg_match('/[^A-z0-9_\-]/', $page)) {
|
||||
$page = '404';
|
||||
$file = SYSTEM . 'pages/404.php';
|
||||
}
|
||||
|
@ -32,6 +32,6 @@ server {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_read_timeout 240;
|
||||
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