Exemple #1
0
 * MMC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require "graph/navbar.inc.php";
require "localSidebar.php";
$p = new PageGenerator(_T("View restore points", 'backuppc'));
$p->setSideMenu($sidemenu);
$p->display();
require_once "modules/backuppc/includes/xmlrpc.php";
$response = get_backup_list($_GET['host']);
// Check if error occured
if ($response['err']) {
    new NotifyWidgetFailure(nl2br($response['errtext']));
    return;
}
if ($response['data']) {
    $backups = $response['data'][0];
    $bk_time = $response['data'][4];
    $ages = $response['data'][6];
    $times = array();
    $count = count($backups);
    $params = array();
    for ($i = 0; $i < $count; $i++) {
        $params[] = array('host' => $_GET['host'], 'backupnum' => $backups[$i]);
        preg_match("#.+ (.+)#", $bk_time[$i], $result);
Exemple #2
0
 * You should have received a copy of the GNU General Public License
 * along with MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require_once "modules/backuppc/includes/xmlrpc.php";
require_once "modules/backuppc/includes/functions.php";
require_once "modules/backuppc/includes/html.inc.php";
// ===========================================================================
// ===========================================================================
$package = array();
// display an edit config form
$f = new ValidatingForm();
$f->push(new Table());
$host = $_GET['objectUUID'];
// Get backup Nums =======================================
$response = get_backup_list($host);
// Check if error occured
if ($response['err']) {
    new NotifyWidgetFailure(nl2br($response['errtext']));
    return;
}
if (count($response['data'])) {
    $backups = $response['data'][0];
} else {
    print _T('There is no backup for this machine yet.', 'backuppc');
    return;
}
// Get all backup shares =================================
$sharenames = array();
// Get all sharenames
foreach ($backups as $backup_num) {