Translated using Weblate (Bulgarian)
[phpmyadmin.git] / license.php
blobb5f9096d3f305770c0c86bc57ae18965956b30c6
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Simple script to set correct charset for the license
6 * Note: please do not fold this script into a general script
7 * that would read any file using a GET parameter, it would open a hole
9 * @package PhpMyAdmin
11 declare(strict_types=1);
13 use PhpMyAdmin\Response;
15 if (! defined('ROOT_PATH')) {
16 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
19 /**
20 * Gets core libraries and defines some variables
22 require ROOT_PATH . 'libraries/common.inc.php';
24 $response = Response::getInstance();
25 $response->disable();
27 /**
30 header('Content-type: text/plain; charset=utf-8');
32 $filename = LICENSE_FILE;
34 // Check if the file is available, some distributions remove these.
35 if (@is_readable($filename)) {
36 readfile($filename);
37 } else {
38 printf(
39 __(
40 'The %s file is not available on this system, please visit ' .
41 '%s for more information.'
43 $filename,
44 'https://www.phpmyadmin.net/'