Server IP : 127.0.0.2 / Your IP : 18.218.2.200 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/phpmyadmin/ |
Upload File : |
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Simple script to set correct charset for changelog * * @package PhpMyAdmin */ /** * Gets core libraries and defines some variables */ require 'libraries/common.inc.php'; $response = PMA_Response::getInstance(); $response->disable(); $filename = CHANGELOG_FILE; /** * Read changelog. */ // Check if the file is available, some distributions remove these. if (is_readable($filename)) { // Test if the if is in a compressed format if (substr($filename, -3) == '.gz') { ob_start(); readgzfile($filename); $changelog = ob_get_contents(); ob_end_clean(); } else { $changelog = file_get_contents($filename); } } else { printf( __( 'The %s file is not available on this system, please visit ' . 'www.phpmyadmin.net for more information.' ), $filename ); exit; } /** * Whole changelog in variable. */ $changelog = htmlspecialchars($changelog); $tracker_url = 'https://sourceforge.net/support/tracker.php?aid=\\1'; $tracker_url_bug = 'https://sourceforge.net/p/phpmyadmin/bugs/\\1/'; $tracker_url_rfe = 'https://sourceforge.net/p/phpmyadmin/feature-requests/\\1/'; $tracker_url_patch = 'https://sourceforge.net/p/phpmyadmin/patches/\\1/'; $github_url = 'https://github.com/phpmyadmin/phpmyadmin/'; $faq_url = 'http://docs.phpmyadmin.net/en/latest/faq.html'; $replaces = array( '@(http://[./a-zA-Z0-9.-_-]*[/a-zA-Z0-9_])@' => '<a href="\\1">\\1</a>', // sourceforge users '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +<(.*)@users.sourceforge.net>/i' => '\\1 <a href="https://sourceforge.net/users/\\3/">\\2</a>', '/thanks to ([^\(\r\n]+) \(([-\w]+)\)/i' => 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>', '/thanks to ([^\(\r\n]+) -\s+([-\w]+)/i' => 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>', // mail address '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +<(.*@.*)>/i' => '\\1 <a href="mailto:\\3">\\2</a>', // linking patches '/patch\s*#?([0-9]{6,})/i' => '<a href="' . $tracker_url . '">patch #\\1</a>', // linking RFE '/(?:rfe|feature)\s*#?([0-9]{6,})/i' => '<a href="https://sourceforge.net/support/tracker.php?aid=\\1">RFE #\\1</a>', // linking files '/(\s+)([\\/a-z_0-9\.]+\.(?:php3?|html|pl|js|sh))/i' => '\\1<a href="' . $github_url . 'commits/HEAD/\\2">\\2</a>', // FAQ entries '/FAQ ([0-9]+)\.([0-9a-z]+)/i' => '<a href="' . $faq_url . '#faq\\1-\\2">FAQ \\1.\\2</a>', // linking bugs '/bug\s*#?([0-9]{6,})/i' => '<a href="https://sourceforge.net/support/tracker.php?aid=\\1">bug #\\1</a>', // all other 6+ digit numbers are treated as bugs '/(?<!bug|RFE|patch) #?([0-9]{6,})/i' => '<a href="' . $tracker_url . '">bug #\\1</a>', // GitHub issues '/issue\s*#?([0-9]{4,5}) /i' => '<a href="' . $github_url . 'issues/\\1">issue #\\1</a> ', // transitioned SF.net project bug/rfe/patch links // by the time we reach 6-digit numbers, we can probably retire the above links '/patch\s*#?([0-9]{4,5}) /i' => '<a href="' . $tracker_url_patch . '">patch #\\1</a> ', '/(?:rfe|feature)\s*#?([0-9]{4,5}) /i' => '<a href="' . $tracker_url_rfe . '">RFE #\\1</a> ', '/bug\s*#?([0-9]{4,5}) /i' => '<a href="' . $tracker_url_bug . '">bug #\\1</a> ', '/(?<!bug|RFE|patch) #?([0-9]{4,5}) /i' => '<a href="' . $tracker_url_bug . '">bug #\\1</a> ', // CVE/CAN entries '/((CAN|CVE)-[0-9]+-[0-9]+)/' => '<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=\\1">\\1</a>', // PMASAentries '/(PMASA-[0-9]+-[0-9]+)/' => '<a href="https://www.phpmyadmin.net/security/\\1/">\\1</a>', // Highlight releases (with links) '/([0-9]+)\.([0-9]+)\.([0-9]+)\.0 (\([0-9-]+\))/' => '<a name="\\1_\\2_\\3"></a>' . '<a href="' . $github_url . 'commits/RELEASE_\\1_\\2_\\3">' . '\\1.\\2.\\3.0 \\4</a>', '/([0-9]+)\.([0-9]+)\.([0-9]+)\.([1-9][0-9]*) (\([0-9-]+\))/' => '<a name="\\1_\\2_\\3_\\4"></a>' . '<a href="' . $github_url . 'commits/RELEASE_\\1_\\2_\\3_\\4">' . '\\1.\\2.\\3.\\4 \\5</a>', // Highlight releases (not linkable) '/( ### )(.*)/' => '\\1<b>\\2</b>', ); header('Content-type: text/html; charset=utf-8'); ?> <!DOCTYPE HTML> <html lang="en" dir="ltr"> <head> <link rel="icon" href="favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> <title>phpMyAdmin - ChangeLog</title> <meta charset="utf-8" /> </head> <body> <h1>phpMyAdmin - ChangeLog</h1> <?php echo '<pre>'; echo preg_replace(array_keys($replaces), $replaces, $changelog); echo '</pre>'; ?> <script type="text/javascript"> var links = document.getElementsByTagName("a"); for(var i = 0; i < links.length; i++) { links[i].target = "_blank"; } </script> </body> </html>