Changeset 662458
- Timestamp:
- 02/02/2013 01:52:33 PM (13 years ago)
- Location:
- wp-time-machine/trunk
- Files:
-
- 4 edited
-
css/wp-time-machine.css (modified) (6 diffs)
-
includes/wpTimeMachineCore.php (modified) (12 diffs)
-
readme.txt (modified) (1 diff)
-
wp-time-machine.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-time-machine/trunk/css/wp-time-machine.css
r661480 r662458 8 8 } 9 9 10 #wpTimeMachine p { 11 margin:10px 0; 12 padding:5px 0; 13 } 14 15 #wpTimeMachine p.help { 16 position:absolute; 17 top:25px; 18 right:-20px; 19 width:480px; 20 background-color:#ffc; 21 border:2px solid #999; 22 -moz-border-radius:4px; 23 -webkit-border-radius:4px; 24 padding:15px; 25 z-index:9999; 26 line-height: 1.5; 27 text-align:justify; 28 } 29 30 #wpTimeMachine p.help a { 31 font-size:12px; 32 } 33 34 #wpTimeMachine a.help_link { 35 float:right; 36 color:#ccc; 37 } 38 39 #wpTimeMachine a.help_link:hover { 40 color:#21759B; 41 } 42 43 #wpTimeMachine p.help a.close { 10 #wpTimeMachine a.close { 44 11 position: absolute; 45 12 right: -5px; … … 55 22 } 56 23 24 #wpTimeMachine p { 25 margin:10px 0; 26 padding:5px 0; 27 } 28 29 #wpTimeMachine p.help { 30 position:absolute; 31 top:25px; 32 right:-20px; 33 width:480px; 34 background-color:#ffc; 35 border:2px solid #999; 36 -moz-border-radius:4px; 37 -webkit-border-radius:4px; 38 padding:15px; 39 z-index:9999; 40 line-height: 1.5; 41 text-align:justify; 42 } 43 44 #wpTimeMachine p.help a { 45 font-size:12px; 46 } 47 48 #wpTimeMachine a.help_link { 49 float:right; 50 color:#ccc; 51 } 52 53 #wpTimeMachine a.help_link:hover { 54 color:#21759B; 55 } 56 57 57 #wpTimeMachine div#RecentInfo { 58 58 width:650px; … … 63 63 margin:10px 0; 64 64 padding:10px 25px; 65 position: relative; 66 } 67 68 #wpTimeMachine div#RecentInfo a.close { 69 background-color:#fff; 65 70 } 66 71 … … 108 113 #wpTimeMachine fieldset.last { 109 114 border:0; 115 margin-bottom: 50px; 110 116 } 111 117 … … 143 149 height:auto; 144 150 font-weight:700; 145 margin:0 265px 0 1 0px;151 margin:0 265px 0 18px; 146 152 } 147 153 … … 263 269 } 264 270 265 266 271 #show_info, 267 272 #show_options { 268 273 padding:auto; 269 } 270 274 margin: 0; 275 } 276 277 #show_info { 278 border-radius: 0 4px 4px 0; 279 } 280 281 #show_options { 282 border-radius: 4px 0 0 4px; 283 } 284 -
wp-time-machine/trunk/includes/wpTimeMachineCore.php
r661480 r662458 301 301 302 302 <?php 303 304 echo "";305 303 306 304 if ($wpTimeMachineOptionsStorage['recent_archive_name'] != "") { … … 310 308 echo "<span id='recent_archive_info'>Your archives are ready, they took about " . $wpTimeMachineOptionsStorage['recent_archive_duration'] . " seconds to create;"; 311 309 echo " and are in your <b class=\"offsite_name\">".$offsite_name."</b> account (in this ".strtolower($remote_path_label).": ".$wpTimeMachineOptionsStorage['recent_archive_path']." as a ".$wpTimeMachineOptionsStorage['recent_archive_format']." file).</span>"; 312 echo "<p><a href='javascript:;' onclick='j avascript:jQuery(\"#RecentInfo\").fadeSliderToggle()'>Close this</a></p>";310 echo "<p><a href='javascript:;' onclick='jQuery(\"#RecentInfo\").toggle()' class=\"close\">Close this</a></p>"; 313 311 echo "</div>"; 314 312 … … 318 316 echo "<h3>Your Archive Information:</h3>"; 319 317 echo "Stored on <b class=\"offsite_name\">".$offsite_name."</b> (in this ".strtolower($remote_path_label).": ".$wpTimeMachineOptionsStorage['recent_archive_path']." as a ".$wpTimeMachineOptionsStorage['recent_archive_format']." file).</span>"; 320 echo "<p><a href='javascript:;' onclick='j avascript:jQuery(\"#RecentInfo\").fadeSliderToggle()'>Close this</a></p>";318 echo "<p><a href='javascript:;' onclick='jQuery(\"#RecentInfo\").toggle()' class=\"close\">Close this</a></p>"; 321 319 echo "</div>"; 322 320 … … 410 408 <div> 411 409 412 <a class="button-secondary" href="javascript:;" id="show_options">Plugin Options</a> 413 <a class="button-secondary" href="javascript:;" id="show_info">Plugin Help</a> 410 <a class="button-secondary" href="javascript:;" id="show_options">Plugin Options</a><a class="button-secondary" href="javascript:;" id="show_info">Plugin Help</a> 414 411 415 412 <input class="button-secondary sb" type="submit" id="submit_package_request" value="Generate wp Time Machine archive" /> … … 477 474 ?> 478 475 479 <a href="javascript:;" onclick=" javascript:show_help('#wpTimeMachine_learn_about_formats')" class="help_link"><?php _e("Learn More"); ?></a>476 <a href="javascript:;" onclick="show_help('#wpTimeMachine_learn_about_formats')" class="help_link"><?php _e("Learn More"); ?></a> 480 477 481 478 <p id="wpTimeMachine_learn_about_formats" class="help" style="display:none"> … … 507 504 ?> 508 505 509 <a href="javascript:;" onclick=" javascript:show_help('#wpTimeMachine_learn_about_post_pub')" class="help_link"><?php _e("Learn More"); ?></a>506 <a href="javascript:;" onclick="show_help('#wpTimeMachine_learn_about_post_pub')" class="help_link"><?php _e("Learn More"); ?></a> 510 507 511 508 <p id="wpTimeMachine_learn_about_post_pub" class="help" style="display:none"> … … 537 534 ?> 538 535 539 <a href="javascript:;" onclick=" javascript:show_help('#wpTimeMachine_learn_about_timestamps')" class="help_link"><?php _e("Learn More"); ?></a>536 <a href="javascript:;" onclick="show_help('#wpTimeMachine_learn_about_timestamps')" class="help_link"><?php _e("Learn More"); ?></a> 540 537 541 538 <p id="wpTimeMachine_learn_about_timestamps" class="help" style="display:none"> … … 568 565 ?> 569 566 570 <a href="javascript:;" onclick=" javascript:show_help('#wpTimeMachine_learn_about_cache')" class="help_link"><?php _e("Learn More"); ?></a>567 <a href="javascript:;" onclick="show_help('#wpTimeMachine_learn_about_cache')" class="help_link"><?php _e("Learn More"); ?></a> 571 568 572 569 <p id="wpTimeMachine_learn_about_cache" class="help" style="display:none"> … … 598 595 ?> 599 596 600 <a href="javascript:;" onclick=" javascript:show_help('#wpTimeMachine_learn_about_logging')" class="help_link"><?php _e("Learn More"); ?></a>597 <a href="javascript:;" onclick="show_help('#wpTimeMachine_learn_about_logging')" class="help_link"><?php _e("Learn More"); ?></a> 601 598 602 599 <p id="wpTimeMachine_learn_about_logging" class="help" style="display:none"> … … 1010 1007 function wpTimeMachine_enqueue_scripts() 1011 1008 { 1012 1013 // wp_deregister_script( 'jquery' );1014 // wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js');1015 // wp_enqueue_script( 'jquery' );1016 1017 // wp_deregister_script( 'jquery-ui-core' );1018 // wp_register_script( 'jquery-ui-core', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js' );1019 // wp_enqueue_script( 'jquery-ui-core' );1020 1009 1021 1010 wp_deregister_script( 'jquery-form' ); … … 1026 1015 wp_enqueue_script( 'jquery.validate' ); 1027 1016 1028 wp_register_script( 'jquery.fadeSliderToggle', wpcontent_url . '/plugins/wp-time-machine/javascript/jquery.fadeSliderToggle.js' );1029 wp_enqueue_script( 'jquery.fadeSliderToggle' );1030 1031 1017 wp_register_script( 'jquery.simplemodal-1.3.5.min', wpcontent_url . '/plugins/wp-time-machine/javascript/jquery.simplemodal-1.3.5.min.js' ); 1032 1018 wp_enqueue_script( 'jquery.simplemodal-1.3.5.min' ); … … 1036 1022 function wpTimeMachine_head() 1037 1023 { 1038 1039 echo '<!-- wpTimeMachine_head --> ' . "\n"; 1040 echo '<link type="text/css" rel="stylesheet" href="' . wpcontent_url . '/plugins/wp-time-machine/css/wp-time-machine.css" /> ' . "\n"; 1041 echo '<!-- wpTimeMachine_head --> ' . "\n"; 1024 1025 echo '<link type="text/css" rel="stylesheet" href="' . wpcontent_url . '/plugins/wp-time-machine/css/wp-time-machine.css" />' . "\n"; 1042 1026 1043 1027 } -
wp-time-machine/trunk/readme.txt
r661130 r662458 4 4 Requires at least: 3.0.0 5 5 Tested up to: 3.5.1 6 Stable tag: 3.0. 006 Stable tag: 3.0.10 7 7 8 8 == Description == -
wp-time-machine/trunk/wp-time-machine.php
r661130 r662458 4 4 Plugin URI: http://wordpress.org/extend/plugins/wp-time-machine/ 5 5 Description: Creates an archive of all your WordPress Data & Files and then stores them on Dropbox, Amazon's S3, or your FTP host. 6 Version: 3.0. 006 Version: 3.0.10 7 7 Author: Paul G Petty 8 8 Author URI: http://wpTimeMachine.com 9 9 */ 10 10 11 // wp Time Machine, Version: 11 define( 'wpTimeMachineVersion', '3.0.10' ); 12 12 13 define( 'wpTimeMachineVersion', '3.0.00' ); 13 define( 'wpcontent_dir', ( defined('WP_CONTENT_DIR') ) ? WP_CONTENT_DIR : ABSPATH . 'wp-content' ); 14 define( 'wpcontent_url', ( defined('WP_CONTENT_URL') ) ? WP_CONTENT_URL : get_option('siteurl') . '/wp-content' ); 15 define( 'wpplugin_dir', ( defined('WP_PLUGIN_DIR') ) ? WP_PLUGIN_DIR : wpcontent_dir . '/plugins' ); 16 define( 'wp_install_dir', str_replace( get_option('home'), "", get_option('siteurl') ) ); 17 define( 'wp_version', $wp_version ); 18 define( 'wp_installer_url', 'http://wordpress.org/wordpress-'.wp_version ); // no file ext. needed, $format gets appended later 19 define( 'wp_table_prefix', $table_prefix ); 14 20 15 // wp specific definitions: 21 define('wpTimeMachine_apache_log', 'false'); 16 22 17 define( 'wpcontent_dir', ( defined('WP_CONTENT_DIR') ) ? WP_CONTENT_DIR : ABSPATH . 'wp-content' ); 18 define( 'wpcontent_url', ( defined('WP_CONTENT_URL') ) ? WP_CONTENT_URL : get_option('siteurl') . '/wp-content' ); 19 define( 'wpplugin_dir', ( defined('WP_PLUGIN_DIR') ) ? WP_PLUGIN_DIR : wpcontent_dir . '/plugins' ); 20 define( 'wp_install_dir', str_replace( get_option('home'), "", get_option('siteurl') ) ); 21 define( 'wp_version', $wp_version ); 22 define( 'wp_installer_url', 'http://wordpress.org/wordpress-'.wp_version ); // no file ext. needed, $format gets appended later 23 define( 'wp_table_prefix', $table_prefix ); 24 25 // wp Time Machine definitions: 23 $wpTimeMachineOptions = array( 24 'use_log' => 'true', 25 'show_info' => 'false', 26 'show_option' => 'true', 27 'offsite' => 'dropbox', 28 'use_timestamp_dir' => 'false', 29 'format' => 'zip', 30 'use_post_pub' => 'false', 31 'exclude_cache' => 'true', 32 'remote_user' => 'true', 33 'remote_pass_stored' => 'false', 34 'remote_host' => '', 35 'remote_pass' => '', 36 'remote_path' => '', 37 'recent_archive_name' => '', 38 'recent_archive_path' => '', 39 'recent_archive_format' => '', 40 'recent_archive_size' => '', 41 'recent_archive_duration' => '' 42 ); 26 43 27 define('wpTimeMachine_apache_log', 'false'); 44 define( 'wpTimeMachineOptions', serialize($wpTimeMachineOptions)); 28 45 29 $wpTimeMachineOptions = array( 46 define( 'wpcontent_archive', wpcontent_dir . "/wpTimeMachine-content-files" ); 47 define( 'wpdata_sql', wpcontent_dir . "/wpTimeMachine-data-files.sql" ); 48 define( 'wpdata_sqlgz', wpcontent_dir . "/wpTimeMachine-data-files.sql.gz" ); 49 define( 'htaccess_archive', wpcontent_dir . "/wpTimeMachine-htaccess.txt" ); 50 define( 'restoration', wpcontent_dir . "/wpTimeMachine-RestorationScript.sh" ); 51 define( 'instructions', wpcontent_dir . "/wpTimeMachine-Instructions.txt" ); 52 define( 'wpTimeMachineLog', wpcontent_dir . "/wpTimeMachine_log.txt" ); 53 define( 'wpTimeMachineOptionsFile', wpcontent_dir . "/wpTimeMachine_options.php" ); 30 54 31 'use_log' => 'true', 32 'show_info' => 'false', 33 'show_option' => 'true', 34 'offsite' => 'dropbox', 35 'use_timestamp_dir' => 'false', 36 'format' => 'zip', 37 'use_post_pub' => 'false', 38 'exclude_cache' => 'true', 39 'remote_user' => 'true', 40 'remote_pass_stored' => 'false', 41 'remote_host' => '', 42 'remote_pass' => '', 43 'remote_path' => '', 44 'recent_archive_name' => '', 45 'recent_archive_path' => '', 46 'recent_archive_format' => '', 47 'recent_archive_size' => '', 48 'recent_archive_duration' => '' 55 $wpTimeMachineOffsites = array( 56 'dropbox' => array( 57 'remote_user_label' => 'Email', 58 'remote_pass_label' => 'Password', 59 'remote_path_label' => 'Directory', 60 'offsite_name' => 'Dropbox', 61 'offsite_short' => 'dropbox', 62 'offsite' => 'dropbox' 63 ), 64 's3' => array( 65 'remote_user_label' => 'S3 Key', 66 'remote_pass_label' => 'S3 Secret', 67 'remote_path_label' => 'Bucket', 68 'offsite_name' => 'Amazon S3', 69 'offsite_short' => 's3', 70 'offsite' => 'aws_s3' 71 ), 72 'ftp' => array( 73 'remote_user_label' => 'Username', 74 'remote_pass_label' => 'Password', 75 'remote_path_label' => 'Directory', 76 'offsite_name' => 'FTP', 77 'offsite_short' => 'ftp', 78 'offsite' => 'ftp' 79 ) 80 ); 49 81 50 );82 define( 'wpTimeMachineOffsites', serialize($wpTimeMachineOffsites) ); 51 83 52 define( 'wpTimeMachineOptions', serialize($wpTimeMachineOptions)); 53 define( 'wpcontent_archive', wpcontent_dir . "/wpTimeMachine-content-files" ); 54 define( 'wpdata_sql', wpcontent_dir . "/wpTimeMachine-data-files.sql" ); 55 define( 'wpdata_sqlgz', wpcontent_dir . "/wpTimeMachine-data-files.sql.gz" ); 56 define( 'htaccess_archive', wpcontent_dir . "/wpTimeMachine-htaccess.txt" ); 57 define( 'restoration', wpcontent_dir . "/wpTimeMachine-RestorationScript.sh" ); 58 define( 'instructions', wpcontent_dir . "/wpTimeMachine-Instructions.txt" ); 59 define( 'wpTimeMachineLog', wpcontent_dir . "/wpTimeMachine_log.txt" ); 60 define( 'wpTimeMachineOptionsFile', wpcontent_dir . "/wpTimeMachine_options.php" ); 84 $wpTimeMachineText = array( 85 'use_log_labels' => array( 86 "Logging: Enabled", 87 "Logging: Disabled" 88 ), 89 'view_log_label' => "View log", 90 'clear_log_label' => "Clear log", 91 'format_labels' => array( 92 "Use tarball (tar.gz) files", 93 "Use Zip files" 94 ), 95 'use_post_pub_labels' => array( 96 "Post Publish Event: Enabled", 97 "Post Publish Event: Disabled" 98 ), 99 'use_timestamp_dir_labels' => array( 100 "Time-stamped Subdirectories: Enabled", 101 "Time-stamped Subdirectories: Disabled" 102 ), 103 'exclude_cache_labels' => array( 104 "Cache Related Directories: Excluded", 105 "Cache Related Directories: Included" 106 ), 107 'remote_pass_storage_labels' => array( 108 "<span class='remote_pass_label'>\" + remote_pass_label + \"</span> stored: Enabled", 109 "<span class='remote_pass_label'>\" + remote_pass_label + \"</span> stored: Disabled" 110 ) 111 ); 61 112 62 $wpTimeMachineOffsites = array( 63 64 'dropbox' => array( 65 66 'remote_user_label' => 'Email', 67 'remote_pass_label' => 'Password', 68 'remote_path_label' => 'Directory', 69 'offsite_name' => 'Dropbox', 70 'offsite_short' => 'dropbox', 71 'offsite' => 'dropbox' 72 73 ), 74 75 's3' => array( 76 77 'remote_user_label' => 'S3 Key', 78 'remote_pass_label' => 'S3 Secret', 79 'remote_path_label' => 'Bucket', 80 'offsite_name' => 'Amazon S3', 81 'offsite_short' => 's3', 82 'offsite' => 'aws_s3' 83 84 ), 85 86 'ftp' => array( 87 88 'remote_user_label' => 'Username', 89 'remote_pass_label' => 'Password', 90 'remote_path_label' => 'Directory', 91 'offsite_name' => 'FTP', 92 'offsite_short' => 'ftp', 93 'offsite' => 'ftp' 94 95 ) 96 97 ); 98 99 define( 'wpTimeMachineOffsites', serialize($wpTimeMachineOffsites) ); 113 define( 'wpTimeMachineText', serialize($wpTimeMachineText) ); 100 114 101 102 $wpTimeMachineText = array( 103 104 'use_log_labels' => array( 105 "Logging: Enabled", 106 "Logging: Disabled" 107 ), 108 109 'view_log_label' => "View log", 110 111 'clear_log_label' => "Clear log", 112 113 'format_labels' => array( 114 "Use tarball (tar.gz) files", 115 "Use Zip files" 116 ), 117 118 'use_post_pub_labels' => array( 119 "Post Publish Event: Enabled", 120 "Post Publish Event: Disabled" 121 ), 122 123 'use_timestamp_dir_labels' => array( 124 "Time-stamped Subdirectories: Enabled", 125 "Time-stamped Subdirectories: Disabled" 126 ), 127 128 'exclude_cache_labels' => array( 129 "Cache Related Directories: Excluded", 130 "Cache Related Directories: Included" 131 ), 132 133 'remote_pass_storage_labels' => array( 134 "<span class='remote_pass_label'>\" + remote_pass_label + \"</span> stored: Enabled", 135 "<span class='remote_pass_label'>\" + remote_pass_label + \"</span> stored: Disabled" 136 ) 137 138 ); 139 140 define( 'wpTimeMachineText', serialize($wpTimeMachineText) ); 115 require('includes/DropboxUploader.php'); 116 require('includes/S3.php'); 117 require( 'includes/PEAR/Tar.php' ); 118 require( 'includes/PEAR/Zip.php' ); 119 require( 'includes/wpTimeMachineCore.php' ); 141 120 142 // offsite specific libraries143 144 require('includes/DropboxUploader.php');145 require('includes/S3.php');146 147 // "Universal" includes:148 149 require( 'includes/PEAR/Tar.php' );150 require( 'includes/PEAR/Zip.php' );151 152 // The Core functionality:153 154 require( 'includes/wpTimeMachineCore.php' );155
Note: See TracChangeset
for help on using the changeset viewer.