Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

Location:
admin/install
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/install/check.php

    r1743 r2566  
    1515{ 
    1616     $err = array(); 
    17       
     17 
    1818     if (version_compare(phpversion(),'5.0','<')) { 
    1919          $err[] = sprintf(__('PHP version is %s (5.0 or earlier needed).'),phpversion()); 
    2020     } 
    21       
     21 
    2222     if (!function_exists('mb_detect_encoding')) { 
    2323          $err[] = __('Multibyte string module (mbstring) is not available.'); 
    2424     } 
    25       
     25 
    2626     if (!function_exists('iconv')) { 
    2727          $err[] = __('Iconv module is not available.'); 
    2828     } 
    29       
     29 
    3030     if (!function_exists('ob_start')) { 
    3131          $err[] = __('Output control functions are not available.'); 
    3232     } 
    33       
     33 
    3434     if (!function_exists('simplexml_load_string')) { 
    3535          $err[] = __('SimpleXML module is not available.'); 
    3636     } 
    37       
     37 
    3838     if (!function_exists('dom_import_simplexml')) { 
    3939          $err[] = __('DOM XML module is not available.'); 
    4040     } 
    41       
     41 
    4242     $pcre_str = base64_decode('w6nDqMOgw6o='); 
    4343     if (!@preg_match('/'.$pcre_str.'/u', $pcre_str)) { 
    4444          $err[] = __('PCRE engine does not support UTF-8 strings.'); 
    4545     } 
    46       
     46 
    4747     if (!function_exists("spl_classes")) { 
    4848          $err[] = __('SPL module is not available.'); 
    4949     } 
    50       
     50 
    5151     if ($con->driver() == 'mysql' || $con->driver() == 'mysqli') 
    5252     { 
     
    6565                    } 
    6666               } 
    67                 
     67 
    6868               if (!$innodb) { 
    6969                    $err[] = __('MySQL InnoDB engine is not available.'); 
     
    7878          } 
    7979     } 
    80       
     80 
    8181     return count($err) == 0; 
    8282} 
    83 ?> 
  • admin/install/wizard.php

    r1949 r2566  
    7272               throw new Exception('<p>' . __($e->getMessage()) . '</p>'); 
    7373          } 
    74            
     74 
    7575          # Checks system capabilites 
    7676          require dirname(__FILE__).'/check.php'; 
     
    7979               throw new Exception('<p>'.__('Dotclear cannot be installed.').'</p><ul><li>'.implode('</li><li>',$_e).'</li></ul>'); 
    8080          } 
    81            
     81 
    8282          # Check if dotclear is already installed 
    8383          $schema = dbSchema::init($con); 
     
    8585               throw new Exception(__('Dotclear is already installed.')); 
    8686          } 
    87            
     87 
    8888          # Does config.php.in exist? 
    8989          $config_in = dirname(__FILE__).'/../../inc/config.php.in'; 
     
    9191               throw new Exception(sprintf(__('File %s does not exist.'),$config_in)); 
    9292          } 
    93            
     93 
    9494          # Can we write config.php 
    9595          if (!is_writable(dirname(DC_RC_PATH))) { 
    9696               throw new Exception(sprintf(__('Cannot write %s file.'),DC_RC_PATH)); 
    9797          } 
    98            
     98 
    9999          # Creates config.php file 
    100100          $full_conf = file_get_contents($config_in); 
    101            
     101 
    102102          writeConfigValue('DC_DBDRIVER',$DBDRIVER,$full_conf); 
    103103          writeConfigValue('DC_DBHOST',$DBHOST,$full_conf); 
     
    106106          writeConfigValue('DC_DBNAME',$DBNAME,$full_conf); 
    107107          writeConfigValue('DC_DBPREFIX',$DBPREFIX,$full_conf); 
    108            
     108 
    109109          $admin_url = preg_replace('%install/wizard.php$%','',$_SERVER['REQUEST_URI']); 
    110110          writeConfigValue('DC_ADMIN_URL',http::getHost().$admin_url,$full_conf); 
    111111          writeConfigValue('DC_ADMIN_MAILFROM','dotclear@'.$_SERVER['HTTP_HOST'],$full_conf); 
    112112          writeConfigValue('DC_MASTER_KEY',md5(uniqid()),$full_conf); 
    113            
     113 
    114114          $fp = @fopen(DC_RC_PATH,'wb'); 
    115115          if ($fp === false) { 
     
    119119          fclose($fp); 
    120120          chmod(DC_RC_PATH, 0666); 
    121            
     121 
    122122          $con->close(); 
    123123          http::redirect('index.php?wiz=1'); 
     
    148148  <meta name="GOOGLEBOT" content="NOSNIPPET" /> 
    149149  <title><?php echo __('Dotclear installation wizard'); ?></title> 
    150      <link rel="stylesheet" href="../style/install.css" type="text/css" media="screen" />  
     150     <link rel="stylesheet" href="../style/install.css" type="text/css" media="screen" /> 
    151151</head> 
    152152 
Note: See TracChangeset for help on using the changeset viewer.

Sites map