gistfile1.txtSecRequestBodyAccess On SecResponseBodyAccess On SecResponseBodyLimitAction ProcessPartial SecResponseBodyMimeType text/xml <FilesMatch "xmlrpc.php"> # Block brute force attempts using xmlrpc.php as the vector # Increment our counter when the xmlrpc API indicates a failure SecRule REQUEST_BODY "wp.getUsersBlogs" "id:13504,deny,chain,status:406, phase:4,t:none,t:urlDecode,chain,deny, msg:’xmlrpc.php call failures triggered temporary block’" SecRule RESOURCE:xmlrpc_bf_block "@gt 0" SecRule RESPONSE_BODY "faultString" "id:13505,nolog, phase:4,t:none,t:urlDecode, setvar:RESOURCE.xmlrpc_bf_counter=+1, deprecatevar:RESOURCE.xmlrpc_bf_counter=1/300" SecRule RESOURCE:xmlrpc_bf_counter […]

Jobify TGMPA Bug Fix, replace the contents of /inc/tgmpa/class-tgm-plugin-activation.php with the code below

gistfile1.txt<?php /** * Plugin installation and activation for WordPress themes. * * @package TGM-Plugin-Activation * @version 2.4.0 * @author Thomas Griffin <thomasgriffinmedia.com> * @author Gary Jones <gamajo.com> * @copyright Copyright (c) 2012, Thomas Griffin * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later * @link https://github.com/thomasgriffin/TGM-Plugin-Activation */ /* Copyright 2014 Thomas Griffin (thomasgriffinmedia.com) This program is free […]

Pods form display/output user meta field (using label) when not added under User in Pods

gistfile1.php $user = wp_get_current_user(); $pod = pods(‘user’, $user->ID); $out = $pod->form(array( ‘first_name’ => array( ‘label’ => ‘First name’, ‘type’ => ‘text’, ‘options’ => array( ‘required’ => true, ), ), ‘last_name’ => array( ‘label’ => ‘Last name’, ‘type’ => ‘text’, ‘options’ => array( ‘required’ => true, ), ), ‘user_email’, ‘gsm’, ));

Pods Frontend Shortcode to display Custom Post Type for current user

gistfile1.php// Shortcode can be added like this // [pods_by_current_user_cpt name="document" template="Document Template"] // // Supports all shortcode attributes from standard PODS shortcode: // http://pods.io/docs/learn/shortcodes/pods/ add_shortcode( ‘pods_by_current_user_cpt’, ‘pods_by_current_user_cpt’ ); function pods_by_current_user_cpt( $atts, $content = null ) { $current_user = wp_get_current_user(); $user_id = $current_user->ID; $atts[‘where’] = ‘post_author = ‘ . (int) $user_id; return pods_shortcode( $atts, $content ); […]

RCP Price Table Template for Jobify

price-table-rcp.php<h2 style="margin-bottom: 0px;"> <span class="rcp_price" rel="<?php echo esc_attr( $level->price ); ?>"> <?php if ($level->fee) { $adjusted_price = (($level->price)+($level->fee)); echo $adjusted_price > 0 ? rcp_currency_filter( $adjusted_price ) : __( ‘free’, ‘jobify’ ); ?> </h2> <small>*<?php echo rcp_currency_filter( $level->price ); ?> after first <?php echo $level->duration; ?> days.</small> <?php } else { $adjusted_price = $level->price; echo $adjusted_price […]

gistfile1.txt<Response> <Hangup schedule="900"/> <Wait length="2"/> <Speak voice="WOMAN" language="en-US"> Thank you for calling the T P V Secure Terminaal. For your protection and quality assurance, this call will be recorded. </Speak> <Redirect>http://tpv.st/tel/app/8/step/1</Redirect> </Response>

smartadmin-ajaxcall // LOAD AJAX PAGES function loadURL(url, container) { $.ajax({ type: "GET", url: url, dataType: ‘html’, cache: true, beforeSend: function(){ container.html(‘<h1><i class="fa fa-cog fa-spin"></i> Loading…</h1>’).fadeIn(‘fast’); }, success: function (data) { container.html(data).fadeIn(‘slow’); drawBreadCrumb(); // console.log("ajax request successful") }, error: function (xhr, ajaxOptions, thrownError) { container.html(‘<h4 style="margin-top:10px; display:block; text-align:left"><i class="fa fa-warning txt-color-orangeDark"></i> Error 404! Page not found.</h4>’); […]

gistfile1.txt<Response> <Speak>Next recording! Yay you made it!</Speak> <Speak>Thats so fucking cool im so glad we switched</Speak> <Wait length="3" /> <Speak>3 seconds of silence could do you good. Now some music.</Speak> <Play>http://com.twilio.music.classical.s3.amazonaws.com/Mellotroniac_-_Flight_Of_Young_Hearts_Flute.mp3</Play> </Response>