Continue refactoring db tracking
[phpmyadmin.git] / license.php
blob7348af874fbbf3e47e09bab9d4b677d546f9b9b8
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 /**
20 header('Content-type: text/plain; charset=utf-8');
22 $filename = LICENSE_FILE;
24 // Check if the file is available, some distributions remove these.
25 if (is_readable($filename)) {
26 readfile($filename);
27 } else {
28 printf(
29 __(
30 'The %s file is not available on this system, please visit ' .
31 'www.phpmyadmin.net for more information.'
32 ), $filename