Changeset 330127a in github


Ignore:
Timestamp:
Mar 2, 2008 8:20:21 AM (5 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
2371191
Parents:
ce102f2
Message:

Disable PHP notices + check for installer script on login page

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • index.php

    r23b8701 r330127a  
    33 +-----------------------------------------------------------------------+ 
    44 | RoundCube Webmail IMAP Client                                         | 
    5  | Version 0.1-20071210                                                  | 
     5 | Version 0.1-20080302                                                  | 
    66 |                                                                       | 
    77 | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 | 
     
    241241if (empty($USER->ID)) 
    242242{ 
     243  // check if installer is still active 
     244  if (is_file('./installer/index.php')) 
     245    $OUTPUT->add_footer(' 
     246  <div style="background:#ef9398; border:2px solid #dc5757; padding:0.5em; margin:2em auto; width:50em"> 
     247  <h2 style="margin-top:0.2em">Installer script is still accessible</h2> 
     248  <p>The install script of your RoundCube installation is still stored in its default location!</p> 
     249  <p>Please <b>remove</b> the whole <tt>installer</tt> folder from the RoundCube directory because 
     250  these files may expose sensitive configuration data like server passwords and encryption keys 
     251  to the public. Make sure you cannot access the <a href="./installer/">installer script</a> from your browser.</p> 
     252  </div>'); 
     253   
    243254  $OUTPUT->task = 'login'; 
    244255  $OUTPUT->send('login'); 
  • installer/index.php

    rb3f9dfb r330127a  
    2727<?php 
    2828 
     29  ini_set('error_reporting', E_ALL&~E_NOTICE); 
    2930  ini_set('display_errors', 1); 
    3031 
  • installer/welcome.html

    r6557d30 r330127a  
    1111      <li>PCRE (perl compatible regular expression)</li> 
    1212      <li>Session support</li> 
    13       <li>libiconv (recommended)</li> 
    14       <li>mbstring (optional)</li> 
     13      <li>Sockets enabled</li> 
     14      <li>Libiconv (recommended)</li> 
     15      <li>OpenSSL (recommended)</li> 
     16      <li>FileInfo (optional)</li> 
     17      <li>Multibyte/mbstring (optional)</li> 
     18      <li>Mcrypt (optional)</li> 
    1519      </ul> 
    1620    </li> 
     
    2024        <li>file_uploads on (for attachment upload features)</li> 
    2125        <li>session.auto_start needs to be off</li> 
     26        <li>magic_quotes_gpc off</li> 
    2227      </ul> 
    2328    </li> 
     
    2631</ul> 
    2732 
    28 <input type="submit" value="START" /> 
     33<input type="submit" value="START INSTALLATION" /> 
    2934 
    3035</form> 
Note: See TracChangeset for help on using the changeset viewer.