If you have access to your system php.ini file, add:
disable_functions = exec,shell_exec,system,passthru,pcntl_exec,proc_open
Then restart Apache.
<?php | |
/** | |
* Defined paths for local/production vs. staging servers | |
* example: http://website.com/main-folder/sub-folder/paths.php | |
* $full_uri: http://website.com/main-folder/sub-folder/paths.php | |
*/ | |
$full_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; | |
$path = dirname($_SERVER[PHP_SELF]); | |
$current_path = substr( $path, strrpos($path,'/') + 1 ); |
admin
user + generate a new password<?php | |
/* | |
Plugin Name: Disable XML-RPC + Pingback | |
Plugin URI: http://www.philerb.com/wp-plugins/ | |
Description: This plugin disables XML-RPC API + pingbacks in WordPress 3.5+, which is enabled by default. 2 WP plugins were combined together to cover all bases. | |
Version: 1.0.0 | |
Author: Eric Rasch | |
Author URI: http://ericrasch.com | |
License: GPLv2 | |
*/ |
source 'https://rubygems.org' | |
gem 'capistrano', '~> 2.15' | |
gem 'capistrano-ext', '~> 1.2.1' | |
gem 'colored', '~> 1.2' |
My personal settings for Sublime Text (Mac). Heavily borrowed from Wes Bos: https://gist.github.com/wesbos/a3b12cfda064a906ac04
To set the key bindings below, goto Sublime Text menu -> Preferences -> Key Bindings - User
, paste the settings from below and save that file.
To set the user preferences below, type ⌘,
in Sublime Text to bring up the Preferences.sublime-settings
file, paste the settings from below and save that file.
<?php | |
/** | |
* Detect + display WordPress template file being used | |
* REF: http://www.wpmayor.com/output-name-of-wordpress-template-file-being-used/#comment-8221 | |
*/ | |
add_action('wp_head', 'show_template'); | |
function show_template() { | |
global $template; | |
global $current_user; |