$data['geographical_tags'] = array_map(function($tag) {
return [
'name' => $tag->name,
'link' => get_term_link($tag),
];
}, $geographical_tags);
// tg call
$data['tg'] = [
'image_bg' => carbon_get_theme_option('tgbp_image_bg'),
'image_icon' => carbon_get_theme_option('tgbp_image_icon'),
'title' => carbon_get_theme_option('tgbp_title'),
'text' => carbon_get_theme_option('tgbp_text'),
'btn_text' => carbon_get_theme_option('tgbp_btn_text'),
'btn_url' => carbon_get_theme_option('tgbp_btn_url'),
];
// Get list posts
$index_tags = wp_get_post_terms($data['page']->ID, 'index_tag');
$indtag_id = $index_tags[0]->term_id;
// Get list posts
$posts_objects = new WP_Query([
'posts_per_page' => 3,
'post_type' => 'post',
'tax_query' => array(
array(
'taxonomy' => 'index_tag',
'field' => 'term_id',
'terms' => array( $indtag_id )
)
),
'post__not_in' => array( $data['page']->ID )
]);
$posts = $posts_objects->get_posts();
$data['posts'] = $posts;
if ($data['posts']) {
foreach ($data['posts'] as $key => $post) {
$data['geographical_tags'] = array_map(function($tag) {
return [
'name' => $tag->name,
'link' => get_term_link($tag),
];
}, $geographical_tags);
// tg call
$data['tg'] = [
'image_bg' => carbon_get_theme_option('tgbp_image_bg'),
'image_icon' => carbon_get_theme_option('tgbp_image_icon'),
'title' => carbon_get_theme_option('tgbp_title'),
'text' => carbon_get_theme_option('tgbp_text'),
'btn_text' => carbon_get_theme_option('tgbp_btn_text'),
'btn_url' => carbon_get_theme_option('tgbp_btn_url'),
];
// Get list posts
$index_tags = wp_get_post_terms($data['page']->ID, 'index_tag');
$indtag_id = $index_tags[0]->term_id;
// Get list posts
$posts_objects = new WP_Query([
'posts_per_page' => 3,
'post_type' => 'post',
'tax_query' => array(
array(
'taxonomy' => 'index_tag',
'field' => 'term_id',
'terms' => array( $indtag_id )
)
),
'post__not_in' => array( $data['page']->ID )
]);
$posts = $posts_objects->get_posts();
$data['posts'] = $posts;
if ($data['posts']) {
foreach ($data['posts'] as $key => $post) {
}
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;
}
<?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';
}
<?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';
Key | Value |
__ddg1_ | mfMxHWjeAlOHEn0upvi3 |
__ddg10_ | 1750409726 |
uMKgbAtUhXYZJ | FGH5Q6 |
bs_ERPLe | b43GiSTnB0H |
sLPDqcSVxvom | a53Z7LckOfiQbC |
__ddg9_ | 216.73.216.9 |
__ddg8_ | tIlN2BR90bjJlcRj |
lhbwLUBceT | ZCdM3W |
Key | Value |
SERVER_SOFTWARE | nginx/1.26.1 |
REQUEST_URI | /2022/10/kak-nastroit-nextcloud-server-i-provesti-ego-integratsiyu-s-ldap/ |
USER | mclouds_ru_usr |
HOME | /var/www/mclouds_ru_usr/data |
HTTP_DDG_CONNECTING_IP | 216.73.216.9 |
HTTP_COOKIE | __ddg1_=mfMxHWjeAlOHEn0upvi3; __ddg10_=1750409726; uMKgbAtUhXYZJ=FGH5Q6; bs_ERPLe=b43GiSTnB0H; sLPDqcSVxvom=a53Z7LckOfiQbC; __ddg9_=216.73.216.9; __ddg8_=tIlN2BR90bjJlcRj; lhbwLUBceT=ZCdM3W |
HTTP_REFERER | https://mclouds.ru/2022/10/kak-nastroit-nextcloud-server-i-provesti-ego-integratsiyu-s-ldap |
HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_ACCEPT | */* |
HTTP_X_FORWARDED_PORT | 443 |
HTTP_X_FORWARDED_HOST | mclouds.ru |
HTTP_X_FORWARDED_PROTO | https |
HTTP_X_FORWARDED_FOR | 216.73.216.9, 216.73.216.9 |
HTTP_X_REAL_IP | 216.73.216.9 |
HTTP_HOST | mclouds.ru |
HTTP_CONNECTION | upgrade |
SCRIPT_FILENAME | /var/www/mclouds_ru_usr/data/www/mclouds.ru/index.php |
REDIRECT_STATUS | 200 |
SERVER_NAME | mclouds.ru |
SERVER_PORT | 443 |
SERVER_ADDR | 192.168.100.98 |
REMOTE_PORT | 45612 |
REMOTE_ADDR | 192.168.100.2 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /var/www/mclouds_ru_usr/data/www/mclouds.ru |
DOCUMENT_URI | /index.php |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1750409727.0759 |
REQUEST_TIME | 1750409727 |
argv | Array ( ) |
argc | 0 |
Key | Value |
USER | mclouds_ru_usr |
HOME | /var/www/mclouds_ru_usr/data |
HTTP_DDG_CONNECTING_IP | 216.73.216.9 |
HTTP_COOKIE | __ddg1_=mfMxHWjeAlOHEn0upvi3; __ddg10_=1750409726; uMKgbAtUhXYZJ=FGH5Q6; bs_ERPLe=b43GiSTnB0H; sLPDqcSVxvom=a53Z7LckOfiQbC; __ddg9_=216.73.216.9; __ddg8_=tIlN2BR90bjJlcRj; lhbwLUBceT=ZCdM3W |
HTTP_REFERER | https://mclouds.ru/2022/10/kak-nastroit-nextcloud-server-i-provesti-ego-integratsiyu-s-ldap |
HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_ACCEPT | */* |
HTTP_X_FORWARDED_PORT | 443 |
HTTP_X_FORWARDED_HOST | mclouds.ru |
HTTP_X_FORWARDED_PROTO | https |
HTTP_X_FORWARDED_FOR | 216.73.216.9, 216.73.216.9 |
HTTP_X_REAL_IP | 216.73.216.9 |
HTTP_HOST | mclouds.ru |
HTTP_CONNECTION | upgrade |
SCRIPT_FILENAME | /var/www/mclouds_ru_usr/data/www/mclouds.ru/index.php |
REDIRECT_STATUS | 200 |
SERVER_NAME | mclouds.ru |
SERVER_PORT | 443 |
SERVER_ADDR | 192.168.100.98 |
REMOTE_PORT | 45612 |
REMOTE_ADDR | 192.168.100.2 |
SERVER_SOFTWARE | nginx/1.26.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /var/www/mclouds_ru_usr/data/www/mclouds.ru |
DOCUMENT_URI | /index.php |
REQUEST_URI | /2022/10/kak-nastroit-nextcloud-server-i-provesti-ego-integratsiyu-s-ldap/ |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1750409727.0759 |
REQUEST_TIME | 1750409727 |
argv | Array ( ) |
argc | 0 |