- Stack trace
- Data
- Cookie
- Session
- Server
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
$posts->param('cat', $tab->term_id);
}
$params = $posts->getParams();
$posts->param('paged', $this->getPaged());
$result = [
'posts' => $posts->get(),
'count' => Post::where()->merge($params)->limit(-1)->count(),
];
$result['pages'] = ceil($result['count'] / $limit);
return $result;
}
public function isCatType()
{
return property_exists($this->object(), 'taxonomy') && $this->object()->taxonomy === 'cat_type';
}
public function getPaged()
{
return max(1, $_GET['pg'] ?? 1);
}
public function paginate($pages)
{
return paginate_links([
'format' => '?pg=%#%',
'prev_next' => false,
'total' => $pages,
'current' => $this->getPaged(),
]);
}
/** 页面查询对象 */
public function object()
{
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
$posts->param('cat', $tab->term_id);
}
$params = $posts->getParams();
$posts->param('paged', $this->getPaged());
$result = [
'posts' => $posts->get(),
'count' => Post::where()->merge($params)->limit(-1)->count(),
];
$result['pages'] = ceil($result['count'] / $limit);
return $result;
}
public function isCatType()
{
return property_exists($this->object(), 'taxonomy') && $this->object()->taxonomy === 'cat_type';
}
public function getPaged()
{
return max(1, $_GET['pg'] ?? 1);
}
public function paginate($pages)
{
return paginate_links([
'format' => '?pg=%#%',
'prev_next' => false,
'total' => $pages,
'current' => $this->getPaged(),
]);
}
/** 页面查询对象 */
public function object()
{
1
2
3
4
5
6
7
8
9
10
11
<?php
get_header();
if (Imon\App::getInstance()->make('archive')->isCatType()) {
get_template_part('templates/pages/archive', 'type');
} else {
get_template_part('templates/pages/archive');
}
get_footer();
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
GET
POST
Files
- SERVER_SOFTWARE
- nginx/1.20.2
- REQUEST_URI
- /date/2022/01/page/2
- USER
- apache
- HOME
- /usr/share/httpd
- HTTP_CONNECTION
- Keep-Alive
- HTTP_HOST
- feibiaotong.cn
- HTTP_ACCEPT_ENCODING
- br,gzip
- HTTP_IF_MODIFIED_SINCE
- Mon, 03 Oct 2022 17:46:25 GMT
- HTTP_ACCEPT_LANGUAGE
- en-US,en;q=0.5
- HTTP_ACCEPT
- text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
- HTTP_USER_AGENT
- CCBot/2.0 (https://commoncrawl.org/faq/)
- REDIRECT_STATUS
- 200
- SERVER_NAME
- www.feibiaotong.cn
- SERVER_PORT
- 443
- SERVER_ADDR
- 172.19.13.57
- REMOTE_PORT
- 47020
- REMOTE_ADDR
- 3.236.70.233
- GATEWAY_INTERFACE
- CGI/1.1
- HTTPS
- on
- REQUEST_SCHEME
- https
- SERVER_PROTOCOL
- HTTP/1.1
- DOCUMENT_ROOT
- /var/www/html/feibiaotong.cn
- DOCUMENT_URI
- /index.php
- SCRIPT_NAME
- /index.php
- CONTENT_LENGTH
- CONTENT_TYPE
- REQUEST_METHOD
- GET
- QUERY_STRING
- SCRIPT_FILENAME
- /var/www/html/feibiaotong.cn/index.php
- FCGI_ROLE
- RESPONDER
- PHP_SELF
- /index.php
- REQUEST_TIME_FLOAT
- 1675465400.7009
- REQUEST_TIME
- 1675465400