/var/www/(Del)hsihk.com/wp-content/plugins/backupbuddy/controllers/ajax/getMainLog.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
if ( ! is_admin() ) { die( 'Access denied.' ); }

/* getMainLog()
 *
 * Dump out contents of the main log file.
 *
 */
$log_file backupbuddy_core::getLogDirectory() . 'log-' pb_backupbuddy::$options['log_serial'] . '.txt';
if ( 
file_exists$log_file ) ) {
    
readfile$log_file );
} else {
    echo 
__('Nothing has been logged.''it-l10n-backupbuddy' );
}
die();