Skip to content

Instantly share code, notes, and snippets.

@coryetzkorn
Created February 3, 2014 15:51
Show Gist options
  • Save coryetzkorn/8786404 to your computer and use it in GitHub Desktop.
Save coryetzkorn/8786404 to your computer and use it in GitHub Desktop.
Embedding Dashboard - PHP
<?php
function generateHash() {
$email = $_SESSION['email'];
$first_name = $_SESSION['firstName'];
$last_name = $_SESSION['lastName'];
$security_group = "default";
$company_key = "cust";
$secret_key = "423d004c716839b4af16ef680cc742f2";
$timestamp = (int)gmdate('U');
$verify = md5($first_name . "|" . $last_name . "|" . $email . "|" . $company_key . "|" . $security_group . "|" . $timestamp . "|" . $secret_key);
return $verify;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment