Plugin Directory

Changeset 227723


Ignore:
Timestamp:
04/11/2010 08:38:27 PM (16 years ago)
Author:
DanCoulter
Message:

Added a warning if shell_exec is disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • automatic-wordpress-backup/trunk/automatic-wordpress-backup.php

    r213127 r227723  
    44Plugin URI: http://www.webdesigncompany.net/automatic-wordpress-backup/
    55Description: Automatically upload backups of important parts of your blog to Amazon S3
    6 Version: 2.0-beta1
     6Version: 2.0-beta2
    77Author: Dan Coulter
    88Author URI: http://dancoulter.com/
     
    189189                echo "<div id='awb-warning' class='updated fade'><p>".__("It appears that your uploads folder isn't writeable by the web server. Be sure that you set your permissions so that it can write to it. ", 'automatic-wordpress-backup')."</p></div>";
    190190            }
    191            
    192         }
    193 
     191        }
     192       
     193        if ( is_null(@shell_exec('ls')) ) {
     194            echo "<div id='awb-warning' class='updated fade'><p>".__("It appears that your host has disabled the shell_exec() function in PHP. This function is required to call the zip program to create the backup archive. ", 'automatic-wordpress-backup')."</p></div>";
     195        }
    194196        ?>
    195197            <script type="text/javascript">
Note: See TracChangeset for help on using the changeset viewer.