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($) { | |
var timeout = 0; | |
var plugins = []; | |
$('#the-list').find('tr').each(function() { | |
if($(this).is('.plugin-update-tr')) { | |
plugins[plugins.length - 1].update = ($(this).find('.update-message').text().match(/(.* version )([0-9\.]+)(.*)/) || [])[2] | |
} else { | |
var slug = $(this).data('slug'); | |
var p = {}; | |
p.id = slug ? slug : $(this).attr('id'); |
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
### WordPress template | |
*.log | |
.htaccess | |
.htpasswd | |
/license.txt | |
/readme.html | |
/robots.txt | |
sitemap.xml | |
sitemap.xml.gz | |
wp-config.php |
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
#!/bin/bash | |
# Usage | |
# backup.sh path-to-wordpress-folder | |
WPDIR=${1:-www} | |
echo "Making files backup" | |
CurrentDir=${PWD##*/} | |
FILENAME="$CurrentDir ($(date '+%F'))" |
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
<VirtualHost *:80> | |
ServerName template.url | |
ServerAlias www.template.url | |
ServerAdmin template.email | |
DocumentRoot template.webroot | |
<Directory template.webroot/> | |
Options +FollowSymLinks | |
AllowOverride All | |
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
#!/bin/bash | |
# Colors | |
txtred='\e[0;31m' # Red | |
txtgrn='\e[0;32m' # Green | |
txtylw='\e[0;33m' # Yellow | |
txtblu='\e[0;34m' # Blue | |
undred='\e[4;31m' # Red | |
undgrn='\e[4;32m' # Green | |
undylw='\e[4;33m' # Yellow |
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 | |
/** | |
* Usage: | |
* php rm-attack.php [pattern] [directory] | |
* | |
* php rm-attack.php '<?php $ctddbnvbtj' . | |
* | |
* At the end, a report file './report.log' will be generated with the list of files that were modified | |
*/ |
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 () { | |
//setup an array of AJAX options, each object is an index that will specify information for a single AJAX request | |
var ajaxes = [{ url : '<url>', dataType : 'json' }, { url : '<url2>', dataType : 'xml' }], | |
current = 0; | |
//declare your function to run AJAX requests | |
function do_ajax() { | |
//check to make sure there are more requests to make | |
if (current < ajaxes.length) { |
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 | |
$upgrading = time() + 100; | |
?> |
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 | |
function filter_plugin_updates( $value ) { | |
unset( $value->response['wp-popup-magic/wp-popup-magic.php'] ); | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); |
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
var s=document.createElement('script'); | |
s.setAttribute('src','https://code.jquery.com/jquery.js'); | |
document.getElementsByTagName('body')[0].appendChild(s); | |
var issues = {}; | |
(function($){ | |
var issuetable = jQuery('#issuetable'); | |
issuetable.find('tbody > .issuerow').each(function() { | |
var $row = jQuery(this); |
OlderNewer