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 | |
/** | |
* Datebox +18 xprofile field type. | |
* | |
* @since BuddyPress (2.0.1) | |
* @author bi0xid | |
*/ | |
class BP_XProfile_Field_Type_Datebox18 extends BP_XProfile_Field_Type { |
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 | |
@unlink(__FILE__); | |
// Validate if the request is from Softaculous | |
if($_REQUEST['pass'] != 'mv8gdj4ohqfxpu34yj5ursupfabcmvdm'){ // your password here | |
die("Unauthorized Access"); | |
} | |
require('wp-blog-header.php'); | |
require('wp-includes/pluggable.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
<?php if ( jetpack_is_mobile() ) // if is mobile ?> | |
<?php else : | |
if (function_exists('is_amp_endpoint')) : //if is AMP | |
if (is_amp_endpoint()) : ?> | |
<?php else : // !is_amp_endpoint() ?> | |
<!-- DESKTOP ADS --> |
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
git clone https://github.com/wpcomvip/xxxxx.git www/xxxxx/public_html/wp-content | |
git clone git@github.com:Automattic/vip-go-mu-plugins.git --recursive www/xxxxx/public_html/wp-content/mu-plugins/ | |
wp user create bi0xid raven@bi0xid.es --role=administrator |
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
SELECT DISTINCT us.ID, us.user_login, us.user_email, umeta.meta_value, umeta2.meta_value FROM wparl_users as us, wparl_usermeta as umeta, wparl_usermeta as umeta2 WHERE umeta.meta_key = 'first_name' AND umeta2.meta_key = 'last_name' AND umeta.user_id = us.ID AND umeta2.user_id = us.ID AND ( user_email = 'xxxxxx' | |
OR user_email = 'xxxxxxx' | |
OR user_email = 'xxxxxxxx'); |
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
sudo find . -type d -exec chmod 755 {} \; | |
sudo find . -type f -exec chmod 644 {} \; |
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
select host, user, password from mysql.user; | |
create database **********; | |
show databases; | |
create user '*******'@'%' identified by '**********'; | |
grant all privileges on *********.* to '**********'@'%' identified by '**********'; | |
flush privileges; | |
mysqldump -u root -p database > database.sql | |
mysql -u root -p wp_users < wp_users.sql |
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
Homebrew build logs for mysql on macOS 10.12.3 | |
Build date: 2017-03-08 13:44:23 |
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
SELECT SQL_CALC_FOUND_ROWS | |
a.`id_order`, `reference`, `total_paid_tax_incl`, `payment`, a.`date_add` AS `date_add` | |
, | |
a.id_currency, | |
a.id_order AS id_pdf, | |
CONCAT(c.`firstname`,' ', c.`lastname`) AS `customer`, | |
c.email as email, | |
osl.`name` AS `osname`, | |
os.`color`, | |
IF((SELECT so.id_order FROM `ps_orders` so WHERE so.id_customer = a.id_customer AND so.id_order < a.id_order LIMIT 1) > 0, 0, 1) as new, |
NewerOlder