fix relative paths

This commit is contained in:
ghost 2023-08-23 15:40:12 +03:00
parent 9d686893de
commit 7da2caca92

View File

@ -1,8 +1,8 @@
<?php
require_once('../config.php');
require_once('../library/icon.php');
require_once('../library/sqlite.php');
require_once(__DIR__ . '/../config.php');
require_once(__DIR__ . '/../library/icon.php');
require_once(__DIR__ . '/../library/sqlite.php');
$query = isset($_GET['q']) ? preg_replace('/[^\w\s]+/u', '', urldecode($_GET['q'])) : '';
$ns = '';