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 escapeAndEvade($input, $required, $datatype, $removed, $allowed, $whitespace ){ | |
if($input != NULL){ | |
switch($allowed){ | |
case "formatting": | |
$allowed = "<h1><h2><h3><h4><h5<h6><br><b><i><strong><em><del><cite><code><pre><s><blockquote><ins><p><q>"; | |
break; | |
case "none": | |
$allowed = ""; | |
break; |
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
// Confirm email | |
// admin/subscriberlib2.php | |
// LINE 236: | |
# subscribe to the lists | |
$lists = '<ul>'; | |
if (isset($_POST['list']) && is_array($_POST["list"])) { | |
while(list($key,$val)= each($_POST["list"])) { | |
if ($val == "signup") { | |
$key = sprintf('%d',$key); |
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(!function_exists('cap_add_email_privacy_field')){ | |
function cap_add_email_privacy_field( $fields_to_return, $groups ) { | |
//echo '<pre>'; | |
//print_r($fields_to_return); | |
//echo '</pre>'; | |
if ( in_array( 'all', $groups ) || in_array( 'contact-info', $groups ) ) { | |
$fields_to_return['email_privacy'] = array( | |
'group' => 'contact-info', |
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
===FREE Email Providers=== | |
gmail.com | |
yahoo.com | |
aol.com | |
aim.com | |
ymail.com | |
rocketmail.com | |
hotmail.com | |
live.com | |
outlook.com |
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 `Column1`,`Column2`,COUNT(*) as count FROM `TABLE` GROUP BY `COLUMN1` ORDER BY `X` ASC, `count` DESC |
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
#REPLACED BY https://gist.github.com/alpha1/60864ec6bb95369cc2556c0165a51627 | |
adduser NAME | |
#add a hostname | |
hostname MYSITE | |
sudo add-apt-repository ppa:certbot/certbot | |
sudo apt update && apt-get dist-upgrade; | |
sudo apt install openssh-server openssh-sftp-server ssh ssh-import-id ncurses-term git net-tools mc whois tree mtr htop unzip mosh curl p7zip fail2ban traceroute iotop clamav ssmtp mailutils cifs-utils software-propeties-common python-certbot-apache | |
#firewall | |
ufw enable && ufw allow 22 && ufw allow 80 && ufw allow 8080 && ufw allow 443 & ufw allow 5901 && ufw logging on |
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
New Domain Setup | |
- Setup DNS for site | |
- Setup DNS for subdomains | |
- Setup DNS for email | |
- Complete google site verification | |
- Setup abuse@domain https://support.google.com/a/answer/33389 | |
- Setup postmaster@domain https://support.google.com/a/answer/33389 | |
- Add to Webmaster Tools | |
- Create Google Analytics Profile | |
- Verify Domain on Sendgrid/Mandrill/Mailchimp |
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
{"0":{"title":"Edit Profile","description":"User Edit Profile","labelPlacement":"top_label","descriptionPlacement":"below","button":{"type":"text","text":"Update","imageUrl":""},"fields":[{"type":"hidden","adminLabel":"","adminOnly":"","allowsPrepopulate":true,"defaultValue":"","description":"","content":"","cssClass":"","errorMessage":"","id":16,"inputName":"saved","isRequired":false,"label":"Hidden Field","noDuplicates":"","size":"medium","postCustomFieldName":"","displayAllCategories":false,"displayCaption":"","displayDescription":"","displayTitle":"","inputType":"","rangeMin":"","rangeMax":"","calendarIconUrl":"","dateFormat":"","phoneFormat":"","defaultCountry":"","defaultProvince":"","defaultState":"","hideAddress2":"","hideCountry":"","hideState":"","inputs":"","nameFormat":"","allowedExtensions":"","captchaType":"","captchaTheme":"","simpleCaptchaSize":"","simpleCaptchaFontColor":"","simpleCaptchaBackgroundColor":"","failed_validation":"","productField":"","enablePasswordInput":"","maxLength":"","ena |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
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 | |
$css = "style=''"; | |
if ( has_post_thumbnail( get_the_ID ) ) : | |
$size = 'large'; // choose size of image to be used | |
$thumb_id = get_post_thumbnail_id(); | |
$thumb_object = wp_get_attachment_image_src($thumb_id, $size, true); | |
$thumb_url = $thumb_object[0]; | |
$css = "background-image:url('$thumb_url'); background-size:cover; background-position:top-center no-repeat;" | |
endif; |
OlderNewer