403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/forum/wp-content/plugins/gd-bbpress-tools/code/mods/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/forum/wp-content/plugins/gd-bbpress-tools/code/mods/views.php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class GDBTOModViews {
	public $views;

	public function __construct( $views ) {
		$this->views = $views;

		add_action( 'bbtoolbox_core', array( $this, 'register_views' ) );
	}

	public function register_views() {
		foreach ( $this->views as $view => $args ) {
			if ( $args['active'] == 1 ) {
				$fnc = '_view_' . $view;
				$this->$fnc( $args );
			}
		}
	}

	private function _view_mostreplies( $args ) {
		bbp_register_view(
			'most-replies',
			__( 'Topics with most replies', 'gd-bbpress-tools' ),
			array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num' ),
			false );
	}

	private function _view_latesttopics( $args ) {
		bbp_register_view(
			'latest-topics',
			__( 'Latest topics', 'gd-bbpress-tools' ),
			array( 'orderby' => 'post_date' ),
			false );
	}

	private function _view_topicsfreshness( $args ) {
		bbp_register_view(
			'topics-freshness',
			__( 'Topics Freshness', 'gd-bbpress-tools' ),
			array(
				'orderby'     => 'meta_value',
				'order'       => 'DESC',
				'meta_key'    => '_bbp_last_active_time',
				'post_status' => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ),
				'post_type'   => bbp_get_topic_post_type(),
			),
			false );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit