当前位置: 首页>>代码示例>>PHP>>正文


PHP pb_backupbuddy::plugin_url方法代码示例

本文整理汇总了PHP中pb_backupbuddy::plugin_url方法的典型用法代码示例。如果您正苦于以下问题:PHP pb_backupbuddy::plugin_url方法的具体用法?PHP pb_backupbuddy::plugin_url怎么用?PHP pb_backupbuddy::plugin_url使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pb_backupbuddy的用法示例。


在下文中一共展示了pb_backupbuddy::plugin_url方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: enqueue_dashboard_stylesheet

function enqueue_dashboard_stylesheet($hook)
{
    if ('index.php' != $hook) {
        return;
    }
    wp_enqueue_style('bub_dashboard_widget', pb_backupbuddy::plugin_url() . '/css/dashboard_widget.css');
}
开发者ID:adrianjonmiller,项目名称:vadsupplies,代码行数:7,代码来源:init_admin.php

示例2: upgrader_instantiate

 function upgrader_instantiate($plugin_slug)
 {
     $args = array('parent' => $this, 'remote_url' => 'http://updater2.ithemes.com/index.php', 'version' => pb_backupbuddy::settings('version'), 'plugin_slug' => pb_backupbuddy::settings('slug'), 'plugin_path' => plugin_basename(pb_backupbuddy::plugin_path() . '/' . pb_backupbuddy::settings('init')), 'plugin_url' => pb_backupbuddy::plugin_url(), 'product' => pb_backupbuddy::settings('slug'), 'time' => 43200, 'return_format' => 'json', 'method' => 'POST', 'upgrade_action' => 'check');
     // Instantiate object of latest updater (by namespace) and apply to this plugin's pluginbuddy class (in this namespace).
     //$class_name = $plugin_namespace . "\\updater";
     $target_plugin_class_name = 'pb_' . $plugin_slug . '_updater';
     $this_plugin_class_name = 'pb_' . $this->_slug;
     //$this_plugin_class_name::$_updater = new $target_plugin_class_name( $args );
     pb_backupbuddy::$_updater = new $target_plugin_class_name($args);
 }
开发者ID:CherylMuniz,项目名称:fashion,代码行数:10,代码来源:updater.php

示例3: upload

/**
 *	upload()
 *
 *	Processes uploaded backup file.
 *
 *	@return		array		True on upload success; false otherwise.
 */
function upload()
{
    if (isset($_POST['upload']) && $_POST['upload'] == 'local') {
        if (pb_backupbuddy::$options['password'] != '#PASSWORD#') {
            $path_parts = pathinfo($_FILES['file']['name']);
            if (strtolower(substr($_FILES['file']['name'], 0, 6)) == 'backup' && strtolower($path_parts['extension']) == 'zip') {
                if (move_uploaded_file($_FILES['file']['tmp_name'], basename($_FILES['file']['name']))) {
                    pb_backupbuddy::alert('File Uploaded. Your backup was successfully uploaded.');
                    return true;
                } else {
                    pb_backupbuddy::alert('Sorry, there was a problem uploading your file.', true);
                    return false;
                }
            } else {
                pb_backupbuddy::alert('Only properly named BackupBuddy zip archives with a zip extension may be uploaded.', true);
                return false;
            }
        } else {
            pb_backupbuddy::alert('Upload Access Denied. To prevent unauthorized file uploads an importbuddy password must be configured and properly entered to use this feature.');
            return false;
        }
    }
    // DOWNLOAD FILE FROM STASH TO LOCAL.
    if (pb_backupbuddy::_POST('upload') == 'stash') {
        pb_backupbuddy::set_greedy_script_limits(true);
        /*
        echo '<pre>';
        print_r( $_POST );
        echo '</pre>';
        */
        $requestcore_file = dirname(dirname(dirname(__FILE__))) . '/lib/requestcore/requestcore.class.php';
        require_once $requestcore_file;
        $link = pb_backupbuddy::_POST('link');
        $destination_file = dirname(dirname(dirname(dirname(__FILE__)))) . '/' . basename(pb_backupbuddy::_POST('link'));
        $destination_file = substr($destination_file, 0, stripos($destination_file, '.zip') + 4);
        $_GET['file'] = basename($destination_file);
        $request = new RequestCore($link);
        $request->set_write_file($destination_file);
        echo '<div id="pb_importbuddy_working" style="padding: 20px;">Downloading backup from Stash to `' . $destination_file . '`...<br><br><img src="' . pb_backupbuddy::plugin_url() . '/images/loading_large.gif" title="Working... Please wait as this may take a moment..."><br><br></div>';
        flush();
        $response = $request->send_request(false);
        if ($response !== true) {
            pb_backupbuddy::alert('Error #8548459598. Unable to download file from Stash. You may manually download it and upload to the server via FTP.');
        } else {
            // No error.
            if (!file_exists($destination_file)) {
                pb_backupbuddy::alert('Error #34845745878. Stash returned a success but the backup file was not found locally. Check this server\'s directory write permissions. You may manually download it and upload to the server via FTP.');
            }
        }
        echo '<script type="text/javascript">jQuery("#pb_importbuddy_working").hide();</script>';
    }
}
开发者ID:brettex,项目名称:pspark,代码行数:59,代码来源:1.php

示例4: bb_build_remote_destinations

function bb_build_remote_destinations($destinations_list)
{
    $remote_destinations = explode('|', $destinations_list);
    $remote_destinations_html = '';
    foreach ($remote_destinations as $destination) {
        if (isset($destination) && $destination != '') {
            $remote_destinations_html .= '<li id="pb_remotedestination_' . $destination . '">';
            if (!isset(pb_backupbuddy::$options['remote_destinations'][$destination])) {
                $remote_destinations_html .= '{destination no longer exists}';
            } else {
                $remote_destinations_html .= pb_backupbuddy::$options['remote_destinations'][$destination]['title'];
                $remote_destinations_html .= ' (' . backupbuddy_core::pretty_destination_type(pb_backupbuddy::$options['remote_destinations'][$destination]['type']) . ') ';
            }
            $remote_destinations_html .= '<img class="pb_remotedestionation_delete" src="' . pb_backupbuddy::plugin_url() . '/images/redminus.png" style="vertical-align: -3px; cursor: pointer;" title="' . __('Remove remote destination from this schedule.', 'it-l10n-backupbuddy') . '" />';
            $remote_destinations_html .= '</li>';
        }
    }
    $remote_destinations = '<ul id="pb_backupbuddy_remotedestinations_list">' . $remote_destinations_html . '</ul>';
    return $remote_destinations;
}
开发者ID:Offirmo,项目名称:base-wordpress,代码行数:20,代码来源:scheduling.php

示例5: backupbuddy_hourpad

		if( jQuery( '#' + target_id ).length == 0 ) { // No status box yet so suppress.
			return;
		}
		jQuery( '#' + target_id ).append( "\n" + message );
		textareaelem = document.getElementById( target_id );
		textareaelem.scrollTop = textareaelem.scrollHeight;
	}
	
	function backupbuddy_hourpad(n) { return ("0" + n).slice(-2); }
</script>
<?php 
$success = false;
global $pb_backupbuddy_js_status;
$pb_backupbuddy_js_status = true;
echo pb_backupbuddy::status_box('Restoring . . .');
echo '<div id="pb_backupbuddy_working" style="width: 100px;"><br><center><img src="' . pb_backupbuddy::plugin_url() . '/images/working.gif" title="Working... Please wait as this may take a moment..."></center></div>';
pb_backupbuddy::set_status_serial('restore');
global $wp_version;
pb_backupbuddy::status('details', 'BackupBuddy v' . pb_backupbuddy::settings('version') . ' using WordPress v' . $wp_version . ' on ' . PHP_OS . '.');
$archive_file = pb_backupbuddy::_GET('archive');
// archive to extract from.
require pb_backupbuddy::plugin_path() . '/classes/_restoreFiles.php';
$result = backupbuddy_restore_files::restore(backupbuddy_core::getBackupDirectory() . $archive_file, $files, $finalPath = ABSPATH);
echo '<script type="text/javascript">jQuery("#pb_backupbuddy_working").hide();</script>';
pb_backupbuddy::flush();
if (false === $result) {
} else {
}
pb_backupbuddy::$ui->ajax_footer();
pb_backupbuddy::$ui->ajax_footer();
die;
开发者ID:elephantcode,项目名称:elephantcode,代码行数:31,代码来源:restore_file_restore.php

示例6: function

		jQuery(document).on( 'click', '.pb_backupbuddy_filetree_exclude', function(){
			text = jQuery(this).parent().parent().find( 'a' ).attr( 'rel' );
			if ( ( text == 'wp-config.php' ) || ( text == '/wp-content/' ) || ( text == '/wp-content/uploads/' ) || ( text == '<?php 
echo pb_backupbuddy::$options['backup_directory'];
?>
' ) || ( text == '/wp-content/uploads/backupbuddy_temp/' ) ) {
				alert( '<?php 
_e('You cannot exclude /wp-content/, /wp-content/uploads/, or BackupBuddy directories.  However, you may exclude subdirectories within these. BackupBuddy directories such as backupbuddy_backups are automatically excluded and cannot be added to exclusion list.', 'it-l10n-backupbuddy');
?>
' );
			} else {
				jQuery('#pb_backupbuddy_excludes').val( text + "\n" + jQuery('#pb_backupbuddy_excludes').val() );
			}
			return false;
		});
	});
</script>



<?php 
if ($profile_array['type'] == 'defaults') {
    $before_text = __('Excluded files & directories (relative to WordPress root)', 'it-l10n-backupbuddy');
} else {
    $before_text = __('Excluded files & directories for this profile (Global defaults do not apply; relative to WordPress root)', 'it-l10n-backupbuddy');
}
if ($profile_array['type'] != 'defaults') {
    $settings_form->add_setting(array('type' => 'checkbox', 'name' => 'profiles#' . $profile_id . '#profile_globalexcludes', 'options' => array('unchecked' => '0', 'checked' => '1'), 'title' => 'Use global defaults for files to backup?', 'after' => ' Use global defaults', 'css' => ''));
}
$settings_form->add_setting(array('type' => 'textarea', 'name' => 'profiles#' . $profile_id . '#excludes', 'title' => 'Click directories to navigate or click <img src="' . pb_backupbuddy::plugin_url() . '/images/redminus.png" style="vertical-align: -3px;"> to exclude.' . ' ' . pb_backupbuddy::tip(__('Click on a directory name to navigate directories. Click the red minus sign to the right of a directory to place it in the exclusion list. /wp-content/, /wp-content/uploads/, and BackupBuddy backup & temporary directories cannot be excluded. BackupBuddy directories are automatically excluded.', 'it-l10n-backupbuddy'), '', false) . '<br><div id="exlude_dirs" class="jQueryOuterTree"></div>', 'rules' => 'string[0-9000]', 'css' => 'width: 100%; height: 135px;', 'before' => $before_text . pb_backupbuddy::tip(__('List paths relative to the WordPress installation directory to be excluded from backups.  You may use the directory selector to the left to easily exclude directories by ctrl+clicking them.  Paths are relative to root, for example: /wp-content/uploads/junk/', 'it-l10n-backupbuddy'), '', false) . '<br>', 'after' => '<span class="description">' . __('One file or directory exclusion per line. This may be manually edited.', 'it-l10n-backupbuddy') . '</span>'));
开发者ID:mariakhair,项目名称:bootstrap,代码行数:30,代码来源:_files.php

示例7: backups_list


//.........这里部分代码省略.........
             $pretty_status = array('pass' => 'Good', 'fail' => '<font color="red">Bad</font>');
             $pretty_type = array('full' => 'Full', 'db' => 'Database');
             //echo '<pre>' . print_r( pb_backupbuddy::$options['backups'][$serial], true ) . '</pre>';
             // Calculate time for each step.
             $step_times = array();
             $step_time_details = array();
             $zip_time = 0;
             if (isset(pb_backupbuddy::$options['backups'][$serial]['steps'])) {
                 foreach (pb_backupbuddy::$options['backups'][$serial]['steps'] as $step) {
                     if (!isset($step['finish_time']) || $step['finish_time'] == 0) {
                         $step_times[] = '<span class="description">Unknown</span>';
                     } else {
                         $step_time = $step['finish_time'] - $step['start_time'];
                         $step_times[] = $step_time;
                         // Pretty step name:
                         if ($step['function'] == 'backup_create_database_dump') {
                             $step_name = 'Database dump';
                         } elseif ($step['function'] == 'backup_zip_files') {
                             $step_name = 'Zip archive creation';
                         } elseif ($step['function'] == 'post_backup') {
                             $step_name = 'Post-backup cleanup';
                         } else {
                             $step_name = $step['function'];
                         }
                         $step_time_details[] = '<b>' . $step_name . '</b><br>&nbsp;&nbsp;&nbsp;' . $step_time . ' seconds in ' . $step['attempts'] . ' attempts.';
                         if ($step['function'] == 'backup_zip_files') {
                             $zip_time = $step_time;
                         }
                     }
                 }
                 // End foreach.
             } else {
                 // End if serial in array is set.
                 $step_times[] = '<span class="description">Unknown</span>';
             }
             // End if serial in array is NOT set.
             $step_times = implode(', ', $step_times);
             //echo '<pre>' . print_r( pb_backupbuddy::$options['backups'][$serial], true ) . '</pre>';
             // Calculate start and finish.
             if (isset(pb_backupbuddy::$options['backups'][$serial]['start_time']) && isset(pb_backupbuddy::$options['backups'][$serial]['finish_time']) && pb_backupbuddy::$options['backups'][$serial]['start_time'] > 0 && pb_backupbuddy::$options['backups'][$serial]['finish_time'] > 0) {
                 $start_time = pb_backupbuddy::$options['backups'][$serial]['start_time'];
                 $finish_time = pb_backupbuddy::$options['backups'][$serial]['finish_time'];
                 $total_time = $finish_time - $start_time;
             } else {
                 $total_time = '<span class="description">Unknown</span>';
             }
             // Calculate write speed in MB/sec for this backup.
             if ($zip_time == '0') {
                 // Took approx 0 seconds to backup so report this speed.
                 if (!isset($finish_time) || $finish_time == '0') {
                     $write_speed = '<span class="description">Unknown</span>';
                 } else {
                     $write_speed = '> ' . pb_backupbuddy::$format->file_size(pb_backupbuddy::$options['backups'][$serial]['integrity']['size']);
                 }
             } else {
                 $write_speed = pb_backupbuddy::$format->file_size(pb_backupbuddy::$options['backups'][$serial]['integrity']['size'] / $zip_time);
             }
             // Figure out trigger.
             if (isset(pb_backupbuddy::$options['backups'][$serial]['trigger'])) {
                 $trigger = pb_backupbuddy::$options['backups'][$serial]['trigger'];
             } else {
                 $trigger = __('Unknown', 'it-l10n-backupbuddy');
             }
             // HTML output for stats.
             $statistics = "\n\t\t\t\t\t<span style='width: 80px; display: inline-block;'>Total time:</span>{$total_time} secs<br>\n\t\t\t\t\t<span style='width: 80px; display: inline-block;'>Step times:</span>{$step_times}<br>\n\t\t\t\t\t<span style='width: 80px; display: inline-block;'>Write speed:</span>{$write_speed}/sec\n\t\t\t\t";
             // HTML output for stats details (for tooltip).
             $statistic_details = '<br><br>' . implode('<br>', $step_time_details) . '<br><br><i>Trigger: ' . $trigger . '</i>';
             // Calculate time ago.
             $time_ago = '<span class="description">' . pb_backupbuddy::$format->time_ago(pb_backupbuddy::$options['backups'][$serial]['integrity']['modified']) . ' ago</span>';
             // Calculate main row string.
             if ($type == 'default') {
                 // Default backup listing.
                 $main_string = '<a href="' . pb_backupbuddy::ajax_url('download_archive') . '&backupbuddy_backup=' . basename($file) . '">' . basename($file) . '</a>';
             } elseif ($type == 'migrate') {
                 // Migration backup listing.
                 $main_string = '<a class="pb_backupbuddy_hoveraction_migrate" rel="' . basename($file) . '" href="' . pb_backupbuddy::page_url() . '&migrate=' . basename($file) . '&value=' . basename($file) . '">' . basename($file) . '</a>';
             } else {
                 $main_string = '{Unknown type.}';
             }
             // Add comment to main row string if applicable.
             if (isset(pb_backupbuddy::$options['backups'][$serial]['integrity']['comment']) && pb_backupbuddy::$options['backups'][$serial]['integrity']['comment'] !== false && pb_backupbuddy::$options['backups'][$serial]['integrity']['comment'] !== '') {
                 $main_string .= '<br><span class="description">Note: <span class="pb_backupbuddy_notetext">' . pb_backupbuddy::$options['backups'][$serial]['integrity']['comment'] . '</span></span>';
             }
             $backups[basename($file)] = array(array(basename($file), $main_string), pb_backupbuddy::$format->date(pb_backupbuddy::$options['backups'][$serial]['integrity']['modified']) . '<br>' . $time_ago, pb_backupbuddy::$format->file_size(pb_backupbuddy::$options['backups'][$serial]['integrity']['size']), pb_backupbuddy::$format->prettify(pb_backupbuddy::$options['backups'][$serial]['integrity']['status'], $pretty_status) . ' ' . pb_backupbuddy::tip(pb_backupbuddy::$options['backups'][$serial]['integrity']['status_details'] . '<br><br>Checked ' . pb_backupbuddy::$format->date(pb_backupbuddy::$options['backups'][$serial]['integrity']['scan_time']) . $statistic_details, '', false) . ' <a href="' . pb_backupbuddy::page_url() . '&reset_integrity=' . $serial . '" title="' . __('Refresh backup integrity status for this file', 'it-l10n-backupbuddy') . '"><img src="' . pb_backupbuddy::plugin_url() . '/images/refresh_gray.gif" style="vertical-align: -1px;"></a>', pb_backupbuddy::$format->prettify(pb_backupbuddy::$options['backups'][$serial]['integrity']['detected_type'], $pretty_type), $statistics);
             $backup_sort_dates[basename($file)] = pb_backupbuddy::$options['backups'][$serial]['integrity']['modified'];
         }
         // End foreach().
     }
     // End if.
     // Sort backup sizes.
     arsort($backup_sort_dates);
     // Re-arrange backups based on sort dates.
     $sorted_backups = array();
     foreach ($backup_sort_dates as $backup_file => $backup_sort_date) {
         $sorted_backups[$backup_file] = $backups[$backup_file];
         unset($backups[$backup_file]);
     }
     unset($backups);
     return $sorted_backups;
 }
开发者ID:verbazend,项目名称:AWFA,代码行数:101,代码来源:core.php

示例8: substr

					<?php 
pb_backupbuddy::tip('The password you would like to assign to the database user created.', '', true);
?>
				</label>
				<span style="text-align: right; width: 300px; display: inline-block;">
					<input type="text" name="cpanel_dbpass" id="cpanel_dbpass" style="width: 175px;" value="<?php 
echo substr(md5(microtime()), rand(0, 13), 16);
?>
">
				</span>
				<br>
				
				<br>
				<center>
					<input type="submit" name="submit" value="Create Database" class="button button-primary cpanel_createdb_create">
					<span style="display: inline-block; width: 20px;">
						<span class="cpanel_createdb_loading" style="display: none; margin-left: 10px;"><img src="<?php 
echo pb_backupbuddy::plugin_url();
?>
/images/loading.gif" alt="' . __('Loading...', 'it-l10n-backupbuddy' ) . '" title="' . __('Loading...', 'it-l10n-backupbuddy' ) . '" width="16" height="16" style="vertical-align: -3px;" /></span>
					</span>
				</center>
				
			</form>
		</div>
	</div>
</div>


<?php 
require_once '_footer.php';
开发者ID:brettex,项目名称:pspark,代码行数:31,代码来源:html_3.php

示例9: wp_update_backup_reminder_dump

 function wp_update_backup_reminder_dump($text = '')
 {
     return str_replace('<h2>WordPress Updates</h2>', '<h2>' . __('WordPress Updates', 'it-l10n-backupbuddy') . '</h2><div id="message" class="updated fade"><p><img src="' . pb_backupbuddy::plugin_url() . '/images/pluginbuddy.png" style="vertical-align: -3px;" /> <a href="admin.php?page=pb_backupbuddy_backup" target="_new" style="text-decoration: none;">' . __('Remember to back up your site with BackupBuddy before upgrading!', 'it-l10n-backupbuddy') . '</a></p></div>', $text);
 }
开发者ID:Ezyva2015,项目名称:SMSF-Academy-Wordpress,代码行数:4,代码来源:actions.php

示例10: htmlentities

            if (file_exists(str_replace('//', '/', $root . $file))) {
                if (is_dir(str_replace('//', '/', $root . $file))) {
                    // Directory.
                    echo '<li class="directory collapsed">';
                    $return = '';
                    $return .= '<div class="pb_backupbuddy_treeselect_control">';
                    $return .= '<img src="' . pb_backupbuddy::plugin_url() . '/images/redminus.png" style="vertical-align: -3px;" title="Add to exclusions..." class="pb_backupbuddy_filetree_exclude">';
                    $return .= '</div>';
                    echo '<a href="#" rel="' . htmlentities(str_replace(ABSPATH, '', $root) . $file) . '/" title="Toggle expand...">' . htmlentities($file) . $return . '</a>';
                    echo '</li>';
                } else {
                    // File.
                    echo '<li class="file collapsed">';
                    $return = '';
                    $return .= '<div class="pb_backupbuddy_treeselect_control">';
                    $return .= '<img src="' . pb_backupbuddy::plugin_url() . '/images/redminus.png" style="vertical-align: -3px;" title="Add to exclusions..." class="pb_backupbuddy_filetree_exclude">';
                    $return .= '</div>';
                    echo '<a href="#" rel="' . htmlentities(str_replace(ABSPATH, '', $root) . $file) . '">' . htmlentities($file) . $return . '</a>';
                    echo '</li>';
                }
            }
        }
        echo '</ul>';
    } else {
        echo '<ul class="jqueryFileTree" style="display: none;">';
        echo '<li><a href="#" rel="' . htmlentities(pb_backupbuddy::_POST('dir') . 'NONE') . '"><i>Empty Directory ...</i></a></li>';
        echo '</ul>';
    }
} else {
    echo 'Error #1127555. Unable to read site root.';
}
开发者ID:elephantcode,项目名称:elephantcode,代码行数:31,代码来源:exclude_tree.php

示例11: htmlentities

            if (in_array($ext, $view_ext)) {
                $viewable = true;
            }
            echo '<li class="file collapsed ext_' . $ext;
            if (true === $viewable) {
                echo ' viewable';
            }
            echo '"><input type="checkbox">';
            if (true === $viewable) {
                echo '<a onclick="modal_live(\'restore_file_view\',jQuery(this));" class="hoverable" rel="' . htmlentities($root . $file[0]) . '">';
            } else {
                echo '<a href="#" rel="' . htmlentities($root . $file[0]) . '">';
            }
            echo htmlentities($file[0]);
            if (true === $viewable) {
                echo '<span class="viewlink_place"><img src="' . pb_backupbuddy::plugin_url() . '/images/eyecon.png"></span>';
                echo '<span class="viewlink"><img src="' . pb_backupbuddy::plugin_url() . '/images/eyecon.png"> View</span>';
            }
            echo '<span class="pb_backupbuddy_fileinfo">';
            echo '	<span class="pb_backupbuddy_col1">' . pb_backupbuddy::$format->file_size($file[1]) . '</span>';
            echo '	<span class="pb_backupbuddy_col2">' . pb_backupbuddy::$format->date(pb_backupbuddy::$format->localize_time($file[3])) . ' <span class="description">(' . pb_backupbuddy::$format->time_ago($file[3]) . ' ago)</span></span>';
            echo '</span>';
            echo '</a></li>';
        }
    }
    echo '</ul>';
} else {
    echo '<ul class="jqueryFileTree" style="display: none;">';
    echo '<li><a href="#" rel="' . htmlentities(pb_backupbuddy::_POST('dir') . 'NONE') . '"><i>Empty Directory ...</i></a></li>';
    echo '</ul>';
}
开发者ID:Ezyva2015,项目名称:SMSF-Academy-Wordpress,代码行数:31,代码来源:file_tree.php

示例12: __

		</div>
	</div>
	<table class="widefat">
		<thead>
			<tr class="thead">
				<th scope="col" class="check-column"><input type="checkbox" class="check-all-entries" /></th>
				<?php 
echo '<th>', __('Backup File', 'it-l10n-backupbuddy'), ' <img src="', pb_backupbuddy::plugin_url(), '/images/sort_down.png" style="vertical-align: 0px;" title="', __('Sorted by filename', 'it-l10n-backupbuddy'), '" /></th>', '<th>', __('Last Modified', 'it-l10n-backupbuddy'), '</th>', '<th>', __('File Size', 'it-l10n-backupbuddy'), '</th>', '<th>', __('Actions', 'it-l10n-backupbuddy'), '</th>';
?>
			</tr>
		</thead>
		<tfoot>
			<tr class="thead">
				<th scope="col" class="check-column"><input type="checkbox" class="check-all-entries" /></th>
				<?php 
echo '<th>', __('Backup File', 'it-l10n-backupbuddy'), ' <img src="', pb_backupbuddy::plugin_url(), '/images/sort_down.png" style="vertical-align: 0px;" title="', __('Sorted by filename', 'it-l10n-backupbuddy'), '" /></th>', '<th>', __('Last Modified', 'it-l10n-backupbuddy'), '</th>', '<th>', __('File Size', 'it-l10n-backupbuddy'), '</th>', '<th>', __('Actions', 'it-l10n-backupbuddy'), '</th>';
?>
			</tr>
		</tfoot>
		<tbody>
			<?php 
// List dropbox backups
if (empty($meta_data['contents'])) {
    echo '<tr><td colspan="5" style="text-align: center;"><i>', __('You have not created any dropbox backups yet.', 'it-l10n-backupbuddy'), ' </i></td></tr>';
} else {
    $file_count = 0;
    foreach ((array) $meta_data['contents'] as $file) {
        // check if file is backup
        if (strstr($file['path'], 'backup-')) {
            $file_count++;
            ?>
开发者ID:brettex,项目名称:pspark,代码行数:31,代码来源:_manage.php

示例13: _e

		<option>all</option>
		<option>1</option>
		<option>2</option>
		<option selected="selected">3</option>
		<option>4</option>
		<option>5</option>
	</select>

	<a id="update" class="theme button white"><?php 
_e('Go Up', 'it-l10n-backupbuddy');
?>
</a>
</div>



<?php 
$dir_array = array();
$icicle_array = array();
$time_start = microtime(true);
//echo '<pre>' . $this->build_icicle( ABSPATH, ABSPATH, '' ) . '</pre>';
echo '<br>';
echo '<div class="pb_htitle">' . __('Directory Size Listing', 'it-l10n-backupbuddy') . '</div><br>';
echo '<a name="pb_backupbuddy_dir_size_listing">&nbsp;</a>';
echo '<div id="pb_backupbuddy_site_size_listing_intro">';
echo __('This option displays a comprehensive listing of directories and the corresponding size of all contents within, including subdirectories.  This is useful for finding where space is being used. Note that this is a CPU intensive process and may take a while to load and even time out on some servers.', 'it-l10n-backupbuddy');
echo '<br /><br /><a class="pb_backupbuddy_site_size_listing_button button secondary-button" style="margin-top: 3px;">', __('Display Directory Size Listing', 'it-l10n-backupbuddy'), '</a> ';
echo '<span class="pb_backupbuddy_loading" style="display: none; margin-left: 10px;"><img src="' . pb_backupbuddy::plugin_url() . '/images/loading.gif" alt="' . __('Loading...', 'it-l10n-backupbuddy') . '" title="' . __('Loading...', 'it-l10n-backupbuddy') . '" width="16" height="16" style="vertical-align: -3px;" /></span>';
echo '</div>';
echo '<div id="pb_backupbuddy_site_size_listing_content" style="display: none;"></div>';
echo '<br>';
开发者ID:jimlongo56,项目名称:bhouse,代码行数:31,代码来源:site_size.php

示例14: video

 /**
  *	pb_backupbuddy::video()
  *
  *	Displays a YouTube video to the user when they hover over the question video mark.
  *	HTML is supposed within tooltips.
  *
  *	@param		string		$video_key		YouTube video key from the URL ?v=VIDEO_KEY_HERE  -- To jump to a certain timestamp add #SECONDS to the end of the key, where SECONDS is the number of seconds into the video to start at. Example to start 65 seconds into a video: 9ZHWGjBr84s#65. This must be in seconds format.
  *	@param		string		$title			Title of message to show to user. This is displayed at top of tip in bigger letters. Default is blank. (optional)
  *	@param		boolean		$echo_tip		Whether to echo the tip (default; true), or return the tip (false). (optional)
  *	@return		string/null					If not echoing tip then the string will be returned. When echoing there is no return.
  */
 public function video($video_key, $title = '', $echo_tip = true)
 {
     if (!defined('PB_IMPORTBUDDY')) {
         global $wp_scripts;
         if (is_object($wp_scripts)) {
             if (!in_array('thickbox', $wp_scripts->done)) {
                 wp_enqueue_script('thickbox');
                 wp_print_scripts('thickbox');
                 wp_print_styles('thickbox');
             }
         }
     }
     if (strstr($video_key, '#')) {
         $video = explode('#', $video_key);
         $video[1] = '&start=' . $video[1];
     } else {
         $video[0] = $video_key;
         $video[1] = '';
     }
     $tip = '<a target="_new" href="http://www.youtube.com/embed/' . urlencode($video[0]) . '?autoplay=1' . $video[1] . '&TB_iframe=1&width=600&height=400" class="thickbox pluginbuddy_tip" title="Video Tutorial - ' . $title . '"><img src="' . pb_backupbuddy::plugin_url() . '/pluginbuddy/images/pluginbuddy_play.png" alt="(video)" /></a>';
     if ($echo_tip === true) {
         echo $tip;
     } else {
         return $tip;
     }
 }
开发者ID:jimlongo56,项目名称:bhouse,代码行数:37,代码来源:ui.php

示例15: migrate_database

pb_backupbuddy::flush();
$result = migrate_database();
verify_database();
// Remove any temporary .maintenance file created by ImportBuddy.
scrub_maintenance_file();
// Remove any temporary index.htm file created by ImportBuddy.
scrub_index_file();
echo '<script type="text/javascript">jQuery("#pb_importbuddy_working").hide();</script>';
if (true === $result) {
    $wpconfig_result = migrate_wp_config();
    if ($wpconfig_result !== true) {
        pb_backupbuddy::alert('Error: Unable to update wp-config.php file. Verify write permissions for the wp-config.php file then refresh this page. You may manually update your wp-config.php file by changing it to the following:<textarea readonly="readonly" style="width: 80%;">' . $wpconfig_result . '</textarea>');
    }
    pb_backupbuddy::status('message', 'Import complete!');
    echo '<h3>Imported Site: <a href="' . pb_backupbuddy::$options['home'] . '" target="_new">' . pb_backupbuddy::$options['home'] . '</a></h3>';
    echo '<img src="' . pb_backupbuddy::plugin_url() . '/images/bullet_error.png" style="float: left;"><div style="margin-left: 20px;"><b>Verify site functionality then proceed to the next step below</b> to cleanup the backup ZIP file, importbuddy.php, and other temporary files. You may view your entire import log for providing to support by clicking the "View Import Log" button below.</div>';
    echo '<form action="?step=6" method=post>';
    echo '<input type="hidden" name="pass_hash" id="pass_hash" value="' . htmlspecialchars(pb_backupbuddy::_POST('pass_hash')) . '">';
    echo '<input type="hidden" name="options" value="' . htmlspecialchars(serialize(pb_backupbuddy::$options)) . '" />';
    // Scan for 'trouble' such as a remaining .maintenance file, index.htm, index.html, missing wp-config.php, missing .htaccess, etc etc.
    $trouble = trouble_scan();
    if (count($trouble) > 0) {
        echo '<br>';
        $trouble_text = '';
        foreach ($trouble as $this_trouble) {
            $trouble_text .= '<li>' . $this_trouble . '</li>';
        }
        $trouble_text = '<ul>' . $trouble_text . '</ul>';
        pb_backupbuddy::alert('Warning: One or more potential issues may have been detected and <i>may</i> require your attention.' . $trouble_text);
    } else {
        echo '<br>';
开发者ID:mariakhair,项目名称:bootstrap,代码行数:31,代码来源:html_5.php


注:本文中的pb_backupbuddy::plugin_url方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。