Browse Source

Merge remote-tracking branch 'origin/master'

idleman 4 years ago
parent
commit
91ba355870
1 changed files with 9 additions and 1 deletions
  1. 9 1
      setting.global.php

+ 9 - 1
setting.global.php

@@ -14,7 +14,15 @@ User::check_access('setting_global','read');
 		<hr/>
 
 		<?php if($myUser->can('setting_global','configure')): ?>
-		<div>
+        <?php if(!function_exists('apache_get_version')){                                                                                                         
+                 function apache_get_version(){                                                                                                                    
+                   if(!isset($_SERVER['SERVER_SOFTWARE']) || strlen($_SERVER['SERVER_SOFTWARE']) == 0){                                                          
+                       return "???";                                                                                                                             
+                   }                                                                                                                                             
+                   return $_SERVER["SERVER_SOFTWARE"];                                                                                                               
+                 }                                                                                                                                                 
+              } ?>                                                                                                                                                  
+        <div>
 			<h5>Informations générales :</h5>
 			<ul>
 				<li>Nom du programme : <strong><?php echo PROGRAM_NAME; ?></strong></li>