<?php

include "PulsePro.class.php";
$pulse01 = new PulsePro('horizontal');
$pulse02 = new PulsePro('horizontal');
$pulse03 = new PulsePro('horizontal');
$pulse04 = new PulsePro('horizontal');
//put client company name here
$client = "Breuninger";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>GetLeads Feedback -<?php 
echo $client;
?>
</title>
<!-- Stylesheets -->
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="../css/bootstrap.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="../css/style.css">
<link rel="stylesheet" href="../css/responsive.css">
<link rel="stylesheet" href="../css/owl.theme.css">
<?php 
echo PulsePro::css();
echo PulsePro::javascript();
?>
Exemple #2
0
<?php

include "PulsePro.class.php";
$pulse1 = new PulsePro('plus_minus');
$pulse2 = new PulsePro('horizontal');
$pulse3 = new PulsePro('inline');
$pulse4 = new PulsePro("like");
$pulse5 = new PulsePro("triangle");
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GetLeads Feedback</title>
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,700' rel='stylesheet' type='text/css'>

<?php 
echo PulsePro::css();
echo PulsePro::javascript();
?>
  
</head>
<body>
<div id="wrapper">
  <h1>GetLeads Feeback Features</h1>
  <div>
    <h2>Plus Minus</h2>
	<?php 
echo $pulse1->buttons('Plus Minus', 150);
?>
Exemple #3
-1
Pulse Lite Voting Script
http://s.technabled.com/PulseVote
**/
if (!$_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
    die("No direct access to files is allowed");
}
include "PulsePro.class.php";
$item_name = filter_var($_POST['item_name']);
$dir = filter_var($_POST['dir']);
if (empty($item_name) || !in_array($dir, array(0, -1, 1))) {
    // parameters are empty
    $result['error'] = 'invalid_params';
} else {
    // params are okay
    $ip = $_SERVER['REMOTE_ADDR'];
    $pulse = new PulsePro();
    if ($pulse->isClosed($item_name)) {
        $result['error'] = 'voting_closed';
    } elseif ($pulse->isBanned($ip)) {
        $result['error'] = 'ip_banned';
    } elseif ($pulse->vote($item_name, $dir)) {
        // voting successful
        $result['success'] = 'voted';
        $result['new_result'] = $pulse->voteResult($item_name);
    } else {
        // voting fails; db error
        $result['error'] = 'database_error';
        $result['error_text'] = mysql_error();
    }
}
echo json_encode($result);