You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are only a few references left to $TestServer, and there are a few other very old related variables that are probably unused. It would be good to get rid of them as a part of the work done in KeymanHosts (e.g. keymanapp/shared-sites#53) to make future maintenance of this simpler.
This issue covers help.keyman.com and keymanweb.com.
12 results - 4 files
help.keyman.com\_includes\includes\__kmwheader.php:
83 default:
84: global $TestServer;
85: if($TestServer) {
86 return false; // We should never get this except briefly while documenting a new major version.
help.keyman.com\_includes\includes\servervars.php:
30
31: $TestServer = false;
32
37 function cdn($file) {
38: global $cdn, $TestServer;
39: $use_cdn = !$TestServer || (isset($_REQUEST['cdn']) && $_REQUEST['cdn'] == 'force');
40 if($use_cdn && $cdn && array_key_exists('/'.$file, $cdn)) {
keymanweb.com\inc\servervars.php:
38 // $site_protocol is used only by util.php at this time.
39: $TestServer = (KeymanHosts::Instance()->Tier() == KeymanHosts::TIER_DEVELOPMENT) ||
40 (KeymanHosts::Instance()->Tier() == KeymanHosts::TIER_TEST) ? true : false;
41: $site_protocol = $TestServer ? 'http://' : 'https://';
42
52 function cdn($file) {
53: global $cdn, $staticDomain, $TestServer;
54: $use_cdn = !$TestServer || (isset($_REQUEST['cdn']) && $_REQUEST['cdn'] == 'force');
55 if($use_cdn && $cdn && array_key_exists('/'.$file, $cdn)) {
keymanweb.com\inc\util.php:
33 }
34: global $TestServer;
35: if(isset($TestServer) && $TestServer) { echo "<pre>"; debug_print_backtrace();echo "</pre>"; }
36 exit('Invalid parameter');
Other variables to eliminate in keymanweb.com are:
There are only a few references left to
$TestServer
, and there are a few other very old related variables that are probably unused. It would be good to get rid of them as a part of the work done in KeymanHosts (e.g. keymanapp/shared-sites#53) to make future maintenance of this simpler.This issue covers help.keyman.com and keymanweb.com.
Other variables to eliminate in keymanweb.com are:
Other variables to eliminate in help.keyman.com are:
At the same time, review servervars.php on all the 5 main sites for additional low-hanging-fruit obsolete variables.
The text was updated successfully, but these errors were encountered: