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 | |
/** | |
* This script pulls updates from repo and copies to the public directory | |
**/ | |
$output = `cd ~/repo_dir && git pull && cp -r ~/repo_dir/* ~/public_html`; | |
if ( $output ) { | |
$to = 'your@email.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
<?php | |
/** | |
* Authenticate user via the API | |
* | |
* Documentation: | |
* http://www.yourmembership.com/company/api-reference.aspx | |
*/ | |
define( 'API_ENDPOINT', 'https://api.yourmembership.com' ); | |
define( 'API_VERSION', '2.02' ); |
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: SSL Redirect | |
* Description: Redirects a specific page to HTTPS | |
*/ | |
if ( ! function_exists( 'force_https' ) ) { | |
function force_https() { | |
if ( is_page( 'some-page-slug-here' ) && !is_ssl() ) { | |
wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 301 ); | |
exit(); |
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
*.log | |
.htaccess | |
sitemap.xml | |
sitemap.xml.gz | |
wp-config.php | |
wp-includes/* | |
wp-admin/* | |
wp-content/advanced-cache.php | |
wp-content/backup-db/ | |
wp-content/backups/ |