[geeklog-cvs] geeklog-1.3/public_html/admin database.php,1.6,1.7

dhaun at geeklog.net dhaun at geeklog.net
Sun Jan 12 04:42:40 EST 2003


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

Modified Files:
	database.php 
Log Message:
Added a check if function is_executable() is available (since it's not available
on Windows).


Index: database.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/database.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** database.php	29 Jul 2002 13:49:03 -0000	1.6
--- database.php	12 Jan 2003 09:42:38 -0000	1.7
***************
*** 68,72 ****
  	        $command = $_DB_mysqldump_path . " -h$_DB_host -u$_DB_user $_DB_name > {$backupfile}"; 
  	    }
! 		if (is_executable($_DB_mysqldump_path)) {
  			exec($command);
  			if(file_exists($backupfile) && filesize($backupfile) > 0) {
--- 68,77 ----
  	        $command = $_DB_mysqldump_path . " -h$_DB_host -u$_DB_user $_DB_name > {$backupfile}"; 
  	    }
!         if (function_exists ('is_executable')) {
!             $canExec = is_executable($_DB_mysqldump_path);
!         } else {
!             $canExec = true;
!         }
! 		if ($canExec) {
  			exec($command);
  			if(file_exists($backupfile) && filesize($backupfile) > 0) {





More information about the geeklog-cvs mailing list