Ignore:
Timestamp:
08/11/10 11:24:56 (22 months ago)
Author:
benedikt
Message:
  • [ENGINE] Fixed #2053: Make ispCP ω PHP 5.3 compatible (part II): Added Timezone Variable
  • [GUI] Default/Disabled? Page CSS embedded in CDATA tags
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/engine/setup/ispcp-update

    r3010 r3186  
    546546        push_el(\@main::el, 'check_ispcp_cfg_file()', 'Starting...'); 
    547547 
    548         # Ref to an array of settings names that have a unallowed empty value 
     548        # Reference to an array of settings that have unallowed empty value 
    549549        my $settings = shift; 
    550550 
    551         my ($rs, $msg, $rdata, $warn_msg) = (undef, undef, undef, undef); 
    552  
    553         # Map each setting to appropriate dialog subroutine and mainua key name 
    554         # TODO: Add a trigger to check database connection if related setting values 
    555         # are changed && add a subroutine for the 'BASE_SERVER_VHOST' to prevent 
    556         # errors  if a dns file doesn't exist for him 
     551        my ($rs, $msg, $rdata, $warn_msg); 
     552 
     553        # Map each setting to the appropriate dialog subroutine and the corresponding 
     554        # main::ua key name 
     555        # 
     556        # TODO:  
     557        #  - Add a trigger to check database connection if related settings are  
     558        #    changed  
     559        #  - Add a subroutine for the 'BASE_SERVER_VHOST' to prevent errors if the  
     560        #    DNS file doesn't exist 
    557561        my $recovery_dispatcher = { 
    558562                DEFAULT_ADMIN_ADDRESS => [\&ask_admin_email, 'admin_email'], 
     
    563567                DATABASE_NAME => [\&ask_db_name, 'db_name'], 
    564568                DATABASE_USER => [\&ask_db_user, 'db_user'], 
    565                 PHP_FASTCGI => [\&ask_fastcgi, 'php_fastcgi'] 
     569                PHP_FASTCGI => [\&ask_fastcgi, 'php_fastcgi'], 
     570                PHP_TIMEZONE => [\&ask_timezone, 'php_timezone'] 
    566571        }; 
    567572 
    568         # If several parameters are set to an empty value, we ensure 
    569         # that the user has installed ispCP by asking the question 
    570         if(scalar(@$settings) >= 2) { 
     573        # If several parameters are set to an empty value, we should ensure 
     574        # that the user has installed ispCP by asking this question 
     575        if (scalar(@$settings) >= 2) { 
    571576 
    572577                print colored(['bold yellow'], "\n\n\tWARNING:"). 
    573578                        " Your ispCP configuration file has several settings set\n" . 
    574                         "\tto an empty value !\n"; 
     579                        "\tto an empty value!\n"; 
    575580 
    576581                do { 
     
    580585 
    581586                $msg = colored(['bold blue'], "\n\tNOTICE:") . 
    582                         " The program will end now !\n" . 
    583                         "\tPlease, run '$main::cfg{'ROOT_DIR'}/engine/setup/ispcp-setup' instead !\n"; 
     587                        " The program ends now!\n" . 
     588                        "\tPlease, run '$main::cfg{'ROOT_DIR'}/engine/setup/ispcp-setup' instead!\n"; 
    584589 
    585590                ($rdata !~ /^n$/i) or exit_msg(1, $msg); 
     
    587592 
    588593        print STDOUT colored(['bold yellow'], "\n\n\tWARNING:") . 
    589                 " Your ispCP configuration file is not valid!\n" . 
    590                 "\tThe program will switch to recovery mode now...\n"; 
     594                " Your ispCP configuration file has missing parameters!\n" . 
     595                "\tThe update script will switch to recovery/upgrade mode now...\n"; 
    591596 
    592597        do { 
     
    595600        } while($rdata !~ /^(|y|n)$/i); 
    596601 
    597         # Exit with a notice message if the user choose 
    598         # to abort the recovery process 
     602        # Exit with a notice if the user chooses to abort the recovery/update process 
    599603        ($rdata !~ /^n$/i) or exit_msg(1, 
    600604                colored(['bold blue'], "\n\tNOTICE:") . 
    601                 " The recovery process was aborted by user...\n" 
     605                " The recovery/upgrade process was aborted by user...\n" 
    602606        ); 
    603607 
    604         # For each setting, calls the dialog subroutine if it is available, 
    605         # OTHERWISE saves the values already changed and stops the program 
     608        # For each setting, call the subroutine dialouge if available, 
     609        # OTHERWISE saves the value already changed and stops the program 
    606610        # with an specific message. 
    607611        foreach(@$settings) { 
     
    644648        } 
    645649 
    646         # Store new configuration settings values and reload it 
     650        # Store new configuration settings values and reload the ispcp.conf 
    647651        $rs = store_conf(); 
    648652        return $rs if($rs != 0); 
     
    655659 
    656660        print STDOUT colored(['bold blue'], "\n\tNOTICE:") . 
    657                 " The recovery process was end successfully!\n" . 
    658                 "\tThe update process will continue normally now...\n\n"; 
     661                " The recovery/upgrade process ended successfully!\n" . 
     662                "\tThe update process will continue normal...\n\n"; 
    659663 
    660664        push_el(\@main::el, 'check_ispcp_cfg_file()', 'Ending...'); 
Note: See TracChangeset for help on using the changeset viewer.