Plugin Directory

Changeset 598216


Ignore:
Timestamp:
09/12/2012 10:53:06 PM (14 years ago)
Author:
SangrelX
Message:
 
Location:
wordpress-ez-backup
Files:
52 added
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-ez-backup/trunk/readme.txt

    r598184 r598216  
    11=== WordPress EZ Backup ===
    22Contributors: SangrelX
    3 Donate link: http://lastnightsdesigns.com/wordpress-ez-backup
     3Donate link: http://lastnightsdesigns.com/?page_id=121
    44Tags: easy, backup, files, database, mysql, site
    55Requires at least: 2.8.2
    66Tested up to: 3.4.2
    7 Stable tag: 6.0.3
     7Stable tag: 6.0.4
    88
    99Backup & Archive your site & Database all from this easy to use plugin. Many robust features included.
     
    1111== Description ==
    1212
    13 WordPress EZ Backup is A administrators plugin to allow the easiest most feature rich method for creating backup archives of your entire site & database. Please take your time to check out this neat plugin. WordPress EZ Backup started as a private plugin I used on my own & now im bringing it to everyone. Please remember to Deactivate and Reactivate your copy when updating to ensure all updates take effect.
     13WordPress EZ Backup is A administrators plugin to allow the easiest most feature rich method for creating backup archives of your entire site & database. Please take your time to check out this neat plugin. WordPress EZ Backup started as a private plugin I used on my own & now im bringing it to everyone.
    1414
    1515== Installation ==
     
    116116
    117117== Changelog ==
     118
     119= 6.0.4 =
     120*adjusting upgrade routine to prevent users from having to manually deactivate and reactivate in order to make upgrades take effect.
    118121
    119122= 6.0.3 =
  • wordpress-ez-backup/trunk/wp-ezbackup.php

    r597836 r598216  
    44Plugin URI: http://lastnightsdesigns.com/wordpress-ez-backup/
    55Description: Fast Creation of Full Site Backups & Database Backups. Simply adjust your settings & Create your Backup. Features E-mail Alert & E-Mailing Backups, Viewing Live Log files of the backup procedure, Backup Browser & Automated Backups with Scheduling.
    6 Version: 6.0.3
     6Version: 6.0.4
    77Author: Jonathan Garber
    88Author URI: http://lastnightsdesigns.com
    9 */
    10 include 'pages/functions.php';
     9*/include 'pages/functions.php';
    1110function ez_stylesheet() {
    1211    $style = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__));
     
    1514
    1615add_action('admin_head', 'ez_stylesheet');
    17 function ezbu_checksub($domain) {  $exp = explode('.', $domain);  if(count($exp) > 2) {   return true;  } else{   return false;  } }
    18 function ezbu_installer() {
     16function ezbu_checksub($domain) { 
     17$exp = explode('.', $domain); 
     18    if(count($exp) > 2) {   
     19        return true; 
     20    } else{   
     21        return false; 
     22    }
     23}
     24
     25function ezbu_installer() {
    1926    $chmods = dirname(__FILE__);
    2027    $sh1 = $chmods.''."/functions/routine/backup.sh";
    2128    $sh2 = $chmods.''."/functions/routine/functions.sh";
    22 
    2329    chmod("$sh1", 0700);
    2430    chmod("$sh2", 0700);
    25 
    2631    $c1 = call_it('EZBUCRON');
    2732    $c2 = call_it('EZBUWP');
    28     $c3 = call_it('EZBUATTACH');
    29    
     33    $c3 = call_it('EZBUATTACH');   
    3034    if(ezbu_checksub(get_bloginfo('url'))) {
    3135     //subdomain
     
    3640        update_option('ezbu_config', $config);
    3741        update_option('ezbu_root', $root);
    38         update_option('ezbu_plugin', $plugin);     
    39 
    40        
     42        update_option('ezbu_plugin', $plugin);             
    4143    } else {
    4244     //not subdomain
    4345        $config = ezbackup_path();
    4446        $root = dirname(ezbackup_path(false));
    45         $plugin = plugin_dir_url('').plugin_basename(dirname(__FILE__)).'/';
    46        
     47        $plugin = plugin_dir_url('').plugin_basename(dirname(__FILE__)).'/';       
    4748        update_option('ezbu_config', $config);
    4849        update_option('ezbu_root', $root);
    49         update_option('ezbu_plugin', $plugin); 
    50        
    51     }       
    52    
    53 
     50        update_option('ezbu_plugin', $plugin);     
     51    }
    5452}
    5553
     
    180178
    181179
    182 //add_action('admin_init','ezbu_update');
    183 register_activation_hook( __FILE__, 'ezbu_tst_chk' );
     180
     181register_activation_hook( __FILE__, 'ezbu_tst_act' );
    184182register_deactivation_hook( __FILE__, 'ezbu_tst_dea' );
    185183
     
    188186$plugin_version = $plugin_data['Version'];
    189187return $plugin_version;
    190 }
    191 
     188}add_action('admin_init','ezbu_tst_chk');
    192189function ezbu_tst_chk() {
    193     $last_known_version = get_option('ezbu_version');
    194     $current_version = ezbu_get_version();
    195    
     190    $last_known_version = get_option('ezbu_version');   
     191    $current_version = ezbu_get_version(); 
    196192    if ( $last_known_version != $current_version && $last_known_version != '' ) {
    197193        update_option( "ezbu_version", $current_version );
    198         ezbu_tst_upd();
    199     }else{
    200         update_option( "ezbu_version", $current_version );
    201         ezbu_tst_act();
     194        ezbu_tst_upd();     ezbu_installer();
    202195    }
    203196}
     
    212205        'version' => ezbu_get_version()
    213206    );
    214     $ts = ezbu_tst_curl_hit($url,$data);
     207    $ts = ezbu_tst_curl_hit($url,$data);        $version = ezbu_get_version();
    215208    update_option("ezbu_version", $version);
    216209}
Note: See TracChangeset for help on using the changeset viewer.