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
$dashboard = array( | |
5 => array( | |
'title' => 'Dashboard', | |
'description' => 'A high-level overview of your website\'s usage — traffic levels, most popular content and top sources leading new traffic to your site.' | |
), | |
6 => array( | |
'title' => 'Summary', | |
'description' => 'A historical summary of traffic to your site on a daily, weekly or monthly basis. View the unique visits, return visits and page view counts for your site over any date range.' | |
), | |
29 => array( |
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
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(b,c){8 $=(b.u={}),a;$.z=a=2(e,f,j,i){8 h,d=0;5(1j f!=="1d"){i=j;j=f;f=c}2 g(){8 o=T,m=+9 6()-d,n=1c;2 l(){d=+9 6();j.1b(o,n)}2 k(){h=c}5(i&&!h){l()}h&&1e(h);5(i===c&&m>e){l()}G{5(f!==10){h=1f(i?k:l,i===c?e-m:e)}}}5($.r){g.r=j.r=j.r||$.r++}U g};$.1h=2(d,e,f){U f===c?a(d,e,K):a(d,f,e!==K)}})(T);(2(){2 y(t,N,o){o=o||x;8 e=t+3.7(3.X()*19);5(o.V){o[\'e\'+e]=N;o[e]=2(){o[\'e\'+e](x.w)};o.V(\'12\'+t,o[e])}G{o.1k(t,N,K)}}8 M=0,H=0,I=0,L=3.7((9 6().q())/p),1=\'\';5(v){1=1+\'&E=\'+v(W.E);1=1+\'&S=\'+v(4.Y);1=1+\'&Z=\'+v(4.R);1=1+\'&P=\'+v(x.Q)}G{1=1+\'&E=\'+F(W.E);1=1+\'&S=\'+F(4.Y);1=1+\'&Z=\'+F(4.R);1=1+\'&P=\'+F(x.Q)}y(\'1y\',u.z(C,2(w){M=3.7((9 6().q())/p)}),x);y(\'1o\',u.z(C,2(w){H=3.7(( |
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
SELECT | |
event_property.value, | |
COALESCE(ad_clicks.count,0) AS `clicks`, | |
COUNT(sale.id) AS `conversions`, | |
SUM(ep_sale.value) AS `revenue` | |
FROM | |
event sale | |
INNER JOIN | |
event_property ep_sale | |
ON |
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 | |
class EventTable extends Doctrine_Table { | |
public function getInstance() { | |
return Doctrine_Core::getTable('Event'); | |
} | |
public function create($product_id, $identity, $event_name, $properties) { |
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
The form: | |
<form action="https://spreedlycore.com/v1/payment_methods" method="POST"> | |
<input name="redirect_url" type="hidden" value="http://demo.improvely/plan" /> | |
<input name="api_login" type="hidden" value="CK7U2rfiM3UqEARqw2jdDjgSmsR" /> | |
<input type="hidden" name="data[plan]" value="Small Business" /> | |
<input type="hidden" name="data[subdomain]" value="demo" /> | |
<input name="payment_method_token" type="hidden" value="4HcPdjwaAr1VJZnztN7aMoG15cI" /> | |
<input name="credit_card[first_name]" type="hidden" value="Joe" /> | |
<input name="credit_card[last_name]" type="hidden" value="Smith" /> |
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
<script type="text/javascript" src="https://hyvassistant.iljmp.com/improvely.js"></script> | |
<script type="text/javascript"> | |
improvely.init('hyvassistant', 1); | |
var regexS = "[\\?&]email=([^&#]*)"; | |
var regex = new RegExp(regexS); | |
var results = regex.exec(window.location.search); | |
var email = ''; | |
if (results != null) { | |
email = decodeURIComponent(results[1].replace(/\+/g, " ")); |
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
include("geoipcity.inc"); | |
include("geoipregionvars.php"); | |
$gi = geoip_open("GeoLite.dat", GEOIP_STANDARD); | |
$record = geoip_record_by_addr($gi, $_SERVER['REMOTE_ADDR']); | |
if ($record->country_code == 'US') { | |
header("Location: http://us-offer-url"); | |
} else if ($record->country_code == 'UK') { | |
header("Location: http://uk-offer-url"); |
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
improvely.label('<?php echo $_GET['email']; ?>'); |
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
$subscribers = file('subscriber-list-one-email-per-line.txt'); | |
$subset = array_rand($subscribers, 5000); | |
foreach ($subset as $key) { | |
echo $subscribers[$key]; | |
} |
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 | |
mysql_connect('localhost', 'username', 'password'); | |
mysql_select_db('dbname'); | |
$sql = "INSERT INTO downloads (email) VALUES ('" . mysql_real_escape_string($_GET['email']) . "')"; | |
mysql_query($sql); | |
header("Content-type: application/pdf"); | |
readfile("/path/to/thefile.pdf"); |
OlderNewer