HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/nudepix.eu/public_html/wp-content/plugins/wangguard/wangguard-stats.php
<?php
//WangGuard Wizard
function wangguard_stats() {
	global $wpdb,$wangguard_nonce, $wangguard_api_key;
	if ( defined('WANGGUARD_API_HOST') ) {$wangguard_api_host = WANGGUARD_API_HOST;}
	if ( defined('WANGGUARD_REST_PATH') ) {$wangguard_rest_path = WANGGUARD_REST_PATH;}
	if ( !current_user_can('level_10') )
		die(__('Cheatin&#8217; uh?', 'wangguard'));
	$lang = substr(WPLANG, 0,2);
	?>
<div class="wrap" id="wangguard-stats-cont">
	<div class="wangguard-confico"><img src="<?php echo WP_PLUGIN_URL ?>/wangguard/img/stats.png" alt="<?php echo htmlentities(__('WangGuard Stats', 'wangguard')) ?>" /></div>
	<div class="icon32" id="icon-wangguard"><br></div>
	<h2><?php _e('WangGuard Stats', 'wangguard'); ?></h2>
	<script type="text/javascript">
		jQuery(document).ready(function () {
			var WGURL = "http://<?php echo $wangguard_api_host . $wangguard_rest_path?>";
			var WGstatsLast7URL = WGURL + "get-stat.php?wg="+ encodeURIComponent('<in><apikey><?php echo $wangguard_api_key?></apikey><last7>1</last7><lang><?php echo $lang?></lang></in>');
			var WGstatsLast30URL = WGURL + "get-stat.php?wg="+ encodeURIComponent('<in><apikey><?php echo $wangguard_api_key?></apikey><last30>1</last30><lang><?php echo $lang?></lang></in>');
			var WGstatsLast6URL = WGURL + "get-stat.php?wg="+ encodeURIComponent('<in><apikey><?php echo $wangguard_api_key?></apikey><last6>1</last6><lang><?php echo $lang?></lang></in>');
			jQuery.ajax({
				dataType: "jsonp",
				url: WGstatsLast30URL,
				jsonpCallback: "callback",
				success: function (data) {
						jQuery("#wangguard-stats-last30-container").wijbarchart(data);
						jQuery.ajax({
							dataType: "jsonp",
							url: WGstatsLast6URL,
							jsonpCallback: "callback",
							success: function (data) {
									jQuery("#wangguard-stats-last6-container").wijbarchart(data);
								}
						});
					}
			});
		});
	</script>
	<div id="wangguard-stats-container">
		<h2><?php _e( 'Last 30 days' , 'wangguard' )?></h2>
		<div id="wangguard-stats-last30-container" class="ui-widget ui-widget-content ui-corner-all"></div>
		<h2><?php _e( 'Last 6 months' , 'wangguard' )?></h2>
		<div id="wangguard-stats-last6-container" class="ui-widget ui-widget-content ui-corner-all"></div>
	</div>		
</div>
<?php
}
?>