Changeset 2020 in subversion


Ignore:
Timestamp:
Oct 27, 2008 4:11:32 PM (5 years ago)
Author:
thomasb
Message:

First version of the commandline update script

Location:
trunk/roundcubemail
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/installer/index.php

    r1979 r2020  
    11<?php 
     2 
    23ini_set('error_reporting', E_ALL&~E_NOTICE); 
    34ini_set('display_errors', 1); 
     
    1314set_include_path($include_path); 
    1415 
     16require_once 'utils.php'; 
     17 
    1518session_start(); 
    16  
    17 /** 
    18  * Use PHP5 autoload for dynamic class loading 
    19  * (copy from program/incllude/iniset.php) 
    20  */ 
    21 function __autoload($classname) 
    22 { 
    23   $filename = preg_replace( 
    24       array('/MDB2_(.+)/', '/Mail_(.+)/', '/^html_.+/', '/^utf8$/'), 
    25       array('MDB2/\\1', 'Mail/\\1', 'html', 'utf8.class'), 
    26       $classname 
    27   ); 
    28   include_once $filename. '.php'; 
    29 } 
    3019 
    3120$RCI = rcube_install::get_instance(); 
  • trunk/roundcubemail/installer/rcube_install.php

    r1977 r2020  
    131131  function create_config($which, $force = false) 
    132132  { 
    133     $out = file_get_contents("../config/{$which}.inc.php.dist"); 
     133    $out = file_get_contents(RCMAIL_CONFIG_DIR . "/{$which}.inc.php.dist"); 
    134134     
    135135    if (!$out) 
     
    543543} 
    544544 
    545  
    546 /** 
    547  * Shortcut function for htmlentities() 
    548  * 
    549  * @param string String to quote 
    550  * @return string The html-encoded string 
    551  */ 
    552 function Q($string) 
    553 { 
    554   return htmlentities($string); 
    555 } 
    556  
    557  
    558 /** 
    559  * Fake rinternal error handler to catch errors 
    560  */ 
    561 function raise_error($p) 
    562 { 
    563   $rci = rcube_install::get_instance(); 
    564   $rci->raise_error($p); 
    565 } 
    566  
Note: See TracChangeset for help on using the changeset viewer.