Show
Ignore:
Timestamp:
06/05/08 17:18:12 (6 months ago)
Author:
sidtheduck
Message:

+ Lots of sorting fixes

  • Now sorting is the same throughout . defaults from Admin->Options are used on both Admin->Manage and front-end gallery . plogger_init_picture order = plogger_init_pictures order . sorting fixes from Import display to actually saving the files

+ Additional check for safe_mode workaround to see if ftp_connect function exists in compiled PHP installation before attempting the workaround

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/plogger/install_functions.php

    r542 r546  
    5656                } 
    5757       
    58                 if (ini_get('safe_mode')==1) { 
     58                if (ini_get('safe_mode') && function_exists('ftp_connect')) { 
    5959                        //if safe_mode enabled, check the FTP information form inputs 
    6060                        if (empty($form['ftp_host'])) { 
     
    8282                if (empty($errors)) { 
    8383                        $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')) { 
    8585                                $ftp_errors = check_FTP($form['ftp_host'], $form['ftp_user'], $form['ftp_pass'], $form['ftp_path']); 
    8686                        }else{ 
     
    104104                        ); 
    105105                                 
    106                         if (ini_get('safe_mode')==1) { 
     106                        if (ini_get('safe_mode') && function_exists('ftp_connect')) { 
    107107                                $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']); 
    108108                        } else { 
     
    366366        $cfg_file .= '// define("PLOGGER_EMBEDDED","");        // 1/0 (True/False) if set will overrule automatic check'."\n"; 
    367367        $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)) { 
    369369        //if safe_mode enabled, write the FTP workaround information to plog-config.php with db information 
    370370                $cfg_file .= "\n";