Changeset 6018
- Timestamp:
- 05/09/06 11:00:36 (2 years ago)
- Files:
-
- wp-dbmanager/trunk/dbmanager/database-backup.php (modified) (2 diffs)
- wp-dbmanager/trunk/dbmanager/database-config.php (modified) (1 diff)
- wp-dbmanager/trunk/dbmanager/database-empty.php (modified) (1 diff)
- wp-dbmanager/trunk/dbmanager/database-manage.php (modified) (4 diffs)
- wp-dbmanager/trunk/dbmanager/database-manager.php (modified) (1 diff)
- wp-dbmanager/trunk/dbmanager/database-optimize.php (modified) (2 diffs)
- wp-dbmanager/trunk/dbmanager/database-run.php (modified) (2 diffs)
- wp-dbmanager/trunk/dbmanager/dbmanager.php (modified) (2 diffs)
- wp-dbmanager/trunk/readme-upgrade.txt (modified) (1 diff)
- wp-dbmanager/trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-dbmanager/trunk/dbmanager/database-backup.php
r5686 r6018 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.0 Plugin: WP-DBManager 2.0 3|5 | WordPress 2.0 Plugin: WP-DBManager 2.04 | 6 6 | Copyright (c) 2005 Lester "GaMerZ" Chan | 7 7 | | … … 186 186 <tr style='background-color: #eee'> 187 187 <th align="left" scope="row">GZIP Database Backup File?</th> 188 <td><input type="radio" name="gzip" value="1" >Yes <input type="radio" name="gzip" value="0" checked="checked" />No</td>188 <td><input type="radio" name="gzip" value="1" />Yes <input type="radio" name="gzip" value="0" checked="checked" />No</td> 189 189 </tr> 190 190 <tr> wp-dbmanager/trunk/dbmanager/database-config.php
r5686 r6018 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.0 Plugin: WP-DBManager 2.0 3|5 | WordPress 2.0 Plugin: WP-DBManager 2.04 | 6 6 | Copyright (c) 2005 Lester "GaMerZ" Chan | 7 7 | | wp-dbmanager/trunk/dbmanager/database-empty.php
r5686 r6018 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.0 Plugin: WP-DBManager 2.0 3|5 | WordPress 2.0 Plugin: WP-DBManager 2.04 | 6 6 | Copyright (c) 2005 Lester "GaMerZ" Chan | 7 7 | | wp-dbmanager/trunk/dbmanager/database-manage.php
r5686 r6018 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.0 Plugin: WP-DBManager 2.0 3|5 | WordPress 2.0 Plugin: WP-DBManager 2.04 | 6 6 | Copyright (c) 2005 Lester "GaMerZ" Chan | 7 7 | | … … 116 116 break; 117 117 case 'Download': 118 if(!empty($database_file)) { 119 header('Location: '.get_settings('siteurl').'/wp-content/plugins/dbmanager/database-manage.php?file='.$database_file); 120 } else { 118 if(empty($database_file)) { 121 119 $text = '<font color="red">No Backup Database File Selected</font>'; 122 120 } … … 191 189 } 192 190 ?> 193 </tr>194 191 <tr> 195 192 <th align="left" colspan="3"><?php echo $no; ?> Backup File(s)</th> … … 201 198 </tr> 202 199 <tr> 203 <td colspan="5" align="center"><input type="submit" name="do" value="Download" class="button" /> <input type="submit" class="button"name="do" value="Restore" onclick="return confirm('You Are About To Restore A Database.\nThis Action Is Not Reversible.\nAny Data Inserted After The Backup Date Will Be Gone.\n\n Choose \'Cancel\' to stop, \'OK\' to restore.')" class="button" /> <input type="submit" class="button" name="do" value="Delete" onclick="return confirm('You Are About To Delete The Selected Database Backup Files.\nThis Action Is Not Reversible.\n\n Choose \'Cancel\' to stop, \'OK\' to delete.')" /> <input type="button" name="cancel" Value="<?php _e('Cancel'); ?>" class="button" onclick="javascript:history.go(-1)" /></td>200 <td colspan="5" align="center"><input type="submit" name="do" value="Download" class="button" /> <input type="submit" name="do" value="Restore" onclick="return confirm('You Are About To Restore A Database.\nThis Action Is Not Reversible.\nAny Data Inserted After The Backup Date Will Be Gone.\n\n Choose \'Cancel\' to stop, \'OK\' to restore.')" class="button" /> <input type="submit" class="button" name="do" value="Delete" onclick="return confirm('You Are About To Delete The Selected Database Backup Files.\nThis Action Is Not Reversible.\n\n Choose \'Cancel\' to stop, \'OK\' to delete.')" /> <input type="button" name="cancel" Value="<?php _e('Cancel'); ?>" class="button" onclick="javascript:history.go(-1)" /></td> 204 201 </tr> 205 202 </table> wp-dbmanager/trunk/dbmanager/database-manager.php
r5686 r6018 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.0 Plugin: WP-DBManager 2.0 3|5 | WordPress 2.0 Plugin: WP-DBManager 2.04 | 6 6 | Copyright (c) 2005 Lester "GaMerZ" Chan | 7 7 | | wp-dbmanager/trunk/dbmanager/database-optimize.php
r5686 r6018 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.0 Plugin: WP-DBManager 2.0 3|5 | WordPress 2.0 Plugin: WP-DBManager 2.04 | 6 6 | Copyright (c) 2005 Lester "GaMerZ" Chan | 7 7 | | … … 77 77 eval("\$table_name = \"$table_name\";"); 78 78 echo "<tr $style><th align=\"left\" scope=\"row\">$table_name</th>\n"; 79 echo "<td><input type=\"radio\" name=\"optimize[$table_name]\" value=\"no\" >No <input type=\"radio\" name=\"optimize[$table_name]\" value=\"yes\" checked=\"checked\">Yes</td></tr>";79 echo "<td><input type=\"radio\" name=\"optimize[$table_name]\" value=\"no\" />No <input type=\"radio\" name=\"optimize[$table_name]\" value=\"yes\" checked=\"checked\" />Yes</td></tr>"; 80 80 } 81 81 ?> wp-dbmanager/trunk/dbmanager/database-run.php
r5686 r6018 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.0 Plugin: WP-DBManager 2.0 3|5 | WordPress 2.0 Plugin: WP-DBManager 2.04 | 6 6 | Copyright (c) 2005 Lester "GaMerZ" Chan | 7 7 | | … … 75 75 <p align="center"><textarea cols="120" rows="30" name="sql_query"></textarea></p> 76 76 <p align="center"><input type="submit" name="do" Value="Run" class="button" /> <input type="button" name="cancel" Value="<?php _e('Cancel'); ?>" class="button" onclick="javascript:history.go(-1)" /></p> 77 <p>1. CREATE statement will return an error, which is perfectly normal due to the database class. To confirm that your table has been created check the Manage Database page.<br />2. UPDATE statement may return an error sometimes due to the newly updated value being the same as the previous value.<br />3. ALTER statement will return an error because there is no value returned.</ font></p>77 <p>1. CREATE statement will return an error, which is perfectly normal due to the database class. To confirm that your table has been created check the Manage Database page.<br />2. UPDATE statement may return an error sometimes due to the newly updated value being the same as the previous value.<br />3. ALTER statement will return an error because there is no value returned.</p> 78 78 </form> 79 79 </div> wp-dbmanager/trunk/dbmanager/dbmanager.php
r5686 r6018 4 4 Plugin URI: http://www.lesterchan.net/portfolio/programming.php 5 5 Description: Manages your Wordpress database. Allows you to optimizee, backup, restore, delete backup database and run selected queries. 6 Version: 2.0 36 Version: 2.04 7 7 Author: GaMerZ 8 8 Author URI: http://www.lesterchan.net … … 64 64 if(!$role->has_cap('manage_database')) { 65 65 $role->add_cap('manage_database'); 66 } 67 } 68 69 70 ### Function: Download Database 71 add_action('init', 'download_database'); 72 function download_database() { 73 if($_POST['do'] == 'Download' && !empty($_POST['database_file'])) { 74 if(strpos($_SERVER['HTTP_REFERER'], get_settings('siteurl').'/wp-admin/admin.php?page=dbmanager/database-manage.php') !== false) { 75 $backup_options = get_settings('dbmanager_options'); 76 $file_path = $backup_options['path'].'/'.$_POST['database_file']; 77 header("Pragma: public"); 78 header("Expires: 0"); 79 header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 80 header("Content-Type: application/force-download"); 81 header("Content-Type: application/octet-stream"); 82 header("Content-Type: application/download"); 83 header("Content-Disposition: attachment; filename=".basename($file_path).";"); 84 header("Content-Transfer-Encoding: binary"); 85 header("Content-Length: ".filesize($file_path)); 86 @readfile($file_path); 87 } 88 exit(); 66 89 } 67 90 } wp-dbmanager/trunk/readme-upgrade.txt
r5684 r6018 1 -> Upgrade Instructions For Version 2.02 To Version 2.031 -> Upgrade Instructions For Version 2.02+ To Version 2.04 2 2 ------------------------------------------------------------------ 3 3 // Open wp-content/plugins folder wp-dbmanager/trunk/readme.txt
r5639 r6018 7 7 Documentation -> http://dev.wp-plugins.org/wiki/wp-dbmanager 8 8 Development -> http://dev.wp-plugins.org/browser/wp-dbmanager/ 9 Updated -> 1 st April20069 Updated -> 10th May 2006 10 10 -------------------------------------------------- 11 11 12 13 // Version 2.04 (10-05-2006) 14 - FIXED: Unable To Download Backup DB Due To Header Sent Error 15 - FIXED: Some XHTML Code Fixes 12 16 13 17 // Version 2.03 (01-04-2006)
