| @@ -2,32 +2,263 @@ | ||
| 2 | 2 | if (!defined('ABSPATH')) { |
| 3 | 3 | die('Access denied.'); |
| 4 | 4 | } |
| 5 | 5 | ?> |
| 6 | -<div class="wrap <?php echo $this->page; ?>"> | |
| 6 | +<div class="wrap <?php echo esc_attr($this->page); ?>"> | |
| 7 | 7 | <h1><?php _e('Debug', 'e2pdf') ?></h1> |
| 8 | 8 | <hr class="wp-header-end"> |
| 9 | + <?php $this->render('blocks', 'notifications'); ?> | |
| 9 | 10 | <h3 class="nav-tab-wrapper wp-clearfix"> |
| 10 | - <a href="<?php echo $this->helper->get_url(array('page' => 'e2pdf-debug')); ?>" class="nav-tab <?php if (!$this->get->get()) { ?>nav-tab-active<?php } ?>"><?php echo _e('Debug', 'e2pdf'); ?></a> | |
| 11 | - <a href="<?php echo $this->helper->get_url(array('page' => 'e2pdf-debug', 'action' => 'phpinfo')); ?>" class="nav-tab <?php if ($this->get->get('action') == 'phpinfo') { ?>nav-tab-active<?php } ?>"><?php _e('PHP Info', 'e2pdf'); ?></a> | |
| 12 | - <a href="<?php echo $this->helper->get_url(array('page' => 'e2pdf-debug', 'action' => 'requests')); ?>" class="nav-tab <?php if ($this->get->get('action') == 'requests') { ?>nav-tab-active<?php } ?>"><?php _e('Requests', 'e2pdf'); ?></a> | |
| 11 | + <a href="<?php echo esc_url($this->helper->get_url(array('page' => 'e2pdf-debug'))); ?>" class="nav-tab <?php if (!$this->get->get('action')) { ?>nav-tab-active<?php } ?>"><?php _e('Debug', 'e2pdf'); ?></a> | |
| 12 | + <a href="<?php echo esc_url($this->helper->get_url(array('page' => 'e2pdf-debug', 'action' => 'connections'))); ?>" class="nav-tab <?php if ($this->get->get('action') == 'connections') { ?>nav-tab-active<?php } ?>"><?php _e('Connections', 'e2pdf'); ?></a> | |
| 13 | + <a href="<?php echo esc_url($this->helper->get_url(array('page' => 'e2pdf-debug', 'action' => 'db'))); ?>" class="nav-tab <?php if ($this->get->get('action') == 'db') { ?>nav-tab-active<?php } ?>"><?php _e('DB', 'e2pdf'); ?></a> | |
| 14 | + <a href="<?php echo esc_url($this->helper->get_url(array('page' => 'e2pdf-debug', 'action' => 'phpinfo'))); ?>" class="nav-tab <?php if ($this->get->get('action') == 'phpinfo') { ?>nav-tab-active<?php } ?>">PHP</a> | |
| 13 | 15 | </h3> |
| 14 | - | |
| 15 | 16 | <div class="wrap"> |
| 16 | - <?php if (!$this->get->get()) { ?> | |
| 17 | + <?php if (!$this->get->get('action')) { ?> | |
| 18 | + <div class="e2pdf-view-area"> | |
| 19 | + <ul class="e2pdf-options-list"> | |
| 20 | + <li><h2><?php _e('Maintenance', 'e2pdf') ?></h2></li> | |
| 21 | + <li> | |
| 22 | + <div class="e2pdf-name"> | |
| 23 | + <?php _e('Reinitialize Activation Hooks', 'e2pdf'); ?>: | |
| 24 | + </div><div class="e2pdf-value"> | |
| 25 | + <form onsubmit="return confirm('<?php _e('Are you sure want to continue?', 'e2pdf') ?>');" method="post" action="<?php echo esc_url($this->helper->get_url(array('page' => 'e2pdf-debug'))); ?>"> | |
| 26 | + <input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce('e2pdf_debug'); ?>"> | |
| 27 | + <input type="hidden" name="e2pdf_updated" value="1"> | |
| 28 | + <input type="submit" name="submit" id="submit" class="button button-primary" value="»"> | |
| 29 | + </form> | |
| 30 | + </div> | |
| 31 | + </li> | |
| 32 | + </ul> | |
| 33 | + <hr> | |
| 34 | + <small><?php _e("* It is strongly RECOMMENDED that you backup your WEBSITE before any of these actions are applied to avoid data loss", 'e2pdf') ?></small> | |
| 35 | + </div> | |
| 17 | 36 | <ul class="e2pdf-view-area"> |
| 18 | 37 | <li><h2><?php _e('Common', 'e2pdf') ?></h2></li> |
| 19 | - <li><span class="e2pdf-bold"><?php _e('Domain', 'e2pdf') ?>:</span> <?php echo $this->view->debug->get('domain'); ?></li> | |
| 20 | - <li><span class="e2pdf-bold"><?php _e('PHP Version', 'e2pdf') ?>:</span> <?php echo phpversion(); ?></li> | |
| 38 | + <li><span class="e2pdf-bold"><?php _e('Site URL', 'e2pdf') ?>:</span> <?php echo esc_html($this->helper->get_site_url()); ?></li> | |
| 39 | + <li><span class="e2pdf-bold"><?php _e('Plugin Version', 'e2pdf') ?>:</span> <?php echo esc_html($this->helper->get('version')); ?></li> | |
| 40 | + <li><span class="e2pdf-bold"><?php _e('DB Version', 'e2pdf') ?>:</span> <?php echo esc_html(get_option('e2pdf_version')); ?></li> | |
| 41 | + <li><span class="e2pdf-bold"><?php _e('WP Version', 'e2pdf') ?>:</span> <?php echo esc_html(get_bloginfo('version')); ?></li> | |
| 42 | + <li><span class="e2pdf-bold"><?php _e('Multisite', 'e2pdf') ?>:</span> <?php is_multisite() ? _e('Yes', 'e2pdf') : _e('No', 'e2pdf'); ?></span></li> | |
| 43 | + <li><span class="e2pdf-bold"><?php _e('Is Main Site', 'e2pdf') ?>:</span> <?php is_main_site() ? _e('Yes', 'e2pdf') : _e('No', 'e2pdf'); ?></span></li> | |
| 44 | + <li><h2><?php _e('Settings', 'e2pdf') ?></h2></li> | |
| 45 | + <li><span class="e2pdf-bold"><?php _e('PDF Processor', 'e2pdf') ?>:</span> <?php echo get_option('e2pdf_processor', '0') ? 'Release Candidate (Debug Mode)' : 'Default (Stable Version)' ?></li> | |
| 46 | + <li><span class="e2pdf-bold"><?php _e('Font Processor', 'e2pdf') ?>:</span> <?php echo get_option('e2pdf_font_processor', '0') ? 'Complex Fonts' : 'Plain Fonts' ?></li> | |
| 47 | + <li><h2>PHP</h2></li> | |
| 48 | + <li><span class="e2pdf-bold">PHP:</span> <?php echo esc_html(phpversion()); ?></li> | |
| 49 | + <li><span class="e2pdf-bold">post_max_size:</span> <?php echo esc_html(ini_get('post_max_size')); ?></span></li> | |
| 50 | + <li><span class="e2pdf-bold">upload_max_filesize:</span> <?php echo esc_html(ini_get('upload_max_filesize')); ?></span></li> | |
| 51 | + <li><span class="e2pdf-bold">memory_limit:</span> <?php echo esc_html(ini_get('memory_limit')); ?></span></li> | |
| 52 | + <li><span class="e2pdf-bold">max_execution_time:</span> <?php echo esc_html(ini_get('max_execution_time')); ?></span></li> | |
| 53 | + <li><h2><?php _e('Folders', 'e2pdf') ?></h2></li> | |
| 54 | + <li><span class="e2pdf-bold"><?php _e('WP Folder', 'e2pdf') ?>:</span></li> | |
| 55 | + <li><?php echo esc_html(ABSPATH) ?></li> | |
| 56 | + <li><span class="e2pdf-bold"><?php _e('Upload Folder', 'e2pdf') ?>:</span></li> | |
| 57 | + <li><?php echo esc_html($this->helper->get('upload_dir')); ?></li> | |
| 58 | + <li><span class="e2pdf-bold"><?php _e('Plugin Folder', 'e2pdf') ?>:</span></li> | |
| 59 | + <li><?php echo esc_html($this->helper->get('plugin_dir')); ?></li> | |
| 21 | 60 | <li><span class="e2pdf-bold"><?php _e('Folders permission', 'e2pdf') ?>:</span></li> |
| 22 | - <li><?php echo $this->helper->get('tmp_dir'); ?>: <?php is_writable($this->helper->get('tmp_dir')) ? _e('Writable', 'e2pdf') : _e('Not writable', 'e2pdf'); ?></li> | |
| 23 | - <li><?php echo $this->helper->get('pdf_dir'); ?>: <?php is_writable($this->helper->get('pdf_dir')) ? _e('Writable', 'e2pdf') : _e('Not writable', 'e2pdf'); ?></li> | |
| 61 | + <li><?php if (is_writable($this->helper->get('tmp_dir'))) { ?> | |
| 62 | + <span class="e2pdf-color-green">[OK]</span> | |
| 63 | + <?php } else { ?> | |
| 64 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 65 | + <?php } ?> <?php echo esc_html($this->helper->get('tmp_dir')); ?> | |
| 66 | + </li> | |
| 67 | + <li><?php if (is_writable($this->helper->get('cache_dir'))) { ?> | |
| 68 | + <span class="e2pdf-color-green">[OK]</span> | |
| 69 | + <?php } else { ?> | |
| 70 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 71 | + <?php } ?> <?php echo esc_html($this->helper->get('cache_dir')); ?> | |
| 72 | + </li> | |
| 73 | + <li><?php if (is_writable($this->helper->get('pdf_dir'))) { ?> | |
| 74 | + <span class="e2pdf-color-green">[OK]</span> | |
| 75 | + <?php } else { ?> | |
| 76 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 77 | + <?php } ?> <?php echo esc_html($this->helper->get('pdf_dir')); ?> | |
| 78 | + </li> | |
| 79 | + <li><?php if (is_writable($this->helper->get('fonts_dir'))) { ?> | |
| 80 | + <span class="e2pdf-color-green">[OK]</span> | |
| 81 | + <?php } else { ?> | |
| 82 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 83 | + <?php } ?> <?php echo esc_html($this->helper->get('fonts_dir')); ?> | |
| 84 | + </li> | |
| 85 | + <li><?php if (is_writable($this->helper->get('tpl_dir'))) { ?> | |
| 86 | + <span class="e2pdf-color-green">[OK]</span> | |
| 87 | + <?php } else { ?> | |
| 88 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 89 | + <?php } ?> <?php echo esc_html($this->helper->get('tpl_dir')); ?> | |
| 90 | + </li> | |
| 91 | + <li><?php if (is_writable($this->helper->get('viewer_dir'))) { ?> | |
| 92 | + <span class="e2pdf-color-green">[OK]</span> | |
| 93 | + <?php } else { ?> | |
| 94 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 95 | + <?php } ?> <?php echo esc_html($this->helper->get('viewer_dir')); ?> | |
| 96 | + </li> | |
| 97 | + <li><?php if (is_writable($this->helper->get('bulk_dir'))) { ?> | |
| 98 | + <span class="e2pdf-color-green">[OK]</span> | |
| 99 | + <?php } else { ?> | |
| 100 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 101 | + <?php } ?> <?php echo esc_html($this->helper->get('bulk_dir')); ?> | |
| 102 | + </li> | |
| 103 | + <li><?php if (is_writable($this->helper->get('wpcf7_dir'))) { ?> | |
| 104 | + <span class="e2pdf-color-green">[OK]</span> | |
| 105 | + <?php } else { ?> | |
| 106 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 107 | + <?php } ?> <?php echo esc_html($this->helper->get('wpcf7_dir')); ?> | |
| 108 | + </li> | |
| 24 | 109 | <li><h2><?php _e('PHP Extensions', 'e2pdf') ?></h2></li> |
| 25 | - <li><span class="e2pdf-bold"><?php _e('curl', 'e2pdf') ?>:</span> <?php function_exists('curl_version') ? _e('Enabled', 'e2pdf') : _e('No', 'e2pdf'); ?></li> | |
| 26 | - <li><span class="e2pdf-bold"><?php _e('simplexml', 'e2pdf') ?>:</span> <?php extension_loaded('simplexml') ? _e('Enabled', 'e2pdf') : _e('No', 'e2pdf'); ?></li> | |
| 27 | - <li><span class="e2pdf-bold"><?php _e('libxml', 'e2pdf') ?>:</span> <?php extension_loaded('libxml') ? _e('Enabled', 'e2pdf') : _e('No', 'e2pdf'); ?></li> | |
| 28 | - <li><span class="e2pdf-bold"><?php _e('Dom', 'e2pdf') ?>:</span> <?php extension_loaded('Dom') ? _e('Enabled', 'e2pdf') : _e('No', 'e2pdf'); ?></li> | |
| 110 | + <li> | |
| 111 | + <?php if (!is_callable('curl_version')) { ?> | |
| 112 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> CURL<br><small>curl_version</small> | |
| 113 | + <?php } elseif (in_array('curl_exec', $this->view->disabled_functions)) { ?> | |
| 114 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> CURL<br><small>curl_exec</small> | |
| 115 | + <?php } else { ?> | |
| 116 | + <span class="e2pdf-color-green">[OK]</span> CURL | |
| 117 | + <?php } ?> | |
| 118 | + </li> | |
| 119 | + <li> | |
| 120 | + <?php if (class_exists('XMLReader')) { ?> | |
| 121 | + <span class="e2pdf-color-green">[OK]</span> | |
| 122 | + <?php } else { ?> | |
| 123 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 124 | + <?php } ?> XMLReader | |
| 125 | + </li> | |
| 126 | + <li> | |
| 127 | + <?php if (extension_loaded('simplexml')) { ?> | |
| 128 | + <span class="e2pdf-color-green">[OK]</span> | |
| 129 | + <?php } else { ?> | |
| 130 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 131 | + <?php } ?> SimpleXML | |
| 132 | + </li> | |
| 133 | + <li> | |
| 134 | + <?php if (extension_loaded('libxml')) { ?> | |
| 135 | + <span class="e2pdf-color-green">[OK]</span> | |
| 136 | + <?php } else { ?> | |
| 137 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 138 | + <?php } ?> LibXML | |
| 139 | + </li> | |
| 140 | + <li> | |
| 141 | + <?php if (extension_loaded('Dom')) { ?> | |
| 142 | + <span class="e2pdf-color-green">[OK]</span> | |
| 143 | + <?php } else { ?> | |
| 144 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 145 | + <?php } ?> DOM | |
| 146 | + </li> | |
| 147 | + <li> | |
| 148 | + <?php if (extension_loaded('intl')) { ?> | |
| 149 | + <span class="e2pdf-color-green">[OK]</span> | |
| 150 | + <?php } else { ?> | |
| 151 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 152 | + <?php } ?> INTL | |
| 153 | + </li> | |
| 154 | + <li> | |
| 155 | + <?php if (extension_loaded('zip')) { ?> | |
| 156 | + <span class="e2pdf-color-green">[OK]</span> | |
| 157 | + <?php } else { ?> | |
| 158 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 159 | + <?php } ?> ZIP | |
| 160 | + </li> | |
| 161 | + <?php | |
| 162 | + if (function_exists('get_locale') && function_exists('get_available_languages')) { | |
| 163 | + $locales = get_available_languages(); | |
| 164 | + if (!in_array(get_locale(), $locales)) { | |
| 165 | + array_unshift($locales, get_locale()); | |
| 166 | + } | |
| 167 | + ?> | |
| 168 | + <li><h2><?php _e('Locales', 'e2pdf') ?>:</h2></li> | |
| 169 | + <li><?php echo esc_html(implode(', ', $locales)); ?></span></li> | |
| 170 | + <?php | |
| 171 | + } | |
| 172 | + ?> | |
| 173 | + <?php | |
| 174 | + if (function_exists('get_post_types') && function_exists('get_post_type_labels')) { | |
| 175 | + $post_type_objects = get_post_types(array(), 'objects'); | |
| 176 | + $post_types = array(); | |
| 177 | + foreach ($post_type_objects as $post_type_obj) { | |
| 178 | + $labels = get_post_type_labels($post_type_obj); | |
| 179 | + $post_types[] = esc_html($labels->name) . ' (' . esc_html($post_type_obj->name) . ')'; | |
| 180 | + } | |
| 181 | + ?> | |
| 182 | + <li><h2><?php _e('Post Types', 'e2pdf') ?>:</h2></li> | |
| 183 | + <li><?php echo esc_html(implode(', ', $post_types)); ?></span></li> | |
| 184 | + <?php | |
| 185 | + } | |
| 186 | + ?> | |
| 187 | + <?php | |
| 188 | + if (function_exists('get_intermediate_image_sizes')) { | |
| 189 | + $image_sizes = get_intermediate_image_sizes(); | |
| 190 | + ?> | |
| 191 | + <li><h2><?php _e('Image Sizes', 'e2pdf') ?>:</h2></li> | |
| 192 | + <li><?php echo esc_html(implode(', ', $image_sizes)); ?></span></li> | |
| 193 | + <?php | |
| 194 | + } | |
| 195 | + ?> | |
| 196 | + <li><h2><?php _e('Plugins', 'e2pdf') ?>:</h2></li> | |
| 197 | + <li> | |
| 198 | + <?php echo esc_html(implode(", ", get_option('active_plugins'))); ?> | |
| 199 | + </li> | |
| 29 | 200 | </ul> |
| 201 | + <?php } elseif ($this->get->get('action') == 'db') { ?> | |
| 202 | + <div class="e2pdf-view-area"> | |
| 203 | + <ul class="e2pdf-options-list"> | |
| 204 | + <li><h2><?php _e('Maintenance', 'e2pdf') ?></h2></li> | |
| 205 | + <li> | |
| 206 | + <div class="e2pdf-name"> | |
| 207 | + <?php _e('Repair DB', 'e2pdf'); ?>: | |
| 208 | + </div><div class="e2pdf-value"> | |
| 209 | + <form onsubmit="return confirm('<?php _e('Are you sure want to continue?', 'e2pdf') ?>');" method="post" action="<?php echo esc_url($this->helper->get_url(array('page' => 'e2pdf-debug', 'action' => 'db'))); ?>"> | |
| 210 | + <input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce('e2pdf_debug'); ?>"> | |
| 211 | + <input type="hidden" name="e2pdf_db_repair" value="1"> | |
| 212 | + <input type="submit" name="submit" id="submit" class="button button-primary" value="»"> | |
| 213 | + </form> | |
| 214 | + </div> | |
| 215 | + </li> | |
| 216 | + <?php if (!$this->view->db_check_collate) { ?> | |
| 217 | + <li> | |
| 218 | + <div class="e2pdf-name"> | |
| 219 | + <?php _e('Repair DB Collate', 'e2pdf'); ?>: | |
| 220 | + </div><div class="e2pdf-value"> | |
| 221 | + <form onsubmit="return confirm('<?php _e('Are you sure want to continue?', 'e2pdf') ?>');" method="post" action="<?php echo esc_url($this->helper->get_url(array('page' => 'e2pdf-debug', 'action' => 'db'))); ?>"> | |
| 222 | + <input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce('e2pdf_debug'); ?>"> | |
| 223 | + <input type="hidden" name="e2pdf_db_repair_collate" value="1"> | |
| 224 | + <input type="submit" name="submit" id="submit" class="button button-primary" value="»"> | |
| 225 | + </form> | |
| 226 | + </div> | |
| 227 | + </li> | |
| 228 | + <?php } ?> | |
| 229 | + <li> | |
| 230 | + <div class="e2pdf-name"> | |
| 231 | + <?php _e('Reinitialize DB Hooks', 'e2pdf'); ?>: | |
| 232 | + </div><div class="e2pdf-value"> | |
| 233 | + <form onsubmit="return confirm('<?php _e('Are you sure want to continue?', 'e2pdf') ?>');" method="post" action="<?php echo esc_url($this->helper->get_url(array('page' => 'e2pdf-debug', 'action' => 'db'))); ?>"> | |
| 234 | + <input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce('e2pdf_debug'); ?>"> | |
| 235 | + <input type="hidden" name="e2pdf_db" value="1"> | |
| 236 | + <input type="submit" name="submit" id="submit" class="button button-primary" value="»"> | |
| 237 | + </form> | |
| 238 | + </div> | |
| 239 | + </li> | |
| 240 | + </ul> | |
| 241 | + <hr> | |
| 242 | + <small><?php _e("* It is strongly RECOMMENDED that you backup your DB before any of these actions are applied to avoid data loss", 'e2pdf') ?></small> | |
| 243 | + </div> | |
| 244 | + <br> | |
| 245 | + <div class="e2pdf-view-area"> | |
| 246 | + <ul> | |
| 247 | + <li><h2><?php _e('Structure', 'e2pdf') ?></h2></li> | |
| 248 | + <?php foreach ($this->view->db_structure as $table_key => $table) { ?> | |
| 249 | + <li><span class="e2pdf-bold <?php echo $table['check'] ? 'e2pdf-color-green' : 'e2pdf-color-red' ?>"><?php echo esc_html($table_key); ?></span></li> | |
| 250 | + <li style="font-size: 8px;"><span>Table Format: <?php echo esc_html(strtoupper($table['format'])); ?></span></li> | |
| 251 | + <li style="font-size: 8px;"><span>Table Collate: <?php echo esc_html(strtoupper($table['collation'])); ?></span></li> | |
| 252 | + <li> | |
| 253 | + <?php foreach ($table['columns'] as $column_key => $column) { ?> | |
| 254 | + <span class="<?php echo isset($column['check']) && $column['check'] ? 'e2pdf-color-green' : 'e2pdf-color-red' ?>"><?php echo esc_html($column_key); ?></span> | |
| 255 | + <?php } ?> | |
| 256 | + <br><br> | |
| 257 | + </li> | |
| 258 | + <?php } ?> | |
| 259 | + </ul> | |
| 260 | + </div> | |
| 30 | 261 | <?php } elseif ($this->get->get('action') == 'phpinfo') { ?> |
| 31 | 262 | <div class="e2pdf-view-area"> |
| 32 | 263 | <div class="phpinfo_wrapper"> |
| 33 | 264 | <?php echo $this->view->phpinfo; ?> |
| @@ -32,14 +263,41 @@ | ||
| 32 | 263 | <div class="phpinfo_wrapper"> |
| 33 | 264 | <?php echo $this->view->phpinfo; ?> |
| 34 | 265 | </div> |
| 35 | 266 | </div> |
| 36 | - <?php } elseif ($this->get->get('action') == 'requests') { ?> | |
| 267 | + <?php } elseif ($this->get->get('action') == 'connections') { ?> | |
| 37 | 268 | <div class="e2pdf-view-area"> |
| 38 | - <?php echo $this->view->requests; ?> | |
| 269 | + <ul> | |
| 270 | + <li><h2><?php _e('Connections', 'e2pdf') ?></h2></li> | |
| 271 | + <?php if (isset($this->view->connections['self_connection'])) { ?> | |
| 272 | + <li> | |
| 273 | + <?php if (!isset($this->view->connections['self_connection']['error'])) { ?> | |
| 274 | + <span class="e2pdf-color-green">[OK]</span> | |
| 275 | + <?php } else { ?> | |
| 276 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 277 | + <?php } ?> <?php _e('Back-connection', 'e2pdf') ?> | |
| 278 | + </li> | |
| 279 | + <?php } ?> | |
| 280 | + <?php if (isset($this->view->connections['api_connection_upload'])) { ?> | |
| 281 | + <li> | |
| 282 | + <?php if (!isset($this->view->connections['api_connection_upload']['error'])) { ?> | |
| 283 | + <span class="e2pdf-color-green">[OK]</span> | |
| 284 | + <?php } else { ?> | |
| 285 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 286 | + <?php } ?> <?php _e('Upload Speed', 'e2pdf') ?>: <?php echo esc_html($this->view->connections['api_connection_upload']['result']); ?> | |
| 287 | + </li> | |
| 288 | + <?php } ?> | |
| 289 | + <?php if (isset($this->view->connections['api_connection_download'])) { ?> | |
| 290 | + <li> | |
| 291 | + <?php if (!isset($this->view->connections['api_connection_download']['error'])) { ?> | |
| 292 | + <span class="e2pdf-color-green">[OK]</span> | |
| 293 | + <?php } else { ?> | |
| 294 | + <span class="e2pdf-color-red"><?php _e('[ERROR]', 'e2pdf'); ?></span> | |
| 295 | + <?php } ?> <?php _e('Download Speed', 'e2pdf') ?>: <?php echo esc_html($this->view->connections['api_connection_download']['result']); ?> | |
| 296 | + </li> | |
| 297 | + <?php } ?> | |
| 298 | + </ul> | |
| 39 | 299 | </div> |
| 40 | 300 | <?php } ?> |
| 41 | 301 | </div> |
| 42 | 302 | </div> |
| 43 | -<?php $this->render('blocks', 'debug-panel'); ?> | |
| 44 | - | |
| 45 | - | |
| 303 | +<?php $this->render('blocks', 'debug-panel'); ?> | |