Plugin Directory

Changeset 2042918


Ignore:
Timestamp:
03/02/2019 06:30:39 PM (7 years ago)
Author:
codecompiled
Message:

refactor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-settings/trunk/wp-settings.php

    r2042908 r2042918  
    33Plugin Name: WP Settings
    44Plugin URI: https://wordpress.org/plugins/wp-settings/
    5 Description: Displays the important information about WordPress such as the general wordpress settings,database,php and server related infomration.
    6 Version: 1.3
     5Description:Displays the important information about WordPress installation such as general wordpress settings ,database and php information.You can generate DB Backup Script.
     6Version: 1.5
    77Author: CodeCompiled
    88Author URI: http://www.codecompiled.com
     
    309309else
    310310{
    311       echo "Connected to MySQL: ";
    312          echo "step no 0";
     311
     312      $return='';
     313     
    313314      $result = $mysqli->query('SHOW TABLES');
    314315     
     
    320321              $tableCount=$tableCount+1;
    321322                $tables[] = $row[0];
    322         printf ("%s (%s)\n", $row[0], $row[1]);
     323        //printf ("%s (%s)\n", $row[0], $row[1]);
    323324    }
    324325   
     
    344345                {
    345346                    $row[$j] = addslashes($row[$j]);
    346                     $row[$j] = ereg_replace("\n","\\n",$row[$j]);
     347                    //$row[$j] = ereg_replace("\n","\\n",$row[$j]);
    347348                    if (isset($row[$j])) { $return.= '"'.$row[$j].'"' ; } else { $return.= '""'; }
    348349                    if ($j < ($num_fields-1)) { $return.= ','; }
     
    356357     ob_clean();
    357358   header("Content-type: application/text");
    358    header("Content-Disposition: attachment; filename=dbBackup.txt");
     359   header("Content-Disposition: attachment; filename=dbBackup.sql");
    359360echo $return;
    360361    exit();
Note: See TracChangeset for help on using the changeset viewer.