Changeset 3204414
- Timestamp:
- 12/08/2024 03:25:11 PM (15 months ago)
- Location:
- wp-settings/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wp-settings.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-settings/trunk/readme.txt
r3203857 r3204414 6 6 Requires PHP: 5.2.4 7 7 Stable tag: trunk 8 Version: 2. 08 Version: 2.5.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
wp-settings/trunk/wp-settings.php
r3204110 r3204414 4 4 Plugin URI: https://wordpress.org/plugins/wp-settings/ 5 5 Description: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. 46 Version: 2.5.5 7 7 Author: CodeCompiled 8 8 Author URI: http://www.codecompiled.com … … 271 271 'Description' => isset($pluginData['Description']) ? $pluginData['Description'] : '', 272 272 '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'] : '' 274 275 ); 275 276 } … … 284 285 285 286 286 287 function 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 } 287 304 288 305 … … 764 781 </head> 765 782 <body> 766 <table class="headerInfo" style="width: 9 5%; table-layout: fixed; border-collapse: collapse;">783 <table class="headerInfo" style="width: 98%; table-layout: fixed; border-collapse: collapse;"> 767 784 <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;"> 769 786 Following is some important information about this WordPress installation. 770 787 </td> … … 880 897 <table id="PluginDetails"> 881 898 <tr> 882 <th colspan=" 4">899 <th colspan="5"> 883 900 Plugin Details 884 901 </th> … … 886 903 <tr style="background-color: #e0e0e0; font-weight: bold;"> 887 904 <td style="width: 20%;">Name</td> 888 <td style="width: 40%;">Description</td>905 <td style="width: 30%;">Description</td> 889 906 <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> 891 909 </tr> 892 910 <?php … … 899 917 <td><?php echo htmlspecialchars($plugin['Author']); ?></td> 900 918 <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> 901 924 902 925 </tr>
Note: See TracChangeset
for help on using the changeset viewer.