File "flexoptins.php"
Full path: /home5/hallettsvillepow/public_html/wp-content/themes/flexsqueeze151/includes/tinymce/flexoptins.php
File
size: 0.02 KB (20.21 KB bytes)
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
$d = 0; // search depth;
while (!file_exists(str_repeat('../', $d) . 'wp-config.php')) if (++$d > 99) exit;
$wp_config = str_repeat('../', $d) . 'wp-config.php';
require_once($wp_config);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript" type="text/javascript" src="<?php bloginfo('wpurl'); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
<script language="javascript" type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jscolor/jscolor.js"></script>
<script type="text/javascript">
function getCheckedValue(radioObj) {
if(!radioObj)
return "";
var radioLength = radioObj.length;
if(radioLength == undefined)
if(radioObj.checked)
return radioObj.value;
else
return "";
for(var i = 0; i < radioLength; i++) {
if(radioObj[i].checked) {
return radioObj[i].value;
}
}
return "";
}
function insertARForm() {
var hiddeninputs = document.flexarforms.hiddenfields.value;
var formwidth = document.flexarforms.formwidth.value;
var fieldscode1;
var fieldscode2;
var fieldscode3;
var privacy = document.flexarforms.privacy.value;
var submiturl = document.flexarforms.actionfield.value;
var fieldcolor = document.flexarforms.fieldcolor.value;
var fieldborder = document.flexarforms.fieldborder.value;
var fieldtext = document.flexarforms.fieldtext.value;
var btncolor = document.flexarforms.flxclr.value;
var btnhvrcolor = document.flexarforms.flxhvrclr.value;
var btntextcolor = document.flexarforms.flxbtntextclr.value;
var btntexthvrcolor = document.flexarforms.flxbtntexthvrclr.value;
var btnstyle = getCheckedValue(document.getElementsByName('flxstyle'));
var layoutstyle = getCheckedValue(document.getElementsByName('layout'));
var submittext = document.flexarforms.submittext.value;
var namedefaulttext = document.flexarforms.f_name_text.value;
var namename = document.flexarforms.f_name_name.value;
var lnamedefaulttext = document.flexarforms.l_name_text.value;
var lnamename = document.flexarforms.l_name_name.value;
var emaildefaulttext = document.flexarforms.email_text.value;
var emailname = document.flexarforms.email_name.value;
var cfielddefaulttext = document.flexarforms.c_field.value;
var cfieldname = document.flexarforms.c_field_name.value;
var misccode = document.flexarforms.misccode.value;
var buttonurl = document.flexarforms.buttonurl.value;
var buttonwidth = document.flexarforms.btnimgwidth.value;
var btnwidthcode;
var buttoncode;
if(layoutstyle == "vertical") {
fieldmargin = '0 auto 5px auto';
display = 'block';
} else { fieldmargin = '0 8px 5px 0';display = 'inline-block';}
if(buttonwidth == '') { btnwidthcode = formwidth; } else { btnwidthcode = buttonwidth; }
if(btnstyle == "style1") {
btnstyle = 'margin: 5px auto 10px auto;padding: 3px 8px; width: auto; overflow:visible;cursor:pointer;border:1px solid #333;color:#' + btntextcolor + ';font: normal bold 18px/22px Tahoma, Helvetica, Arial;text-shadow: #000 0px 0px 4px;background:#' + btncolor + ' url(<?php bloginfo('template_directory'); ?>/images/submit-btm-dark.png) repeat-x center top;border:1px solid #333;text-shadow: #000 0px 0px 4px;';
}
if(btnstyle == "style2") {
btnstyle = 'margin: 5px auto 10px auto;padding: 3px 8px; width: auto; overflow:visible;cursor:pointer;border:1px solid #333;color:#' + btntextcolor + ';font: normal bold 18px/22px Tahoma, Helvetica, Arial;text-shadow: #000 0px 0px 4px;background:#' + btncolor + ' url(<?php bloginfo('template_directory'); ?>/images/submit-dark.png) repeat-x center;border:1px solid #333;text-shadow: #000 0px 0px 4px;';
}
if(btnstyle == "style3") {
btnstyle = 'margin: 5px auto 10px auto;padding: 3px 8px; width: auto; overflow:visible;cursor:pointer;border:1px solid #333;color:#' + btntextcolor + ';font: normal bold 18px/22px Tahoma, Helvetica, Arial;text-shadow: #000 0px 0px 4px;background:#' + btncolor + ' url(<?php bloginfo('template_directory'); ?>/images/submit-light-top.png) repeat-x center;border:1px solid #333;text-shadow: #000 0px 0px 4px;';
}
if(btnstyle == "style4") {
btnstyle = 'margin: 5px auto 10px auto;padding: 3px 8px; width: auto; overflow:visible;cursor:pointer;border:1px solid #333;color:#' + btntextcolor + ';font: normal 21px/25px Georgia, Times, serif;text-shadow: #000 0px 0px 4px;background:#' + btncolor + ' url(<?php bloginfo('template_directory'); ?>/images/submit-btm-dark.png) repeat-x center top;border:1px solid #333;text-shadow: #000 0px 0px 4px;';
}
if(btnstyle == "style5") {
btnstyle = 'margin: 5px auto 10px auto;padding: 3px 8px; width: auto; overflow:visible;cursor:pointer;border:1px solid #333;color:#' + btntextcolor + ';font: normal 21px/25px Georgia, Times, serif;text-shadow: #000 0px 0px 4px;background:#' + btncolor + ' url(<?php bloginfo('template_directory'); ?>/images/submit-dark.png) repeat-x center;border:1px solid #333;text-shadow: #000 0px 0px 4px;';
}
if(btnstyle == "style6") {
btnstyle = 'margin: 5px auto 10px auto;padding: 3px 8px; width: auto; overflow:visible;cursor:pointer;border:1px solid #333;color:#' + btntextcolor + ';font: normal 21px/25px Georgia, Times, serif;text-shadow: #000 0px 0px 4px;background:#' + btncolor + ' url(<?php bloginfo('template_directory'); ?>/images/submit-light-top.png) repeat-x center;border:1px solid #333;text-shadow: #000 0px 0px 4px;';
}
if(buttonurl == '') {
buttoncode = '<input onmouseover="this.style.backgroundColor=\'#' + btnhvrcolor + '\'; this.style.color=\'#' + btntexthvrcolor + '\';" onmouseout="this.style.backgroundColor=\'#' + btncolor + '\'; this.style.color=\'#' + btntextcolor + '\';" type="submit" name="submit" value="' + submittext + '" style="' + btnstyle + '" />'; }
else {
buttoncode = '<input style="margin:8px auto;width:' + btnwidthcode + 'px;outline:none;" type="image" src="' + buttonurl + '" border="0" alt="Submit" />'; }
if (document.flexarforms.optinfield[0].checked) {
fieldscode1 = '<input type="text" name="' + namename + '" value="' + namedefaulttext + '" style="width: ' + formwidth + 'px; font-size:16px; font-family: tahoma, helvetica, arial; color:#' + fieldtext + ';padding: 5px 0;background:#' + fieldcolor + ' url(<?php bloginfo('template_directory'); ?>/images/input-bg-light.png) repeat-x center top;border: 2px solid #' + fieldborder + ';margin:' + fieldmargin + ';display:' + display + ';text-align:center;" onfocus="if (this.value == \'' + namedefaulttext + '\') {this.value = \'\';}" onblur="if (this.value == \'\') {this.value = \'' + namedefaulttext + '\';}"/>';
} else {fieldscode1 = ''; }
if (document.flexarforms.optinfield[1].checked) {
fieldscode2 = '<input type="text" name="' + lnamename + '" value="' + lnamedefaulttext + '" style="width: ' + formwidth + 'px; font-size:16px; font-family: tahoma, helvetica, arial; color:#' + fieldtext + ';padding: 5px 0;background:#' + fieldcolor + ' url(<?php bloginfo('template_directory'); ?>/images/input-bg-light.png) repeat-x center top;border: 2px solid #' + fieldborder + ';margin:' + fieldmargin + ';display:' + display + ';text-align:center;" onfocus="if (this.value == \'' + lnamedefaulttext + '\') {this.value = \'\';}" onblur="if (this.value == \'\') {this.value = \'' + lnamedefaulttext + '\';}"/>';
} else { fieldscode2 = ''; }
if (document.flexarforms.optinfield[2].checked) {
fieldscode3 = '<input type="text" name="' + cfieldname + '" value="' + cfielddefaulttext + '" style="width: ' + formwidth + 'px; font-size:16px; font-family: tahoma, helvetica, arial; color:#' + fieldtext + ';padding: 5px 0;background:#' + fieldcolor + ' url(<?php bloginfo('template_directory'); ?>/images/input-bg-light.png) repeat-x center top;border: 2px solid #' + fieldborder + ';margin:' + fieldmargin + ';display:' + display + ';text-align:center;" onfocus="if (this.value == \'' + cfielddefaulttext + '\') {this.value = \'\';}" onblur="if (this.value == \'\') {this.value = \'' + cfielddefaulttext + '\';}"/>';
} else { fieldscode3 = ''; }
arcode = '<div style="width:100%;text-align:center;"><form method="post" action="' + submiturl + '" style="text-align:center;">' + hiddeninputs + fieldscode1 + fieldscode2 + fieldscode3 + '<input type="text" name="' + emailname + '" value="' + emaildefaulttext + '" style="width: ' + formwidth + 'px; font-size:16px; font-family: tahoma, helvetica, arial; color:#' + fieldtext + ';padding: 5px 0;background:#' + fieldcolor + ' url(<?php bloginfo('template_directory'); ?>/images/input-bg-light.png) repeat-x center top;border: 2px solid #' + fieldborder + ';margin:' + fieldmargin + ';display:' + display + ';text-align:center;" onfocus="if (this.value == \'' + emaildefaulttext + '\') {this.value = \'\';}" onblur="if (this.value == \'\') {this.value = \'' + emaildefaulttext + '\';}"/> ' + buttoncode + ' <em style="display:block;font-size:11px;">' + privacy + '</em></form>' + misccode + '</div>';
if(window.tinyMCE) {
if (typeof tinyMCEPopup.editor.insertContent == 'function') { // tinymce 4.x
tinyMCEPopup.editor.insertContent(arcode);
} else { // tinymce 3.x
window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, arcode);
}
tinyMCEPopup.editor.execCommand('mceRepaint');
tinyMCEPopup.close();
}
return;
}
</script>
<title>FlexSqueeze Autoresponder Forms</title>
<style type="text/css">
td img:hover, input:hover {cursor:pointer;}
td {border:1px solid #fff;}
.cancelbtn, .submitbtn {padding:5px;}
.cancelbtn:hover, .submitbtn:hover {background-color:#555;color:#fff;}
input {padding:4px;}
</style>
</head>
<body onLoad="tinyMCEPopup.executeOnLoad('init();');">
<form action="#" method="post" name="flexarforms">
<table id="boxchoices" width="664" cellpadding="8">
<tr>
<td colspan="6"><p><strong>Form action URL: </strong></p><p>This is the URL where your form sends submitted input. If you have an HTML form for your autoresponder, look for code like this:</p><p><strong><form method="post" action="<span style="color:#a10000;">http://www.aweber.com/scripts/addlead.pl</span>"></strong></p><p>The action URL is highlighted red of the code. Paste that in the box below. The default value is the Aweber form action.</p><textarea name="actionfield" cols="110" rows="1" style="padding:5px;">http://www.aweber.com/scripts/addlead.pl</textarea>
</td>
</tr>
<tr>
<td colspan="6"><p><strong>Hidden form field values</strong></p><p>These begin with <input type="hidden"... and send the form input to the correct list, followup URL, etc. Paste all hidden inputs found in your sample form HTML code.</p><textarea name="hiddenfields" cols="110" rows="10"></textarea>
</td>
</tr>
<tr>
<td colspan="6">
<p><strong>Included form fields:</strong></p>
<p>Select which form fields you want to use in your form. For the 'Field name' option, you will need to enter the 'name' parameter for each field as required by your autoresponder. The easiest way to find this is to create a sample form with your autoresponder and look at the HTML code. Each form field will look something like this:</p><p><input type="text" name="<span style="color:#a10000;"><strong>name (awf_first)</strong></span>" ...</p><p>The name value in red above and is the default Aweber value for the first name in their web form. The 'name' parameter for your specific autoresponder is the value you need to enter for each field in your form.</p>
<p>
<label>
<input type="checkbox" name="optinfield" value="f_name" id="optinfield_0" />
<strong>Name (First or Full)</strong></label><br /><br /> <label>Default text: <input name="f_name_text" type="text" value="Your First Name" size="30" /></label><br /> <label>Field name: <input name="f_name_name" type="text" value="name (awf_first)" size="30" /></label>
<br /><br />
<label>
<input type="checkbox" name="optinfield" value="l_name" id="optinfield_1" />
<strong>Last Name (can also be used as a custom field)</strong></label><br /><br /> <label>Default text: <input name="l_name_text" type="text" value="Your Last Name" size="30" /></label><br /> <label>Field name: <input name="l_name_name" type="text" value="name (awf_last)" size="30" /></label><br /><br />
<label>
<input type="checkbox" name="optinfield" value="c_field" id="optinfield_2" />
<strong>Custom field (optional)</strong></label><br /><br /> <label>Default text: <input name="c_field" type="text" value="" size="30" /></label><br /> <label>Field name: <input name="c_field_name" type="text" value="" size="30" /></label><br /><br />
<label>
<input type="checkbox" name="optinfield" value="email" id="optinfield_3" checked="checked"/>
<strong>Email</strong></label><br /><br /> <label>Default text: <input name="email_text" type="text" value="Your Email Address" size="30" /></label><br />
<label>Field name: <input name="email_name" type="text" value="email" size="30" /></label>
</p>
</td>
</tr>
<tr>
<td colspan="6"><strong>Form Field Width:</strong> <input name="formwidth" type="text" size="5" value="200" /> <strong>Form Field Orientation:</strong> <label>
<input type="radio" name="layout" value="vertical" checked="checked"/> Vertical
</label>
<label>
<input type="radio" name="layout" value="horizontal" /> Horizontal
</label>
</td>
</tr>
<tr>
<td colspan="6"><label><strong>Form Field Background:</strong>
<input name="fieldcolor" class="color {pickerMode:'HVS',pickerFaceColor:'#555555',pickerInsetColor:'black'}" value="FFFFFF" style="width:75px;"/></label>
<label><strong>Form Field Border:</strong>
<input name="fieldborder" class="color {pickerMode:'HVS',pickerFaceColor:'#555555',pickerInsetColor:'black'}" value="333333" style="width:75px;"/></label>
<label><strong>Form Field Text:</strong>
<input name="fieldtext" class="color {pickerMode:'HVS',pickerFaceColor:'#555555',pickerInsetColor:'black'}" value="555555" style="width:75px;"/></label>
</td>
</tr>
<tr>
<td colspan="6"><label><strong>Submit Button Color:</strong>
<input name="flxclr" class="color {pickerMode:'HVS',pickerFaceColor:'#555555',pickerInsetColor:'black'}" value="c00000" style="width:75px;"/></label> <label><strong>Submit Button Hover Color:</strong>
<input name="flxhvrclr" class="color {pickerMode:'HVS',pickerFaceColor:'#555555',pickerInsetColor:'black'}" value="990000" style="width:75px;"/></label></td>
</tr>
<tr>
<td colspan="6"><label><strong>Button Text:</strong>
<input name="submittext" type="text" size="30" value="Subscribe Now!" /></label> <label><strong>Text Color:</strong>
<input name="flxbtntextclr" class="color {pickerMode:'HVS',pickerFaceColor:'#555555',pickerInsetColor:'black'}" value="FFFFFF" style="width:75px;"/></label> <label><strong>Text Hover Color:</strong>
<input name="flxbtntexthvrclr" class="color {pickerMode:'HVS',pickerFaceColor:'#555555',pickerInsetColor:'black'}" value="FFCC00" style="width:75px;"/></label>
</td>
</tr>
<tr>
<td colspan="6" style="border: none;"><strong>Button Style</strong></td>
</tr>
<tr>
<td style="text-align:center;"><label><div style="margin:0 auto;padding:0px;background:#C00 url(<?php bloginfo('template_directory'); ?>/images/submit-btm-dark.png) repeat-x center top;border:2px solid #333;margin-bottom:5px;width:70px;height:35px;color:#fff;font: normal bold 18px/35px Tahoma, Helvetica, Arial;text-shadow: #000 0px 0px 4px;">Go</div><br />
<input type="radio" name="flxstyle" value="style1" checked="checked"/>
</label></td>
<td style="text-align:center;"><label><div style="margin:0 auto;padding:0px;background:#C00 url(<?php bloginfo('template_directory'); ?>/images/submit-dark.png) repeat-x center;border:2px solid #333;margin-bottom:5px;width:70px;height:35px;color:#fff;font: normal bold 18px/35px Tahoma, Helvetica, Arial;text-shadow: #000 0px 0px 4px;">Go</div><br />
<input type="radio" name="flxstyle" value="style2" />
</label></td>
<td style="text-align:center;"><label><div style="margin:0 auto;padding:0px;background:#C00 url(<?php bloginfo('template_directory'); ?>/images/submit-light-top.png) repeat-x center;border:2px solid #333;margin-bottom:5px;width:70px;height:35px;color:#fff;font: normal bold 18px/35px Tahoma, Helvetica, Arial;text-shadow: #000 0px 0px 4px;">Go</div><br />
<input type="radio" name="flxstyle" value="style3" />
</label></td>
<td style="text-align:center;"><label><div style="margin:0 auto;padding:0px;background:#C00 url(<?php bloginfo('template_directory'); ?>/images/submit-btm-dark.png) repeat-x center top;border:2px solid #333;margin-bottom:5px;width:70px;height:35px;color:#fff;font: normal 21px/35px Georgia, Times, serif;text-shadow: #000 0px 0px 4px;">Go</div><br />
<input type="radio" name="flxstyle" value="style4" />
</label></td>
<td style="text-align:center;"><label><div style="margin:0 auto;padding:0px;background:#C00 url(<?php bloginfo('template_directory'); ?>/images/submit-dark.png) repeat-x center;border:2px solid #333;margin-bottom:5px;width:70px;height:35px;color:#fff;font: normal 21px/35px Georgia, Times, serif;text-shadow: #000 0px 0px 4px;">Go</div><br />
<input type="radio" name="flxstyle" value="style5" />
</label></td>
<td style="text-align:center;"><label><div style="margin:0 auto;padding:0px;background:#C00 url(<?php bloginfo('template_directory'); ?>/images/submit-light-top.png) repeat-x center;border:2px solid #333;margin-bottom:5px;width:70px;height:35px;color:#fff;font: normal 21px/35px Georgia, Times, serif;text-shadow: #000 0px 0px 4px;">Go</div><br />
<input type="radio" name="flxstyle" value="style6" />
</label></td>
</tr>
<tr>
<td colspan="6"><p><strong>Use Image for Button</strong> - To use an image for your form button instead of the options above, paste the full URL to the image location in the blank below.</p>
<textarea name="buttonurl" cols="110" rows="1"></textarea>
<p><strong>Optional Image Width</strong> - If you leave this option blank, the button image will automatically be set to the form field width specified above. Use a custom width by specifying an image width below.</p>
<label><strong>Width in Pixels:</strong>
<input name="btnimgwidth" type="text" size="5" value="" /></label>
</td>
</tr>
<tr>
<td colspan="6"><p><strong>Privacy Text</strong> - Enter any text to show beneath the submit button</p><textarea name="privacy" cols="110" rows="1" style="padding:5px;">We respect your privacy and never share your information</textarea></td>
</tr>
<tr>
<td colspan="6"><p><strong>Additional Code</strong></p><p>If your autorepsonder requires additional javascript code, paste the code including the opening and closing script tags in the box below.</p><textarea name="misccode" cols="110" rows="10"></textarea>
</td>
</tr>
<tr>
<td colspan="6">
<input name="cancel" class="cancelbtn" type="button" value="Cancel" onClick="tinyMCEPopup.close();" />
<input name="submit" class="submitbtn" type="button" value="Insert Autoresponder Form" onClick="insertARForm();" />
</td>
</tr>
</table>
</form>
</body>
</html>