PluginProbe
MaxGalleria / 2.6
MaxGalleria v2.6
6.5.3 trunk 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.2.2 2.3 2.4 2.5 2.6 2.6.1 3.0.0 3.0.1 3.0.2 3.0.3 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 All 135 releases
maxgalleria / admin / support.php

support.php in MaxGalleria 2.6, at admin/support.php

78 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $maxgalleria;
3 $common = $maxgalleria->common;
4
5 $theme = wp_get_theme();
6 $browser = $common->get_browser();
7 ?>
8
9 <div id="maxgalleria-admin">
10 <div class="wrap">
11 <div class="icon32">
12 <a href="http://maxgalleria.com" target="_blank"><img src="<?php echo MAXGALLERIA_PLUGIN_URL ?>/images/maxgalleria-icon-32.png" alt="MaxGalleria" /></a>
13 </div>
14
15 <h2 class="title"><?php _e('MaxGalleria: Support', 'maxgalleria') ?></h2>
16
17 <div class="clear"></div>
18
19 <div class="section">
20 <div class="inside">
21 <h4 style="margin-top: 0px;"><?php printf(__('Support for the core plugin is handled through the %splugin repository%s.', 'maxgalleria'), '<a href="http://wordpress.org/support/plugin/maxgalleria" target="_blank">', '</a>') ?></h4>
22 <h4><?php printf(__('Support for any of the addons are handled through the MaxGalleria %ssupport forums%s.', 'maxgalleria'), '<a href="http://maxgalleria.com/forums" target="_blank">', '</a>') ?></h4>
23 <h4><?php _e('You may be asked to provide the information below to help troubleshoot your issue.', 'maxgalleria') ?></h4>
24
25 <textarea class="system-info" readonly="readonly" wrap="off">
26 ----- Begin System Info -----
27
28 WordPress Version: <?php echo get_bloginfo('version') . "\n"; ?>
29 PHP Version: <?php echo PHP_VERSION . "\n"; ?>
30 MySQL Version: <?php echo mysql_get_server_info() . "\n"; ?>
31 Web Server: <?php echo $_SERVER['SERVER_SOFTWARE'] . "\n"; ?>
32
33 WordPress URL: <?php echo get_bloginfo('wpurl') . "\n"; ?>
34 Home URL: <?php echo get_bloginfo('url') . "\n"; ?>
35
36 PHP cURL Support: <?php echo (function_exists('curl_init')) ? 'Yes' . "\n" : 'No' . "\n"; ?>
37 PHP GD Support: <?php echo (function_exists('gd_info')) ? 'Yes' . "\n" : 'No' . "\n"; ?>
38 PHP Memory Limit: <?php echo ini_get('memory_limit') . "\n"; ?>
39 PHP Post Max Size: <?php echo ini_get('post_max_size') . "\n"; ?>
40 PHP Upload Max Size: <?php echo ini_get('upload_max_filesize') . "\n"; ?>
41
42 WP_DEBUG: <?php echo defined('WP_DEBUG') ? WP_DEBUG ? 'Enabled' . "\n" : 'Disabled' . "\n" : 'Not set' . "\n" ?>
43 Multi-Site Active: <?php echo is_multisite() ? 'Yes' . "\n" : 'No' . "\n" ?>
44
45 Operating System: <?php echo $browser['platform'] . "\n"; ?>
46 Browser: <?php echo $browser['name'] . ' ' . $browser['version'] . "\n"; ?>
47 User Agent: <?php echo $browser['user_agent'] . "\n"; ?>
48
49 Active Theme:
50 - <?php echo $theme->get('Name') ?> <?php echo $theme->get('Version') . "\n"; ?>
51 <?php echo $theme->get('ThemeURI') . "\n"; ?>
52
53 Active Plugins:
54 <?php
55 $plugins = get_plugins();
56 $active_plugins = get_option('active_plugins', array());
57
58 foreach ($plugins as $plugin_path => $plugin) {
59
60 // Only show active plugins
61 if (in_array($plugin_path, $active_plugins)) {
62 echo '- ' . $plugin['Name'] . ' ' . $plugin['Version'] . "\n";
63
64 if (isset($plugin['PluginURI'])) {
65 echo ' ' . $plugin['PluginURI'] . "\n";
66 }
67
68 echo "\n";
69 }
70 }
71 ?>
72 ----- End System Info -----
73 </textarea>
74 </div>
75 </div>
76 </div>
77 </div>
78