<?php
/**
* Plugin
* Descriptionh
* Version
* Author
**/
if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) die('Not allowed to call this page directly.');
add_action( 'init', 'archivedmmm_load_shortcodes' );
function archivedmmm_load_shortcodes ( ) {
wp_enqueue_style('archivedmmm-css', plugins_url('css/style.css', __FILE__));
add_shortcode('archivedmmm_index', 'archivedmmm_index');
}
function archivedmmm_index() {
global $wpdb;
server {
server_name domain.com;
ssl_certificate "/var/www/httpd-cert/www-hydro/domain.com_le1.crtca";
ssl_certificate_key "/var/www/httpd-cert/www-hydro/domain.com_le1.key";
ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
add_header Strict-Transport-Security "max-age=31536000;";
ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
charset UTF-8;
index index.php index.html;
disable_symlinks if_not_owner from=$root_path;
include /etc/nginx/vhosts-includes/*.conf;
include /etc/nginx/vhosts-resources/domain.com/*.conf;
access_log /var/www/httpd-logs/domain.access.log;
error_log /var/www/httpd-logs/domain.error.log notice;
set $root_path /var/www/www-hydro/data/www/domain.com;
root $root_path;
listen 192.168.1.105:443 ssl;
gzip on;
gzip_comp_level 7;
gzip_disable "msie6";
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
location / { try_files $uri $uri/ /index.php?$args ;
}
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f domain@gmail.com";
fastcgi_pass unix:/var/www/php-fpm/www-hydro.sock;
fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
try_files $uri =404;
include fastcgi_params;
}
location ~ ^/(wp-admin|wp-login\.php) {
try_files $uri $uri/ /index.php?$args;
index index.html index.htm index.php;
allow 10.10.10.10;
deny all;
}
location /wp-admin/admin-ajax.php {
allow all;
}
}
вам нужен бэкап системы
Т.е. примерно текст выглядит так :
Текст Текст Текст Текст
Текст Текст Текст Текст
Текст Текст Текст Текст
Текст Текст Текст Текст
И каждый раз приходится проходиться по тексту и удалять лишние строки.