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