</td> </tr> <?php if (function_exists('ini_get')) { ?> <tr> <td data-export-label="PHP Post Max Size"><?php _e('PHP Post Max Size', 'jigoshop'); ?> :</td> <td class="help"><?php echo '<a href="#" class="help_tip" data-tip="' . esc_attr__('The largest filesize that can be contained in one post.', 'jigoshop') . '">[?]</a>'; ?> </td> <td><?php echo size_format(jigoshop_let_to_num(ini_get('post_max_size'))); ?> </td> </tr> <tr> <td data-export-label="PHP Time Limit"><?php _e('PHP Time Limit', 'jigoshop'); ?> :</td> <td class="help"><?php echo '<a href="#" class="help_tip" data-tip="' . esc_attr__('The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups)', 'jigoshop') . '">[?]</a>'; ?> </td> <td><?php echo ini_get('max_execution_time'); ?>
/** * System info * * Shows the system info panel which contains version data and debug info * * @since 1.0 * @usedby jigoshop_settings() */ function jigoshop_system_info() { ?> <div class="wrap jigoshop"> <div class="icon32 icon32-jigoshop-debug" id="icon-jigoshop"><br/></div> <h2><?php _e('System Information', 'jigoshop'); ?> </h2> <p>Use the information below when submitting technical support requests via the Jigoshop community / premium <a href="http://jigoshop.com/forums/" title="Jigoshop Support Forums" target="_blank">support forums</a>.</p> <div id="tabs-wrap"> <ul class="tabs"> <li><a href="#versions"><?php _e('Environment', 'jigoshop'); ?> </a></li> <li><a href="#debugging"><?php _e('Debugging', 'jigoshop'); ?> </a></li> </ul> <div id="versions" class="panel"> <table class="widefat fixed" style="width:850px;"> <thead> <tr> <th scope="col" width="200px"><?php _e('Software Versions', 'jigoshop'); ?> </th> <th scope="col"> </th> </tr> </thead> <tbody> <tr> <td class="titledesc"><?php _e('Jigoshop Version', 'jigoshop'); ?> </td> <td class="forminp"><?php echo jigoshop::get_var('version'); ?> </td> </tr> <tr> <td class="titledesc"><?php _e('WordPress Version', 'jigoshop'); ?> </td> <td class="forminp"><?php if (is_multisite()) { echo 'WPMU'; } else { echo 'WP'; } ?> <?php echo bloginfo('version'); ?> </td> </tr> </tbody> <thead> <tr> <td scope="col" width="200px"><?php _e('Server', 'jigoshop'); ?> </td> <td scope="col"><?php echo defined('PHP_OS') ? (string) PHP_OS : 'N/A'; ?> </td> </tr> </thead> <tbody> <tr> <td class="titledesc"><?php _e('PHP Version', 'jigoshop'); ?> </td> <td class="forminp"><?php if (function_exists('phpversion')) { echo phpversion(); } ?> </td> </tr> <tr> <td class="titledesc"><?php _e('Server Software', 'jigoshop'); ?> </td> <td class="forminp"><?php echo $_SERVER['SERVER_SOFTWARE']; ?> </td> </tr> </tbody> </table> </div> <div id="debugging" class="panel"> <table class="widefat fixed" style="width:850px;"> <tbody> <tr> <th scope="col" width="200px"><?php _e('Debug Information', 'jigoshop'); ?> </th> <th scope="col"> </th> </tr> <tr> <td class="titledesc"><?php _e('UPLOAD_MAX_FILESIZE', 'jigoshop'); ?> </td> <td class="forminp"><?php if (function_exists('phpversion')) { echo jigoshop_let_to_num(ini_get('upload_max_filesize')) / (1024 * 1024) . "MB"; } ?> </td> </tr> <tr> <td class="titledesc"><?php _e('POST_MAX_SIZE', 'jigoshop'); ?> </td> <td class="forminp"><?php if (function_exists('phpversion')) { echo jigoshop_let_to_num(ini_get('post_max_size')) / (1024 * 1024) . "MB"; } ?> </td> </tr> <tr> <td class="titledesc"><?php _e('WordPress Memory Limit', 'jigoshop'); ?> </td> <td class="forminp"><?php echo jigoshop_let_to_num(WP_MEMORY_LIMIT) / (1024 * 1024) . "MB"; ?> </td> </tr> <tr> <td class="titledesc"><?php _e('WP_DEBUG', 'jigoshop'); ?> </td> <td class="forminp"><?php echo WP_DEBUG === true ? __('On', 'jigoshop') : __('Off', 'jigoshop'); ?> </td> </tr> <tr> <td class="titledesc"><?php _e('DISPLAY_ERRORS', 'jigoshop'); ?> </td> <td class="forminp"><?php echo ini_get('display_errors') ? 'On (' . ini_get('display_errors') . ')' : 'N/A'; ?> </td> </tr> <tr> <td class="titledesc"><?php _e('FSOCKOPEN', 'jigoshop'); ?> </td> <td class="forminp"><?php if (function_exists('fsockopen')) { echo '<span style="color:green">' . __('Your server supports fsockopen.', 'jigoshop') . '</span>'; } else { echo '<span style="color:red">' . __('Your server does not support fsockopen.', 'jigoshop') . '</span>'; } ?> </td> </tr> </tbody> </table> </div> </div> </div> <script type="text/javascript"> jQuery(function() { // Tabs jQuery('ul.tabs').show(); jQuery('ul.tabs li:first').addClass('active'); jQuery('div.panel:not(div.panel:first)').hide(); jQuery('ul.tabs a').click(function(){ jQuery('ul.tabs li').removeClass('active'); jQuery(this).parent().addClass('active'); jQuery('div.panel').hide(); jQuery( jQuery(this).attr('href') ).show(); return false; }); }); </script> <?php }