install/includes/stages/website.php
changeset 771 5e85d7db8ee5
parent 699 c7d737202d59
child 772 fe9364353f90
equal deleted inserted replaced
770:62fed244fa1c 771:5e85d7db8ee5
   145   
   145   
   146   $https = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' );
   146   $https = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' );
   147   $scriptpath_full = 'http' . ( $https ? 's' : '' ) . '://' . $_SERVER['HTTP_HOST'] . scriptPath . '/';
   147   $scriptpath_full = 'http' . ( $https ? 's' : '' ) . '://' . $_SERVER['HTTP_HOST'] . scriptPath . '/';
   148   ?>
   148   ?>
   149   
   149   
       
   150   <?php
       
   151   $patch_necessary = ( strtolower(PHP_OS) == 'win32' && substr(@$_SERVER['SERVER_SOFTWARE'], 'Apache/2.2') );
       
   152   if ( defined('WINDOWS_MOD_REWRITE_WORKAROUNDS') )
       
   153   {
       
   154     ?>
       
   155       <div class="usermessage">
       
   156         <b><?php echo $lang->get('website_msg_modwrite_enabled'); ?></b><br />
       
   157         <?php if ( $patch_necessary ): ?>
       
   158           <?php echo $lang->get('website_msg_modrewrite_necessary'); ?>
       
   159         <?php else: ?>
       
   160           <?php echo $lang->get('website_msg_modrewrite_unnecessary'); ?>
       
   161         <?php endif; ?>
       
   162       </div>
       
   163     <?php
       
   164   }
       
   165   else
       
   166   {
       
   167     if ( $patch_necessary ):
       
   168     ?>
       
   169       <div class="usermessage">
       
   170         <b><?php echo $lang->get('website_msg_modwrite_disabled'); ?></b><br />
       
   171         <?php echo $lang->get('website_msg_modrewrite_maybeneeded'); ?>
       
   172     <?php
       
   173     endif;
       
   174   }
       
   175   ?>
       
   176   
   150   <table border="0" cellspacing="0" cellpadding="10">
   177   <table border="0" cellspacing="0" cellpadding="10">
   151   
       
   152     <tr>
   178     <tr>
   153       <td>
   179       <td>
   154         <b><?php echo $lang->get('website_field_name'); ?></b><br />
   180         <b><?php echo $lang->get('website_field_name'); ?></b><br />
   155         <span id="hint_site_name" class="fieldtip"><?php echo $lang->get('website_field_name_hint'); ?></span>
   181         <span id="hint_site_name" class="fieldtip"><?php echo $lang->get('website_field_name_hint'); ?></span>
   156       </td>
   182       </td>