} if (init('action') == 'clearDate') { $cache = cache::byKey('jeedom::lastDate'); $cache->remove(); ajax::success(); } if (init('action') == 'backup') { jeedom::backup(true, init('noCloudUpload')); ajax::success(); } if (init('action') == 'restore') { jeedom::restore(init('backup'), true); ajax::success(); } if (init('action') == 'restoreCloud') { market::retoreBackup(init('backup')); ajax::success(); } if (init('action') == 'getUpdateLog') { ajax::success(log::get('update', 0, 3000)); } if (init('action') == 'getBackupLog') { ajax::success(log::get('backup', 0, 3000)); } if (init('action') == 'getRestoreLog') { ajax::success(log::get('restore', 0, 3000)); } if (init('action') == 'removeBackup') { jeedom::removeBackup(init('backup')); ajax::success(); }