Changeset 6605

Show
Ignore:
Timestamp:
09/07/08 19:23:41 (3 months ago)
Author:
p_lindheimer
Message:

create 2.5.0rc3 upgrade dir and remove zh_TW from error in #2609 placement

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/upgrades/2.5.0rc3/removefiles.php

    r5136 r6605  
    33global $amp_conf; 
    44 
    5 $htdocs = $amp_conf['AMPWEBROOT']."/admin/modules/framework/htdocs"; 
    6 $bin = $amp_conf['AMPWEBROOT']."/admin/modules/framework/bin"; 
    7  
    8 // Include the file that will end up in framework also so it doesn't get 
    9 // copied back 
    10 // 
    115$outdated = array( 
    12         $amp_conf['AMPWEBROOT']."/recordings/modules/help.module", 
    13         "$htdocs/recordings/modules/help.module", 
    14         $amp_conf['AMPWEBROOT']."/admin/bounce_op.sh", 
    15         "$htdocs/admin/bounce_op.sh", 
    16         $amp_conf['AMPWEBROOT']."/admin/logout.php", 
    17         "$htdocs/admin/logout.php", 
    18         $amp_conf['AMPWEBROOT']."/admin/footer.php", 
    19         "$htdocs/admin/footer.php", 
    20         $amp_conf['AMPWEBROOT']."/admin/images/background-grid.png", 
    21         "$htdocs/admin/images/background-grid.png", 
    22         $amp_conf['AMPWEBROOT']."/admin/images/background-triangle.png", 
    23         "$htdocs/admin/images/background-triangle.png", 
    24         $amp_conf['AMPWEBROOT']."/admin/common/jquery.js", 
    25         "$htdocs/admin/common/jquery.js", 
    26         $amp_conf['AMPWEBROOT']."/admin/common/jquery.tabs.js", 
    27         "$htdocs/admin/common/jquery.tabs.js", 
    28         $amp_conf['AMPWEBROOT']."/admin/common/freepbx.css", 
    29         "$htdocs/admin/common/freepbx.css", 
    30         $amp_conf['AMPWEBROOT']."/admin/common/jquery.interface.js", 
    31         "$htdocs/admin/common/jquery.interface.js", 
    32         $amp_conf['AMPWEBROOT']."/admin/common/jquery.tabs.css", 
    33         "$htdocs/admin/common/jquery.tabs.css", 
    34         $amp_conf['AMPBIN']."/retrieve_queues_conf_from_mysql.pl", 
    35         "$bin/retrieve_queues_conf_from_mysql.pl", 
    36         $amp_conf['AMPBIN']."/retrieve_zap_conf_from_mysql.pl", 
    37         "$bin/retrieve_zap_conf_from_mysql.pl", 
    38         $amp_conf['AMPBIN']."/retrieve_sip_conf_from_mysql.pl", 
    39         "$bin/retrieve_sip_conf_from_mysql.pl", 
    40         $amp_conf['AMPBIN']."/retrieve_iax_conf_from_mysql.pl", 
    41         "$bin/retrieve_iax_conf_from_mysql.pl", 
     6        $amp_conf['AMPWEBROOT']."/recordings/includes/zh_TW", 
    427); 
    438 
     
    4611foreach ($outdated as $file) { 
    4712        outn("Checking $file.."); 
    48         if (file_exists($file) && !is_link($file)) { 
    49                 unlink($file) ? out("Removed") : out("Failed to Remove"); 
     13        if (is_dir($file) && !is_link($file)) { 
     14                exec("rm -rf $file", $out, $ret); 
     15                $ret == 0 ? out("Removed") : out("Failed to Remove"); 
    5016        } else { 
    5117                out("Not Required"); 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads