Changeset 546 for trunk/lib/plogger/install_functions.php
- Timestamp:
- 06/05/08 17:18:12 (6 months ago)
- Files:
-
- 1 modified
-
trunk/lib/plogger/install_functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/plogger/install_functions.php
r542 r546 56 56 } 57 57 58 if (ini_get('safe_mode') ==1) {58 if (ini_get('safe_mode') && function_exists('ftp_connect')) { 59 59 //if safe_mode enabled, check the FTP information form inputs 60 60 if (empty($form['ftp_host'])) { … … 82 82 if (empty($errors)) { 83 83 $mysql_errors = check_mysql($form['db_host'],$form['db_user'],$form['db_pass'],$form['db_name']); 84 if (ini_get('safe_mode') ==1) {84 if (ini_get('safe_mode') && function_exists('ftp_connect')) { 85 85 $ftp_errors = check_FTP($form['ftp_host'], $form['ftp_user'], $form['ftp_pass'], $form['ftp_path']); 86 86 }else{ … … 104 104 ); 105 105 106 if (ini_get('safe_mode') ==1) {106 if (ini_get('safe_mode') && function_exists('ftp_connect')) { 107 107 $conf = create_config_file($form['db_host'],$form['db_user'],$form['db_pass'],$form['db_name'],$form['ftp_host'],$form['ftp_user'],$form['ftp_pass'],$form['ftp_path']); 108 108 } else { … … 366 366 $cfg_file .= '// define("PLOGGER_EMBEDDED",""); // 1/0 (True/False) if set will overrule automatic check'."\n"; 367 367 $cfg_file .= '// define("PLOGGER_LOCALE",""); // da_DK de et fr pl ro_RO tr ...etc.'."\n"; 368 if (ini_get('safe_mode') ==1&& !empty($ftp_host)) {368 if (ini_get('safe_mode') && function_exists('ftp_connect') && !empty($ftp_host)) { 369 369 //if safe_mode enabled, write the FTP workaround information to plog-config.php with db information 370 370 $cfg_file .= "\n";
