Translated using Weblate (German)
[phpmyadmin.git] / license.php
blob0837a42bee451cfd2b587d184e2908f93ff7658f
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 /**
16 * Gets core libraries and defines some variables
18 require 'libraries/common.inc.php';
20 $response = Response::getInstance();
21 $response->disable();
23 /**
26 header('Content-type: text/plain; charset=utf-8');
28 $filename = LICENSE_FILE;
30 // Check if the file is available, some distributions remove these.
31 if (@is_readable($filename)) {
32 readfile($filename);
33 } else {
34 printf(
35 __(
36 'The %s file is not available on this system, please visit ' .
37 '%s for more information.'
39 $filename,
40 'https://www.phpmyadmin.net/'