Changeset 5595
- Timestamp:
- 03/20/06 10:54:21 (2 years ago)
- Location:
- wp-dbmanager/trunk
- Files:
-
- 5 modified
-
dbmanager/database-backup.php (modified) (6 diffs)
-
dbmanager/database-manage.php (modified) (1 diff)
-
dbmanager/database-run.php (modified) (1 diff)
-
dbmanager/dbmanager.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-dbmanager/trunk/dbmanager/database-backup.php
r5258 r5595 71 71 <h2>Checking Backup Status</h2> 72 72 <p> 73 Checking Backup Folder (<b><?php echo $backup['path']; ?></b>) ...<br />73 Checking Backup Folder (<b><?php echo stripslashes($backup['path']); ?></b>) ...<br /> 74 74 <?php 75 if(is_dir( $backup['path'])) {75 if(is_dir(stripslashes($backup['path']))) { 76 76 echo '<font color="green">Backup folder exists</font><br />'; 77 77 $status_count++; … … 79 79 echo '<font color="red">Backup folder does NOT exist. Please create \'backup-db\' folder in \'wp-content\' folder and CHMOD it to \'777\' or change the location of the backup folder under DB Option.</font><br />'; 80 80 } 81 if(is_writable( $backup['path'])) {81 if(is_writable(stripslashes($backup['path']))) { 82 82 echo '<font color="green">Backup folder is writable</font>'; 83 83 $status_count++; … … 89 89 <p> 90 90 <?php 91 if(file_exists($mysql_basedir.'bin/'. $backup['mysqldumppath'])) {92 echo 'Checking MYSQL Dump Path (<b>'.$mysql_basedir.'bin/'. $backup['mysqldumppath'].'</b>) ...<br />';91 if(file_exists($mysql_basedir.'bin/'.stripslashes($backup['mysqldumppath']))) { 92 echo 'Checking MYSQL Dump Path (<b>'.$mysql_basedir.'bin/'.stripslashes($backup['mysqldumppath']).'</b>) ...<br />'; 93 93 echo '<font color="green">MYSQL dump path exists.</font>'; 94 94 $status_count++; 95 } else if(file_exists( $backup['mysqldumppath'])) {96 echo 'Checking MYSQL Dump Path (<b>'. $backup['mysqldumppath'].'</b>) ...<br />';95 } else if(file_exists(stripslashes($backup['mysqldumppath']))) { 96 echo 'Checking MYSQL Dump Path (<b>'.stripslashes($backup['mysqldumppath']).'</b>) ...<br />'; 97 97 echo '<font color="green">MYSQL dump path exists.</font>'; 98 98 $status_count++; … … 105 105 <p> 106 106 <?php 107 if(file_exists($mysql_basedir.'bin/'. $backup['mysqlpath'])) {108 echo 'Checking MYSQL Path (<b>'.$mysql_basedir.'bin/'. $backup['mysqlpath'].'</b>) ...<br />';107 if(file_exists($mysql_basedir.'bin/'.stripslashes($backup['mysqlpath']))) { 108 echo 'Checking MYSQL Path (<b>'.$mysql_basedir.'bin/'.stripslashes($backup['mysqlpath']).'</b>) ...<br />'; 109 109 echo '<font color="green">MYSQL path exists.</font>'; 110 110 $status_count++; 111 } else if(file_exists( $backup['mysqlpath'])) {112 echo 'Checking MYSQL Path (<b>'. $backup['mysqlpath'].'</b>) ...<br />';111 } else if(file_exists(stripslashes($backup['mysqlpath']))) { 112 echo 'Checking MYSQL Path (<b>'.stripslashes($backup['mysqlpath']).'</b>) ...<br />'; 113 113 echo '<font color="green">MYSQL path exists.</font>'; 114 114 $status_count++; … … 167 167 <tr style='background-color: none'> 168 168 <th align="left" scope="row">Database Backup To:</th> 169 <td><?php echo $backup['path']; ?></td>169 <td><?php echo stripslashes($backup['path']); ?></td> 170 170 </tr> 171 171 <tr style='background-color: #eee'> … … 183 183 <tr style='background-color: none'> 184 184 <th align="left" scope="row">MYSQL Dump Location:</th> 185 <td><?php echo $backup['mysqldumppath']; ?></td>185 <td><?php echo stripslashes($backup['mysqldumppath']); ?></td> 186 186 </tr> 187 187 <tr style='background-color: #eee'> -
wp-dbmanager/trunk/dbmanager/database-manage.php
r5258 r5595 20 20 ### Download Database 21 21 if(!empty($_GET['file'])) { 22 require ('../../../wp-config.php');23 require(ABSPATH.'wp-admin/admin.php');22 require_once('../../../wp-config.php'); 23 auth_redirect(); 24 24 if(strpos($_SERVER['HTTP_REFERER'], get_settings('siteurl').'/wp-admin/admin.php?page=dbmanager/database-manage.php') !== false) { 25 25 $backup_options = get_settings('dbmanager_options'); -
wp-dbmanager/trunk/dbmanager/database-run.php
r5258 r5595 73 73 <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post"> 74 74 <p><b>Seperate Multiple Queries With A New Line</b><br /><font color="green">Use Only INSERT, UPDATE, REPLACE, DELETE, CREATE and ALTER statements.</font></p> 75 <p align="center"><textarea cols="1 50" rows="30" name="sql_query"></textarea></p>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 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> -
wp-dbmanager/trunk/dbmanager/dbmanager.php
r5194 r5595 96 96 <td valign="top"><b>Path To mysqldump:</b></td> 97 97 <td> 98 <input type="text" name="db_mysqldumppath" size="100" maxlength="100" value="<?php echo $backup_options['mysqldumppath']; ?>" /><br />The absolute path to mysqldump without trailing slash. If unsure, please email your server administrator about this.98 <input type="text" name="db_mysqldumppath" size="100" maxlength="100" value="<?php echo stripslashes($backup_options['mysqldumppath']); ?>" /><br />The absolute path to mysqldump without trailing slash. If unsure, please email your server administrator about this. 99 99 </td> 100 100 </tr> … … 102 102 <td valign="top"><b>Path To mysql:</b></td> 103 103 <td> 104 <input type="text" name="db_mysqlpath" size="100" maxlength="100" value="<?php echo $backup_options['mysqlpath']; ?>" /><br />The absolute path to mysql without trailing slash. If unsure, please email your server administrator about this.104 <input type="text" name="db_mysqlpath" size="100" maxlength="100" value="<?php echo stripslashes($backup_options['mysqlpath']); ?>" /><br />The absolute path to mysql without trailing slash. If unsure, please email your server administrator about this. 105 105 </td> 106 106 </tr> … … 108 108 <td valign="top"><b>Path To Backup:</b></td> 109 109 <td> 110 <input type="text" name="db_path" size="100" maxlength="100" value="<?php echo $backup_options['path']; ?>" />110 <input type="text" name="db_path" size="100" maxlength="100" value="<?php echo stripslashes($backup_options['path']); ?>" /> 111 111 <br />The absolute path to your database backup folder without trailing slash. Make sure the folder is writable. 112 112 </td> -
wp-dbmanager/trunk/readme.txt
r5231 r5595 7 7 Documentation -> http://dev.wp-plugins.org/wiki/wp-dbmanager 8 8 Development -> http://dev.wp-plugins.org/browser/wp-dbmanager/ 9 Updated -> 1st March20069 Updated -> 1st April 2006 10 10 -------------------------------------------------- 11 11 12 13 // Version 2.03 (01-04-2006) 14 - FIXED: Run Query Box Too Big 15 - FIXED: Header Sent Error 16 - FIXED: Extra Slashes For Mysql/Mysql Dump Path 12 17 13 18 // Version 2.02 (01-03-2006)
