HEX
Server: nginx/1.22.0
System: Linux iZ2ze74yt1daio6akmwwd9Z 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User: www (1000)
PHP: 7.4.30
Disabled: passthru,exec,system,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
Upload Files
File: /www/wwwroot/doba123.com/wp-content/themes/duba2/sidebar.php
<div class="page-typeright">
                <div class="page-out-box">
                    <h1>我们的服务</h1>
                    <div class="page-typeright-nav">
                        <?php wp_nav_menu( array( 'theme_location' => 's-nav')); ?>
                    </div>
                </div>
                <!-- ./ -->
                <div class="page-out-box">
                    <h1>推荐文章</h1>
                    <ul class="page-typeright-aboutnews">
                    <?php $posts = query_posts('cat=1&showposts=5&order=DESC&orderby=date' . '&paged=' . get_query_var('paged'));if ($posts) : foreach( $posts as $post ) : {?>
                        <li>
                            <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                                <?php echo mb_strimwidth(get_the_title(), 0, 60,"..."); ?>
                            </a>
                        </li>
                    <?php } endforeach; endif; wp_reset_query(); ?>                         
                    </ul>
                </div>
                <!-- ./ -->
                <div class="page-out-box">
                    <h1>可能还想了解</h1>
                    <ul class="page-typeright-serviclist">
                    <?php $posts = query_posts('cat=14&showposts=4&order=DESC&orderby=date' . '&paged=' . get_query_var('paged'));if ($posts) : foreach( $posts as $post ) : {?>
                        <li>                        
                            <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="clearfix">
                                <div class="page-typeright-serviclist-img">
                                    <?php if ( has_post_thumbnail() ) { ?>
                                        <img src="<?php echo wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; ?>" alt="<?php bloginfo('name'); ?>"  alt="<?php the_title(); ?>">
                                    <?php } else {?>
                                        <img src="<?php bloginfo('template_url'); ?>/images/new-p1.jpg"  alt="<?php the_title(); ?>">
                                    <?php } ?>
                                </div>
                                <div class="page-typeright-serviclist-content">
                                    <h3><?php echo mb_strimwidth(get_the_title(), 0, 30,"..."); ?></h3>
                                    <p><?php the_time('Y-m-d'); ?></p>
                                </div>
                            </a>
                        </li>
                        <?php } endforeach; endif; wp_reset_query(); ?>                     
                    </ul>
                </div>
                
            </div>