@b[]
$uri[^request:uri.split[/;lh]]
$page[^table::sql{select text from pages where uri='$uri.1'}]
^if(!$page){
$art[^table::sql{select folder from articles where folder='$uri.2'}]
^if(!$art || $uri.1 ne 'global'){
Ошибка №404
Запрошенная страница не существует
}{
^if(!def $uri.3){
$response:status(200)
Статьи по различным темам
Внимание!! В этом разделе опубликованы исключительно рекламные статьи различных авторов.
$all[^table::sql{select id, title, date, razd from articles where active=1 and others=3 and folder='$uri.2' order by date desc}]
Все статьи:
$all.title } |
$news.title | ^printdate[$news.date] |