@@ -168,15 +168,15 @@ public function checkOutputCompression()
168168 */
169169 private function _setClientPlatform ($ user_agent )
170170 {
171- if (/*overload*/ mb_strstr ($ user_agent , 'Win ' )) {
171+ if (mb_strstr ($ user_agent , 'Win ' )) {
172172 $ this ->set ('PMA_USR_OS ' , 'Win ' );
173- } elseif (/*overload*/ mb_strstr ($ user_agent , 'Mac ' )) {
173+ } elseif (mb_strstr ($ user_agent , 'Mac ' )) {
174174 $ this ->set ('PMA_USR_OS ' , 'Mac ' );
175- } elseif (/*overload*/ mb_strstr ($ user_agent , 'Linux ' )) {
175+ } elseif (mb_strstr ($ user_agent , 'Linux ' )) {
176176 $ this ->set ('PMA_USR_OS ' , 'Linux ' );
177- } elseif (/*overload*/ mb_strstr ($ user_agent , 'Unix ' )) {
177+ } elseif (mb_strstr ($ user_agent , 'Unix ' )) {
178178 $ this ->set ('PMA_USR_OS ' , 'Unix ' );
179- } elseif (/*overload*/ mb_strstr ($ user_agent , 'OS/2 ' )) {
179+ } elseif (mb_strstr ($ user_agent , 'OS/2 ' )) {
180180 $ this ->set ('PMA_USR_OS ' , 'OS/2 ' );
181181 } else {
182182 $ this ->set ('PMA_USR_OS ' , 'Other ' );
@@ -271,7 +271,7 @@ public function checkClient()
271271 );
272272 $ this ->set ('PMA_USR_BROWSER_AGENT ' , 'SAFARI ' );
273273 // Firefox
274- } elseif (! /*overload*/ mb_strstr ($ HTTP_USER_AGENT , 'compatible ' )
274+ } elseif (! mb_strstr ($ HTTP_USER_AGENT , 'compatible ' )
275275 && preg_match ('@Firefox/([\w.]+)@ ' , $ HTTP_USER_AGENT , $ log_version )
276276 ) {
277277 $ this ->set (
@@ -314,7 +314,7 @@ public function checkGd2()
314314
315315 if (@function_exists ('gd_info ' )) {
316316 $ gd_nfo = gd_info ();
317- if (/*overload*/ mb_strstr ($ gd_nfo ["GD Version " ], '2. ' )) {
317+ if (mb_strstr ($ gd_nfo ["GD Version " ], '2. ' )) {
318318 $ this ->set ('PMA_IS_GD2 ' , 1 );
319319 } else {
320320 $ this ->set ('PMA_IS_GD2 ' , 0 );
@@ -449,10 +449,10 @@ public function checkGitRevision()
449449
450450 $ branch = false ;
451451 // are we on any branch?
452- if (/*overload*/ mb_strstr ($ ref_head , '/ ' )) {
453- $ ref_head = /*overload*/ mb_substr (trim ($ ref_head ), 5 );
452+ if (mb_strstr ($ ref_head , '/ ' )) {
453+ $ ref_head = mb_substr (trim ($ ref_head ), 5 );
454454 if (substr ($ ref_head , 0 , 11 ) === 'refs/heads/ ' ) {
455- $ branch = /*overload*/ mb_substr ($ ref_head , 11 );
455+ $ branch = mb_substr ($ ref_head , 11 );
456456 } else {
457457 $ branch = basename ($ ref_head );
458458 }
@@ -1306,7 +1306,7 @@ public function checkPmaAbsoluteUri()
13061306 $ pma_absolute_uri = $ this ->get ('PmaAbsoluteUri ' );
13071307 $ is_https = $ this ->detectHttps ();
13081308
1309- if (/*overload*/ mb_strlen ($ pma_absolute_uri ) < 5 ) {
1309+ if (mb_strlen ($ pma_absolute_uri ) < 5 ) {
13101310 $ url = array ();
13111311
13121312 // If we don't have scheme, we didn't have full URL so we need to
@@ -1407,7 +1407,7 @@ public function checkPmaAbsoluteUri()
14071407 $ path = '' ;
14081408 }
14091409 // in vhost situations, there could be already an ending slash
1410- if (/*overload*/ mb_substr ($ path , -1 ) != '/ ' ) {
1410+ if (mb_substr ($ path , -1 ) != '/ ' ) {
14111411 $ path .= '/ ' ;
14121412 }
14131413 $ pma_absolute_uri .= $ path ;
@@ -1429,20 +1429,20 @@ public function checkPmaAbsoluteUri()
14291429
14301430 // Adds a trailing slash et the end of the phpMyAdmin uri if it
14311431 // does not exist.
1432- if (/*overload*/ mb_substr ($ pma_absolute_uri , -1 ) != '/ ' ) {
1432+ if (mb_substr ($ pma_absolute_uri , -1 ) != '/ ' ) {
14331433 $ pma_absolute_uri .= '/ ' ;
14341434 }
14351435
14361436 // If URI doesn't start with http:// or https://, we will add
14371437 // this.
1438- if (/*overload*/ mb_substr ($ pma_absolute_uri , 0 , 7 ) != 'http:// '
1439- && /*overload*/ mb_substr ($ pma_absolute_uri , 0 , 8 ) != 'https:// '
1438+ if (mb_substr ($ pma_absolute_uri , 0 , 7 ) != 'http:// '
1439+ && mb_substr ($ pma_absolute_uri , 0 , 8 ) != 'https:// '
14401440 ) {
14411441 $ pma_absolute_uri
14421442 = ($ is_https ? 'https ' : 'http ' )
14431443 . ': '
14441444 . (
1445- /*overload*/ mb_substr ($ pma_absolute_uri , 0 , 2 ) == '// '
1445+ mb_substr ($ pma_absolute_uri , 0 , 2 ) == '// '
14461446 ? ''
14471447 : '// '
14481448 )
@@ -1588,7 +1588,7 @@ public function isHttps()
15881588
15891589 // CloudFlare Flexible SSL compatibility
15901590 $ this ->set ('force_protocol ' , in_array (PMA_getenv ('HTTP_X_FORWARDED_PROTO ' ), array ('http ' , 'https ' ), true ));
1591-
1591+
15921592 $ is_https = $ this ->get ('force_protocol ' ) ? PMA_getenv ('HTTP_X_FORWARDED_PROTO ' ) : isset ($ url ['scheme ' ]) && $ url ['scheme ' ] == 'https ' ;
15931593
15941594 $ this ->set ('is_https ' , $ is_https );
@@ -1864,7 +1864,7 @@ public function removeCookie($cookie)
18641864 public function setCookie ($ cookie , $ value , $ default = null ,
18651865 $ validity = null , $ httponly = true
18661866 ) {
1867- if (/*overload*/ mb_strlen ($ value ) && null !== $ default && $ value === $ default
1867+ if (mb_strlen ($ value ) && null !== $ default && $ value === $ default
18681868 ) {
18691869 // default value is used
18701870 if (isset ($ _COOKIE [$ cookie ])) {
@@ -1874,7 +1874,7 @@ public function setCookie($cookie, $value, $default = null,
18741874 return false ;
18751875 }
18761876
1877- if (!/*overload*/ mb_strlen ($ value ) && isset ($ _COOKIE [$ cookie ])) {
1877+ if (!mb_strlen ($ value ) && isset ($ _COOKIE [$ cookie ])) {
18781878 // remove cookie, value is empty
18791879 return $ this ->removeCookie ($ cookie );
18801880 }
0 commit comments