Changeset 5595

Show
Ignore:
Timestamp:
03/20/06 10:54:21 (2 years ago)
Author:
GamerZ
Message:

Updates

Location:
wp-dbmanager/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • wp-dbmanager/trunk/dbmanager/database-backup.php

    r5258 r5595  
    7171      <h2>Checking Backup Status</h2> 
    7272      <p> 
    73             Checking Backup Folder (<b><?php echo $backup['path']; ?></b>) ...<br /> 
     73            Checking Backup Folder (<b><?php echo stripslashes($backup['path']); ?></b>) ...<br /> 
    7474            <?php 
    75                   if(is_dir($backup['path'])) { 
     75                  if(is_dir(stripslashes($backup['path']))) { 
    7676                        echo '<font color="green">Backup folder exists</font><br />'; 
    7777                        $status_count++; 
     
    7979                        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 />'; 
    8080                  } 
    81                   if(is_writable($backup['path'])) { 
     81                  if(is_writable(stripslashes($backup['path']))) { 
    8282                        echo '<font color="green">Backup folder is writable</font>'; 
    8383                        $status_count++; 
     
    8989      <p>          
    9090            <?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 />'; 
    9393                        echo '<font color="green">MYSQL dump path exists.</font>'; 
    9494                        $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 />'; 
    9797                        echo '<font color="green">MYSQL dump path exists.</font>'; 
    9898                        $status_count++; 
     
    105105      <p> 
    106106            <?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 />'; 
    109109                        echo '<font color="green">MYSQL path exists.</font>'; 
    110110                        $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 />'; 
    113113                        echo '<font color="green">MYSQL path exists.</font>'; 
    114114                        $status_count++; 
     
    167167            <tr style='background-color: none'> 
    168168                  <th align="left" scope="row">Database Backup To:</th> 
    169                   <td><?php echo $backup['path']; ?></td> 
     169                  <td><?php echo stripslashes($backup['path']); ?></td> 
    170170            </tr> 
    171171            <tr style='background-color: #eee'> 
     
    183183            <tr style='background-color: none'> 
    184184                  <th align="left" scope="row">MYSQL Dump Location:</th> 
    185                   <td><?php echo $backup['mysqldumppath']; ?></td> 
     185                  <td><?php echo stripslashes($backup['mysqldumppath']); ?></td> 
    186186            </tr> 
    187187            <tr style='background-color: #eee'> 
  • wp-dbmanager/trunk/dbmanager/database-manage.php

    r5258 r5595  
    2020### Download Database 
    2121if(!empty($_GET['file'])) { 
    22       require('../../../wp-config.php'); 
    23       require(ABSPATH.'wp-admin/admin.php'); 
     22      require_once('../../../wp-config.php'); 
     23      auth_redirect(); 
    2424      if(strpos($_SERVER['HTTP_REFERER'], get_settings('siteurl').'/wp-admin/admin.php?page=dbmanager/database-manage.php') !== false) { 
    2525            $backup_options = get_settings('dbmanager_options'); 
  • wp-dbmanager/trunk/dbmanager/database-run.php

    r5258 r5595  
    7373      <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post"> 
    7474            <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="150" rows="30" name="sql_query"></textarea></p> 
     75            <p align="center"><textarea cols="120" rows="30" name="sql_query"></textarea></p> 
    7676            <p align="center"><input type="submit" name="do" Value="Run" class="button" />&nbsp;&nbsp;<input type="button" name="cancel" Value="<?php _e('Cancel'); ?>" class="button" onclick="javascript:history.go(-1)" /></p> 
    7777            <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  
    9696                        <td valign="top"><b>Path To mysqldump:</b></td> 
    9797                        <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. 
    9999                        </td> 
    100100                  </tr> 
     
    102102                        <td valign="top"><b>Path To mysql:</b></td> 
    103103                        <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. 
    105105                        </td> 
    106106                  </tr> 
     
    108108                        <td valign="top"><b>Path To Backup:</b></td> 
    109109                        <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']); ?>" /> 
    111111                              <br />The absolute path to your database backup folder without trailing slash. Make sure the folder is writable. 
    112112                        </td> 
  • wp-dbmanager/trunk/readme.txt

    r5231 r5595  
    77Documentation     -> http://dev.wp-plugins.org/wiki/wp-dbmanager 
    88Development -> http://dev.wp-plugins.org/browser/wp-dbmanager/ 
    9 Updated           -> 1st March 2006 
     9Updated           -> 1st April 2006 
    1010-------------------------------------------------- 
    1111 
     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  
    1217 
    1318// Version 2.02 (01-03-2006)