[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/admin/inc/ -> class.admin_db_backup.inc.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare - Admin - DB backup and restore                               *
   4      * http://www.egroupware.org                                                *
   5      * Written by RalfBecker@outdoor-training.de                                *
   6      * --------------------------------------------                             *
   7      *  This program is free software; you can redistribute it and/or modify it *
   8      *  under the terms of the GNU General Public License as published by the   *
   9      *  Free Software Foundation; either version 2 of the License, or (at your  *
  10      *  option) any later version.                                              *
  11      \**************************************************************************/
  12  
  13       /* $Id: class.admin_db_backup.inc.php 20295 2006-02-15 12:31:25Z  $ */
  14  
  15       class admin_db_backup
  16       {
  17           var $public_functions = array(
  18               'do_backup' => true,
  19               'index' => true,
  20           );
  21           var $db_backup;
  22   
  23   		function admin_db_backup()
  24           {
  25              }
  26           
  27           /**
  28            * Method for sheduled backups, called via asynservice
  29            */
  30   		function do_backup()
  31           {
  32              $this->db_backup =& CreateObject('phpgwapi.db_backup');
  33  
  34               if ($f = $this->db_backup->fopen_backup())
  35               {
  36                  $this->db_backup->backup($f);
  37                  fclose($f);
  38              }
  39           }
  40          
  41           /**
  42            * includes setup's db_backup to display/access it inside admin
  43            */
  44   		function index()
  45           {
  46               $tpl_root = EGW_SERVER_ROOT.'/setup/templates/default';
  47              $self = $GLOBALS['egw']->link('/index.php',array('menuaction'=>'admin.admin_db_backup.index'));
  48              $GLOBALS['egw']->translation->add_app('setup');
  49              
  50              include  EGW_SERVER_ROOT.'/setup/db_backup.php';
  51  
  52              $GLOBALS['egw']->common->egw_footer();
  53           }
  54       }


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7