| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if( ! defined( 'ABSPATH' ) ) exit; |
| 4 |
?> |
| 5 |
|
| 6 |
<div id="wpf-admin-wrap" class="wrap"> |
| 7 |
<h1 style="margin: 0; padding: 0; line-height: 10px;"> </h1> |
| 8 |
<?php WPF()->notice->show() ?> |
| 9 |
|
| 10 |
<div id="dashboard-widgets-wrap" style="padding-top:10px;"> |
| 11 |
<div class="metabox-holder" id="dashboard-widgets"> |
| 12 |
|
| 13 |
<div class="postbox-container" id="postbox-container-0" style="width:100%;"> |
| 14 |
<div class="wpf-box-wrap" style="min-height:60px;"> |
| 15 |
|
| 16 |
<div class="postbox" id="wpforo_dashboard_widget_0" style="margin: 10px; padding: 20px 15px 10px 15px;"> |
| 17 |
<div class="inside"> |
| 18 |
<div class="main" style="padding:5px 15px 15px 15px;"> |
| 19 |
<div style="float:left; vertical-align:top; width:calc(100% - 150px);;"> |
| 20 |
<p style="font-size:30px; margin:0 0 10px; font-family:Constantia, 'Lucida Bright', 'DejaVu Serif', Georgia, serif"> |
| 21 |
<?php _e( 'Welcome to wpForo', 'wpforo' ); echo ' ' . esc_html( WPFORO_VERSION ) ?> |
| 22 |
</p> |
| 23 |
<p style="margin:0; font-size:14px; font-family:'Lucida Bright', 'DejaVu Serif', Georgia, serif"> |
| 24 |
<?php _e( 'Thank you for using wpForo! wpForo is a professional bulletin board for WordPress, and the only forum software which comes with Multi-layout template system. |
| 25 |
The "Extended", "Simplified", "Q&A" and "Threaded" layouts fit almost all type of discussions needs. You can use wpForo for small and extremely large communities. If you found some issue or bug please open a support topic in wpForo Support forum at wpForo.com. If you liked wpForo please leave some good review for this plugin. We really need your good reviews. |
| 26 |
If you didn\'t like wpForo please leave a list of issues and requirements you\'d like us to fix and add in our support forum. We\'re here to help you and improve wpForo as much as possible.', |
| 27 |
'wpforo' |
| 28 |
); ?> |
| 29 |
</p> |
| 30 |
<h3 style="font-size: 18px; margin-top: 20px;"><?php _e("What's New in wpForo 2", 'wpforo') ?></h3> |
| 31 |
<ul class="wpf-wn-list"> |
| 32 |
<li><span class="wpf-wn-label"><?php _e("Multi-board system:", 'wpforo') ?></span> <?php _e("Allows to create multiple separate forum boards in the same WordPress website. You can create fully separate forums in different pages,", 'wpforo') ?></li> |
| 33 |
<li><span class="wpf-wn-label"><?php _e("Multi-language forums:", 'wpforo') ?></span> <?php _e("Using the multi-board system you can create multiple separate forums for each language of your website. The forums will have different pages, categories and threads,", 'wpforo') ?></li> |
| 34 |
<li><span class="wpf-wn-label"><?php _e("New Forum Theme:", 'wpforo') ?></span> <?php _e("The new version comes with completely redesigned forum layouts and style. It brings modern and clean look and feel for all 4 forum layouts (Extended, Simplified, Q&A and Threaded),", 'wpforo') ?></li> |
| 35 |
<li><span class="wpf-wn-label"><?php _e("New Member Profile System:", 'wpforo') ?></span> <?php _e("wpForo 2 comes with more powerful member profile system with awesome design, so in most cases you won't need to use other profile builder plugins,", 'wpforo') ?></li> |
| 36 |
<li><span class="wpf-wn-label"><?php _e("Topic Overview:", 'wpforo') ?></span> <?php _e("You can see a small panel on the top of all topics, which provides lots of quick information about the topic. Different statistic information and a shorthand tree of the whole topic with discussion threads and nested replies in one place. This makes it very quick find the posts you need in the topic,", 'wpforo') ?></li> |
| 37 |
<li><span class="wpf-wn-label"><?php _e("And lots of more:", 'wpforo') ?></span> <a href="https://wpforo.com/community/wpforo-announcements/wpforo-2-0-1-is-released/" target="_blank"><?php _e("wpForo 2 release summary", 'wpforo') ?> »</a></li> |
| 38 |
</ul> |
| 39 |
</div> |
| 40 |
<div style="float:right; vertical-align:top; padding-right:0; width:150px; text-align:right; padding-top:20px;"> |
| 41 |
<img class="wpforo-dashboard-logo" src="<?php echo WPFORO_URL ?>/assets/images/wpforo-logo.png" alt="wpforo logo"> |
| 42 |
<p style="font-size:11px; color:#B1B1B1; font-style:italic; text-align:right; line-height:14px; padding-top:15px; margin:0;"> |
| 43 |
<?php _e( 'Thank you!<br> Sincerely yours,<br> gVectors Team', 'wpforo' ); ?> |
| 44 |
</p> |
| 45 |
</div> |
| 46 |
<div style="clear:both;"></div> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
</div><!-- widget / postbox --> |
| 50 |
|
| 51 |
</div> |
| 52 |
</div> |
| 53 |
|
| 54 |
<?php if( current_user_can( 'administrator' ) || current_user_can( 'editor' ) || current_user_can( 'author' ) ): ?> |
| 55 |
<div class="postbox-container" style="width: 100%;"> |
| 56 |
<div class="wpf-box-wrap"> |
| 57 |
|
| 58 |
<div class="postbox wpf-dash-box" id="wpforo_dashboard_widget_server"> |
| 59 |
<h2 class="wpf-box-header"><span><?php _e( 'Server Information', 'wpforo' ); ?></span></h2> |
| 60 |
<div class="inside"> |
| 61 |
<div class="main"> |
| 62 |
<table style="width:98%; margin:0 auto; text-align:left;"> |
| 63 |
<tr class="wpf-dw-tr"> |
| 64 |
<td class="wpf-dw-td">USER AGENT</td> |
| 65 |
<td class="wpf-dw-td-value"><?php echo esc_html( $_SERVER['HTTP_USER_AGENT'] ) ?></td> |
| 66 |
</tr> |
| 67 |
<tr class="wpf-dw-tr"> |
| 68 |
<td class="wpf-dw-td">Web Server</td> |
| 69 |
<td class="wpf-dw-td-value"><?php echo esc_html( $_SERVER['SERVER_SOFTWARE'] ) ?></td> |
| 70 |
</tr> |
| 71 |
<tr class="wpf-dw-tr"> |
| 72 |
<td class="wpf-dw-td">PHP Version</td> |
| 73 |
<td class="wpf-dw-td-value"><?php echo phpversion(); ?></td> |
| 74 |
</tr> |
| 75 |
<tr class="wpf-dw-tr"> |
| 76 |
<td class="wpf-dw-td">MySQL Version</td> |
| 77 |
<td class="wpf-dw-td-value"><?php echo WPF()->db->get_var( "SELECT VERSION()" ); ?></td> |
| 78 |
</tr> |
| 79 |
<tr class="wpf-dw-tr"> |
| 80 |
<td class="wpf-dw-td">PHP Max Post Size</td> |
| 81 |
<td class="wpf-dw-td-value"><?php echo ini_get( 'post_max_size' ); ?></td> |
| 82 |
</tr> |
| 83 |
<tr class="wpf-dw-tr"> |
| 84 |
<td class="wpf-dw-td">PHP Max Upload Size</td> |
| 85 |
<td class="wpf-dw-td-value"><?php echo ini_get( 'upload_max_filesize' ); ?></td> |
| 86 |
</tr> |
| 87 |
<tr class="wpf-dw-tr"> |
| 88 |
<td class="wpf-dw-td">PHP Memory Limit</td> |
| 89 |
<td class="wpf-dw-td-value"><?php echo ini_get( 'memory_limit' ); ?></td> |
| 90 |
</tr> |
| 91 |
<tr class="wpf-dw-tr"> |
| 92 |
<td class="wpf-dw-td">PHP DateTime Class</td> |
| 93 |
<td class="wpf-dw-td-value" style="line-height: 18px!important;"> |
| 94 |
<?php echo ( class_exists( 'DateTime' ) && class_exists( 'DateTimeZone' ) && method_exists( 'DateTime', 'setTimestamp' ) ) ? '<span class="wpf-green">' . __( 'Available', 'wpforo' ) . '</span>' : '<span class="wpf-red">' . __( |
| 95 |
'The setTimestamp() method of PHP DateTime class is not available. Please make sure you use PHP 5.4 and higher version on your hosting service.', |
| 96 |
'wpforo' |
| 97 |
) . '</span> | <a href="http://php.net/manual/en/datetime.settimestamp.php" target="_blank">more info»</a>'; ?> </td> |
| 98 |
</tr> |
| 99 |
<?php do_action( 'wpforo_dashboard_widget_server' ) ?> |
| 100 |
</table> |
| 101 |
</div> |
| 102 |
</div> |
| 103 |
</div><!-- widget / postbox --> |
| 104 |
|
| 105 |
<?php if( wpforo_current_user_is( 'admin' ) ) : ?> |
| 106 |
<div class="postbox wpf-dash-box" id="wpforo_dashboard_widget_0" style="min-width: 250px; width: 290px"> |
| 107 |
<h2 class="wpf-box-header"><span><?php _e( 'General Maintenance', 'wpforo' ); ?></span></h2> |
| 108 |
<p class="wpf-info" style="padding:10px;"><?php _e( "This process may take a few seconds or dozens of minutes, please be patient and don't close this page. If you got 500 Server Error please don't worry, the data updating process is still working in MySQL server.", 'wpforo' ); ?></p> |
| 109 |
<div class="inside"> |
| 110 |
<div class="main"> |
| 111 |
|
| 112 |
<div style="width:100%; padding:7px;"> |
| 113 |
<?php |
| 114 |
$synch_user_profiles = wp_nonce_url( admin_url( 'admin.php?page=wpforo-overview&wpfaction=synch_user_profiles' ), 'wpforo_synch_user_profiles' ); |
| 115 |
$reset_users_stat_url = wp_nonce_url( admin_url( 'admin.php?page=wpforo-overview&wpfaction=reset_users_stats' ), 'wpforo_reset_users_stat' ); |
| 116 |
$reset_user_cache = wp_nonce_url( admin_url( 'admin.php?page=wpforo-overview&wpfaction=reset_user_cache' ), 'wpforo_reset_user_cache' ); |
| 117 |
?> |
| 118 |
<a href="<?php echo esc_url( (string) $reset_users_stat_url ); ?>" style="min-width:160px; margin-bottom:10px; text-align:center;" class="button button-secondary"><?php _e( 'Update Users Statistic', 'wpforo' ); ?></a> |
| 119 |
<a href="<?php echo esc_url( (string) $reset_user_cache ); ?>" style="min-width:160px; margin-bottom:10px; text-align:center;" class="button button-secondary"><?php _e( 'Delete User Cache', 'wpforo' ); ?></a> |
| 120 |
<a href="<?php echo esc_url( (string) $synch_user_profiles ); ?>" style="min-width:160px; margin-bottom:10px; text-align:center;" class="button button-secondary"><?php _e( 'Synch User Profiles', 'wpforo' ); ?></a> |
| 121 |
</div> |
| 122 |
|
| 123 |
</div> |
| 124 |
</div> |
| 125 |
</div><!-- widget / postbox --> |
| 126 |
<?php endif ?> |
| 127 |
|
| 128 |
<div class="postbox wpf-dash-box" id="wpforo_dashboard_widget_1" style="min-width: 250px;"> |
| 129 |
<h2 class="wpf-box-header"><span><?php _e( 'General Information', 'wpforo' ); ?></span></h2> |
| 130 |
<div class="inside"> |
| 131 |
<div class="main"> |
| 132 |
<ul> |
| 133 |
<li class="post-count"><?php _e( 'You are currently running', 'wpforo' ); ?> wpForo <?php echo esc_html( WPFORO_VERSION ) ?></li> |
| 134 |
<li class="page-count"><?php _e( 'Current active theme', 'wpforo' ); ?>: <?php echo WPF()->tpl->theme ?></li> |
| 135 |
<li class="page-count"><?php _e( 'wpForo Community', 'wpforo' ); ?>: <a href="https://wpforo.com/community/">https://wpforo.com/community/</a></li> |
| 136 |
<li class="page-count"><?php _e( 'wpForo Documentation', 'wpforo' ); ?>: <a href="https://wpforo.com/docs/">https://wpforo.com/docs/</a></li> |
| 137 |
</ul> |
| 138 |
</div> |
| 139 |
</div> |
| 140 |
</div><!-- widget / postbox --> |
| 141 |
|
| 142 |
<?php do_action( 'wpforo_dashboard_widgets_col1' ); ?> |
| 143 |
|
| 144 |
</div><!-- normal-sortables --> |
| 145 |
</div><!-- wpforo_postbox_container --> |
| 146 |
<?php endif; ?> |
| 147 |
|
| 148 |
<div class="postbox-container" id="postbox-container-3"> |
| 149 |
<div class="wpf-box-wrap"> |
| 150 |
|
| 151 |
<?php do_action( 'wpforo_dashboard_widgets_col3', WPF() ); ?> |
| 152 |
|
| 153 |
</div><!-- normal-sortables --> |
| 154 |
</div><!-- wpforo_postbox_container --> |
| 155 |
|
| 156 |
</div><!-- dashboard-widgets --> |
| 157 |
</div><!-- dashboard-widgets-wrap --> |
| 158 |
|
| 159 |
</div><!-- wpwrap --> |
| 160 |
|
| 161 |
|