This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Callback function to format numbers with | |
function format_numbers_with_nbsp($content) { | |
// Regular expression pattern to match numbers | |
$pattern = '/\b(\d{1,3}(?:\d{3})*)\b/'; | |
// Replace matched numbers with formatted version | |
$formatted_content = preg_replace_callback($pattern, 'add_nbsp_to_number', $content); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wp-secure.conf | |
# | |
# | |
# This file includes common security considerations for wordpress using nginx. | |
# | |
# The goal is to block actions which are usually dangerous to wordpress. | |
# Additionally, we block direct access to PHP files and folders which should not | |
# be accessed directly from a browser. | |
# | |
# Also have included exceptions for plugins that are known to require this access. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _edaeda(){ | |
curl -v --cookie "p=aaa" https://dobripovar.ru/login/ ; | |
curl -v --cookie "PHPSESSID=xxx" https://dobripovar.ru/ ; | |
curl 'https://dobripovar.ru/index.php?route=checkout/cart/add' -H 'Host: dobripovar.ru' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:55.0) Gecko/20100101 Firefox/55.0' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3' --compressed -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'X-Requested-With: XMLHttpRequest' -H 'Referer: https://dobripovar.ru/pervie-bluda/' -H 'Cookie: PHPSESSID=xxx; language=ru; currency=RUB' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' --data 'product_id=74&quantity=1'; | |
curl 'https://dobripovar.ru/index.php?route=checkout/cart/add' -H 'Host: dobripovar.ru' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:55.0) Gecko/20100101 Firefox/55.0' -H 'Accept: application/json, text/javascript, */*; q= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ModPagespeedDisallow */admin/* | |
ModPagespeedDisallow */wp-admin/* | |
ModPagespeedDisallow */tinymce/* | |
ModPagespeedDisallow */mysql/* | |
ModPagespeedDisallow */tubepress/* | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO `databasename`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('5', 'demo', MD5('demo'), 'Your Name', '[email protected]', 'http://www.test.com/', '2011-06-07 00:00:00', '', '0', 'Your Name'); | |
INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '5', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); | |
INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '5', 'wp_user_level', '10'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER DATABASE 'my_wp_database' CHARACTER SET utf8; | |
ALTER TABLE 'wp_comments' CHARACTER SET utf8; | |
alter table 'wp_comments' change comment_content comment_content LONGTEXT CHARACTER SET utf8; | |
alter table 'wp_comments' change comment_author comment_author LONGTEXT CHARACTER SET utf8; | |
update `wp_posts` set `post_content` = replace(`post_content` ,'á','á'); | |
update `wp_posts` set `post_content` = replace(`post_content` ,'é','é'); | |
update `wp_posts` set `post_content` = replace(`post_content` ,'í©','é'); | |
update `wp_posts` set `post_content` = replace(`post_content` ,'ó','ó'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: MaxSite Russian Date & Russify Comments Number | |
Plugin URI: http://maxsite.org/ | |
Description: Русские даты | |
Version: 1.0 | |
Author: MAX & Alexander Ulizko | |
*/ | |
function maxsite_the_russian_time($tdate = '') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Plugin Name: qTranslate-X Yandex Auto Translator Addon | |
Description: Over 900 lines of code? Rly? | |
Version: 1.0 | |
Author: [email protected] | |
*/ | |
/** | |
* undocumented function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( 'DISALLOW_FILE_EDIT', true ); | |
define( 'DISALLOW_FILE_MODS', true ); |
NewerOlder