HEX
Server: nginx/1.28.3
System: Linux VM-0-7-opencloudos 6.6.117-45.oc9.x86_64 #1 SMP Thu Dec 4 10:26:39 CST 2025 x86_64
User: www (1000)
PHP: 8.2.28
Disabled: 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
Upload Files
File: /www/wwwroot/www.213n.cn/wp-content/themes/rk-blogger/index.php
<?php

/**
* The main template file
* Author: 闪电博
* Author URI: https://www.wbolt.com/
* Requires PHP: 7.0.0
*/

get_header();
?>

<div class="container container-index pw">
	<div class="main main-list">
		<?php if (have_posts()) : ?>
			<div class="articles-list<?php echo get_list_mode_class(); ?>" id="J_postList">
			<?php
			$post_index = 0;
			$ad_index = has_list_class() ? rand(3, 8) : -1;

			while (have_posts()) : the_post();
				get_template_part('template-parts/content', get_post_format());
				if ($post_index == $ad_index) {
					get_template_part('template-parts/content', 'list-ad');
				}
				$post_index++;
			endwhile;

		else :
			get_template_part('template-parts/content', 'none');

		endif;
			?>
			</div>

			<div class="loading-bar"></div>
			<?php
			wbolt_the_posts_pagination();
			?>
	</div>
	<?php get_sidebar(); ?>
</div>

<?php get_footer(); ?>