Plugin Directory

Changeset 3202695


Ignore:
Timestamp:
12/04/2024 10:29:02 PM (15 months ago)
Author:
codecompiled
Message:

Updating database details visible.

Location:
wp-settings/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-settings/trunk/readme.txt

    r3199163 r3202695  
    11=== WP Settings:WordPress Settings and Database Backup  ===
    22Contributors: codecompiled
    3 Tags: View WordPress Settings and WP Settings,View Server details,View Database,Generate Database Backup Script,View all the Installed Plugins
     3Tags: View WordPress Settings,WP Settings,Server details,View Database,Generate Database Backup Script,View all the Installed Plugins
    44Plugin Name: WP Settings
    55Tested up to: 6.7
     
    1313== Description ==
    1414
    15 Simplify WordPress site management with this powerful Settings Plugin.You can use it for displaying important WordPress environment details such as the general WordPress settings,PHP settings(such as version),Server and MySql details.You can generate Database Backup Script which could be used for restoring database and site migration.There are many settings which should be configured properly and WP Settings plugin will help you see all the useful settings from a single location.You can access WordPress settings,PHP related settings,DB details and installed plugins. This useful plugin helps you:
     15Simplify WordPress site management with this powerful Settings Plugin.You can use it for displaying important WordPress environment details such as the general WordPress settings,PHP settings(such as version),Server and MySql details.You can generate Database Backup Script which could be used for restoring database and site migration.There are many settings which should be configured properly and WP Settings plugin will help you see all the useful settings from a single location.You can access WordPress settings,PHP related settings,DB details and installed plugins.
    1616
    17 * Easily manage and export your WordPress settings.
     17
     18= Features =
     19
     20* View WordPress settings such as version and url.
     21
     22* MySQL details such as version and database.
    1823
    1924* Generate clean, SQL-compatible database backup scripts for safekeeping or migration.
    2025
    21 Some of the options in this plugin:
     26* View Server details such as Apache version.
    2227
    23 * WordPress settings such as version and url.
     28* View PHP settings.
    2429
    25 * MySQL details such as version and database.
     30* View installed Plugins.
    2631
    27 * Generate Database Backup Script
    28 
    29 * Server details such as Apache version.
    30 
    31 * PHP settings.
    32 
    33 * Plugin Details.
    34 
    35 * Generate clean, SQL scripts for database backup ,safekeeping or migration.
     32* Easily manage and export your WordPress settings.
    3633
    3734
  • wp-settings/trunk/wp-settings.php

    r3202005 r3202695  
    44Plugin URI: https://wordpress.org/plugins/wp-settings/
    55Description:Displays the important information about WordPress installation such as important wordpress settings,database settings,theme details and php information.You can generate DB Backup Script for restoring the database and for keeping database backups.
    6 Version: 2.3
     6Version: 2.4
    77Author: CodeCompiled
    88Author URI: http://www.codecompiled.com
     
    9292function wpsettings_getMySqlDetails() {
    9393    global $wpdb;
    94    
     94
    9595    // Query for MySQL version
    9696    $results = $wpdb->get_results('SELECT VERSION() as mysqlversion');
     
    126126    );
    127127
    128     // Fetching table names
    129     $tableNames = $wpdb->get_col(
     128    // Fetching top 5 largest tables by size and their row counts
     129    $topTables = $wpdb->get_results(
    130130        $wpdb->prepare(
    131             "SELECT table_name
     131            "SELECT table_name AS TableName,
     132                    ROUND((data_length + index_length) / 1024 / 1024, 2) AS TableSizeMB,
     133                    table_rows AS TableRows
    132134             FROM information_schema.TABLES
    133              WHERE table_schema = %s",
     135             WHERE table_schema = %s
     136             ORDER BY TableSizeMB DESC
     137             LIMIT 5",
    134138            $tableSchema
    135139        )
    136140    );
    137141
    138     // Convert array to comma-separated values
    139     $ws_mysqldetails["TABLE NAMES"] = is_array($tableNames) ? implode(', ', $tableNames) : '';
     142    // Prepare rows with table name, size, and row count
     143    $tableDetails = array();
     144    foreach ($topTables as $table) {
     145        $tableDetails[] = array(
     146            "Table Name" => $table->TableName,
     147            "Size (MB)" => $table->TableSizeMB,
     148            "Rows" => $table->TableRows
     149        );
     150    }
     151
     152    // Assign the top 5 tables as rows to TABLE DETAILS
     153    $ws_mysqldetails["TABLE DETAILS"] = $tableDetails;
    140154
    141155    return $ws_mysqldetails;
     
    145159    $data = array();
    146160    foreach($fields as $field) {
    147         if(strcmp($field,"categories")==0){
    148             $categoriesCsv="";
    149             $cat=get_categories();
    150             /*
    151             get categories
    152             */
    153             foreach ($cat as $key=>$value) {
    154                 $categoriesCsv.=$value->name." ,";
    155                
    156             }
    157             $data[$field]=rtrim($categoriesCsv,",");
     161        if(strcmp($field,"categories")==0){
     162            $categoriesCsv="";
     163            $cat=get_categories();
     164            /*
     165            get categories
     166            */
     167            foreach ($cat as $key=>$value) {
     168                $categoriesCsv.=$value->name." ,";
     169               
     170            }
     171            $data[$field]=rtrim($categoriesCsv,",");
    158172
    159173           
     
    161175        else if(strcmp($field,"pages")==0)
    162176        {
    163             /*
    164             get pages
    165             */
    166               $pagesCsv="";
    167             $page=get_pages();
    168             foreach ($page as $key=>$value) {
    169                 $pagesCsv.=$value->post_name." ,";
    170                
    171             }
    172             $data[$field]=rtrim($pagesCsv,",");
     177            /*
     178            get pages
     179            */
     180              $pagesCsv="";
     181            $page=get_pages();
     182            foreach ($page as $key=>$value) {
     183                $pagesCsv.=$value->post_name." ,";
     184               
     185            }
     186            $data[$field]=rtrim($pagesCsv,",");
    173187        }
    174188        else
     
    182196    $fields = array('Name', 'Description', 'Version');
    183197    $data = array();
    184    
    185    
    186     if (!function_exists('wp_get_theme')) {
    187         //function not available
    188         foreach($fields as $field) {
     198   
     199   
     200    if (!function_exists('wp_get_theme')) {
     201        //function not available
     202        foreach($fields as $field) {
    189203        $data[$field] = "THEME DETAILS CURRENTLY UNAVAILABLE";
    190204    }
    191     } else {
    192         $theme = wp_get_theme();
    193        
    194     }
    195    
     205    } else {
     206        $theme = wp_get_theme();
     207       
     208    }
     209   
    196210    foreach($fields as $field) {
    197211        $data[$field] = $theme->$field;
     
    204218   $pluginInfo = array();
    205219  if (function_exists( 'get_plugins' ) ) {
    206                     /*
    207                     get plugins
    208                     */
    209                      $name='';
     220                    /*
     221                    get plugins
     222                    */
     223                     $name='';
    210224                     $desc='';
    211                     $plugins=get_plugins();
    212                     foreach ($plugins as $key=>$value) {
     225                    $plugins=get_plugins();
     226                    foreach ($plugins as $key=>$value) {
    213227                          foreach ($value as $key1 => $value1) {
    214                                  // var_dump($value1);
    215                             //echo $key1.'\n';
    216                                  
    217                                   //echo $key1." ---> key.\n";
    218                                   //echo $value1.".-->value.\n";
    219                                   if($key1=="Name")
    220                                   {
    221                                     $name=$value1;
    222                                   }
    223                                   if($key1=="Description")
    224                                   {
    225                                     $desc=$value1;
    226                                   }
    227                     }
    228 
    229                         $pluginInfo[$name]= $desc;
    230                        
    231                     }
    232                    
    233                 }
    234                 else
    235                 {
     228                                 // var_dump($value1);
     229                            //echo $key1.'\n';
     230                                 
     231                                  //echo $key1." ---> key.\n";
     232                                  //echo $value1.".-->value.\n";
     233                                  if($key1=="Name")
     234                                  {
     235                                    $name=$value1;
     236                                  }
     237                                  if($key1=="Description")
     238                                  {
     239                                    $desc=$value1;
     240                                  }
     241                    }
     242
     243                        $pluginInfo[$name]= $desc;
     244                       
     245                    }
     246                   
     247                }
     248                else
     249                {
    236250                     $pluginInfo[$field]='INFORMATION NOT AVAILABLE';
    237                 }
     251                }
    238252       return $pluginInfo;
    239253}
     
    245259    $phpetails["PHP VERSION"]= phpversion();
    246260    $phpetails["PROTOCOL"]= array_key_exists( 'SERVER_PROTOCOL',$_SERVER) ? $_SERVER['SERVER_PROTOCOL']: "HTTP/1.1";
    247     $phpetails["CURRENT REQUEST METHOD"]    = array_key_exists('REQUEST_METHOD',$_SERVER) ? $_SERVER['REQUEST_METHOD'] : "GET";
    248     $phpetails["PORT"]= array_key_exists( 'SERVER_PORT',$_SERVER) ? $_SERVER['SERVER_PORT']: "80";
    249     $phpetails["SOFTWARE"]= array_key_exists( 'SERVER_SOFTWARE',    $_SERVER) ? $_SERVER['SERVER_SOFTWARE']      : '';
    250     $phpetails["HTTP ACCEPT (REQUEST HEADER)"] = array_key_exists( 'HTTP_ACCEPT',$_SERVER) ? $_SERVER['HTTP_ACCEPT']: "text/html,application/xhtml+xml,application/xml,application/json";
    251     $phpetails["HTTP ACCEPT LANGUAGE (REQUEST HEADER)"] = array_key_exists( 'HTTP_ACCEPT_LANGUAGE',$_SERVER) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : "en";
    252     $phpetails["HTTP HOST"]= array_key_exists( 'HTTP_HOST',$_SERVER) ? $_SERVER['HTTP_HOST']:'';
    253     $phpetails["HTTP USER AGENT (CLIENT TYPE)"]      = array_key_exists( 'HTTP_USER_AGENT', $_SERVER) ? $_SERVER['HTTP_USER_AGENT']: '';
    254     return $phpetails;
     261    $phpetails["CURRENT REQUEST METHOD"]    = array_key_exists('REQUEST_METHOD',$_SERVER) ? $_SERVER['REQUEST_METHOD'] : "GET";
     262    $phpetails["PORT"]= array_key_exists( 'SERVER_PORT',$_SERVER) ? $_SERVER['SERVER_PORT']: "80";
     263    $phpetails["SOFTWARE"]= array_key_exists( 'SERVER_SOFTWARE',    $_SERVER) ? $_SERVER['SERVER_SOFTWARE']      : '';
     264    $phpetails["HTTP ACCEPT (REQUEST HEADER)"] = array_key_exists( 'HTTP_ACCEPT',$_SERVER) ? $_SERVER['HTTP_ACCEPT']: "text/html,application/xhtml+xml,application/xml,application/json";
     265    $phpetails["HTTP ACCEPT LANGUAGE (REQUEST HEADER)"] = array_key_exists( 'HTTP_ACCEPT_LANGUAGE',$_SERVER) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : "en";
     266    $phpetails["HTTP HOST"]= array_key_exists( 'HTTP_HOST',$_SERVER) ? $_SERVER['HTTP_HOST']:'';
     267    $phpetails["HTTP USER AGENT (CLIENT TYPE)"]      = array_key_exists( 'HTTP_USER_AGENT', $_SERVER) ? $_SERVER['HTTP_USER_AGENT']: '';
     268    return $phpetails;
    255269}
    256270
     
    259273function wpsettings_getFormattedKey($key)
    260274{
    261     $wpsettings_keymappings_wordpress=array();
    262     $wpsettings_keymappings_wordpress["name"]="SITE TITLE( Settings > General)";
    263     $wpsettings_keymappings_wordpress["description"]="SITE TAGLINE( Settings > General)";
    264     $wpsettings_keymappings_wordpress["wpurl"]="WORDPRESS ADDRESS (Settings > General)";
    265     $wpsettings_keymappings_wordpress["url"]="SITE ADDRESS (Settings > General)";
    266     $wpsettings_keymappings_wordpress["admin_email"]="ADMIN EMAIL (Settings > General)";
    267     $wpsettings_keymappings_wordpress["charset"]="Site charset";
    268     $wpsettings_keymappings_wordpress["version"]="WORDPRESS VERSION";
    269     $wpsettings_keymappings_wordpress["pingback_url"]="PINGBACK URL";
    270     $wpsettings_keymappings_wordpress["categories"]="CATEGORIES";
    271     $wpsettings_keymappings_wordpress["pages"]="PAGES";
    272     $wpsettings_keymappings_wordpress["tags"]="TAGS";
    273     $wpsettings_keymappings_wordpress["language"]="LANGUAGE";
    274     return $wpsettings_keymappings_wordpress[$key];
     275    $wpsettings_keymappings_wordpress=array();
     276    $wpsettings_keymappings_wordpress["name"]="SITE TITLE( Settings > General)";
     277    $wpsettings_keymappings_wordpress["description"]="SITE TAGLINE( Settings > General)";
     278    $wpsettings_keymappings_wordpress["wpurl"]="WORDPRESS ADDRESS (Settings > General)";
     279    $wpsettings_keymappings_wordpress["url"]="SITE ADDRESS (Settings > General)";
     280    $wpsettings_keymappings_wordpress["admin_email"]="ADMIN EMAIL (Settings > General)";
     281    $wpsettings_keymappings_wordpress["charset"]="Site charset";
     282    $wpsettings_keymappings_wordpress["version"]="WORDPRESS VERSION";
     283    $wpsettings_keymappings_wordpress["pingback_url"]="PINGBACK URL";
     284    $wpsettings_keymappings_wordpress["categories"]="CATEGORIES";
     285    $wpsettings_keymappings_wordpress["pages"]="PAGES";
     286    $wpsettings_keymappings_wordpress["tags"]="TAGS";
     287    $wpsettings_keymappings_wordpress["language"]="LANGUAGE";
     288    return $wpsettings_keymappings_wordpress[$key];
    275289}
    276290
     
    278292function  wpsettings_getFormattedKeyTheme($key)
    279293{
    280     $wpsettings_keymappings_theme=array();
    281     $wpsettings_keymappings_theme["Name"]="NAME";
    282     $wpsettings_keymappings_theme["Description"]="DESCRIPTION";
    283     $wpsettings_keymappings_theme["DomainPath"]="DOMAINPATH";
    284     $wpsettings_keymappings_theme["Version"]="VERSION";
    285     $wpsettings_keymappings_theme["Tags"]= "TAGS";
    286     $wpsettings_keymappings_theme["ThemeURI"]="THEMEURI";
    287     return $wpsettings_keymappings_theme[$key];
    288 }
    289 //main method to retreive wordpress information 
     294    $wpsettings_keymappings_theme=array();
     295    $wpsettings_keymappings_theme["Name"]="NAME";
     296    $wpsettings_keymappings_theme["Description"]="DESCRIPTION";
     297    $wpsettings_keymappings_theme["DomainPath"]="DOMAINPATH";
     298    $wpsettings_keymappings_theme["Version"]="VERSION";
     299    $wpsettings_keymappings_theme["Tags"]= "TAGS";
     300    $wpsettings_keymappings_theme["ThemeURI"]="THEMEURI";
     301    return $wpsettings_keymappings_theme[$key];
     302}
     303//main method to retreive wordpress information 
    290304function wpsettings_GetWPInfo() {
    291305
     
    301315
    302316      case 'databse' :
    303          ?>
     317         ?>
    304318       
    305         <?php
    306         if(isset($_POST["names"]))
    307         {
    308             backup_tables();
    309         }
    310         else
    311         {
    312             getDatabaseContent();
    313         }
    314         ?>
    315        
     319        <?php
     320        if(isset($_POST["names"]))
     321        {
     322            backup_tables();
     323        }
     324        else
     325        {
     326            getDatabaseContent();
     327        }
     328        ?>
     329       
    316330         <?php
    317331      break;
     
    338352//check which tab to display
    339353
    340 function getDatabaseContent()
    341 {
    342     ?>
    343     <form action="" method="POST">
    344     <table class="headerInfo">
    345         <tr>
    346             <td colspan="4" style="text-align: left; padding: 10px; font-weight: bold; background-color: #0073aa; color: #fff;">
    347                 Following is the information about the database:
    348             </td>
    349         </tr>
    350         <?php $sqldetails = wpsettings_getMySqlDetails(); ?>
    351         <?php foreach ($sqldetails as $sqlKey => $sqlValue) { ?>
    352             <tr>
    353                 <td style="width: 30%; background-color: #f9f9f9;"><?php echo $sqlKey; ?></td>
    354                 <td><?php echo $sqlValue; ?></td>
     354function getDatabaseContent() {
     355    ?>
     356    <form action="" method="POST">
     357        <table class="headerInfo" style="border-collapse: collapse; width: 100%; border: 1px solid #ccc;">
     358            <tr>
     359                <td colspan="5" style="text-align: left; padding: 10px; font-weight: bold; background-color: #0073aa; color: #fff;">
     360                    Following is the information about the database:
     361                </td>
    355362            </tr>
    356         <?php } ?>
    357         <tr>
    358             <td colspan="4" style="text-align: left; padding: 10px;">
    359                 Click the download button to take a backup of the database
    360                 <input type="submit" value="Download" name="submit_btn" style="margin-left: 10px; padding: 5px 15px; background-color: #0073aa; color: #fff; border: none; cursor: pointer;">
    361             </td>
    362         </tr>
    363     </table>
    364     <input type="hidden" name="names" id="names">
    365 </form>
    366         <?php
     363            <?php
     364            $sqldetails = wpsettings_getMySqlDetails();
     365           
     366            // Loop through general details
     367            foreach ($sqldetails as $sqlKey => $sqlValue) {
     368                if ($sqlKey !== "TABLE DETAILS") { // Exclude table details for now
     369            ?>
     370                <tr>
     371                    <td style="width: 30%; background-color: #f9f9f9;"><?php echo $sqlKey; ?></td>
     372                    <td><?php echo is_array($sqlValue) ? implode(', ', $sqlValue) : $sqlValue; ?></td>
     373                </tr>
     374            <?php
     375                }
     376            }
     377            ?>
     378
     379            <!-- Display top tables with their sizes and row counts -->
     380            <tr>
     381                <td colspan="5" style="text-align: left; padding: 10px; font-weight: bold; background-color: #0073aa; color: #fff;">
     382                    Top 5 Largest Tables:
     383                </td>
     384            </tr>
     385            <tr>
     386                <td style="background-color: #f9f9f9; font-weight: bold;">Table Name</td>
     387                <td style="background-color: #f9f9f9; font-weight: bold;">Size (MB)</td>
     388                <td style="background-color: #f9f9f9; font-weight: bold;">Number of Rows</td>
     389            </tr>
     390            <?php
     391            if (isset($sqldetails["TABLE DETAILS"]) && is_array($sqldetails["TABLE DETAILS"])) {
     392                foreach ($sqldetails["TABLE DETAILS"] as $tableDetail) {
     393            ?>
     394                <tr>
     395                    <td style="background-color: #fff;"><?php echo $tableDetail["Table Name"]; ?></td>
     396                    <td style="background-color: #fff;"><?php echo $tableDetail["Size (MB)"]; ?></td>
     397                    <td style="background-color: #fff;"><?php echo $tableDetail["Rows"]; ?></td>
     398                </tr>
     399            <?php
     400                }
     401            }
     402            ?>
     403
     404            <tr>
     405                <td colspan="5" style="text-align: left; padding: 10px;">
     406                    Click the download button to take a backup of the database
     407                    <input type="submit" value="Download" name="submit_btn" style="margin-left: 10px; padding: 5px 15px; background-color: #0073aa; color: #fff; border: none; cursor: pointer;">
     408                </td>
     409            </tr>
     410        </table>
     411        <input type="hidden" name="names" id="names">
     412    </form>
     413    <?php
    367414}
    368415
     
    372419
    373420//$mysqli = new mysqli('localhost','codecomp_wp811','P]4Sl!l6s9','codecomp_wp811');
    374     printf("connecting to db");
     421    printf("connecting to db");
    375422
    376423$host = DB_HOST;
     
    436483function getHomePageContent1()
    437484{
    438     $wpdetails= array();
    439     //declare server array
    440     $serverdetails=array();
    441     ?>
    442     <table class="headerInfo">
     485    $wpdetails= array();
     486    //declare server array
     487    $serverdetails=array();
     488    ?>
     489    <table class="headerInfo">
    443490    <tr>
    444491        <td colspan="6" style="text-align: left; padding: 10px; font-weight: bold; background-color: #0073aa; color: #fff;">
     
    455502    </tr>
    456503</table>
    457     <?php if (!function_exists('get_bloginfo')) {
    458     } else{?>
    459         <table id="wordpressDetails" class="phpinfo">
    460         <tr>
     504    <?php if (!function_exists('get_bloginfo')) {
     505    } else{?>
     506        <table id="wordpressDetails" class="phpinfo">
     507        <tr>
    461508           <th colspan="2">
    462509              Wordpress Details
    463510           </th>
    464         </tr><?php
    465         $wpdetails=wpsettings_bloginfo_array();
    466         foreach($wpdetails as $key=>$wpdetail) {
    467             if(array_key_exists($key,$wpdetails))
    468              {?>   
    469             <tr>
    470                 <td  style="width:30%">
    471                 <?php $formattedValue=wpsettings_getFormattedKey($key);
    472                 echo $formattedValue;?>
    473                 </td>
    474                 <td><?php echo $wpdetail; ?>
    475                  </td>
    476                  </tr><?php } }?>
    477       </table>
     511        </tr><?php
     512        $wpdetails=wpsettings_bloginfo_array();
     513        foreach($wpdetails as $key=>$wpdetail) {
     514            if(array_key_exists($key,$wpdetails))
     515             {?>   
     516            <tr>
     517                <td  style="width:30%">
     518                <?php $formattedValue=wpsettings_getFormattedKey($key);
     519                echo $formattedValue;?>
     520                </td>
     521                <td><?php echo $wpdetail; ?>
     522                 </td>
     523                 </tr><?php } }?>
     524      </table>
    478525 <!-- THEME DETAILS STARTS-->
    479     <table id="themeDetails" class="phpinfo">
    480     <tr>
    481     <th colspan="2">
    482     Theme Details
    483     </th>
    484     </tr><?php
    485     $wptheme=wpsettings_theminfo_array();
    486     foreach($wptheme as $key=>$themeValue) {
    487         ?>
     526    <table id="themeDetails" class="phpinfo">
     527    <tr>
     528    <th colspan="2">
     529    Theme Details
     530    </th>
     531    </tr><?php
     532    $wptheme=wpsettings_theminfo_array();
     533    foreach($wptheme as $key=>$themeValue) {
     534        ?>
    488535        <tr>
    489         <td style="width:30%">
    490         <?php echo wpsettings_getFormattedKeyTheme($key);?>
    491         </td>
    492         <td>
    493         <?php
    494         if(strcmp($key,"Tags")!=0)
    495         echo $themeValue;
    496         else if(strcmp($key,"Tags")===0)
    497         {
    498             echo implode(',', $themeValue);
    499         }?>     
    500         </td>
    501         </tr>
    502     <?php       
    503        
    504     }?>
    505    
    506     </table>
    507 
    508  <!-- SQL DETAILS    -->
     536        <td style="width:30%">
     537        <?php echo wpsettings_getFormattedKeyTheme($key);?>
     538        </td>
     539        <td>
     540        <?php
     541        if(strcmp($key,"Tags")!=0)
     542        echo $themeValue;
     543        else if(strcmp($key,"Tags")===0)
     544        {
     545            echo implode(',', $themeValue);
     546        }?>     
     547        </td>
     548        </tr>
     549    <?php       
     550       
     551    }?>
     552   
     553    </table>
     554
     555 <!-- SQL DETAILS    -->
    509556<?php $sqldetails=wpsettings_getMySqlDetails();?>
    510557<table id="mySQLDetails" class="phpinfo">
    511558<tr>
    512     <th colspan="2">
    513     MySQL Details
    514     </th>
    515    
    516     </tr>
    517         <?php foreach($sqldetails as $sqlKey=>$sqlValue) { ?>
    518     <tr>
    519         <td style="width:30%">
    520         <?php echo $sqlKey;?>
    521         </td>
    522         <td>
    523         <?php echo $sqlValue;?>
    524         </td>
    525         </tr>
    526     <?php       
    527      }?>   
     559    <th colspan="2">
     560    MySQL Details
     561    </th>
     562   
     563    </tr>
     564        <?php foreach($sqldetails as $sqlKey=>$sqlValue) { ?>
     565    <tr>
     566        <td style="width:30%">
     567        <?php echo $sqlKey;?>
     568        </td>
     569        <td>
     570        <?php echo $sqlValue;?>
     571        </td>
     572        </tr>
     573    <?php       
     574     }?>   
    528575</table>
    529576<!-- SQL DETAILS ENDS-->
     
    538585</tr>
    539586<?php foreach($phpdetails as $sqlKey=>$sqlValue) { ?>
    540     <tr>
    541         <td style="width:30%">
    542         <?php echo $sqlKey;?>
    543         </td>
    544         <td>
    545         <?php echo $sqlValue;?>
    546         </td>
    547         </tr>
    548     <?php       
    549        
    550      } ?>   
     587    <tr>
     588        <td style="width:30%">
     589        <?php echo $sqlKey;?>
     590        </td>
     591        <td>
     592        <?php echo $sqlValue;?>
     593        </td>
     594        </tr>
     595    <?php       
     596       
     597     } ?>   
    551598</table>
    552     <!-- PLUGIN DETAILS -->
     599    <!-- PLUGIN DETAILS -->
    553600<?php $plugindetails=wpsettings__getPluginsDetails(); ?>
    554601  <table id="PluginDetails" class="phpinfo">
     
    559606</tr>
    560607<?php foreach($plugindetails as $sqlKey=>$sqlValue) { ?>
    561     <tr>
    562         <td style="width:30%">
    563         <?php echo $sqlKey;?>
    564         </td>
    565         <td>
    566         <?php echo $sqlValue;?>
    567         </td>
    568         </tr>
    569     <?php       
    570     } ?></table>
     608    <tr>
     609        <td style="width:30%">
     610        <?php echo $sqlKey;?>
     611        </td>
     612        <td>
     613        <?php echo $sqlValue;?>
     614        </td>
     615        </tr>
     616    <?php       
     617    } ?></table>
    571618<!-- add new section here-->
    572     <?php }?>
     619    <?php }?>
    573620<!-- SQL DETAILS ENDS-->
    574621 <?php }
Note: See TracChangeset for help on using the changeset viewer.