Changeset 51
- Timestamp:
- 05/20/09 21:46:51 (3 years ago)
- Files:
-
- 2 added
- 1 edited
-
LICENSE (added)
-
tools/dumpDatabase.php (modified) (3 diffs)
-
tools/dumpDatabaseLicense.txt (added)
Legend:
- Unmodified
- Added
- Removed
-
tools/dumpDatabase.php
r1 r51 6 6 $FILENAME = 'dex-database.sql'; 7 7 $GZ_FILENAME = 'dex-database.sql.gz'; 8 $LICENSE = util_getRootPath() . '/tools/dumpDatabaseLicense.txt'; 8 9 9 10 $COMMON_COMMAND = sprintf("mysqldump -h %s -u %s --password='%s' %s ", … … 16 17 $alteredFields = array('User' => array('Email' => 'anonymous@anonymous.com', 17 18 'Password' => '')); 19 $currentYear = date("Y"); 18 20 19 21 // Full/Public dump: the public dump omits the user table, which contains … … 50 52 51 53 os_executeAndAssert("rm -f $TMP_DIR/$FILENAME"); 52 $mysql = "$COMMON_COMMAND $tablesToIgnore > $TMP_DIR/$FILENAME"; 54 os_executeAndAssert("echo \"-- Copyright (C) 2004-$currentYear DEX online (http://dexonline.ro)\" > $TMP_DIR/$FILENAME"); 55 os_executeAndAssert("cat $LICENSE >> $TMP_DIR/$FILENAME"); 56 $mysql = "$COMMON_COMMAND $tablesToIgnore >> $TMP_DIR/$FILENAME"; 53 57 os_executeAndAssert($mysql); 54 58
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](http://wiki.dexonline.ro/raw-attachment/wiki/WikiStart/logo-wiki.png)