Skip to content

Instantly share code, notes, and snippets.

View mkeplinger's full-sized avatar

Michael Keplinger mkeplinger

View GitHub Profile
function update_send_pepper($email = FALSE, $options = array()) {
$data = '<contact><Group_Tag name="Contact Information">';
$data .= '<field name="E-Mail">' . $email . '</field>';
if (isset($options['fname'])) {
$data .= '<field name="First Name">' . $options['fname'] . '</field>';
}
if (isset($options['lname'])) {
$data .= '<field name="Last Name">' . $options['lname'] . '</field>';
}
function merge_participant_to_sendpepper($id) {
$detail = $this -> get_participant_detail($id);
$email = $detail['email'];
$options['fname'] = $detail['fname'];
$options['lname'] = $detail['lname'];
$options['address'] = $detail['address'];
$options['address2'] = $detail['address2'];
$('#jq_form_update_address').submit(function(e) {
e.preventDefault();
is_valid = $(this).valid();
if(is_valid == true) {
var data = new Array();
data.push({
"name" : "email",
<div class='moonray_forms moonray_smart_form'>
<form action="https://forms.moon-ray.com/v2.4/form_processor.php?" id="moonray_forms_364" method="post" data-captcha="false">
<input type="hidden" name="uid" value="p2c6505f6" />
<input type="hidden" name="contact_id" id="contact_id_364" value="" />
<input type="hidden" id="afft_364" name="afft_" value="" />
<input type="hidden" id="aff_364" name="aff_" value="" />
<input type="hidden" id="sess_364" name="sess_" value="" />
<input type="hidden" id="ref_364" name="ref_" value="" />
<script type="text/javascript">
var _kmq = _kmq || [];
function _kms(u){
setTimeout(function(){
var s = document.createElement('script'); var f = document.getElementsByTagName('script')[0]; s.type = 'text/javascript'; s.async = true;
s.src = u; f.parentNode.insertBefore(s, f);
}, 1);
}
_kms('//i.kissmetrics.com/i.js');_kms('//doug1izaerwt3.cloudfront.net/322c363303b1d52a87bc56e33ec1a6a798d128fc.1.js');
</script>
@mkeplinger
mkeplinger / gist:2233314
Created March 29, 2012 04:31
smartform
<div class='moonray_forms moonray_smart_form'>
<form action="https://forms.moon-ray.com/v2.4/form_processor.php?" id="moonray_forms_706" method="post" data-captcha="false">
<input type="hidden" name="uid" value="p2c6505f6" />
<input type="hidden" name="contact_id" id="contact_id_706" value="" />
<input type="hidden" id="afft_706" name="afft_" value="" />
<input type="hidden" id="aff_706" name="aff_" value="" />
<input type="hidden" id="sess_706" name="sess_" value="" />
<input type="hidden" id="ref_706" name="ref_" value="" />
<form action="https://forms.moon-ray.com/v2.4/form_processor.php?" id="moonray_forms_318" method="post" data-captcha="false">
<input type="hidden" name="uid" value="p2c6505f4" />
<input type="hidden" name="contact_id" id="contact_id_318" value="" />
<input type="hidden" name="redirect" value="http://thankyou.moon-ray.com" />
<input type="hidden" name="tags" value="11;X;" /> <!-- Where X is one of {10=SuperSize, 13=Slim FX, 14=Stimulant X, 15=Ultra Reps} -->
<!-- for the tags, value="11" is sent with the first email submission, and value="15" is sent when the sharing requirements are met -->
<input type="hidden" name="sequence" value="2;" /> <!-- This number will also be dynamic based on which product the choose -->
<input type="hidden" name="owner_" value="1" />
<input type="hidden" id="afft_318" name="afft_" value="" />
<input type="hidden" id="aff_318" name="aff_" value="" />
#!/bin/bash
ps aux | grep dispatch.fcgi | egrep -v grep | awk '{print $2}' | xargs kill -9