[geeklog-cvs] geeklog-1.3/public_html/admin database.php,1.10,1.11

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Tue Jun 17 05:40:17 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin
In directory internal.geeklog.net:/tmp/cvs-serv24309

Modified Files:
	database.php 
Log Message:
List only those files that end in '.sql'.


Index: database.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/database.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** database.php	21 May 2003 15:49:04 -0000	1.10
--- database.php	17 Jun 2003 09:40:15 -0000	1.11
***************
*** 6,11 ****
  // +---------------------------------------------------------------------------+
  // | database.php                                                              |
- // | Geeklog database administration page.                                     |
  // |                                                                           |
  // +---------------------------------------------------------------------------+
  // | Copyright (C) 2000-2003 by the following authors:                         |
--- 6,11 ----
  // +---------------------------------------------------------------------------+
  // | database.php                                                              |
  // |                                                                           |
+ // | Geeklog database backup administration page.                              |
  // +---------------------------------------------------------------------------+
  // | Copyright (C) 2000-2003 by the following authors:                         |
***************
*** 33,38 ****
  // $Id$
  
! include('../lib-common.php');
! include('auth.inc.php');
  
  /*
--- 33,38 ----
  // $Id$
  
! require_once('../lib-common.php');
! require_once('auth.inc.php');
  
  /*
***************
*** 46,50 ****
  $display .= COM_siteHeader();
  
! // If user isn't a root user or if the backup feature is disable, bail.
  if (!SEC_inGroup('Root') OR $_CONF['allow_mysqldump'] == 0) {
      $display .= COM_startBlock($MESSAGE[30]);
--- 46,50 ----
  $display .= COM_siteHeader();
  
! // If user isn't a root user or if the backup feature is disabled, bail.
  if (!SEC_inGroup('Root') OR $_CONF['allow_mysqldump'] == 0) {
      $display .= COM_startBlock($MESSAGE[30]);
***************
*** 79,84 ****
  		if ($canExec) {
  			exec($command);
! 			if(file_exists($backupfile) && filesize($backupfile) > 0) {
! 				$display .= '<font color="red">' . $LANG_DB_BACKUP['backup_successful'] . '</font><br>';
  			} else {
  				$display .= COM_startBlock($LANG08[06]);
--- 79,89 ----
  		if ($canExec) {
  			exec($command);
! 			if (file_exists ($backupfile) && filesize ($backupfile) > 0) {
!                 $timestamp = strftime ($_CONF['daytime']);
!                 $display .= COM_startBlock ($MESSAGE[40] . ' - ' . $timestamp)
!                          . '<img src="' . $_CONF['layout_url']
!                          . '/images/sysmessage.gif" border="0" align="top" '
!                          . 'alt="">' . $LANG_DB_BACKUP['backup_successful']
!                          . '<br><br>' . COM_endBlock ();
  			} else {
  				$display .= COM_startBlock($LANG08[06]);
***************
*** 112,116 ****
      $index = 0;
      while ((false !== ($file = @readdir ($fd)))) {
!         if ($file <> '.' && $file <> '..' && $file <> 'CVS') {
              $index++;
              clearstatcache();
--- 117,122 ----
      $index = 0;
      while ((false !== ($file = @readdir ($fd)))) {
!         if ($file <> '.' && $file <> '..' && $file <> 'CVS' &&
!                 preg_match ('/\.sql$/i', $file)) {
              $index++;
              clearstatcache();





More information about the geeklog-cvs mailing list