true, 'index' => true, ); var $db_backup; function admin_db_backup() { } /** * Method for sheduled backups, called via asynservice */ function do_backup() { $this->db_backup =& CreateObject('phpgwapi.db_backup'); if ($f = $this->db_backup->fopen_backup()) { $this->db_backup->backup($f); if(is_resource($f)) fclose($f); /* Remove old backups. */ $this->db_backup->housekeeping(); } } /** * includes setup's db_backup to display/access it inside admin */ function index() { $tpl_root = EGW_SERVER_ROOT.'/setup/templates/default'; $self = $GLOBALS['egw']->link('/index.php',array('menuaction'=>'admin.admin_db_backup.index')); $GLOBALS['egw']->translation->add_app('setup'); include EGW_SERVER_ROOT.'/setup/db_backup.php'; $GLOBALS['egw']->common->egw_footer(); } }