1. Modify the localization time
Principle: gettext is required to format the localization time. If this function is not enabled in your environment, garbled characters are returned, affecting the processing of phpmyadmin ajax. this test is passed in the phpmyadmin 4.0.2 php 5.5.0 environment.
Modify:./libraries/Util. class. php file
Copy codeThe Code is as follows:
# Search
Return strftime ($ date, $ timestamp );
# Replace it with the following code:
If (extension_loaded ('gettext '))
Return strftime ($ date, $ timestamp );
# Set this in China.
Date_default_timezone_set ('utc ');
Return gmdate ('Y-m-d H: I: s', $ timestamp + 28800 );
2. Blocking online upgrades
Principle: The official phpmyadmin website has been GFW. It will automatically check the Update Time and waste it in waiting for the wall. Just close it.
Modify:./version_check.php file. delete or comment out the following codes.
Copy codeThe Code is as follows:
$ Save = true;
$ File = 'HTTP: // www.phpmyadmin.net/home_page/version.json ';
If (ini_get ('Allow _ url_fopen ')){
$ Response = file_get_contents ($ file );
} Else if (function_exists ('curl _ init ')){
$ Curl_handle = curl_init ($ file );
Curl_setopt ($ curl_handle, CURLOPT_RETURNTRANSFER, 1 );
$ Response = curl_exec ($ curl_handle );
}
After exiting, log on to the system again to see if it has been enabled in seconds? Try it ~