Plugin Directory

Changeset 3204414


Ignore:
Timestamp:
12/08/2024 03:25:11 PM (15 months ago)
Author:
codecompiled
Message:

Updated UI for DB details

Location:
wp-settings/trunk
Files:
2 edited

Legend:

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

    r3203857 r3204414  
    66Requires PHP: 5.2.4
    77Stable tag: trunk
    8 Version: 2.0
     8Version: 2.5.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • wp-settings/trunk/wp-settings.php

    r3204110 r3204414  
    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.5.4
     6Version: 2.5.5
    77Author: CodeCompiled
    88Author URI: http://www.codecompiled.com
     
    271271                    'Description' => isset($pluginData['Description']) ? $pluginData['Description'] : '',
    272272                    'Version' => isset($pluginData['Version']) ? $pluginData['Version'] : '',
    273                     'Author' => isset($pluginData['Author']) ? $pluginData['Author'] : ''
     273                    'Author' => isset($pluginData['Author']) ? $pluginData['Author'] : '',
     274                    'DomainPath' => isset($pluginData['DomainPath']) ? $pluginData['DomainPath'] : ''
    274275                );
    275276            }
     
    284285
    285286
    286 
     287function is_plugin_active_by_name($plugin_name) {
     288    // Get the list of active plugins
     289    $active_plugins = get_option('active_plugins');
     290    if (!$active_plugins) {
     291        return false;
     292    }
     293
     294    // Check each active plugin
     295    foreach ($active_plugins as $plugin) {
     296        $plugin_data = get_plugin_data(WP_PLUGIN_DIR . '/' . $plugin);
     297        if (isset($plugin_data['Name']) && strcasecmp($plugin_data['Name'], $plugin_name) === 0) {
     298            return true;
     299        }
     300    }
     301
     302    return false;
     303}
    287304
    288305
     
    764781    </head>
    765782    <body>
    766    <table class="headerInfo" style="width: 95%; table-layout: fixed; border-collapse: collapse;">
     783   <table class="headerInfo" style="width: 98%; table-layout: fixed; border-collapse: collapse;">
    767784    <tr>
    768         <td colspan="6" style="text-align: left; padding: 10px; font-weight: bold; background-color: #3388cc; color: #fff;">
     785        <td colspan="7" style="text-align: left; padding: 10px; font-weight: bold; background-color: #3388cc; color: #fff;">
    769786            Following is some important information about this WordPress installation.
    770787        </td>
     
    880897       <table id="PluginDetails">
    881898        <tr>
    882             <th colspan="4">
     899            <th colspan="5">
    883900                Plugin Details
    884901            </th>
     
    886903        <tr style="background-color: #e0e0e0; font-weight: bold;">
    887904            <td style="width: 20%;">Name</td>
    888             <td style="width: 40%;">Description</td>
     905            <td style="width: 30%;">Description</td>
    889906            <td style="width: 20%;">Author</td>
    890             <td style="width: 20%;">Version</td>
     907            <td style="width: 15%;">Version</td>
     908            <td style="width: 15%;">Active/Inactive</td>
    891909        </tr>
    892910        <?php
     
    899917                 <td><?php echo htmlspecialchars($plugin['Author']); ?></td>
    900918                <td><?php echo htmlspecialchars($plugin['Version']); ?></td>
     919                <td><?php if (is_plugin_active_by_name($plugin['Name']))
     920                           echo 'Active';
     921                          else
     922                           echo 'InActive';
     923                    ?></td>
    901924               
    902925            </tr>
Note: See TracChangeset for help on using the changeset viewer.