nope, this gives me this result:
------
?php //////////////////////////// COPYRIGHT NOTICE /////////////////////////////////// // This script is part of PhotoPost Classifieds PHP, a software application by // // All Enthusiast, Inc. Use of any kind of part or all of this // // script or modification of this script requires a license from All // // Enthusiast, Inc. Use or modification of this script without a license // // constitutes Software Piracy and will result in legal action from All // // Enthusiast, Inc. All rights reserved. // //
http://www.photopost.com legal@photopost.com // // Contributing Developer: Michael Pierce (mpdev.net) // // // // PhotoPost Classifieds Copyright 2005, All Enthusiast, Inc. // ///////////////////////////////////////////////////////////////////////////////// require "adm-inc.php"; if ( $User['adminedit'] != 1 ) { diewell( "You are not a valid administrator!" ); exit; } //# Generate the edit categories HTML form adminheader( 0, "PhotoPost Classifieds Database Backup Admin" ); print "
PhotoPost Classifieds Database Backup
"; if ( !isset($table) ) { print ""; $tables = mysql_list_tables($database); while (list($table) = mysql_fetch_array($tables)) { print ""; print ""; } print "
"; print "You can backup tables individually or all of them at one. You should set your gallery to CLOSED in your config-inc.php file while doing a backup.
Note: Backup uses the mysqldump command, so make sure that the path to this command is set properly below (this is set in the config file). Large databases may timeout if you do them all at once and you may need to backup tables individually. MySQL 4.x requires that the database user that your gallery is using has LOCK TABLES permissions.
"; print "Path to mysqldump: {$Globals['mysqldumppath']}
"; print "Directory to store backups: {$Globals['backupdir']}
"; print "
$table Backup
Backup ALL tables
"; } else { print "
"; if ( $table != "all" ) { $tables[0] = $table; } else { $i=0; $dbtables = mysql_list_tables($database); while(list($table) = mysql_fetch_array($dbtables)) { $tables[$i] = $table; $i++; } } $dumpcmd = "{$Globals['mysqldumppath']} --opt -h $host -u$mysql_user -p$mysql_password $database "; print "Command being used to execute dumps (specific tables are executed individually):
$dumpcmd
"; print "Results:
"; foreach($tables as $tablename) { $tablename = escapeshellcmd($tablename); $thedumpcmd = $dumpcmd . "$tablename > {$Globals['backupdir']}/$tablename.sql"; system($thedumpcmd); $size = filesize("{$Globals['backupdir']}/$tablename.sql"); if (!$size) { print "Warning: $tablename.sql is 0 bytes or did not get created."; } else { print "$tablename has been backed up.
"; } } adminlog( "Performed a database backup" ); print "
You should double-check your .sql files to be sure the backup completed successfully."; } print "
"; adminfooter(); ?>
-----------------