PluginProbe
wpForo Forum / 3.1.2
wpForo Forum v3.1.2
3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.2 All 137 releases
wpforo / admin / pages / overview.php

overview.php in wpForo Forum 3.1.2, at admin/pages/overview.php

151 lines 11.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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;">&nbsp</h1>
8 <?php WPF()->notice->show() ?>
9
10 <div id="dashboard-widgets-wrap">
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: 15px 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% - 200px);;">
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;">
24 <?php _e( 'Thank you for using wpForo! wpForo is the first 360° AI-powered forum platform for WordPress with revolutionary AI features and Multi-layout template system.
25 The "Extended", "Simplified", "Q&A", "Threaded" and "Boxed" 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.',
26 'wpforo'
27 ); ?>
28 </p>
29 </div>
30 <div style="float:right; vertical-align:top; padding-right:0; width:150px; text-align:right; padding-top:20px;">
31 <img class="wpforo-dashboard-logo" src="<?php echo WPFORO_URL ?>/assets/images/wpforo-logo.png" alt="wpforo logo">
32 <p style="font-size:11px; color:#B1B1B1; font-style:italic; text-align:right; line-height:14px; padding-top:15px; margin:0;">
33 <?php _e( 'Thank you!<br> Sincerely yours,<br> gVectors Team', 'wpforo' ); ?>&nbsp;
34 </p>
35 </div>
36 <div style="clear:both;"></div>
37 </div>
38 </div>
39 </div><!-- widget / postbox -->
40
41 </div>
42 </div>
43
44 <?php if( current_user_can( 'administrator' ) || current_user_can( 'editor' ) || current_user_can( 'author' ) ): ?>
45 <div class="postbox-container" style="width: 100%;">
46 <div class="wpf-box-wrap">
47
48 <div class="postbox wpf-dash-box" id="wpforo_dashboard_widget_server">
49 <h2 class="wpf-box-header"><span><?php _e( 'Server Information', 'wpforo' ); ?></span></h2>
50 <div class="inside">
51 <div class="main">
52 <table style="width:98%; margin:0 auto; text-align:left;">
53 <tr class="wpf-dw-tr">
54 <td class="wpf-dw-td">USER AGENT</td>
55 <td class="wpf-dw-td-value"><?php echo esc_html( $_SERVER['HTTP_USER_AGENT'] ) ?></td>
56 </tr>
57 <tr class="wpf-dw-tr">
58 <td class="wpf-dw-td">Web Server</td>
59 <td class="wpf-dw-td-value"><?php echo esc_html( $_SERVER['SERVER_SOFTWARE'] ) ?></td>
60 </tr>
61 <tr class="wpf-dw-tr">
62 <td class="wpf-dw-td">PHP Version</td>
63 <td class="wpf-dw-td-value"><?php echo phpversion(); ?></td>
64 </tr>
65 <tr class="wpf-dw-tr">
66 <td class="wpf-dw-td">MySQL Version</td>
67 <td class="wpf-dw-td-value"><?php echo WPF()->db->get_var( "SELECT VERSION()" ); ?></td>
68 </tr>
69 <tr class="wpf-dw-tr">
70 <td class="wpf-dw-td">PHP Max Post Size</td>
71 <td class="wpf-dw-td-value"><?php echo ini_get( 'post_max_size' ); ?></td>
72 </tr>
73 <tr class="wpf-dw-tr">
74 <td class="wpf-dw-td">PHP Max Upload Size</td>
75 <td class="wpf-dw-td-value"><?php echo ini_get( 'upload_max_filesize' ); ?></td>
76 </tr>
77 <tr class="wpf-dw-tr">
78 <td class="wpf-dw-td">PHP Memory Limit</td>
79 <td class="wpf-dw-td-value"><?php echo ini_get( 'memory_limit' ); ?></td>
80 </tr>
81 <tr class="wpf-dw-tr">
82 <td class="wpf-dw-td">PHP DateTime Class</td>
83 <td class="wpf-dw-td-value" style="line-height: 18px!important;">
84 <?php echo ( class_exists( 'DateTime' ) && class_exists( 'DateTimeZone' ) && method_exists( 'DateTime', 'setTimestamp' ) ) ? '<span class="wpf-green">' . __( 'Available', 'wpforo' ) . '</span>' : '<span class="wpf-red">' . __(
85 '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.',
86 'wpforo'
87 ) . '</span> | <a href="http://php.net/manual/en/datetime.settimestamp.php" target="_blank">more info&raquo;</a>'; ?> </td>
88 </tr>
89 <?php do_action( 'wpforo_dashboard_widget_server' ) ?>
90 </table>
91 </div>
92 </div>
93 </div><!-- widget / postbox -->
94
95 <?php if( wpforo_current_user_is( 'admin' ) ) : ?>
96 <div class="postbox wpf-dash-box" id="wpforo_dashboard_widget_0" style="min-width: 250px; width: 290px">
97 <h2 class="wpf-box-header"><span><?php _e( 'General Maintenance', 'wpforo' ); ?></span></h2>
98 <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>
99 <div class="inside">
100 <div class="main">
101
102 <div style="width:100%; padding:7px;">
103 <?php
104 $synch_user_profiles = wp_nonce_url( admin_url( 'admin.php?page=wpforo-overview&wpfaction=synch_user_profiles' ), 'wpforo_synch_user_profiles' );
105 $reset_users_stat_url = wp_nonce_url( admin_url( 'admin.php?page=wpforo-overview&wpfaction=reset_users_stats' ), 'wpforo_reset_users_stat' );
106 $reset_user_cache = wp_nonce_url( admin_url( 'admin.php?page=wpforo-overview&wpfaction=reset_user_cache' ), 'wpforo_reset_user_cache' );
107 ?>
108 <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>&nbsp;
109 <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>&nbsp;
110 <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>&nbsp;
111 </div>
112
113 </div>
114 </div>
115 </div><!-- widget / postbox -->
116 <?php endif ?>
117
118 <div class="postbox wpf-dash-box" id="wpforo_dashboard_widget_1" style="min-width: 250px;">
119 <h2 class="wpf-box-header"><span><?php _e( 'General Information', 'wpforo' ); ?></span></h2>
120 <div class="inside">
121 <div class="main">
122 <ul>
123 <li class="post-count"><?php _e( 'You are currently running', 'wpforo' ); ?> wpForo <?php echo esc_html( WPFORO_VERSION ) ?></li>
124 <li class="page-count"><?php _e( 'Current active theme', 'wpforo' ); ?>: <?php echo WPF()->tpl->theme ?></li>
125 <li class="page-count"><?php _e( 'wpForo Community', 'wpforo' ); ?>: <a href="https://wpforo.com/community/">https://wpforo.com/community/</a></li>
126 <li class="page-count"><?php _e( 'wpForo Documentation', 'wpforo' ); ?>: <a href="https://wpforo.com/docs/">https://wpforo.com/docs/</a></li>
127 </ul>
128 </div>
129 </div>
130 </div><!-- widget / postbox -->
131
132 <?php do_action( 'wpforo_dashboard_widgets_col1' ); ?>
133
134 </div><!-- normal-sortables -->
135 </div><!-- wpforo_postbox_container -->
136 <?php endif; ?>
137
138 <div class="postbox-container" id="postbox-container-3">
139 <div class="wpf-box-wrap">
140
141 <?php do_action( 'wpforo_dashboard_widgets_col3', WPF() ); ?>
142
143 </div><!-- normal-sortables -->
144 </div><!-- wpforo_postbox_container -->
145
146 </div><!-- dashboard-widgets -->
147 </div><!-- dashboard-widgets-wrap -->
148
149 </div><!-- wpwrap -->
150
151